Fill the spaces between circles
Show older comments
Hi,
I need help to understand how to fill the spaces between lines.
I have 5 circles with this disposition:

I would like to obtain the following picture as a result, but I can't understand how:

How can I do this? I have plot the circles using the function "viscircles".
Thanks!
1 Comment
darova
on 4 Dec 2019
I think it's impossible
Don't know if somebody can do this
Accepted Answer
More Answers (1)
Image Analyst
on 5 Dec 2019
1 vote
Hint: since it seems like you're using a digital image and using viscircles, just see which point is within one radius of exactly 2 or 3 of the circles. Just compute the distance of the current point, as you scan the image, to the centers of the 5 circles. It's trivial - just use Pythagorean theorem. If it is within exactly 2 or 3, then color that pixel gray, otherwise color it white. Should be pretty easy, right? Let me know if you can't figure it out.
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!