How to display XYZ location for the component
Show older comments

How can I display the location (X, Y) for each component in this figure?
Answers (2)
Walter Roberson
on 22 Dec 2015
0 votes
regionprops() to get the Centroid. Use the centroids as locations to text() a string that identifies the location.
Image Analyst
on 23 Dec 2015
0 votes
See my Image Segmentation Tutorial for a full demo.
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!