以下原图中,物体连靠在一起,目的是将其分割开,再提取轮廓和定位 原图: 最终效果: 麻烦的地方是,分割开右下角部分,两个连在一起的目标物体,下图所示: 基本方法:BoxFilter滤波、二值化、轮廓提取,凸包检测,图像的矩 代码如下: /// <summary> /// 获取分割点 /// </summary> /// <param name="contours"></param> /// <param name="contourCount"></param> /// <param name="arcLength"></param> /// <param name="farDistance"></param> /// <returns></returns> public List<Point> GetSplitPoints(Point[][] contours, List<int> contourCount, int arcLength, int farDistance) { #region 凸包检测 List<double> lArc = new List<double>();...
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 int
Contact int, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack