欢迎来到天天文库
浏览记录
ID:57225337
大小:562.50 KB
页数:13页
时间:2020-08-04
《数-字-图-像-处-理课件.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、数字图像处理实验指导书实验一常用的图像文件格式与格式转换和图像矩阵的显示方法一、实验目的1、熟悉Matlab语言的初步使用;2、熟悉常用的图像文件格式与格式转换;3、熟悉图像矩阵的显示方法(灰度、索引、黑白、彩色);4、熟悉图像矩阵的格式转换二、实验内容:练习图像读写命令imread和imwrite并进行图像文件格式间的转换。特别是索引图像与1,4,8,16比特图像的存储与转换。熟悉下列模块函数ImagefileI/O.imread-Readimagefile.imwrite-Writeimagefile.Imagedisplay.color
2、bar-Displaycolorbar.getimage-Getimagedatafromaxes.image-Createanddisplayimageobject.imagesc-Scaledataanddisplayasimage.immovie-Makemoviefrommultiframeindexedimage.imshow-Displayimage.subimage-Displaymultipleimagesinsinglefigure.truesize-Adjustdisplaysizeofimage.warp-Display
3、imageastexture-mappedsurface.zoom-Zoominandoutofimageor2-Dplot.三、实验步骤Loadcameraman.tifimagefromyourharddisk(usingfunctionimread).>>imread('cameraman.tif')b.Showtheimageinafigurewindow(usingfunctionimageorimshow).>>imshow('cameraman.tif')c.Drawabrightnessbarontherightsideoft
4、heimage(usingfunctioncolorbar).>>Colorbard.Getimagedatafromthecurrentfigure(axes)(usingfunctiongetimage).>>a=getimagee.Showthegrayleveloftheimagebetween64to128(usingfunctionimagesc).>>clims=[64,128]>>imagesc(a,clims)f.Makeamoviefroma4-Dimage(loadmri,makethemoviebyimmovie,th
5、enshowmoviebyfunctionmovie).>>loadmri>>mov=immovie(D,map)>>movie(mov,4)g.Drawthecameramanimageonacylinder(usingfunctionwarp).>>[x,y,z]=cylinder>>warp(x,y,z,a)>>warp(x,y,-z,a)实验三图像增强及编程处理一、实验目的观察数字图像增强的效果;熟悉数字图像增强的一般方法;掌握数字图像增强的一般方法的Matlab编程实现。二、实验内容:使用Photoshop观察数字图像增强的效果;练
6、习和掌握图像增强的Matlab编程。。熟悉下列模块函数Imageenhancement.histeq-Readimagefile.imadust-Adustimaeintensityvaluesorcolormap.Imagenoising.imnoise-Addnoisetoanimage.Imagefilteringmedfilt2-Perform2-Dmedianfiltering.ordfilt2-Perform2-Dorder-statisticfiltering.wiener2-Perform2-Dadaptivenoise-re
7、movalfiltering.实验步骤<1>使用Photoshop观察数字图像增强的效果a.对比度增强1)在Photoshop中打开一黑白灰度图像文件。2)在图像菜单中选直方图项,观察原始图像的直方图。3)在图像菜单调整子菜单中选亮度/对比度项,调节对比度滑块,观察图像变化。4)在图像菜单中选直方图项,观察处理后图像的直方图,并同(2)中的直方图比较。b.灰度变换1)在Photoshop中打开一黑白灰度图像文件。2)在图像菜单中选直方图项,观察原始图像的直方图。3)在图像菜单调整子菜单中选反相项,观察图像变化。4)在图像菜单中选直方图项,观察
8、处理后图像的直方图,并同(2)中的直方图比较。5)画出灰度变换曲线。6)在编辑菜单中选返回项,恢复原始图像。7)在图像菜单调整子菜单中阈值项,调节阈值色阶滑块,观察
此文档下载收益归作者所有