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

2 vues (au cours des 30 derniers jours)
Talha Meraj
Talha Meraj le 20 Jan 2019
Commenté : Talha Meraj le 20 Jan 2019

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by