imread crash while when flag is CV_LOAD_IMAGE_UNCHANGED

asked 2016-03-09 08:41:43 -0500

essamzaky gravatar image

updated 2016-03-09 08:46:20 -0500

In the folloing image link text

imread is crashing

Mat mm = imread(strInputFile,CV_LOAD_IMAGE_UNCHANGED);

while it's working when

Mat orgMat = cv::imread(strInputFile,CV_LOAD_IMAGE_GRAYSCALE);

what is the problem and how i fix it

Note : i'm using 2.4.9 with MSVS c++

edit retag flag offensive close merge delete