How can I find the connected components of an image and then label them?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Prachi Sharma
am 6 Okt. 2016
Kommentiert: Massimo Zanetti
am 6 Okt. 2016
So I have this image attached here and bw is of type 512*512 logical.I need to find the connected components of this image and then label them.I have read about 'bwconncomp' but I am unable to get connected components from it.How can I move further?
0 Kommentare
Akzeptierte Antwort
Massimo Zanetti
am 6 Okt. 2016
There are matlab functions:
%compute conn components
CC = bwconncomp(BW);
%label them
L = labelmatrix(CC);
6 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!