Agror
Agror

Reputation: 37

Filling an incomplete circles

I am dealing with some circles in MATLAB image processing. At one step I need to fill the circles to make them discs. I use imfill command to fill the circles but the circles with incomplete boundaries doesn't work with it. Can someone suggest me a technique to fill these incomplete circles?

Thank You

Upvotes: 0

Views: 507

Answers (1)

Dima
Dima

Reputation: 39389

You can try using the imfindcircles function to detect the circles first. imfindcircles should work for partial circles. Then, once you know where the circles are, you can use the insertShape function from the Computer Vision System Toolbox to draw complete circle boundaries into your image. Then you should be able to use imfill to turn them into discs.

Upvotes: 2

Related Questions