简体   繁体   English

如何围绕白色像素制作全局轮廓 - Python Open CV?

[英]How to make a Global Contour around White Pixels - Python Open CV?

In the picture, you can see that Red Contours have been drawn around individual White Pixels.在图片中,您可以看到在各个白色像素周围绘制了红色轮廓。 Is there any method I can draw a Global Contour across all the Pixels (White Pixels)?有什么方法可以在所有像素(白色像素)上绘制全局轮廓吗?
图片

I think you are looking for the convex hull of the points.我认为您正在寻找点的凸包

This is an opencv tutorial on how to draw the convex hull of groups of points.这是关于如何绘制点组凸包的 opencv教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM