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

18 ビュー (過去 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 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by