How to use mouse-click on an image with different locations?
Show older comments
Hi,
I would like to use Matlab to present rectangular images at two randomised locations on a touch screen ( mouse clicks as input). The participant would have to touch the image to be correct and the next trial begins.
Should I use mouseclick coordinates for it? And compare it to the actual coordinates of the images ( even if it is a lot of pixel coordinates)?
Is there anything existing to click on a image on Matlab?
Thank you in advance,
5 Comments
Adam
on 26 Nov 2018
You can use the ButtonDownFcn of either an axes or an image, combined with the CurrentPoint property of your axes.
Louise Loyant
on 27 Nov 2018
ss
on 11 Jul 2022
okay, thank you!
Answers (2)
Louise Loyant
on 27 Nov 2018
Image Analyst
on 27 Nov 2018
0 votes
Can you use ginput() or impoint()?
Categories
Find more on Image display and manipulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!