getting the coordinate on an image

1 次查看(过去 30 天)
Nora Khaled
Nora Khaled 2017-8-20
评论: KSSV 2017-8-20
Hi,
I want to get the coordination (x,y) on an image when clicked. I use the
imshow(I);
to display the image.
is this possible ? if yes what code/function I should use?

回答(1 个)

KSSV
KSSV 2017-8-20
Read about getpts and ginput
  2 个评论
Nora Khaled
Nora Khaled 2017-8-20
thank you, I was able to do it with the getpts
KSSV
KSSV 2017-8-20
Thank you is accepting the answer...:)

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by