<div id="content_views" class="htmledit_views">
<p>1、<a href="https://so.csdn.net/so/search?q=%E4%BA%8C%E5%80%BC%E5%8C%96&spm=1001.2101.3001.7020" target="_blank" class="hl hl-1" data-report-click="{"spm":"1001.2101.3001.7020","dest":"https://so.csdn.net/so/search?q=%E4%BA%8C%E5%80%BC%E5%8C%96&spm=1001.2101.3001.7020","extra":"{\"searchword\":\"二值化\"}"}" data-tit="二值化" data-pretit="二值化">二值化</a>分割</p>
2、形态学
3、距离变换
4、再进行二值化
4、连通区域计算
输入:
输出:printf("统计玉米粒的个数 contours=:%d\n",contours);//contours =17
</article>