I realised I posted this late (after normal work hours). Bumping so it doesn't get buried...
imfill or other function to make a donut from contours?
2 views (last 30 days)
Show older comments
Hello,
I am trying to make a donut from two concentric sets of contours. When I use imfill, it completely fills in the outer contour. I was wondering if there is function that will fill in the space between the two concentric contours, and leave the center of the inner contour empty. It needs to generalize to be able to handle multiple inner contours (think Swiss cheese rather than a donut) but does not necessarily need to be able to handle more than 2 nested contours. I know a way to accomplish this, but don't want to write the code if MATLAB has a function that can already do it. Any help would be appreciated. thanks!
0 Comments
Answers (2)
James
on 5 Mar 2014
1 Comment
Image Analyst
on 5 Mar 2014
They were probably waiting for you to post a diagram showing what you have and what you want, to make it easier to understand.
See Also
Categories
Find more on Contour Plots 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!