資源簡介
放大顯示matlab輸出圖像局部區域,放大區域可以隨意在原圖像拖動,相應的放大區域會顯示出來,同時顯示放大區域和源圖像。
代碼片段和文件信息
function?magnify(f1)
%
%magnify(f1)
%
%??Figure?creates?a?magnification?box?when?under?the?mouse
%??position?when?a?button?is?pressed.??Press?‘+‘/‘-‘?while
%??button?pressed?to?increase/decrease?magnification.?Press
%??‘>‘/‘<‘?while?button?pressed?to?increase/decrease?box?size.
%??Hold?‘Ctrl‘?while?clicking?to?leave?magnification?on?figure.
%
%??Example:
%?????plot(1:100randn(1100)(1:300)/3rand(1300))?grid?on
%?????magnify;
%?Rick?Hindman?-?7/29/04
if?(nargin?==?0)?f1?=?gcf;?end;
set(f1?...
???‘WindowButtonDownFcn‘??@ButtonDownCallback?...
???‘WindowButtonUpFcn‘?@ButtonUpCallback?...
???‘WindowButtonMotionFcn‘?@ButtonMotionCallback?...
???‘KeyPressFcn‘?@KeyPressCallback);
return;
function?ButtonDownCallback(srceventdata)
???f1?=?src;
???a1?=?ge
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4227??2017-09-17?14:54??magnify.m
-----------?---------??----------?-----??----
?????????????????4227????????????????????1
評論
共有 條評論