image centroids on 2D plot

조회 수: 1 (최근 30일)
Sana Tayyeb
Sana Tayyeb 2015년 3월 4일
댓글: Sana Tayyeb 2015년 3월 6일
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에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by