全球旧事资料 分类
电子科技大学
数字图像处理实验报告
实验一
学号
实验名称空间域图像增强
指导教师罗俊海李庆嵘
实验地点科B453
f
一、实验过程
1、
2、
3、
二、实验程序和结果图像
1、均衡化处理
clear
clc
closeall
ximreadle
a_graytif
imshowx
titleorigi
alimage
fori1256
hisumsumxi1打开matlab插入原始图像对图像进行均衡化处理打开matlab插入原始图像对原始图像添加噪声对噪声图像进行中值滤波处理打开matlab插入原始图像sobel锐化图像
fe
d
imhistx
titlehistogramoforigi
alimage
yx
ssumh
fori1256
jfi
dxi1
yjsumh1is255
e
d
figure
imshowy
titleresultofhistogtamequaliztio
figure
imhisty
ftitlehistogramofresultofhistogtamequaliztio
2、中值滤波处理
clear
clc
closeall
ximreadle
a_graytif
imshowx
titleorigi
alimage
yim
oisexsaltpepper2
figure
imshowy
titleimageofcorruptedbyslata
dpeper
fx1medfilt2y
figure
imshowx1
titleresultof33media
filter
x2medfilt2y77
figure
imshowx2
titleresultof77media
filter
f3、锐化处理
clear
clc
closeall
ximreadle
a_graytif
imshowx
titleorigi
alimage
rcsizex
yx
forrow2r1
forcol2c1
habsxrow1col12xrow1colxrow1col1xrow1col1
2xrow1colxrow1col1
vabsxrow1col12xrowcol1xrow1col1xrow1col
f12xrowcol1xrow1col1
yrowcolvh
e
d
e
d
figure
imshowy
titlesobelgradie
t
yxy
ydoubley
mamaxmaxy
y255yma
figure
imshowui
t8ytitlesobelsharpe
i
g
三、实验结果分析
1、对图像均衡化处理后图像的灰度值分布有所改变
2、锐化增强后的图像边缘清晰度增加。
fr
好听全球资料 返回顶部