Segmenting circle-like shapes out of Binary Image

大憨熊 提交于 2019-12-05 22:37:14

问题


I have several binary images and my task is to segment circle-like shape. The circles are not perfect rounded circle, but all of them will look like circle. Here are some example images and what I need:

As you can see from above, the left images are original images, and the right images are what I need to do. The circles intersect with other shapes, but I only want the circle, as indicated in red. The imaginary lines to close the circle will be required. What can I do in this case in Image Processing?

EDIT: in case, the image above is broken, here: http://imageshack.us/photo/my-images/835/circleonly.jpg/


回答1:


You can use hough transform, first you need is the edge image then you use a hough transform like you can see in this papers

http://www.cis.rit.edu/class/simg782/lectures/lecture_10/lec782_05_10.pdf

http://www.sci.utah.edu/~gerig/CS6640-F2010/FINALPROJECT/Ballard-GHT-1981.pdf

http://www.sciencedirect.com/science/article/pii/003132039290064P

http://www.markschulze.net/java/hough/




回答2:


Do you know the radii of the disks you are looking for? If yes, morphological openings (erosion then dilation) would be straightforward, and very fast. The result using Mathematica:

Opening[img, DiskMatrix[15]]

If not, as other proposed, computing the contour image and then using the Hough transform would be a method worth pursuing. The image just above shows the contour image.



来源:https://stackoverflow.com/questions/6985509/segmenting-circle-like-shapes-out-of-binary-image

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