how to find centroid of each conneted component of a Binary Image in matlab, and represent each connected component with its centroid..??
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Bhat
am 6 Jan. 2018
Kommentiert: Mohammad Bhat
am 10 Jan. 2018
Hi, I want to represent each connected component with its centroid, after finding centroid of each connected component , i want to represent each connected component with its centroid????
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Jan. 2018
That's exactly what my Image Segmentation Tutorial does, https://www.mathworks.com/matlabcentral/fileexchange/25157-image-segmentation-tutorial
It finds centroids, weighted centroids, and bounding boxes.
0 Kommentare
Weitere Antworten (2)
Walter Roberson
am 6 Jan. 2018
regionprops and ask for centroid.
Please explain more about what you mean by "represent" the component with its centroid
5 Kommentare
Image Analyst
am 7 Jan. 2018
Are you sure you want that, or do you want the centroid like you originally said? My code gives you the bounding box, the centroid, and the weighted centroid, all of which could be at a different location. The center of the bounding box is simply the average of the top row and bottom row, and the same in the horizontal direction. Note that the center of the bounding box, as well as the two centroids may not actually lie inside the blobs. It's possible it could be outside it.
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!