资源简介
这是我自己上数字图像处理的课程设计大作业,论文写得很简单,但是有详细的代码,有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 数字图像处理大作业GUI设计及其论文--通信071班--赛玮琦--200710322035\GUI设计源代码\GUI.asv
文件 8220 2010-05-29 20:49 数字图像处理大作业GUI设计及其论文--通信071班--赛玮琦--200710322035\GUI设计源代码\GUI.fig
文件 3238 2010-06-02 20:17 数字图像处理大作业GUI设计及其论文--通信071班--赛玮琦--200710322035\GUI设计源代码\GUI.m
文件 853714 2010-05-30 16:06 数字图像处理大作业GUI设计及其论文--通信071班--赛玮琦--200710322035\数字图像处理课程设计论文--通信071班-赛玮琦-200710322035.docx
目录 0 2010-05-30 16:13 数字图像处理大作业GUI设计及其论文--通信071班--赛玮琦--200710322035\GUI设计源代码
目录 0 2010-07-13 14:26 数字图像处理大作业GUI设计及其论文--通信071班--赛玮琦--200710322035
----------- --------- ---------- ----- ----
870246 6
- 上一篇:稳定渗流场的有限元
- 下一篇:卡尔曼滤波器matlab程序
相关资源
- 四旋翼MATLAB仿真文件+实验报告
- 串行级联cpm系统MATLAB仿真
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
评论
共有 条评论