jeudi 30 octobre 2014

Get button clicked Matlab imshow


Vote count:

0




I would like to get the position and which button is clicked in an axis were a image is loaded with imshow. At the moment I am using following



h = imshow(template,[]);
set(h,'ButtonDownFcn',@ImageClickCallback)


and then the function ImageClickCallback is



axesHandle = get(objectHandle,'Parent');
coordinates = get(axesHandle,'CurrentPoint');
coordinates = coordinates(1,1:2)


but I can't find any information about how to the get the clicked button.



asked 26 secs ago







Get button clicked Matlab imshow

Aucun commentaire:

Enregistrer un commentaire