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!