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

1 Ansicht (letzte 30 Tage)

Akzeptierte Antwort

Guillaume
Guillaume am 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

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by