Data Science, Python, Fourier Transform, Image Processing, Programming.
fourier_transform_rgb(image): f_size = 25 transformed_channels = [] for i in range(3): rgb_fft = np.fft.fftshift(np.fft.fft2((image[:, :, i]))) rgb_fft[:225, 235:237] = 1 rgb_fft[-225:,235:237] = 1 transformed_channels.append(abs(np.fft.ifft2(rgb_fft))) final_image =