How do we fill this kind of gap with Matlab (without changing the size of the object)?
1 回表示 (過去 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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/978090/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/978095/image.png)
(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!