How to find shapes on image

拜拜、爱过 提交于 2019-12-08 13:00:12

问题


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.

回答1:


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.



来源:https://stackoverflow.com/questions/4287267/how-to-find-shapes-on-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!