目录 一、轮廓发现 1、轮廓发现(find contour in your image) 的含义 轮廓发现是基于图像边缘提取的基础寻找对象轮廓的方法。 所以边缘提取的阈值选定会影响最终轮廓发现结果。 找出并画出图中的轮廓。 2、相关的API 以及代码演示 (1)轮廓发现(find contour) cv::findContours( InputOutputArray binImg, // 输入图像,非0的像素被看成1,0的像素值保持不变,8-bit OutputArrayOfArrays contours,// 全部发现的轮廓对象 OutputArray, hierachy// 图该的拓扑结构,可选,该轮廓发现算法正是基于图像拓扑结构实现。 int mode, // 轮廓返回的模式 int method,// 发现方法 Point offset=Point()// 轮廓像素的位移,默认(0, 0)没有位移 ) (2)轮廓绘制(draw contour):cv::findContours之后对发现的轮廓数据进行绘制显示 drawContours( InputOutputArray...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with minRects
Contact minRects, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack