How do we fill this kind of gap with Matlab (without changing the size of the object)?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!