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.
2 | No.2 Revision |
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.