Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Runtimer Error in Imshow using the DFT example in Opencv 4.0

Hello,

I am trying to get the following example for a Fourier transformation running:

https://docs.opencv.org/4.0.0/d8/d01/tutorial_discrete_fourier_transform.html

I am using the attached input Image: C:\fakepath\lenna.jpg

To read the image directly, i adapted the codeline:

Mat I = imread(filename, IMREAD_GRAYSCALE);

to:

Mat I = imread("lenna.jpg", IMREAD_GRAYSCALE);

Compiling the example works fine. But when i run the Code i get a runtime error when displaying the DFT.

Any ideas whats causing the error?

Setup: Windows 10 with Visual Studio 2017 and OpenCV 4.0.0

Thank you in advance!

click to hide/show revision 2
None

updated 2018-12-06 12:46:20 -0600

berak gravatar image

Runtimer Error in Imshow using the DFT example in Opencv 4.0

Hello,

I am trying to get the following example for a Fourier transformation running:

https://docs.opencv.org/4.0.0/d8/d01/tutorial_discrete_fourier_transform.html

I am using the attached input Image: C:\fakepath\lenna.jpg

To read the image directly, i adapted the codeline:

Mat I = imread(filename, IMREAD_GRAYSCALE);

to:

Mat I = imread("lenna.jpg", IMREAD_GRAYSCALE);

Compiling the example works fine. But when i run the Code i get a runtime error when displaying the DFT.

Any ideas whats causing the error?

Setup: Windows 10 with Visual Studio 2017 and OpenCV 4.0.0

Thank you in advance!