image centroids on 2D plot

6 visualizaciones (últimos 30 días)
Sana Tayyeb
Sana Tayyeb el 4 de Mzo. de 2015
Comentada: Sana Tayyeb el 6 de Mzo. de 2015
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 comentarios
David Young
David Young el 4 de Mzo. de 2015
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 el 6 de Mzo. de 2015
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).

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by