1 | initial version |
// since the Mat's type is CV_8UC1, you have to use uchar. you can't choose it at will
contour_image.at<uchar>(y1,x1)=255;
2 | No.2 Revision |
// since the Mat's type is CV_8UC1, you have to use uchar. you can't choose it at will
contour_image.at<uchar>(y1,x1)=255;