Get points from a figure

Hi,
I would like to have a function which an image appear then the user can choose which point it was to use on an image. When the user clicks somewhere on the image, its (x,y) coordinate is stored to two variables and some further calculations can be done with this. Is this possible with MATLAB and is there a existing function for this?

 채택된 답변

Oleg Komarov
Oleg Komarov 2011년 8월 1일

0 개 추천

doc ginput

댓글 수: 6

Lizan
Lizan 2011년 8월 1일
Is it possible for the user to zoom the image before he chooses his point?
Oleg Komarov
Oleg Komarov 2011년 8월 1일
Of course.
Lizan
Lizan 2011년 8월 1일
How?
Also I am getting this message:
Warning: Image is too big to fit on screen; displaying at 50%
> In imuitools/private/initSize at 73
In imshow at 262
What is this about?
Oleg Komarov
Oleg Komarov 2011년 8월 1일
Clicking on the magnifiyng glass.
Resolution of image is bigger than screen resolution so it zoomed out.
Lizan
Lizan 2011년 8월 1일
The magnifying glass button is disabled. Maybe because of this zoom message. Can you remove this message and activate the zoom button?
Many thanks!
Oleg Komarov
Oleg Komarov 2011년 8월 1일
Can you upload your image on tinypic (or other) and post the code you're using?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Exploration에 대해 자세히 알아보기

질문:

2011년 8월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by