cv::imread() returns null pointer (Bug #1998)
Description
i am using opencv 2.4.0 with visual studio 2008. i have used a simple sample code to test cv::imread and it doesn't work. i have tried most online solutions - from separating debug and release libraries and .dll files, putting the image in the folder with the executable, to specifying the directory of the image - but it still doens't work. i even reinstalled opencv at one point.
however, cvLoadImage works but produces a window with an error in the image window name in debug mode and the release mode produces two windows instead of one and with errors in window names as well.
i have tested this with images with different file extensions.
please help!
Associated revisions
Merge pull request #1998 from ilya-lavrenov:tapi_gemm
History
Updated by Kirill Kornyakov almost 13 years ago
You should provide both sample code and input images. This is not user group, so if we'll not be able to reproduce this issue, we'll close this ticket.
- Priority changed from Normal to Low
- Category set to highgui-images
- Assignee set to lawrie treembu
Updated by lawrie treembu almost 13 years ago
- File read.cpp added
- File lena.jpg added
Updated by Marina Kolpakova over 12 years ago
We have Introduction tutorial that shows imread functionality. See source:trunk/opencv/samples/cpp/tutorial_code/introduction/display_image/display_image.cpp. for source codes. This code does the same thing and works well.
- Target version set to 2.4.3
- Status changed from Open to Cancelled