freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于matlab的信號處理初步-資料下載頁

2025-06-27 18:41本頁面
  

【正文】 }。p=inputdlg(prompt,39。輸入?yún)?shù)39。,1,defans)。p1=str2num(p{1})。y=imrotate(,p1)。 imshow(y)。function gs_Callback(hObject, eventdata, handles)%加入高斯噪聲 axes()。 prompt={39。輸入?yún)?shù)1:39。,39。輸入?yún)?shù)239。}。 defans={39。039。,39。39。}。 p=inputdlg(prompt,39。輸入?yún)?shù)39。,1,defans)。 p1=str2num(p{1})。 p2=str2num(p{2})。 y=imnoise(,39。gaussian39。,p1,p2)。imshow(y)。=y。 guidata(hObject,handles)。function jy_Callback(hObject, eventdata, handles)%加入椒鹽噪聲prompt={39。輸入?yún)?shù)1:39。}。 %對話框的設置,用戶輸入的是字符串defans={39。39。}。 %缺省值p=inputdlg(prompt,39。輸入?yún)?shù)39。,1,defans)。 p1=str2num(p{1})。 %字符串轉(zhuǎn)化為數(shù)值axes()。x=()。y=imnoise(x,39。salt amp。 pepper39。,p1)。 imshow(y)。=y。guidata(hObject,handles)。function cx_Callback(hObject, eventdata, handles)%加入乘性噪聲 axes()。prompt={39。輸入?yún)?shù)1:39。}。defans={39。39。}。p=inputdlg(prompt,39。輸入?yún)?shù)39。,1,defans)。p1=str2num(p{1})。y=imnoise(,39。speckle39。,p1)。imshow(y)。 =y。guidata(hObject,handles)。function zhifangtutongji_Callback(hObject, eventdata, handles)function red_Callback(hObject, eventdata, handles)%R直方圖set(,39。HandleVisibility39。,39。ON39。)。axes()。x=imhist((:,:,1))。 %直方圖統(tǒng)計x1=x(1:10:256)。horz=1:10:256。bar(horz,x1)。set(,39。xtick39。,0:50:255)。function gray_Callback(hObject, eventdata, handles)%G直方圖set(,39。HandleVisibility39。,39。ON39。)。axes()。if isrgb() x=imhist((:,:,2))。 %直方圖統(tǒng)計x1=x(1:10:256)。horz=1:10:256。bar(horz,x1)。set(,39。xtick39。,0:50:255)。else msgbox(39。這是灰度圖像39。,39。旋轉(zhuǎn)失敗39。)。endfunction blue_Callback(hObject, eventdata, handles)%B直方圖set(,39。HandleVisibility39。,39。ON39。)。axes()。if isrgb() x=imhist((:,:,3))。 %直方圖統(tǒng)計x1=x(1:10:256)。horz=1:10:256。bar(horz,x1)。%axis([0 255 0 150000])。set(,39。xtick39。,0:50:255)。%set(,39。ytick39。,0:2000:15000)。else msgbox(39。這是灰度圖像39。,39。旋轉(zhuǎn)失敗39。)。endfunction junheng_Callback(hObject, eventdata, handles)%直方圖均衡set(,39。HandleVisibility39。,39。ON39。)。axes()。if isrgb() a=histeq((:,:,1))。 b=histeq((:,:,2))。 c=histeq((:,:,3))。 k(:,:,1)=a。 k(:,:,2)=b。 k(:,:,3)=c。 imshow(k)。elseh=histeq()。 %直方圖均衡imshow(h)。end%頻譜分析function pinpu_Callback(hObject, eventdata, handles)function pinputu_Callback(hObject, eventdata, handles)%顯示頻譜圖axes()。x=()。if isrgb(x) m=fft2(x(:,:,1))。 y=fftshift(m)。 imshow(log(abs(y)),[])。else m=fft2(x)。 y=fftshift(m)。 imshow(log(abs(y)),[])。endfunction frequency_Callback(hObject, eventdata, handles)%低通濾波器axes()。x=()。if isrgb(x) msgbox(39。這是彩色圖像,不能通過低通濾波器39。,39。失敗39。)。elsey1=imnoise(x,39。salt amp。 pepper39。)。 % 疊加椒鹽噪聲f=double(y1)。 % 數(shù)據(jù)類型轉(zhuǎn)換,MATLAB不支持圖像的無符號整型的計算g=fft2(f)。 % 傅立葉變換g=fftshift(g)。 % 轉(zhuǎn)換數(shù)據(jù)矩陣[M,N]=size(g)。nn=2。 % 二階巴特沃斯(Butterworth)低通濾波器d0=10。 %截止頻率為10m=fix(M/2)。 n=fix(N/2)。for i=1:M for j=1:N d=sqrt((im)^2+(jn)^2)。 h=1/(1+*(d/d0)^(2*nn))。 % 計算低通濾波器傳遞函數(shù) result(i,j)=h*g(i,j)。 endendresult=ifftshift(result)。y2=ifft2(result)。y3=uint8(real(y2))。imshow(y3)。 % 顯示濾波處理后的圖像endfunction gaotong_Callback(hObject, eventdata, handles)%高通濾波器axes()。x=()。if isrgb(x) msgbox(39。這是彩色圖像,不能通過高通濾波器39。,39。失敗39。)。elsey1=imnoise(x,39。gaussian39。)。 %加高斯噪聲f=double(y1)。 % 數(shù)據(jù)類型轉(zhuǎn)換k=fft2(f)。 % 傅立葉變換g=fftshift(k)。 % 轉(zhuǎn)換數(shù)據(jù)矩陣[M,N]=size(g)。nn=2。d0=3。 %截止頻率為3m=fix(M/2)。 n=fix(N/2)。for i=1:M for j=1:N d=sqrt((im)^2+(jn)^2)。 % 計算高通濾波器傳遞函數(shù) if d=d0 h=0。 else h=1。 end result(i,j)=h*g(i,j)。 endendresult=ifftshift(result)。y2=ifft2(result)。y3=uint8(real(y2))。imshow(y3)。 end%接下來這段程序是灰度圖像處理程序function huiduchuli_Callback(hObject, eventdata, handles)function erzhituxiang_Callback(hObject, eventdata, handles)%二值圖像axes()。x=()。if isrgb(x) msgbox(39。這是彩色圖像,不能轉(zhuǎn)換為二值圖像39。,39。轉(zhuǎn)換失敗39。)。elsej=im2bw(x)。imshow(j)。endfunction tuxiangfushi_Callback(hObject, eventdata, handles)%圖像腐蝕axes()。x=()。if isrgb(x) msgbox(39。這是彩色圖像,不能進行圖像腐蝕39。,39。失敗39。)。elsej=im2bw(x)。se=eye(5)。bw=bwmorph(j,39。erode39。)。imshow(bw)。endfunction suoyintuxiang_Callback(hObject, eventdata, handles)%創(chuàng)建索引圖像axes()。x=()。if isrgb(x) msgbox(39。這是彩色圖像,不能創(chuàng)建索引圖像39。,39。創(chuàng)建失敗39。)。elsey=grayslice(x,16)。axes()。imshow(y,jet(16))。end%這段是顏色模型的轉(zhuǎn)換function ysmx_Callback(hObject, eventdata, handles)function hsv_Callback(hObject, eventdata, handles)%RGB圖像轉(zhuǎn)HSVaxes()。x=()。if isrgb(x) HSV=rgb2hsv(x)。 imshow(HSV)。else msgbox(39。這是灰度圖像,不能轉(zhuǎn)換39。,39。轉(zhuǎn)換失敗39。)。endfunction ntsc_Callback(hObject, eventdata, handles)%RGB轉(zhuǎn)NTSCax
點擊復制文檔內(nèi)容
化學相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1