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

조회 수: 6 (최근 30일)
Talha Meraj
Talha Meraj 2019년 1월 20일
댓글: Talha Meraj 2019년 1월 20일

채택된 답변

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