how can fill gaps in binary image?
1 回表示 (過去 30 日間)
古いコメントを表示
how can I fill gaps (red)in this binary image? I've used this method but I dont know how can fill gaps here!!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146581/image.jpeg)
0 件のコメント
採用された回答
Image Analyst
2014 年 12 月 24 日
What do you want to fill the gap with? A uniform color, like white? If so...
grayImage(row1:row2, col1:col2) = 255;
2 件のコメント
Image Analyst
2014 年 12 月 24 日
What is the name of your image variable? Replace my "grayImage" with your variable name. What rows and columns do you need replacing? Just assign them to row1, row2, col1, and col2.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!