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

正文內(nèi)容

基于matlab數(shù)字圖像處理平臺設(shè)計(編輯修改稿)

2025-07-24 18:05 本頁面
 

【文章內(nèi)容簡介】 dles structure with handles and user data (see GUIDATA)[sfilename ,sfilepath]=uiputfile({39。*.jpg39。39。*.bmp39。39。*.tif39。39。*.*39。},39。保存圖像文件39。,39。39。)。 %返回要保存的圖像文件 if ~isequal([sfilename,sfilepath],[0,0]) %如果不是取消保存 sfilefullname=[sfilepath ,sfilename]。 %將文件名和目錄名組合成一個完整的路徑 imwrite(,sfilefullname)。 %保存圖像 else msgbox(39。取消保存?39。,39。保存圖像文件39。)。 %彈出一個名為保存圖像文件的對話框,內(nèi)容為“取消保存?” end% function exit_Callback(hObject, eventdata, handles)% hObject handle to exit (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)clc。 %清除指令窗close all。 %關(guān)閉所有句柄可見的窗口close(gcf)。 %關(guān)閉當前窗口clear。 %清除內(nèi)存變量和函數(shù)% function change_Callback(hObject, eventdata, handles)function enhance_Callback(hObject, eventdata, handles)function fenge_Callback(hObject, eventdata, handles)function file_Callback(hObject, eventdata, handles)function edit_Callback(hObject, eventdata, handles)function fanzhuan_Callback(hObject, eventdata, handles)% function FFT_Callback(hObject, eventdata, handles)% hObject handle to FFT (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。i1=。 %獲取圖像i2=im2double(i1)。 %圖像矩陣轉(zhuǎn)換成雙精度浮點類型f1=fft2(i2)。 %對圖像進行二維離散傅里葉變換fc1=fftshift(f1)。 %將變換后的圖象頻譜中心從矩陣的原點移到矩陣的中心i=log(1+abs(fc1))。 %對變換后的圖像矩陣數(shù)據(jù)求絕對值后取自然對數(shù)imshow(i)。 xlabel(39。傅里葉變換圖像39。)。=i。guidata(hObject,handles)。 %把handles句柄更新% function DCT_Callback(hObject, eventdata, handles)% hObject handle to DCT (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。j1=。 %獲取圖像j2=rgb2gray(j1)。 %灰度變換d=dct2(j2)。 %對圖像進行二維離散余弦變換j=log(abs(d))。 %對變換后的圖像矩陣數(shù)據(jù)求絕對值后取自然對數(shù)imshow(j)。xlabel(39。離散余弦變換圖像39。)。=j。guidata(hObject,handles)。 %把handles句柄更新% function huidu_Callback(hObject, eventdata, handles)% hObject handle to huidu (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)global T %定義全局變量axes()。 %定義圖形區(qū)域axes2T=getimage。 %從坐標軸獲取圖像數(shù)據(jù)x=rgb2gray()。 %利用 rgb2gray函數(shù)對源圖像進行灰度處理 imshow(x)。 %顯示圖像xlabel(39?;叶葓D像39。)。 % x軸名為“灰度圖像”=x。 %guidata(hObject,handles)。 %把handles句柄更新% function zhifangtu_Callback(hObject, eventdata, handles)% hObject handle to zhifangtu (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。 %定義圖形區(qū)域axes2T=getimage。 %從坐標軸獲取圖像數(shù)據(jù)x=rgb2gray()。 %對圖像進行灰度處理h=histeq(x)。 %對圖像進行直方圖均衡化處理 imshow(h)。 %顯示圖像xlabel(39。直方圖均衡化后的圖像39。)。 =h。guidata(hObject,handles)。 %把handles句柄更新% function low_Callback(hObject, eventdata, handles)% hObject handle to low (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)axes()。y1=。 %獲取圖像x=rgb2gray()。 %灰度變換f=double(x)。 %數(shù)據(jù)類型轉(zhuǎn)換為雙精度數(shù)值g=fft2(f)。 %二維離散傅里葉變換g=fftshift(g)。 %將變換后的圖象頻譜中心從矩陣的原點移到矩陣的中心[M,N]=size(g)。 %返回矩陣g的大小,即M為行數(shù),N為列數(shù)nn=2。 %二階巴特沃斯低通濾波器d0=50。 %截止頻率50Hzm=fix(M/2)。 n=fix(N/2)。 %取矩陣g的行數(shù)和列數(shù)一半的整數(shù)for i=1:M for j=1:N % 循環(huán) d=sqrt((im)^2+(jn)^2)。 h=1/(1+*(d/d0)^(2*nn))。 %計算低通濾波器傳遞函數(shù) result(i,j)=h*g(i,j)。 %結(jié)果返回到result endendresult=ifftshift(result)。 %將圖象頻譜中心從矩陣的中心移到矩陣的原點y2=ifft2(result)。 %二維離散傅里葉反變換y3=uint8(real(y2))。 %把矩陣y2實部轉(zhuǎn)換成8位無符號數(shù)據(jù)imshow(y3)。 %顯示低通濾波后的圖像xlabel(39。低通濾波圖像39。)。=y3。guidata(hObject,handles)。 %把handles句柄更新% function high_Callback(hObject, eventdata, handles)% hObject handle to hi
點擊復制文檔內(nèi)容
物理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1