How can I perform connected component analysis on an image ?
4 views (last 30 days)
Show older comments
After color to gray and gray to binary conversion of image I want to do connected component analysis on the same image.
0 Comments
Answers (2)
Image Analyst
on 25 Sep 2015
Basically it's
[labeledImage, numberOfBlobs] = bwlabel(binaryImage);
or
cc = bwconncomp(binaryImage);
See my Image Segmentation Tutorial for a tutorial on how to use it.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!