Code covered by the BSD License  

Highlights from
Mousetrack

5.0

5.0 | 5 ratings Rate this file 11 Downloads (last 30 days) File Size: 1.78 KB File ID: #5535
image thumbnail

Mousetrack

by Ralph Mettier

 

21 Jul 2004 (Updated 27 Jul 2004)

Track the motion of your mouse over an image.

| Watch this File

File Information
Description

MOUSETRACK(X) retuns a Mx2 tensor, which containes the x and y position of the mouse cursor during it's motion over the selected image 'inmat'. Images can be real RGB image data, or any MxN matrix. The recording phase is started and stopped by a click on either mousebutton.

Acknowledgements
This submission has inspired the following:
Mouse Point Location Sampler
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
29 Jul 2004 Pato Cofre from Chile

Excelent code.

26 Dec 2004 Fu-Sung Wang  
07 Mar 2006 Rajeev Jain

Nicely written

03 Mar 2007 Hiep DOAN

Very nice code.

03 Mar 2007 Ngo Hai Bac

I is very useful code. I need it so much now. Thanks.

13 Aug 2010 Camille Couzi

Hi!
One question: I am working with a mtrix that I display on an imagesc and I would like to know mouseposition on this imagesc, so your function seem to be what I need, but I am wondering of your function works also when zooming in and out on the imagesc (ie does it return mouseposition x-y coordinates on the entire matrix (that would be great) or within the piece of matriz displayed when zooming ? in the second case, do you have any advice?
Thanks a lot in advance

Camille.

28 Sep 2010 Aamna

Hi
This is a useful code.Bit i want to use it with a little modification.In this code the coordinates are given with respect to the screen,whereas in my GUi i have displayed an image and i want to get the image coordinates means the pixel positions.PointerLocation used in this program gives the screen coordinates.Please help me to resolve this problem.

Regards
Aamna

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data exploration Ralph Mettier 22 Oct 2008 07:28:04
mouse Ralph Mettier 22 Oct 2008 07:28:04
motion Ralph Mettier 22 Oct 2008 07:28:04
move Ralph Mettier 22 Oct 2008 07:28:04
track Ralph Mettier 22 Oct 2008 07:28:04
trace Ralph Mettier 22 Oct 2008 07:28:04
line Ralph Mettier 22 Oct 2008 07:28:04
game yuli zhang 16 Mar 2010 00:52:17
track yuli zhang 16 Mar 2010 00:52:17

Contact us at files@mathworks.com