how to connect pixels of a binary image as shown in picture?

2 次查看(过去 30 天)

采纳的回答

Guillaume
Guillaume 2019-1-20
I would try morphological closing and see if that gets the result you want, e.g.
img = imread('image.png');
newimg = imclose(img, strel('disk', 3));
results in:
closed.png

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by