I'm having some problems with MATLAB GUIDE.
I have an axes object in a GUI (axes1) which is displaying an image ( imshow(I) ). I need to store the coordinates of a user click on the image.
I tried
[x,y] = ginput(1).
The problem with this function is that it returns the coordinates of the axes, not the coordinates of the image I.