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

正文內(nèi)容

基于matlab的圖像處理-閱讀頁

2024-11-27 21:55本頁面
  

【正文】 function shuangsancisuox_Callback(hObject, eventdata, handles) %雙三次縮小 axes()。輸入放大倍數(shù) :39。 defans={39。}。輸入放大倍數(shù) 39。 p1=str2num(p{1})。bicubic39。 imshow(y)。 x=()。%上下翻轉(zhuǎn) 函數(shù) end imshow(y)。 y=flipud(x)。 end 20 function leftright_Callback(hObject, eventdata, handles) %左右翻轉(zhuǎn) 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 gs_Callback(hObject, eventdata, handles) %加入高斯噪聲 axes()。輸入?yún)?shù) 1:39。輸入?yún)?shù) 239。 defans={39。,39。}。輸入?yún)?shù) 39。 p1=str2num(p{1})。 y=imnoise(,39。,p1,p2)。 =y。 function jy_Callback(hObject, eventdata, handles) %加入椒鹽噪聲 prompt={39。}。39。 %缺省值 p=inputdlg(prompt,39。,1,defans)。 %字符串轉(zhuǎn)化為數(shù)值 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。 function zhifangtutongji_Callback(hObject, eventdata, handles) 21 function red_Callback(hObject, eventdata, handles) %R 直方圖 set(,39。,39。)。 x=imhist((:,:,1))。 horz=1:10:256。 set(,39。,0:50:255)。HandleVisibility39。ON39。 axes()。 %直方圖統(tǒng)計 x1=x(1:10:256)。 bar(horz,x1)。xtick39。 else msgbox(39。,39。)。HandleVisibility39。ON39。 axes()。 %直方圖統(tǒng)計 x1=x(1:10:256)。 bar(horz,x1)。 set(,39。,0:50:255)。ytick39。 else msgbox(39。,39。)。HandleVisibility39。ON39。 axes()。 b=histeq((:,:,2))。 k(:,:,1)=a。 k(:,:,3)=c。 else h=histeq()。 end %頻譜分析 function pinpu_Callback(hObject, eventdata, handles) function pinputu_Callback(hObject, eventdata, handles) %顯示頻譜圖 axes()。 if isrgb(x) m=fft2(x(:,:,1))。 imshow(log(abs(y)),[])。 y=fftshift(m)。 end function frequency_Callback(hObject, eventdata, handles) %低通濾波器 22 axes()。 if isrgb(x) msgbox(39。,39。)。salt amp。)。 % 數(shù)據(jù)類 型轉(zhuǎn)換, MATLAB不支持圖像的無符號整型的計算 g=fft2(f)。 % 轉(zhuǎn)換數(shù)據(jù)矩陣 [M,N]=size(g)。 % 二階巴特沃斯 (Butterworth)低通濾波器 d0=10。 n=fix(N/2)。 h=1/(1+*(d/d0)^(2*nn))。 end end result=ifftshift(result)。 y3=uint8(real(y2))。 % 顯示濾波處理后的圖像 end function gaotong_Callback(hObject, eventdata, handles) %高通濾波器 axes()。 if isrgb(x) msgbox(39。,39。)。gaussian39。 %加高斯噪聲 f=double(y1)。 % 傅立葉變換 g=fftshift(k)。 nn=2。 %截止頻率為 3 m=fix(M/2)。 for i=1:M for j=1:N d=sqrt((im)^2+(jn)^2)。 else h=1。 end end result=ifftshift(result)。 y3=uint8(real(y2))。 end %接下來這段程序是灰度圖像處理程序 function huiduchuli_Callback(hObject, eventdata, handles) function erzhituxiang_Callback(hObject, eventdata, handles) %二值圖像 axes()。 if isrgb(x) msgbox(39。,39。)。 imshow(j)。 x=()。這是彩色圖像 ,不能進(jìn)行圖像腐蝕 39。失敗 39。 else j=im2bw(x)。 bw=bwmorph(j,39。)。 end function suoyintuxiang_Callback(hObject, eventdata, handles) %創(chuàng)建索引圖像 axes()。 if isrgb(x) msgbox(39。,39。)。 axes()。 end %這段是顏色模型的轉(zhuǎn)換 function ysmx_Callback(hObject, eventdata, handles) function hsv_Callback(hObject, eventdata, handles) %RGB 圖像轉(zhuǎn) HSV axes()。 if isrgb(x) HSV=rgb2hsv(x)。 else msgbox(39。,39。)。 x=()。 imshow(ntsc)。這是灰度圖像 ,不能轉(zhuǎn)換 39。轉(zhuǎn)換失敗 39。 end function ycbcr_Callback(hObject, eventdata, handles) %RGB 轉(zhuǎn) YCBCR axes()。 if isrgb(x) ycbcr=rgb2ycbcr(x)。 else msgbox(39。,39。)。string39。 set(,39。,39。)。 i=。 b=(:,:,2)。 switch str case 39。 k(:,:,1)=medfilt2(a)。 k(:,:,3)=medfilt2(c)。自適應(yīng)濾波 39。 k(:,:,2)=wiener2(b,[5,5])。 imshow(k)。平滑濾波 39。average39。 k(:,:,2)=filter2(fspecial(39。,3),b)/255。average39。 imshow(k)。中值濾波 39。 imshow(k) case 39。 h=[1 1 1。1 1 1]。 m=double()。 imshow(k,[])。自適應(yīng)濾波 39。 imshow(k)。平滑濾波 39。average39。 imshow(k)。 x=()。value39。 =get(,39。)。 imshow(y)。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。 end % Executes on slider movement. function gamma_Callback(hObject, eventdata, handles) axes()。 =get(,39。)。value39。 y=imadjust(x,[0 ],[0 1],)。 % Executes during object creation, after setting all properties. function gamma_CreateF(hObject, eventdata, handles) if isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,[.9 .9 .
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1