cv::imread() returns null pointer (Bug #1998)


Added by lawrie treembu almost 13 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-05-30
Priority:Low Due date:
Assignee:lawrie treembu % Done:

0%

Category:highgui-images
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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!


read.cpp (339 Bytes) lawrie treembu, 2012-05-31 01:43 am

lena.jpg (89.7 kB) lawrie treembu, 2012-05-31 01:43 am


Associated revisions

Revision d3fa2bfe
Added by Andrey Pavlenko about 11 years ago

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

Also available in: Atom PDF