Can 2D FFT Convolution Be Performed Without Padding Images?

Click For Summary
SUMMARY

2D FFT convolution can be performed without padding images, even when the width and height are unequal. The FFTW3 library is utilized for this process, and issues with incorrect pixel values arise when dimensions do not match. Proper kernel padding is crucial to ensure accurate convolution results. Reference materials, including an NVIDIA paper and a resource from Cardiff University, provide foundational knowledge on the 2D discrete Fourier transform on rectangular grids.

PREREQUISITES
  • Understanding of FFTW3 library for Fast Fourier Transform operations
  • Knowledge of 2D discrete Fourier transform principles
  • Familiarity with image processing concepts
  • Experience in kernel padding techniques for convolution
NEXT STEPS
  • Study the implementation of 2D FFT convolution using FFTW3
  • Research the mathematical foundations of the 2D discrete Fourier transform
  • Explore kernel padding strategies for non-square images
  • Review NVIDIA's convolution FFT documentation for advanced techniques
USEFUL FOR

Image processing engineers, developers utilizing FFTW3 for convolution tasks, and researchers focusing on optimizing 2D FFT operations without padding.

engcon
Messages
12
Reaction score
0
I'm trying to do FFT convolution via the FFTW3 library for image processing purposes. Basically I have a kernel and I am convolving it with an image.

A problem I encountered has to do with the dimensions of the image. When the width is not equal to the height, the pixel values I get, seem to be at the wrong x,y coords. With the width and height being equal I get the correct results.

My questions are:
Is it possible to perform 2D FFT convolution with width not equal to height, without having to pad the image?
Could it have to do with the way I'm padding the kernel to match the image size?

I'm using an NVIDIA paper, available http://developer.download.nvidia.com/compute/cuda/2_2/sdk/website/projects/convolutionFFT2D/doc/convolutionFFT2D.pdf" on the subject as a guide.
 
Last edited by a moderator:
Physics news on Phys.org
engcon said:
My questions are:
Is it possible to perform 2D FFT convolution with width not equal to height, without having to pad the image?
Could it have to do with the way I'm padding the kernel to match the image size?

Yes, it is...take a look http://www.cs.cf.ac.uk/Dave/Multimedia/node228.html" to see how the 2D discrete Fourier transform is defined on a rectangular grid. Padding with zeros gives you a result which is probably different than what you want in your application.
 
Last edited by a moderator:

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
18K
Replies
4
Views
5K
  • · Replies 152 ·
6
Replies
152
Views
11K
  • · Replies 2 ·
Replies
2
Views
8K