how can fill gaps in binary image?

 采纳的回答

What do you want to fill the gap with? A uniform color, like white? If so...
grayImage(row1:row2, col1:col2) = 255;

2 个评论

thank you for your answer. yes, uniform color (white), but I dont know how can I use 'grayImage(row1:row2, col1:col2) = 255;' in the mentioned demo?
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 个)

类别

帮助中心File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by