MATLAB: How to get an x,y location on an image by clicking on it

computer visionimage processingImage Processing Toolbox

I am trying to make a program which makes use of x,y positions on an image. It is user assisted and therefore needs to allow for the user to click on an image with their mouse, and for the program to read the xy location where the mouse was clicked. Could someone provide some information on how to do this?

Best Answer

Have a look at ginput.
Related Question