Answer the question
In order to leave comments, you need to log in
Why is the imread() function acting weird in opencv 3.1 when running in Visual Studio 2015?
Good afternoon. Faced a strange problem with the imread() function.
If we write like this:
Mat image_source = imread("C://Users//deus//Documents//MEGA//test_radius//Debug//k_image.jpg", CV_LOAD_IMAGE_GRAYSCALE);
Mat image_source = imread("k_image.jpg", CV_LOAD_IMAGE_GRAYSCALE);
Answer the question
In order to leave comments, you need to log in
You need to manually get the path to the EXE file (GetModuleFileName()), then cut out the exe name from there and insert the file name.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question