How can I connect my connected-components?

5 ビュー (過去 30 日間)
Jh Qian
Jh Qian 2019 年 3 月 19 日
コメント済み: Jh Qian 2019 年 3 月 19 日
QQ浏览器截图20190319105427.png
This is a part of my binary image, and I got it by command "skel= bwmorph(BW,'skel',Inf)" .
I want to connect these white connected components, mergeing them into one connected component.
How can I do it?
THANKS! :)

回答 (1 件)

KSSV
KSSV 2019 年 3 月 19 日
I = imread('QQ20190319105427.png') ;
I1 = rgb2gray(I) ;
imshow(I)
hold on
[c,h] = contour(I1) ;
  3 件のコメント
KSSV
KSSV 2019 年 3 月 19 日
DRawing the contours....you will get your coordinates.....you want to join all the white lines?
Jh Qian
Jh Qian 2019 年 3 月 19 日
Yes! I want to join all the white lines.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by