17 % This function has no output args, see OutputFcn.
% 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 apple (see VARARGIN) % Choose default command line output for apple handles.output = hObject % Update handles structure guidata(hObject, handles);
% UIWAIT makes apple wait for user response (see UIRESUME) % uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line. function varargout = apple_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; %
-------------------------------------------------------------------- function duqutuxiang_Callback(hObject, eventdata, handles) % hObject handle to duqutuxiang (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
global im;
[filename,pathname]=...
uigetfile({'*.*';'*.bmp';'*.tif';'*.png'},'select picture'); str=[pathname filename];
im=imread(str); % axes(handles.axes1); imshow(im); %
-------------------------------------------------------------------- function tuichu_Callback(hObject, eventdata, handles) % hObject handle to tuichu (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) clc;
clear all;
18 close(gcf);
%
-------------------------------------------------------------------- function huiduhua_Callback(hObject, eventdata, handles) % hObject handle to huiduhua (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global im; global a2;
a2=rgb2gray(im);
axes(handles.axes2); imshow(a2); figure; imhist(a2); %
-------------------------------------------------------------------- function zhifangtujunhenghua_Callback(hObject, eventdata, handles) % hObject handle to zhifangtujunhenghua (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global a2; global a4; a4=histeq(a2);
axes(handles.axes3); imshow(a4); figure; imhist(a4); %
-------------------------------------------------------------------- function zhongzhilvbo_Callback(hObject, eventdata, handles) % hObject handle to zhongzhilvbo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global a4; global k1;
k6=medfilt2(a4,[3,3]); k5=medfilt2(k6,[3,3]); k4=medfilt2(k5,[3,3]); k3=medfilt2(k4,[3,3]); k2=medfilt2(k3,[3,3]); k1=medfilt2(k2,[3,3]);
19 axes(handles.axes4);
imshow(k1); %
-------------------------------------------------------------------- function wenjian_Callback(hObject, eventdata, handles) % hObject handle to wenjian (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
致 谢
在完成毕业设计的过程中我遇到了很多的问题,通过*老师和同学们的帮助,我最后还是很顺利的完成了我的论文,在这个炎热的夏天我即将迎来大学的毕业,所以这次的论文使我们最后的一个在校的任务,我还是很用心的,毕竟这也是我对大学四年的总结,最后我要真诚的感谢我的指导老师*,您对我们的帮助我们永远铭记,同时也要谢谢我的同学们,和你们一起讨论的时刻真的很充实。
相关推荐: