摘要: 对比直方图:compareHist()函数 double compareHist(InputArray H1,InputArray H2,int method) 或者double compareHist(const SparseMat&H1,const SparseMat&H2,int method 阅读全文
posted @ 2019-12-09 16:49 我输过但没服过 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1 计算直方图:calcHist()函数 void calcHist(const Mat images,int nimages,const int channels,InputArray mask,OutputArray hist,int dims,const int histSize,const 阅读全文
posted @ 2019-12-08 22:03 我输过但没服过 阅读(169) 评论(0) 推荐(0) 编辑
摘要: inpaint()函数 void inpaint(InputArray src,InputArray inpaintMask,OutputArray dst,double inpaintRadius,int flags) 阅读全文
posted @ 2019-12-08 21:31 我输过但没服过 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 矩的计算:moments()函数 Moments moments(InputArray array,bool binaryImage=false) 2 就是轮廓面积:contourArea()函数 double contourArea(InputArray contour,bool orient 阅读全文
posted @ 2019-12-08 11:55 我输过但没服过 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 返回外部矩形边界:boundingRect()函数 Rect boundingRect(InputArray points) 2 寻找最小包围矩形 :minAreaRect()函数 RotatedRect minAreaRect(InputArray points) 3 寻找最小包围圆形:min 阅读全文
posted @ 2019-12-07 22:05 我输过但没服过 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 1 寻找凸包:convexHull()函数 void convexHull(InputArray points,OutputArray hull,bool clockwise=false,bool returnPoints=true) //例子 include "opencv2/imgproc/im 阅读全文
posted @ 2019-12-07 20:28 我输过但没服过 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 寻找轮廓:findContours()函数 void findContours(InputOutputArray image,OutputArrayOfArrays contours,OutputArray hierarchy,int mode,int method,Point offset=P 阅读全文
posted @ 2019-12-07 19:28 我输过但没服过 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 void remap(InputArray src,OutputArray dst,InputArray map1,InputArray map2,int interpolation,int borderMode=BORDER_CONSTANT,const Scalar&borderValue= 阅读全文
posted @ 2019-12-07 16:06 我输过但没服过 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 霍夫线变换包括标准霍夫变换、多尺度霍夫变换、累计概率霍夫变换 1 标准霍夫变换:HoughLines()函数 void HoughLines(InputArray image,OutputArray lines,double rho,double theta,int threshold,double 阅读全文
posted @ 2019-12-07 11:16 我输过但没服过 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 一般步骤:(1)滤波(2)增强(3)检测 1 Canny()函数 void Canny(InputArray image,OutputArray edges,double threshold1,double threshold2,int apertureSize=3,bool L2gradient= 阅读全文
posted @ 2019-12-05 22:09 我输过但没服过 阅读(193) 评论(0) 推荐(0) 编辑