Ask Your Question

Revision history [back]

click to hide/show revision 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;
// 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;