⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imgspectrumexpo.m

📁 非常好的数字处理教程
💻 M
字号:
function varargout = imgspectrumexpo(varargin)% IMGSPECTRUMEXPO M-file for imgspectrumexpo.fig%      IMGSPECTRUMEXPO, by itself, creates a new IMGSPECTRUMEXPO or raises the existing%      singleton*.%%      H = IMGSPECTRUMEXPO returns the handle to a new IMGSPECTRUMEXPO or the handle to%      the existing singleton*.%%      IMGSPECTRUMEXPO('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in IMGSPECTRUMEXPO.M with the given input arguments.%%      IMGSPECTRUMEXPO('Property','Value',...) creates a new IMGSPECTRUMEXPO or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before imgspectrumexpo_OpeningFunction gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to imgspectrumexpo_OpeningFcn via varargin.%%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one%      instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help imgspectrumexpo% Last Modified by GUIDE v2.5 27-Apr-2004 19:00:35% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @imgspectrumexpo_OpeningFcn, ...                   'gui_OutputFcn',  @imgspectrumexpo_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin & isstr(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif nargout    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});else    gui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before imgspectrumexpo is made visible.function imgspectrumexpo_OpeningFcn(hObject, eventdata, handles, varargin)	handles.output = hObject;	guidata(hObject, handles);	set(gcf,'UserData',handles);	imgspectrumexpofn;if (nargin > 3)    datastruct = varargin{1};    imgspectrumexpofn('readinput',datastruct);end% --- Outputs from this function are returned to the command line.function varargout = imgspectrumexpo_OutputFcn(hObject, eventdata, handles)	varargout{1} = handles.output;% --------------------------------------------------------------------function FileMenu_Callback(hObject, eventdata, handles)% --------------------------------------------------------------------function OpenMenuItem_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'load';% --------------------------------------------------------------------function PrintMenuItem_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'print';% --------------------------------------------------------------------function CloseMenuItem_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'close';% --- Executes on button press in inverse.function inverse_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'inverse';% --- Executes on button press in print.function print_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'print';% --- Executes on button press in scale.function scale_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'scale';% --- Executes on button press in zoomreset.function zoomreset_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'zoom_reset';% --- Executes on button press in horizontal.function horizontal_Callback(hObject, eventdata, handles)	set(handles.vertical,'Value',0);	set(handles.kernel,'Value',0);% --- Executes on button press in vertical.function vertical_Callback(hObject, eventdata, handles)	set(handles.horizontal,'Value',0);	set(handles.kernel,'Value',0);% --- Executes on button press in kernel.function kernel_Callback(hObject, eventdata, handles)	set(handles.horizontal,'Value',0);	set(handles.vertical,'Value',0);% --- Executes during object creation, after setting all properties.function colormap_CreateFcn(hObject, eventdata, handles)% hObject    handle to colormap (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on selection change in colormap.function colormap_Callback(hObject, eventdata, handles)% hObject    handle to colormap (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns colormap contents as cell array%        contents{get(hObject,'Value')} returns selected item from colormap	imgspectrumexpofn 'colormap';% --- Executes on button press in inversecolor.function inversecolor_Callback(hObject, eventdata, handles)% hObject    handle to inversecolor (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of inversecolor	imgspectrumexpofn 'inversecolor';% --- Executes during object creation, after setting all properties.function drawmenu_CreateFcn(hObject, eventdata, handles)% hObject    handle to drawmenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on selection change in drawmenu.function drawmenu_Callback(hObject, eventdata, handles)	imgspectrumexpofn 'drawmenu';% --------------------------------------------------------------------function help_Callback(hObject, eventdata, handles)% hObject    handle to help (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)    imgspectrumexpofn 'help';    % --------------------------------------------------------------------function Untitled_1_Callback(hObject, eventdata, handles)% hObject    handle to Untitled_1 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function imgfilterexpo_Callback(hObject, eventdata, handles)% hObject    handle to imgfilterexpo (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	imgspectrumexpofn 'imgfilterexpo';% --------------------------------------------------------------------function imgaliasexpo_Callback(hObject, eventdata, handles)% hObject    handle to imgaliasexpo (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	imgspectrumexpofn 'imgaliasexpo';

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -