James
James

Reputation: 31778

How do you do a 2d Fourier transform using OpenCV?

I am new to image processing but would like to know how to do a simple 2D Fourier transform on an image using OpenCV?

I am basically looking to do what this Java applet does http://www.brainflux.org/java/classes/FFT2DApplet.html only with OpenCv - I would like a complete example if possible doDFT(Mat imagein, Mat result)

Upvotes: 0

Views: 9854

Answers (1)

Andrea Riccardi
Andrea Riccardi

Reputation: 161

You can find a complete example of 2d DFT using OpenCV in the official documentation:

http://docs.opencv.org/doc/tutorials/core/discrete_fourier_transform/discrete_fourier_transform.html#discretfouriertransform

Upvotes: 4

Related Questions