opencv中matchShapes使用的问题
vector<Point>c1;c1.push_back(Point(10,20));c1.push_back(Point(20,23));c1.push_back(Po...
vector<Point> c1;
c1.push_back(Point(10,20));
c1.push_back(Point(20,23));
c1.push_back(Point(30,23));
vector<Point> c2;
c2.push_back(Point(101,20));
c2.push_back(Point(20,231));
c2.push_back(Point(30,223));
//c2.push_back(Point(130,223));
double mm=matchShapes(c1,c2,0,0);为什么matchShapes总是报错??????? 展开
c1.push_back(Point(10,20));
c1.push_back(Point(20,23));
c1.push_back(Point(30,23));
vector<Point> c2;
c2.push_back(Point(101,20));
c2.push_back(Point(20,231));
c2.push_back(Point(30,223));
//c2.push_back(Point(130,223));
double mm=matchShapes(c1,c2,0,0);为什么matchShapes总是报错??????? 展开
2个回答
展开全部
matchShapes的参数问题……第三个参数是1,2,3中的一个,具体参见
http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=matchshapes#cv2.matchShapes
method – Comparison method: CV_CONTOURS_MATCH_I1 , CV_CONTOURS_MATCH_I2 or CV_CONTOURS_MATCH_I3 (see the details below).
http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=matchshapes#cv2.matchShapes
method – Comparison method: CV_CONTOURS_MATCH_I1 , CV_CONTOURS_MATCH_I2 or CV_CONTOURS_MATCH_I3 (see the details below).
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询