Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi i think you must check input image format first. like:

 if (imag_1_gray.type==CV_8UC1) 
{
 //don't convert color
}
else
{
//convert color
}

if your os is windows 64 bits. The picture format you think is gray(CV_8UC1) ,but in fact,it's not.

Hi i think you must check input image format first. like:

 if (imag_1_gray.type==CV_8UC1) 
{
 //don't convert color
}
else
{
//convert color
}

if your os is windows 64 bits. The picture format you think is gray(CV_8UC1) ,but in fact,it's maybe not.