【正文】
end。)。 BW=edge(y,39。 case 39。)。 BW=edge(y,39。 case 39。)。 BW=edge(y,39。 case 39。原圖39。axes()。string39。)。,39。else msgbox(39。if isrgb(x)ycbcr=rgb2ycbcr(x)。end%function YCBCR_Callback(hObject, eventdata, handles)% hObject handle to YCBCR (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%RGBYCBCRaxes()。error39。this is a gray level image,can not convert39。 imshow(HSV)。x=()。)。,39。else msgbox(39。if isrgb(x)ntsc=rgb2ntsc(x)。end%function tuxianglunkuo_Callback(hObject, eventdata, handles)% hObject handle to tuxianglunkuo (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)顏色轉(zhuǎn)換模型菜單欄:%function yansemoxing_Callback(hObject, eventdata, handles)% hObject handle to yansemoxing (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%function RGB_Callback(hObject, eventdata, handles)% hObject handle to RGB (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%function NTSC_Callback(hObject, eventdata, handles)% hObject handle to NTSC (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%RGBNTSCaxes()。axes()。)。,39。if isrgb(x) msgbox(39。end%function chuanjiansuoyin_Callback(hObject, eventdata, handles)% hObject handle to chuanjiansuoyin (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。)。bw=bwmorph(j,39。elsej=im2bw(x)。error39。this is a color image,Cannot carry out image corrosion 39。x=()。imshow(j)。)。,39。if isrgb(x) msgbox(39。 end灰度圖像處理欄:%function huiduchuli_Callback(hObject, eventdata, handles)% hObject handle to huiduchuli (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%function erzhituxiang_Callback(hObject, eventdata, handles)% hObject handle to erzhituxiang (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。y3=uint8(real(y2))。 endendresult=ifftshift(result)。 else h=1。for i=1:M for j=1:N d=sqrt((im)^2+(jn)^2)。 m=fix(M/2)。nn=2。 g=fftshift(k)。 f=double(y1)。gaussian39。)。,39。if isrgb(x) msgbox(39。 end%function gaotong_Callback(hObject, eventdata, handles)% hObject handle to gaotong (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。y3=uint8(real(y2))。 endendresult=ifftshift(result)。 h=1/(1+*(d/d0)^(2*nn))。 n=fix(N/2)。 d0=10。 [M,N]=size(g)。 g=fft2(f)。)。salt amp。)。,39。if isrgb(x) msgbox(39。end%function ditong_Callback(hObject, eventdata, handles)% hObject handle to ditong (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。 y=fftshift(m)。 imshow(log(abs(y)),[])。if isrgb(x) m=fft2(x(:,:,1))。end頻譜分析單欄:%function pinpufenxi_Callback(hObject, eventdata, handles)% hObject handle to pinpufenxi (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%function pinputu_Callback(hObject, eventdata, handles)% hObject handle to pinputu (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。 failed to spin39。This is already a gray level image39。,0:2000:15000)。set(,39。xtick39。axis([0 255 0 150000])。horz=1:10:256。if isrgb() x=imhist((:,:,3))。)。,39。end%