zoom2cursor

版本 1.0.0.0 (3.8 KB) 作者: Brett Shoelson
Dynamic, scalable zoom following the motion of the cursor; also displays the current position.
9.6K 次下载
更新时间 2003/2/19

查看许可证

编者注: This file was a File Exchange Pick of the Week

% FUNCTION ZOOM2CURSOR
% ZOOM2CURSOR, without arguments, will activate the current axis, create a text box showing the current position of the mouse pointer (similar to pixval), and automatically zoom the image to the location of the cursor as it is moved. The zoomed display dynamically scrolls with the motion of the cursor.
%
% By default, the function zooms to 50% of the image in the axis.
%
% BUTTON CLICKS:
% Left-clicking will zoom in further, and right-clicking will zoom out.
% Shift-clicking (or simultaneously clicking the left and right mouse buttons) at any point will display the original (un-zoomed) image, as will moving the cursor outside of the current axis. The zoom percentage is restored when the mouse is moved.
% Double-clicking zooms out to the original image, modifying the zoom percentage.
%
% Tested under R12.1 and R13.
%
% Written by Brett Shoelson, Ph.D. (shoelson@helix.nih.gov, shoelson@hotmail.com)
% 12/26/02
% 2/16/03; Rev 2: Program is more robust; fixes a bug when window is resized.
%Incremental increase/decrease in zoom percent (on mouseclick) has been reduced.
%ALSO: Now works with images, surfaces, lines (and thus plots), and patches (rather than just images)

引用格式

Brett Shoelson (2024). zoom2cursor (https://www.mathworks.com/matlabcentral/fileexchange/2902-zoom2cursor), MATLAB Central File Exchange. 检索来源 .

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

启发作品: zinput

Community Treasure Hunt

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

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

Program is more robust; fixes a bug when window is resized.
% Incremental increase/decrease in zoom percent (on mouseclick) has been reduced.
%Also: Now works with images, surfaces, lines (and thus plots), and patches (rather than just images)