how to get coordinate in an image

1 view (last 30 days)
mantong
mantong on 9 Dec 2012
I have an image that has two centroid. I do not know how to display the coordinate values of each centroid is in the image. hope can help me. thanks

Accepted Answer

Matt J
Matt J on 9 Dec 2012
regionprops(...,'Centroid')
  4 Comments
Matt J
Matt J on 9 Dec 2012
use the SCATTER command, in conjunction with HOLD.
Image Analyst
Image Analyst on 9 Dec 2012
You can use plot() or scatter(). Have you seen my BlobsDemo: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 It finds centroids and plots them over the objects.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!