How do we fill this kind of gap with Matlab (without changing the size of the object)?
3 views (last 30 days)
Show older comments
I need your help!
I have an image A (see below - left). Can you help me with a matlab function that can produce the image B (see below - right)
(A) (B)
Note that the below Matlab code does not work (since it works on holes inside a closed boundary of an object - which is not the case with image A where the boundary is open):
I = imread('');
B = imbinarize(I);
F = imfill(B,'holes');
figure, imshow(I), title('input')
figure, imshow(F), title('output')
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!