如何在图像上找到形状
这与任何语言atm无关,只需要数学算法。我有一些图像,比如说这个
我需要砍树 从此图像中,有云和草的天空应该受到威胁作为背景。感谢您的任何帮助。
This is not related to any language atm, only math algorithm required. I have some image, lets say this one
I need to cut tree from this image, sky with clouds and grass should be threated as background. Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您寻找的算法可能是“斑点检测”。这是视频示例。例如,斑点检测是在 OpenCV 中实现的。
但总的来说,正如一些人在评论中指出的那样,“对象”的含义需要由图像属性而不是图像解释来定义。例如,在你的图像中,“物体”是树木、狮子还是云彩?树是绿色斑点,云是白色斑点,等等。
Probably the algorithm that your looking for is "blob detection". Here's a video example. Blob detection is implemented, for example, in OpenCV.
In general, though, as several people have pointed out in the comments, what one means by "object" needs to be defined by image properties and not image interpretation. For example, in your image, are the "objects" the tress, lions, or clouds? Trees are green blobs, clouds are white blobs, etc.