vector<vector<Point>> vec_p;
vector<Vec4i> vec_4f;
findContours(img_canny1, vec_p, vec_4f,RETR_TREE, CHAIN_APPROX_SIMPLE, Point(0, 0));
drawContours(img3, vec_p, i, color_1, 2, 8, vec_4f, 0, Point(0, 0));
vector<vector<Point>> vec_p;
vector<Vec4i> vec_4f;
findContours(img_canny1, vec_p, vec_4f,RETR_TREE, CHAIN_APPROX_SIMPLE, Point(0, 0));
drawContours(img3, vec_p, i, color_1, 2, 8, vec_4f, 0, Point(0, 0));
本文介绍了OpenCV的基本方发,包括图像读取、显示和写入。
1.轮廓提取 FindContours在二值图像中寻找轮廓 int cvFindContours( CvArr* image, CvMemStorage* storage, CvSeq** first_contour, &nb
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M