alumgr
stifII1125611256imshowI
32咸宁学院电子与信息工程学院
f《数字图像处理(MATLAB版)》实验指导书
SqtdecompI02figureimshowSSqtdecompI01figureimshowSD图像分析与理解用分水岭分割函数watershed对图像‘afmsurftif’进行分割,测试互相接触的对象。afmimreadpeppersp
g或camerama
tifsubplot231imshowafmtitleOrigi
alImagesestreldisk15Itopimtophatafmse高帽变换subplot232imshowItoptitleTophatImageIbotimbothatafmse低帽变换subplot233imshowIbottitleBottomhatImageIe
ha
ceimsubtractimaddItopafmIbotsubplot234imshowIe
ha
cetitleOrigi
alTophatBottomhatIecimcompleme
tIe
ha
ceIemi
imexte
dedmi
Iec22搜索谷值Iimposeimimposemi
IecIemi
置谷值为0subplot235imshowIimposetitleCompleme
tofE
ha
cedImagewatwatershedIimpose分水岭分割subplot236imshowwattitleWatershedSegme
tedImagergblabel2rgbwatsubplot236imshowrgbtitleColorSegme
tedImage
2
图像压缩
ADCT变换在图像压缩中的应用执行Matlab自带的演示程序dctdemo,比较DCT变换矩阵舍弃系数对重构图像的影响dctdemoB小波变换在图像压缩中的应用
三、思考题
1图像中哪些信息是主要的,哪些信息是次要的?
33咸宁学院电子与信息工程学院
f《数字图像处理(MATLAB版)》实验指导书
附
常用图像处理函数常用图像处理函数图像处理
录
1
imread,imwrite:图像读写imi
fo:图像信息imshow:图像显示imhist:图像直方图histeq:直方图均衡fspecial:产生卷积滤波器co
v2:二维卷积滤波mat2gray:将矩阵转换为图像im2double:将图像转换为双精度类型fspecial:产生滤波器imfilter:图像滤波filter2:二维滤波mea
:均值media
:中值max:最大值mi
:最小值im
oise:添加噪声medfilt2:二维中值滤波TFORM:空间变换结构体immakeform:建立空间变换结构体imtra
sform:空间变换imresize:改变图像大小imrotate:图像旋转imcrop:图像剪切graythresh:计算阈值im2bw:阈值分割imerode:形态学腐蚀imdilate:形态学膨胀imope
:形态学开运算imclose:形态学闭运算bwlabel:连通成份分析
r