getting the coordinate on an image

1 view (last 30 days)
Nora Khaled
Nora Khaled on 20 Aug 2017
Commented: KSSV on 20 Aug 2017
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?

Answers (1)

KSSV
KSSV on 20 Aug 2017
Read about getpts and ginput
  2 Comments
Nora Khaled
Nora Khaled on 20 Aug 2017
thank you, I was able to do it with the getpts
KSSV
KSSV on 20 Aug 2017
Thank you is accepting the answer...:)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!