📄 imtlb.m
字号:
function IMtlb()
% This is the machine-generated representation of a Handle Graphics object
% and its children. Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
% main GUI function for IMARE toolbox
% Barbara Zitova, zitova@utia.cas.cz
load IMtlb
vyska = 0.0415;
levy = 0.4545;
levy2 = 0.6169;
levy25 = 0.635;
levy3= 0.8429;
levy4 = 0.91;
sirka1=0.131;
sirka2=0.09;
sirka5=0.10;
sirka3=0.065;
radek0=0.93;
radek1=0.8791;
radek2=0.8351;
radek3=0.7375;
colo=[0.9 0.9 0.9];
h0 = figure('Units','normalized', ...
'Color',colo, ...
'Colormap',mat0, ...
'CreateFcn','cll_rgst create', ...
'Name','IMARE toolbox', ...
'NumberTitle','off', ...
'PaperOrientation','landscape', ...
'PaperType','a4letter', ...
'PointerShapeCData',mat1, ...
'Position',[0.18359375 0.1458333333333333 0.767578125 0.7838541666666666], ...
'Tag','Fig1', ...
'UserData',mat2);
h1 = axes('Parent',h0, ...
'Box','on', ...
'CameraUpVector',[0 1 0], ...
'CameraUpVectorMode','manual', ...
'Color',[1 1 1], ...
'ColorOrder',mat3, ...
'FontSize',8, ...
'Position',[0.02726146220570011 0.5022156573116691 0.3779429987608426 0.4387001477104873], ...
'Tag','Axes1', ...
'NextPlot','add', ...
'XColor',[0 0 0], ...
'XTickMode','manual', ...
'YColor',[0 0 0], ...
'YTickMode','manual', ...
'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4966216216216217 -0.03041825095057038 9.160254037844386], ...
'Tag','Axes1Text4', ...
'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[-0.02364864864864866 0.4942965779467681 9.160254037844386], ...
'Rotation',90, ...
'Tag','Axes1Text3', ...
'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','right', ...
'Position',[-0.07432432432432433 1.129277566539924 9.160254037844386], ...
'Tag','Axes1Text2', ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4966216216216217 1.022813688212928 9.160254037844386], ...
'Tag','Axes1Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = axes('Parent',h0, ...
'Box','on', ...
'CameraUpVector',[0 1 0], ...
'CameraUpVectorMode','manual', ...
'Color',[1 1 1], ...
'ColorOrder',mat11, ...
'FontSize',8, ...
'Position',[0.02853598014888337 0.01329394387001477 0.3784119106699752 0.4401772525849335], ...
'Tag','Axes2', ...
'NextPlot','add', ...
'XColor',[0 0 0], ...
'XTickMode','manual', ...
'YColor',[0 0 0], ...
'YTickMode','manual', ...
'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
'ButtonDownFcn','ctlpanel SelectMoveResize', ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Interruptible','off', ...
'Position',[0.4966216216216217 -0.03041825095057016 9.160254037844386], ...
'Tag','Axes2Text4', ...
'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
'ButtonDownFcn','ctlpanel SelectMoveResize', ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Interruptible','off', ...
'Position',[-0.02364864864864864 0.4942965779467681 9.160254037844386], ...
'Rotation',90, ...
'Tag','Axes2Text3', ...
'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h2 = text('Parent',h1, ...
'ButtonDownFcn','ctlpanel SelectMoveResize', ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','right', ...
'Interruptible','off', ...
'Position',[-0.0777027027027027 2.247148288973384 9.160254037844386], ...
'Tag','Axes2Text2', ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'ButtonDownFcn','ctlpanel SelectMoveResize', ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Interruptible','off', ...
'Position',[0.4966216216216217 1.022813688212928 9.160254037844386], ...
'Tag','Axes2Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
%*****************************************
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'FontSize',12, ...
'ListboxTop',0, ...
'Position',[0.0060 0.9435 0.2245 0.0266], ...
'String','Reference image', ...
'Style','text', ...
'Tag','Ref_im');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'FontSize',12, ...
'ListboxTop',0, ...
'Position',[0.1860 0.9435 0.2245 0.0266], ...
'String','', ...
'Style','text', ...
'Tag','Ref_im_c');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'FontSize',12, ...
'ListboxTop',0, ...
'Position',[0.0060 0.4535 0.2246 0.0281], ...
'String','Sensed image', ...
'Style','text', ...
'Tag','Sens_im');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'FontSize',12, ...
'ListboxTop',0, ...
'Position',[0.1860 0.4535 0.2246 0.0281], ...
'String','', ...
'Style','text', ...
'Tag','Sens_im_c');
%*****************************************
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'ForegroundColor',[0 0 1], ...
'FontSize',12, ...
'ListboxTop',0, ...
'HorizontalAlignment','left', ...
'Position',[levy+0.02 0.92 0.2 0.03], ...
'String','Data sources', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst loadA', ...
'ListboxTop',0, ...
'Position',[levy radek1 sirka1 vyska], ...
'String','Reference image ', ...
'TooltipString','Loading reference image', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst loadB', ...
'ListboxTop',0, ...
'Position',[levy radek2 sirka1 vyska], ...
'String','Sensed image', ...
'TooltipString','Loading sensed image', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst loadCP', ...
'ListboxTop',0, ...
'Position',[levy25 radek1 sirka1 vyska], ...
'String','CP sets ', ...
'TooltipString','Loading CP sets, saved in previous session', ...
'Tag','LoadCP');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst loadINV', ...
'ListboxTop',0, ...
'Position',[levy25 radek2 sirka1 vyska], ...
'String','Invariants', ...
'TooltipString','Loading invariants, saved in previous session', ...
'Tag','LoadINV');
%*****************************************
h=imread('h','bmp');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst help', ...
'ListboxTop',0, ...
'Position',[levy25 radek0 sirka1 vyska], ...
'CData',h,...
'TooltipString','Invoke help window ', ...
'Tag','Help');
%*****************************************
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'ForegroundColor',[0 0 1], ...
'FontSize',12, ...
'ListboxTop',0, ...
'HorizontalAlignment','left', ...
'Position',[levy+0.02 radek3+0.04 0.2 0.03], ...
'String','Actions', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst CPdetection', ...
'ListboxTop',0, ...
'Position',[levy radek3 sirka5 vyska], ...
'String','CP detection', ...
'TooltipString','Start CP detection procedure', ...
'Tag','mizi');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst inv_comp', ...
'ListboxTop',0, ...
'Position',[levy+sirka5+0.005 radek3 sirka5 vyska], ...
'String','INV comp', ...
'TooltipString','Start invariant computation procedure', ...
'Tag','mizi');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst twobest', ...
'ListboxTop',0, ...
'Position',[levy+2*(sirka5+0.005) radek3 sirka5 vyska], ...
'String','Two best', ...
'TooltipString','Start finding the 2 best corresponding CP pairs', ...
'Tag','mizi');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst registration', ...
'ListboxTop',0, ...
'Position',[levy+3*(sirka5+0.005) radek3 sirka5 vyska], ...
'String','Registration', ...
'TooltipString','Start CP correspondence and transformation procedures', ...
'Tag','RegB');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst eval', ...
'ListboxTop',0, ...
'Position',[levy+4*(sirka5+0.005) radek3 sirka5 vyska], ...
'String','Evaluation', ...
'TooltipString','Evaluation of the image registration quality', ...
'Tag','Pushbutton4');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst wsel', ...
'ListboxTop',0, ...
'Position',[levy radek3-vyska-0.005 sirka5 vyska], ...
'String','Window selection', ...
'TooltipString','Selection of window for normalized cross-correlation', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[levy2-0.035 radek3-vyska-0.005 sirka5/2 vyska*0.9], ...
'String','50', ...
'Style','edit', ...
'Tag','wnsz');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst ncc', ...
'ListboxTop',0, ...
'Position',[levy+2*(sirka5+0.005) radek3-vyska-0.005 sirka5 vyska], ...
'String','Normalized CC', ...
'TooltipString','Start normalized cross-correlation procedure', ...
'Tag','-');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst phc', ...
'ListboxTop',0, ...
'Position',[levy+3*(sirka5+0.005) radek3-vyska-0.005 sirka5 vyska], ...
'String','Phase correl', ...
'TooltipString','Start phase cross-correlation procedure', ...
'Tag','-');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[levy+2.8*(sirka5+0.005) radek3-1.88*vyska-0.025 0.0623409669211196 0.04485049833887043], ...
'String','Pol', ...
'TooltipString','Setting the scale in polar coordinates', ...
'Style','text', ...
'Tag','PolText');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[levy+3.2*(sirka5+0.005) radek3-1.4*vyska-0.025 0.05 0.03], ...
'Style','edit', ...
'String','720', ...
'Tag','PolMenu');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[levy+3.9*(sirka5+0.005) radek3-1.5*vyska-0.025 0.0801526717557252 0.026578073089701], ...
'String','Log R*x', ...
'Style','text', ...
'TooltipString','Setting the scale in log coordinates', ...
'Tag','LogText');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[0.9249 radek3-1.4*vyska-0.025 0.05 0.03], ...
'Style','edit', ...
'String','2', ...
'Tag','LogMenu');
%*****************************************
q=imread('q','bmp');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'ListboxTop',0, ...
'ForegroundColor',[0 0 1], ...
'BackgroundColor',[0 0 1], ...
'Position',[levy3 radek0 sirka1 vyska], ...
'TooltipString','Quit IMARE toolbox', ...
'Style','pushbutton', ...
'CData',q,...
'Tag','Exit','Callback','close(gcf)');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst saveCPI', ...
'ListboxTop',0, ...
'Position',[levy3 radek1 sirka1 vyska], ...
'String','Saving CP, INV', ...
'TooltipString','Saving computed CP and invariants in (MAT, PGM) and TXT files', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','cll_rgst saveT', ...
'ListboxTop',0, ...
'Position',[levy3 radek2 sirka1 vyska], ...
'String','Saving transform', ...
'TooltipString','Saving transformed sensed image and estimated parameters', ...
'Tag','Pushbutton1');
%*****************************************
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',colo, ...
'FontSize',12, ...
'ForegroundColor',[0.4 0.7 0.4], ...
'ListboxTop',0, ...
'HorizontalAlignment','left', ...
'Position',[levy+0.02 radek3-2*vyska-0.01 0.2 0.03], ...
'String','CP detection method', ...
'Style','text', ...
'Tag','StaticText1');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -