image centroids on 2D plot

2 次查看(过去 30 天)
Sana Tayyeb
Sana Tayyeb 2015-3-4
I have an image which has black spots in it, i have found the centroids of the spots. i want to display the image on a 2D plot so i can know the real coordinates of the centroids. how can i do this part?
  2 个评论
David Young
David Young 2015-3-4
Not sure what you mean by "real coordinates". If you have found the centroids, isn't that the same as knowing their coordinates?
A simple way to combine an image and some plotted data is to use imshow() to display the image, then do "hold on" and use functions such as plot() to superimpose additional information.
Sana Tayyeb
Sana Tayyeb 2015-3-6
Thanks for your reply. By real coordinates I meant getting the values of the custom plot (that is the x and y-axis of plot).

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by