Hi. I am currently using ginput to select two points on an image to then draw a line. The problem is that my image is mainly black with white spots and the cross hairs for ginput are black, so its hard to use.
So after investigating I thought I could use the following
axes(handles.axes4); %my image is on axes4
cp = get(handles.axes4,'CurrentPoint') x = cp(1,1) y = cp(1,2) plot(x,y,'ro'); drawnow;
The point I selected on is the red circle below at coordiantes 244, 605 on that axes. However, the returned values of cp are
cp = 1.0e+03 * -1.2142 1.3601 5.6639 -1.2142 1.3601 0.0000
What do these cp values correspond to, I thought x = cp(1,1) and y = cp(1,2), but they don't seem to be.
Also is this the best way or is there another way?
Thanks Jason
Best Answer