JPEG input doesn't work if compiled without PNG (Bug #1504)


Added by turerkan - over 13 years ago. Updated almost 13 years ago.


Status:Cancelled Start date:
Priority:High Due date:
Assignee:Alexander Shishkov % Done:

0%

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

Description

OpenCV revisions tested: 2.3.1 and r7035
Operating System: Win 7 32bit
Compliation Environment: mingw32
mingw32 versions tested: 4.4.1, 4.5.2, 4.6.1
Work days spent: 2 :/

the all mighty imread function of highGUI module will not load JPEG images if PNG support is not compiled into OpenCV. After trying to compile a stripped openCV for my project I was left unable to load JPEG images (the only format i'm interested in actually). With painstalking efforts I have made a table of 18 compile-time parameters and tested sensible combinations to narrow down the problem down to one parameter, PNG support. I recompiled OpenCV countless times in order to be sure.. The above versions of OpenCV and mingw32 are guaranteed to be affected.

While not being a showstopper, it's really a BIG loss of time... It would be great if it's verified by third parties and get documented in the wiki so other innocent people don't pull out their hair as i did.

Still appriciate the collosal efforts put into this, you rock!
keep up good work:)


History

Updated by Alexander Shishkov about 13 years ago

  • Description changed from [[OpenCV]] revisions tested: 2.3.1 and r7035 Operating System: Win 7 32bit Co... to OpenCV revisions tested: 2.3.1 and r7035 Operating System: Win 7 32bit Compli... More

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from High to Normal
  • Target version deleted ()

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from Normal to High

Updated by Alexander Shishkov almost 13 years ago

Can't reproduce on Windows7 with mingw 4.6.1.
I get the following error

OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file C:\work\opencv\opencv\modules\core\src\array.cpp, line 2482
terminate called after throwing an instance of 'cv::Exception'
  what():  C:\work\opencv\opencv\modules\core\src\array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat

when try to open PNG file. But JPEG working without problems.
My code:
1Mat a = imread(argv[1],1);
2  imshow("aa",a);
3  waitKey(0);

  • Status changed from Open to Cancelled

Updated by Alexander Shishkov almost 13 years ago

  • Assignee set to Alexander Shishkov

Updated by Alexander Shishkov almost 13 years ago

  • Target version set to 2.4.0

Also available in: Atom PDF