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

正文內(nèi)容

基于matlab的圖像處理-資料下載頁(yè)

2025-08-11 12:11本頁(yè)面
  

【正文】 函數(shù) result(i,j)=h*g(i,j)。 end  endresult=ifftshift(result)?! 2=ifft2(result)?! 3=uint8(real(y2))?!mshow(y3)。 % 顯示濾波處理后的圖像 end  function gaotong_Callback(hObject, eventdata, handles)  %高通濾波器 axes()?!=()。 if isrgb(x)  msgbox(39。這是彩色圖像,不能通過(guò)高通濾波器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)?!or i=1:M  for j=1:N d=sqrt((im)^2+(jn)^2)。 % 計(jì)算高通濾波器傳遞函數(shù)  if d=d0  h=0?! ? else h=1。 end  result(i,j)=h*g(i,j)?! ? end  end  result=ifftshift(result)?!2=ifft2(result)?! 3=uint8(real(y2))?! mshow(y3)。 end%接下來(lái)這段程序是灰度圖像處理程序    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。)?! lsej=im2bw(x)?!mshow(j)?!nd   function tuxiangfushi_Callback(hObject, eventdata, handles)  %圖像腐蝕axes()。x=()?!f isrgb(x)  msgbox(39。這是彩色圖像,不能進(jìn)行圖像腐蝕39。,39。失敗39。)?!lse  j=im2bw(x)?!e=eye(5)。bw=bwmorph(j,39。erode39。)?!mshow(bw)。endfunction suoyintuxiang_Callback(hObject, eventdata, handles)  %創(chuàng)建索引圖像  axes()?! =()?! f isrgb(x)  msgbox(39。這是彩色圖像,不能創(chuàng)建索引圖像39。,39。創(chuàng)建失敗39。)。else  y=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)HSV  axes()。x=()。  if isrgb(x)  HSV=rgb2hsv(x)。  imshow(HSV)。else   msgbox(39。這是灰度圖像,不能轉(zhuǎn)換39。,39。轉(zhuǎn)換失敗39。)。end  function ntsc_Callback(hObject, eventdata, handles)  %RGB轉(zhuǎn)NTSC axes()。x=()?!f isrgb(x) ntsc=rgb2ntsc(x)?!mshow(ntsc)?! lse msgbox(39。這是灰度圖像,不能轉(zhuǎn)換39。,39。轉(zhuǎn)換失敗39。)?! nd  function ycbcr_Callback(hObject, eventdata, handles) %RGB轉(zhuǎn)YCBCR  axes()?!=()。if isrgb(x) ycbcr=rgb2ycbcr(x)。  imshow(ycbcr)?! lse   msgbox(39。這是灰度圖像,不能轉(zhuǎn)換39。,39。轉(zhuǎn)換失敗39。)?!nd  %這是濾波程序     function lvbo_SelectionChangeF(hObject, eventdata, handles)  str=get(hObject,39。string39。)。set(,39。HandleVisibility39。,39。ON39。)?!xes()?!=。if isrgb(i)  a=(:,:,1)。b=(:,:,2)。c=(:,:,3)?!witch str case 39。中值濾波39?! ? k(:,:,1)=medfilt2(a)?!? k(:,:,2)=medfilt2(b)。 k(:,:,3)=medfilt2(c)?!? imshow(k)  case 39。自適應(yīng)濾波39?! ? k(:,:,1)=wiener2(a,[5,5])。 k(:,:,2)=wiener2(b,[5,5])。 k(:,:,3)=wiener2(c,[5,5])?! ? imshow(k)?!? case39。平滑濾波39。 k(:,:,1)=filter2(fspecial(39。average39。,3),a)/255。 k(:,:,2)=filter2(fspecial(39。average39。,3),b)/255。 k(:,:,3)=filter2(fspecial(39。average39。,3),c)/255?!?imshow(k)。endelse  switch str  case 39。中值濾波39。  k=medfilt2()?!? imshow(k)   case 39。線性濾波39?!? h=[1 1 1。1 1 1。1 1 1]?!? H=h/9。 m=double()。 k=conv2(m,h)。 imshow(k,[])。 case 39。自適應(yīng)濾波39。 k=wiener2(,[5,5])。 imshow(k)?! ? case39。平滑濾波39?! ? k=filter2(fspecial(39。average39。,3),)/255?! ? imshow(k)?! nd  end    %這是亮度滑動(dòng)條的程序    function ld_Callback(hObject, eventdata, handles)  axes()。 x=()。=get(,39。value39。)。=get(,39。value39。)?! =imadjust(x,[0 ],[0 1],)。  imshow(y)。  % Executes during object creation, after setting all properties.function ld_CreateF(hObject, eventdata, handles)if isequal(get(hObject,39。BackgroundColor39。), get(0,39。defaultUicontrolBackgroundColor39。))  set(hObject,39。BackgroundColor39。,[.9 .9 .9])?!nd  % Executes on slider movement.  function gamma_Callback(hObject, eventdata, handles)  axes()。x=()?!?get(,39。value39。)。 =get(,39。value39。)?!=imadjust(x,[0 ],[0 1],)。  imshow(y)?! ? Executes during object creation, after setting all properties.  function gamma_CreateF(hObject, eventdata, handles) if isequal(get(hObject,39。BackgroundColor39。), get(0,39。defaultUicontrolBackgroundColor39。))  set(hObject,39。BackgroundColor39。,[.9 .9 .9])。end         
點(diǎn)擊復(fù)制文檔內(nèi)容
化學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1