PNG imencode/imdecode (Bug #2352)


Added by Richard Steffen over 12 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-09-13
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

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

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

Revision 538847e8
Added by Vladislav Vinogradov over 12 years ago

fixed compilation under VS2012 (Bug #2352, #2355)

Revision 58fb8692
Added by Vadim Pisarevsky over 12 years ago

added test for png encoding bug #2352

Revision ff9a0815
Added by Andrey Pavlenko about 11 years ago

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

Also available in: Atom PDF