📄 imgfilterexpogui.m
字号:
% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) imgfilterexpofn 'imgaliasexpo';% --------------------------------------------------------------------function imgspecexpo_Callback(hObject, eventdata, handles)% hObject handle to imgspecexpo (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) imgfilterexpofn 'imgspecexpo';
% --- Creates and returns a handle to the GUI figure.
function h1 = imgfilterexpogui_LayoutFcn(policy)
% policy - create a new figure or use a singleton. 'new' or 'reuse'.
persistent hsingleton;
if strcmpi(policy, 'reuse') & ishandle(hsingleton)
h1 = hsingleton;
return;
end
h1 = figure(...
'Units','characters',...
'Color',[0.925490196078431 0.913725490196078 0.847058823529412],...
'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125 1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125 1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1 0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1 0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625 0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0 0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],...
'IntegerHandle','off',...
'InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),...
'MenuBar','none',...
'Name','imgfilterexpo',...
'NumberTitle','off',...
'PaperOrientation','landscape',...
'PaperPosition',get(0,'defaultfigurePaperPosition'),...
'PaperSize',[11 8.5],...
'Pointer','crosshair',...
'Position',[128.6 -0.0769230769230769 89.8 54.3846153846154],...
'Renderer',get(0,'defaultfigureRenderer'),...
'RendererMode','manual',...
'Resize','off',...
'HandleVisibility','callback',...
'Tag','imgfilterexpo_fig',...
'UserData',zeros(1,0));
setappdata(h1, 'GUIDEOptions', struct(...
'active_h', [], ...
'taginfo', struct(...
'figure', 2, ...
'axes', 7, ...
'pushbutton', 16, ...
'popupmenu', 10, ...
'listbox', 2, ...
'text', 19, ...
'slider', 2, ...
'checkbox', 6, ...
'radiobutton', 8, ...
'frame', 3, ...
'edit', 8), ...
'override', 1, ...
'release', 13, ...
'resize', 'simple', ...
'accessibility', 'callback', ...
'mfile', 1, ...
'callbacks', 1, ...
'singleton', 1, ...
'syscolorfig', 1, ...
'lastSavedFile', 'C:\Documents and Settings\Bob\Desktop\SSUM_WIN\filters\image\imgfilterexpo.m', ...
'blocking', 0));
h2 = uimenu(...
'Parent',h1,...
'Callback','imgfilterexpogui(''FileMenu_Callback'',gcbo,[],guidata(gcbo))',...
'Label','File',...
'Tag','FileMenu');
h3 = uimenu(...
'Parent',h2,...
'Callback','imgfilterexpogui(''OpenMenuItem_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Open Image',...
'Tag','open');
h4 = uimenu(...
'Parent',h2,...
'Callback','imgfilterexpogui(''save_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Save Image',...
'Tag','save');
h5 = uimenu(...
'Parent',h2,...
'Callback','imgfilterexpogui(''print_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Print',...
'Tag','print');
h6 = uimenu(...
'Parent',h2,...
'Callback','imgfilterexpogui(''CloseMenuItem_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Close',...
'Separator','on',...
'Tag','CloseMenuItem');
h7 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''inverse_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[41.4 3.30769230769231 12 1.46153846153846],...
'String','Inverse',...
'Style','checkbox',...
'Tag','inverse');
h8 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'ListboxTop',0,...
'Position',[3 0.230769230769231 35.6 17],...
'String',{ '' },...
'Style','frame',...
'Tag','frame1');
h9 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','imgfilterexpogui(''filtermenu_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[4.6 11.1538461538462 17 1.46153846153846],...
'String',{ 'Average' 'Median' 'Gaussian' 'del Gaussian' 'Laplacian' },...
'Style','popupmenu',...
'Value',1,...
'CreateFcn','imgfilterexpogui(''filtermenu_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','filtermenu');
h10 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',12,...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[4.6 12.6923076923077 17 1.76923076923077],...
'String','Type',...
'Style','text',...
'Tag','text10');
h11 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','imgfilterexpogui(''kernel_size_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[26.2 11.1538461538462 10.6 1.46153846153846],...
'String','3',...
'Style','edit',...
'CreateFcn','imgfilterexpogui(''kernel_size_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','kernel_size');
h12 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',12,...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[26.2 12.9230769230769 8 1.53846153846154],...
'String','Size',...
'Style','text',...
'Tag','text11');
h13 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''doFilter_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[16.2 6.15384615384615 9 1.46153846153846],...
'String','Apply',...
'Tag','doFilter');
h14 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''undo_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[27.8 6.15384615384615 9 1.46153846153846],...
'String','Undo',...
'Tag','undo');
h15 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''scale_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[55.8 3.30769230769231 12 1.46153846153846],...
'String','Scale',...
'Style','checkbox',...
'Value',1,...
'Tag','scale');
h16 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''zoomreset_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[67.8 3.30769230769231 13 1.46153846153846],...
'String','Zoom Reset',...
'Tag','zoomreset');
h17 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','imgfilterexpogui(''filtertag_Callback'',gcbo,[],guidata(gcbo))',...
'Enable','inactive',...
'HorizontalAlignment','right',...
'ListboxTop',0,...
'Position',[4.6 8.76923076923077 10.6 1.46153846153846],...
'String','Variance',...
'Style','edit',...
'CreateFcn','imgfilterexpogui(''filtertag_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','filtertag');
h18 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','imgfilterexpogui(''filterval_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[17.6 8.76923076923077 10.6 1.46153846153846],...
'String','0.5',...
'Style','edit',...
'CreateFcn','imgfilterexpogui(''filterval_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','filterval');
h19 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'ListboxTop',0,...
'Position',[40.6 5.23076923076923 25 12],...
'String',{ '' },...
'Style','frame',...
'Tag','frame2');
h20 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','imgfilterexpogui(''noisemenu_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[42.6 11.1538461538462 20 1.46153846153846],...
'String',{ 'Salt and Pepper' 'Gaussian' },...
'Style','popupmenu',...
'Value',1,...
'CreateFcn','imgfilterexpogui(''noisemenu_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','noisemenu');
h21 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',12,...
'HorizontalAlignment','left',...
'ListboxTop',0,...
'Position',[42.6 15.1538461538462 17 1.76923076923077],...
'String','Add Noise',...
'Style','text',...
'Tag','text13');
h22 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''noiseapply_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[42.6 6.15384615384615 9 1.46153846153846],...
'String','Apply',...
'Tag','noiseapply');
h23 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','imgfilterexpogui(''noisetag_Callback'',gcbo,[],guidata(gcbo))',...
'Enable','inactive',...
'HorizontalAlignment','right',...
'ListboxTop',0,...
'Position',[42.6 8.76923076923077 10.6 1.46153846153846],...
'String','Incidence',...
'Style','edit',...
'CreateFcn','imgfilterexpogui(''noisetag_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','noisetag');
h24 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','imgfilterexpogui(''noiseval_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[54.6 8.76923076923077 8 1.46153846153846],...
'String','0.1',...
'Style','edit',...
'CreateFcn','imgfilterexpogui(''noiseval_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','noiseval');
h25 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''undo2_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[53.4 6.15384615384615 9 1.46153846153846],...
'String','Undo',...
'Tag','undo2');
h26 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''horizontal_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[23 4.15384615384615 14 1.46153846153846],...
'String','Horizontal',...
'Style','radiobutton',...
'Tag','horizontal');
h27 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''vertical_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[23 2.46153846153846 14 1.46153846153846],...
'String','Vertical',...
'Style','radiobutton',...
'Tag','vertical');
h28 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','imgfilterexpogui(''kernel_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[23 0.846153846153846 14 1.46153846153846],...
'String','Kernel',...
'Style','radiobutton',...
'Value',1,...
'Tag','kernel');
h29 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',12,...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -