Data Cursor on Mouse Move

Display and update the pixel value from image in the figure title bar on mouse movement.
877.0 次下载
更新时间 2012/6/11

查看许可证

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.

引用格式

Durga Lal Shrestha (2024). Data Cursor on Mouse Move (https://www.mathworks.com/matlabcentral/fileexchange/32900-data-cursor-on-mouse-move), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Display Image 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

- 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.0.0

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

1.0.0.0