Using fft2 with reshaping for an RGB filter
- by Mahmoud Aladdin
I want to apply a filter on an image, for example, blurring filter [[1/9.0, 1/9.0, 1/9.0], [1/9.0, 1/9.0, 1/9.0], [1/9.0, 1/9.0, 1/9.0]].
Also, I'd like to use the approach that convolution in Spatial domain is equivalent to multiplication in Frequency domain.
So, my algorithm will be like.
Load Image.
Create Filter.
convert both Filter &…