Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to fix libpng warning?

I am using OpenCV with Visual Studio 2010 to read and display some images(including jpg and png). My program is working fine but sometimes it fails with the following warning :

libpng warning: interlace handling should be turned on when using png_read_image.
OpenCV Error: Insufficient memory (failed to allocate 1398604 bytes) in unknown function, file ..\..\..\src\opencv\modules\core\src\alloc.cpp, line 52

I tried searching on the internet for the fix but couldn't get any. Any help regarding the problem would be greatly appreciated.

Thanks

click to hide/show revision 2
retagged

updated 2014-03-02 04:38:19 -0600

berak gravatar image

How to fix libpng warning?

I am using OpenCV with Visual Studio 2010 to read and display some images(including jpg and png). My program is working fine but sometimes it fails with the following warning :

libpng warning: interlace handling should be turned on when using png_read_image.
OpenCV Error: Insufficient memory (failed to allocate 1398604 bytes) in unknown function, file ..\..\..\src\opencv\modules\core\src\alloc.cpp, line 52

I tried searching on the internet for the fix but couldn't get any. Any help regarding the problem would be greatly appreciated.

Thanks

How to fix libpng warning?warning when reading interlaced PNG?

I am using OpenCV with Visual Studio 2010 to read and display some images(including jpg and png). My program is working fine but sometimes it fails with the following warning :

libpng warning: interlace handling should be turned on when using png_read_image.
OpenCV Error: Insufficient memory (failed to allocate 1398604 bytes) in unknown function, file ..\..\..\src\opencv\modules\core\src\alloc.cpp, line 52

I tried searching on the internet for the fix but couldn't get any. Any help regarding the problem would be greatly appreciated.

Thanks