1、% stop. All inputs are passed to lee_OpeningFcn via varargin.% *See GUI Options on GUIDEs 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 lee% Last Modified by GUIDE v2.5 02-Sep-2012 12:36:
2、56% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct(gui_Name, mfilename, . gui_Singleton, gui_Singleton, .gui_OpeningFcn, lee_OpeningFcn, .gui_OutputFcn, lee_OutputFcn, .gui_LayoutFcn, , .gui_Callback, );if nargin & ischar(varargin1) gui_State.gui_Callback = str2func(vara
3、rgin1);endif nargout varargout1:nargout = gui_mainfcn(gui_State, varargin:);else gui_mainfcn(gui_State, varargin:% End initialization code - DO NOT EDIT% - Executes just before lee is made visible.function lee_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see O
4、utputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line arguments to lee (see VARARGIN)% Choose default command line output for leehandles.output = hObject;% Update handle
5、s structureguidata(hObject, handles);% UIWAIT makes lee wait for user response (see UIRESUME)% uiwait(handles.figure1);% - Outputs from this function are returned to the command line.function varargout = lee_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see
6、 VARARGOUT);% Get default command line output from handles structurevarargout1 = handles.output;% - Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)global im1 str;filename,pathname = . uigetfile(*.jpg;*.bmp*.
7、png*.gif,选择图片);str=pathname,filename;im1=imread(str);axes(handles.axes1);imshow(im1);% - Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (see GCBO)% - Executes on button press in pushbutton3.function pushbutton3_Callba
8、ck(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% - Executes on button press in pushbutton4.function pushbutton4_Callback(hObject, eventdata, handles)% hObject handle to pushbutton4 (see GCBO)% - Executes on button press in pushbutton5.function pushbutton5_Callback(hObject,
9、eventdata, handles)% hObject handle to pushbutton5 (see GCBO)global im1;im2=im1;%im2=im2bw(im2 , 0.5);No_dither,map=rgb2ind(im2,8,noditheraxes(handles.axes2);imshow(No_dither,map);%imshow(im2);% - Executes on button press in pushbutton6.function pushbutton6_Callback(hObject, eventdata, handles)% hOb
10、ject handle to pushbutton6 (see GCBO)im3=im2bw(im2,0.7);im5=im2bw(im2,0.3);mov1=cat(2,im3,im3);mov2=cat(2,im5,im5);mov3=cat(1,mov1,mov2);imshow(mov3);% - Executes on button press in pushbutton7.function pushbutton7_Callback(hObject, eventdata, handles)% hObject handle to pushbutton7 (see GCBO)%im3,m
11、ap=rgb2ind(im2,128);%mov=immovie(im3,map);%axes(handles.axes2);%movie(mov,1);mri=uint8(zeros(128,128,1,27);for frame=1:27 mri(:,:,frame),map=imread(mri.tif,frame);mov=immovie(mri,map);figure;movie(mov);% - Executes on button press in pushbutton8.function pushbutton8_Callback(hObject, eventdata, hand
12、les)% hObject handle to pushbutton8 (see GCBO)clear all;close(gcf);% - Executes on button press in pushbutton9.function pushbutton9_Callback(hObject, eventdata, handles)% hObject handle to pushbutton9 (see GCBO)montage(mri,map);% - Executes on button press in pushbutton10.function pushbutton10_Callb
13、ack(hObject, eventdata, handles)% hObject handle to pushbutton10 (see GCBO)x,y,z=sphere;warp(x,y,z,im2);% - Executes on button press in pushbutton12.function pushbutton12_Callback(hObject, eventdata, handles)% hObject handle to pushbutton12 (see GCBO)im2=imrotate(im2,60,bilinearimshow(im2);% - Execu
14、tes on button press in pushbutton16.function pushbutton16_Callback(hObject, eventdata, handles)% hObject handle to pushbutton16 (see GCBO)im3=imcrop;imshow(im3);% - Executes on button press in pushbutton17.function pushbutton17_Callback(hObject, eventdata, handles)% hObject handle to pushbutton17 (s
15、ee GCBO)im2=imread(tire.tiff=inline(max(x(:)im3=nlfilter(im2,3,3,f);% - Executes on button press in pushbutton18.function pushbutton18_Callback(hObject, eventdata, handles)% hObject handle to pushbutton18 (see GCBO)im2=im2bw(im2);%im2=imread(pout.tifBW=roipoly;h=fspecial(unsharpim3=roifilt2(h,im2,BW
16、);% - Executes on button press in pushbutton19.function pushbutton19_Callback(hObject, eventdata, handles)% hObject handle to pushbutton19 (see GCBO)im2=rgb2gray(im2);%im3=ind2gray(X,map);im3=roifill;% - Executes on button press in pushbutton20.function pushbutton20_Callback(hObject, eventdata, handles)% hObject handle to pushbutton20 (see GCBO)%im2=mat2gray(im2);im3=edge(im2);
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2