connecting image extreme (end) boundries
1 view (last 30 days)
Show older comments
Iram Shahzadi
on 27 May 2020
Commented: Iram Shahzadi
on 27 May 2020
Hi, I have edge detected image. I want to connect all the pixels at extreme edges and fill the region inside, so that i have a binary mask of this image without any gaps. I used imdilate but this introduce thickness in boundries that i do not want in image. Can anyone please guide how I can do it. thanks

0 Comments
Accepted Answer
Image Analyst
on 27 May 2020
Try
mask = bwconvhull(mask, 'union');
or else try imclose() followed by imfill(), or try activecontour() (demo attached).
More Answers (0)
See Also
Categories
Find more on Computer Vision with Simulink 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!