MATLAB课程设计--GUI图像处理

% -------------------------------------------------------------------- function openfile_Callback(hObject, eventdata, handles) % hObject handle to openfile (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) [filename,pathname]=uigetfile({'*.jpg';'*.bmp';'*.tif';'*.*'},'??è?í???'); if isequal(filename,0)|isequal(pathname,0) errordlg('??óD???D???t','3?′í'); return; else

file=[pathname,filename]; global S %éè??ò???è???a?á?S£?a£′?3?ê?í???????£?ò?a???oóμ??1?-2ù?? S=file;

x=imread(file);

set(handles.axes1,'HandleVisibility','ON'); axes(handles.axes1); imshow(x);

set(handles.axes1,'HandleVisibility','OFF'); axes(handles.axes2); imshow(x); handles.img=x;

guidata(hObject,handles); end

% -------------------------------------------------------------------- function about_Callback(hObject, eventdata, handles) % hObject handle to about (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) msgbox('?aê?ò???GUIμ?í???′|àí3ìDò','1?óú');

% -------------------------------------------------------------------- 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)

% -------------------------------------------------------------------- function save_Callback(hObject, eventdata, handles) % hObject handle to save (see GCBO)

% eventdata reserved - to be defined in a futu

>>鐏炴洖绱戦崗銊︽瀮<<
12@gma联系客服:779662525#qq.com(#替换为@)