Runtime 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:
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!
please show the code for that (the code you show so far is unrelated)