OpenCV2.4.0 - imread() no effect with Windows (Bug #1930)


Added by Florian Thillmann almost 13 years ago. Updated almost 13 years ago.


Status:Cancelled Start date:2012-05-14
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

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

Description

Hi there,

I'm using the new OpenCV 2.4.0, compiled with VisualStudio 2010 (Win64), CMake 2.8.8 under Windows 7. I built "debug" as well as "release" configurations and tested both with the same result:

While using the function imread() I always see a gray image (with the correct window size), no matter whether using bmp, jpg or any other stuff.

Trying to capture a single frame and then displaying it with imshow() leads to no errors.

While compiling, no errors/warnings were found. There are also no errors during runtime.

I tried both using absolute and relative path for the image, but it had no effect at all.

Any ideas?

Greetings

Florian


imread.cpp (472 Bytes) Florian Thillmann, 2012-05-14 03:00 pm


Associated revisions

Revision f3ba1a36
Added by Roman Donchenko over 11 years ago

Merge pull request #1930 from alalek:cmake_msvs_subfolders

History

Updated by Andrey Kamaev almost 13 years ago

You have to use cv::waitKey instead of getchar.
Please, refer to waitKey documentation for the details.

  • Status changed from Open to Cancelled
  • Target version set to 2.4.1
  • Assignee changed from Alexander Reshetnikov to Andrey Kamaev

Also available in: Atom PDF