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

2 views (last 30 days)

Accepted Answer

Guillaume
Guillaume on 20 Jan 2019
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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!