getting the coordinate on an image

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 个评论

thank you, I was able to do it with the getpts
Thank you is accepting the answer...:)

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Data Exploration 的更多信息

评论:

2017-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by