Hello, i'm trying to search for an area of an image.
Show older comments

Hello, i'm trying to search for an area of a geometry which has the shape of approx. circle (as attached). I've tried using the imfill function but it doesn't work possibly because there are gaps due to the two electrodes. imclose also produce unsatisfactory results. How can I cut through the gap to form connected circle? Thanks in advance
Accepted Answer
More Answers (1)
Walter Roberson
on 24 May 2016
0 votes
imdilate and then imerode to get it to join the halves. Or if you have R2014b or later, you could get the coordinates of the boundary points and then use boundary() on them to find a hull that contains them.
1 Comment
Suardi Suhaimi
on 24 May 2016
Categories
Find more on Object Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!