PNG imencode/imdecode (Bug #2352)
Description
Since the last updates of the PNG modul, the imencde/decode to a buffer does not work anymore.
vector<uchar> buff; { Mat im = Mat::zeros(1000,1000, CV_8U); vector<int> param = vector<int>(2); param[0] = CV_IMWRITE_PNG_COMPRESSION; param[1] = 3; //default(3) 0-9. cv::imencode(".png" ,im ,buff, param); } // hangs Mat im2 = imdecode(buff,CV_LOAD_IMAGE_ANYDEPTH);
Associated revisions
added test for png encoding bug #2352
Merge pull request #2352 from ilya-lavrenov:flann
History
Updated by Andrey Kamaev over 12 years ago
- Assignee set to Vadim Pisarevsky
- Category set to highgui-images
- Target version set to 2.4.3
Updated by Vadim Pisarevsky over 12 years ago
Hi! I can not reproduce the problem on MacOSX 10.7 or Ubuntu 12.04:
opencv_test_highgui --gtest_filter="Highgui_Image.encode_png"
Can you, please, specify, which platform and compiler do you use? Also, try a rebuild OpenCV from scratch.
Updated by Andrey Pavlenko over 12 years ago
- Description changed from Since the last updates of the PNG modul, the imencde/decode to a buffer does ... to Since the last updates of the PNG modul, the imencde/decode to a buffer does ... More
Updated by Andrey Pavlenko over 12 years ago
- Description changed from Since the last updates of the PNG modul, the imencde/decode to a buffer does ... to Since the last updates of the PNG modul, the imencde/decode to a buffer does ... More
Updated by Vadim Pisarevsky over 12 years ago
looks like this is false-alarm report.
- Status changed from Open to Cancelled