How do we fill this kind of gap with Matlab (without changing the size of the object)?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!