File Exchange

image thumbnail

Data Cursor on Mouse Move

version 1.2 (3.41 KB) by

Display and update the pixel value from image in the figure title bar on mouse movement.

4 Downloads

Updated

View License

Display and update the pixel value from image in the figure title bar on mouse movement.

Usage:
z=rand(10,10);
h = image(z)
set(gcf,'WindowButtonMotionFcn', {@getPixelOnMouseMove,h});

Now move the mouse over the image and see the pixel value in the figure title bar.

Bugs and comments are welcome.

Comments and Ratings (1)

Xiangqi

It doesn't work on windows opened by function figure().

Updates

1.2

- Update with overobj3 subfunction which returns handle of object that the pointer is over.
- Third argument (imagePlot) is optional, in this case overobj3 subfunction returns the handle of image that the pointer is over.

1.1

Bug fixed on subfunction "closest" and some comments are added.

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video