【正文】
y)。 y=flipud(x)。endfunction leftright_Callback(hObject, eventdata, handles)% hObject handle to leftright (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。for k=1:3 y(:,:,k)=fliplr(x(:,:,k))。else x=()。 imshow(y)。x=()。 imshow(y)。x=()。 imshow(y)。prompt={39。}。3039。p=inputdlg(prompt,39。,1,defans)。y=imrotate(,p1)。噪聲欄:% function zaosheng_Callback(hObject, eventdata, handles)% hObject handle to zaosheng (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)function gs_Callback(hObject, eventdata, handles)% hObject handle to gs (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) axes()。input parameter1:39。input parameter239。 defans={39。,39。}。input parameter39。 p1=str2num(p{1})。 y=imnoise(,39。,p1,p2)。=y。%function jiaoyan_Callback(hObject, eventdata, handles)% hObject handle to jiaoyan (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)prompt={39。}。39。 p=inputdlg(prompt,39。,1,defans)。 axes()。y=imnoise(x,39。 pepper39。 imshow(y)。guidata(hObject,handles)。prompt={39。}。39。p=inputdlg(prompt,39。,1,defans)。y=imnoise(,39。,p1)。 =y。直方圖統(tǒng)計(jì)菜單欄:%function zhifangtutongji_Callback(hObject, eventdata, handles)% hObject handle to zhifangtutongji (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% function red_Callback(hObject, eventdata, handles)% hObject handle to red (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)set(,39。,39。)。x=imhist((:,:,1))。horz=1:10:256。set(,39。,0:50:255)。HandleVisibility39。ON39。axes()。 x1=x(1:10:256)。bar(horz,x1)。xtick39。else msgbox(39。,39。)。HandleVisibility39。ON39。axes()。 x1=x(1:10:256)。bar(horz,x1)。set(,39。,0:50:255)。ytick39。else msgbox(39。,39。)。x=()。 y=fftshift(m)。else m=fft2(x)。 imshow(log(abs(y)),[])。x=()。this is a color image ,Not a lowpass filter39。error39。elsey1=imnoise(x,39。 pepper39。f=double(y1)。 g=fftshift(g)。nn=2。 m=fix(M/2)。for i=1:M for j=1:N d=sqrt((im)^2+(jn)^2)。 result(i,j)=h*g(i,j)。y2=ifft2(result)。imshow(y3)。x=()。this is a color image ,Not a highpass filter39。error39。elsey1=imnoise(x,39。)。 k=fft2(f)。 [M,N]=size(g)。d0=3。 n=fix(N/2)。 if d=d0 h=0。 end result(i,j)=h*g(i,j)。y2=ifft2(result)。imshow(y3)。x=()。this is a color image,can not convert it to a binary image39。failed to convert39。elsej=im2bw(x)。end%function tuxiangfushi_Callback(hObject, eventdata, handles)% hObject handle to tuxiangfushi (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。if isrgb(x) msgbox(39。,39。)。se=eye(5)。erode39。imshow(bw)。x=()。this is a color image,can not Build index image39。error39。elsey=grayslice(x,16)。imshow(y,jet(16))。x=()。imshow(ntsc)。this is a gray level image,can not convert39。error39。end%function HSV_Callback(hObject, eventdata, handles)% hObject handle to HSV (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%RGBHSVaxes()。if isrgb(x) HSV=rgb2hsv(x)。else msgbox(39。,39。)。x=()。imshow(ycbcr)。this is a gray level image,can not convert39。error39。end邊沿檢測:%function uipanel4_SelectionChangeF(hObject, eventdata, handles)% hObject handle to uipanel4 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)global ystr=get(hObject,39。)。switch str case 39。 imshow(y)。sobel39。sobel39。 imshow(BW)。prewitt39。prewitt39。 imshow(BW)。canny39。canny39。 imshow(BW)。:(五號,宋體加粗)【1】鄭阿奇,曹戈,[M].北京:電子工業(yè)出版社33