91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 560KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-19
  • 語言: Matlab
  • 標簽: MATLAB??GUI??設計??

資源簡介

這是我自己上數字圖像處理的課程設計大作業(yè),論文寫得很簡單,但是有詳細的代碼,有MATLAB的工程文件,在7.0下面直接可以運行,希望對下的朋友有所幫助。

資源截圖

代碼片段和文件信息

function?varargout?=?GUI(varargin)
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@GUI_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@GUI_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end
if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end

function?GUI_OpeningFcn(hobject?eventdata?handles?varargin)
handles.output?=?hobject;
guidata(hobject?handles);

function?varargout?=?GUI_OutputFcn(hobject?eventdata?handles)?
varargout{1}?=?handles.output;


%?載入圖像
function?pushbutton1_Callback(hobject?eventdata?handles)
[fnamepnameindex]=uigetfile({‘*.jpg‘;‘*.bmp‘}‘選擇圖片‘);
?global?c;
?if?index
?????str=[pname?fname];
?????c=imread(str);
?????axes(handles.axes1);
?????imshow(c);
?????axis?off
?end

%?亮度變換
function?pushbutton2_Callback(hobject?eventdata?handles)
global?c;
prompt={‘輸入參數1[low_in?high_in]?‘‘輸入參數2?[low_out?high_out]‘‘輸入gamma‘};
?defans={‘[0?0.7]‘‘[0?1]‘‘1‘};
?p=inputdlg(prompt‘輸入參數‘1defans);
?p1=str2num(p{1});
?p2=str2num(p{2});
?p3=str2num(p{3});
?gamma=p3;
?x=(c);
?y=imadjust(xp1p2gamma);
?axes(handles.axes1);
?imshow(y);

%?灰度變換
function?pushbutton3_Callback(hobject?eventdata?handles)
global?c;
I=RGB2gray(c);
imshow(I);

%?DCT變換
function?pushbutton4_Callback(hobject?eventdata?handles)
global?c;
I=RGB2gray(c);
A=fft2(I);
A=fftshift(A);
imshow(log(abs(A)+1)[0?15]);

%?加椒鹽噪聲
function?pushbutton5_Callback(hobject?eventdata?handles)
global?c
I=RGB2gray(c);
I?=?imnoise(I‘salt?&?pepper‘?0.04);
imshow(I);

%?加完椒鹽噪聲后的中值濾波
function?pushbutton6_Callback(hobject?eventdata?handles)
global?c;
I=RGB2gray(c);
J?=?imnoise(I‘salt?&?pepper‘?0.04);
K?=?medfilt2(J);
imshow(I);

%?銳化
function?pushbutton7_Callback(hobject?eventdata?handles)
global?c;
I=RGB2gray(c);
K=edge(I‘roberts‘0.1);
imshow(K);

%?截圖
function?pushbutton8_Callback(hobject?eventdata?handles)
global?c;
I=imcrop(c);
imshow(I);

%?旋轉任意角度
function?pushbutton9_Callback(hobject?eventdata?handles)
global?c;
axes(handles.axes1);
prompt={‘輸入參數1:‘};
defans={‘30‘};
p=inputdlg(prompt‘輸入參數‘1defans);
p1=str2num(p{1});
y=imrotate(cp1);??????????
imshow(y);

%直方圖均衡
function?pushbutton10_Callback(hobject?eventdata?handles)
global?c;
set(handles.axes1‘HandleVisibility‘‘ON‘);
axes(handles.axes1);
if?isrgb(c)?
????a=histeq(c(::1));
????b=histeq(c(::2));
????c=histeq(c(::3));
????k(::1)=a;
????k(::2)=b;
????k(::3)=c;
????imshow(k);
else
h=histeq(c);????????????????????
imshow(h);
end

%?保存變換結果
function?pushbutton11_Callback(hobject?eventdata?handles)
?[filenamepathname]?=?uiputfile(‘*.jpg‘‘圖片保存為‘);
if?isequal([filenamepathname][00])
?????errordlg(‘沒有保存‘‘出錯‘);
?????return;
else
file=strcat(pathnamefilename);
(hand

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????5074??2010-05-30?11:04??數字圖像處理大作業(yè)GUI設計及其論文--通信071班--賽瑋琦--200710322035\GUI設計源代碼\GUI.asv

?????文件???????8220??2010-05-29?20:49??數字圖像處理大作業(yè)GUI設計及其論文--通信071班--賽瑋琦--200710322035\GUI設計源代碼\GUI.fig

?????文件???????3238??2010-06-02?20:17??數字圖像處理大作業(yè)GUI設計及其論文--通信071班--賽瑋琦--200710322035\GUI設計源代碼\GUI.m

?????文件?????853714??2010-05-30?16:06??數字圖像處理大作業(yè)GUI設計及其論文--通信071班--賽瑋琦--200710322035\數字圖像處理課程設計論文--通信071班-賽瑋琦-200710322035.docx

?????目錄??????????0??2010-05-30?16:13??數字圖像處理大作業(yè)GUI設計及其論文--通信071班--賽瑋琦--200710322035\GUI設計源代碼

?????目錄??????????0??2010-07-13?14:26??數字圖像處理大作業(yè)GUI設計及其論文--通信071班--賽瑋琦--200710322035

-----------?---------??----------?-----??----

???????????????870246????????????????????6


評論

共有 條評論