欢迎来到天天文库
浏览记录
ID:57747977
大小:134.50 KB
页数:7页
时间:2020-09-02
《图像处理实验指导书(英文).doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、实验一数字图像的基本认识Experiment1IntroductionofDigitalImageI.experimentalpurpose.1.Befamiliarwiththefilestructureofdifferenttypesofimages,andmasterthereadingandwritingprocessofimagefiles.2.Masterthecalculationmethodsofvariousstatisticalindicatorsofimages.II.Experimentalprinciple.1.Basictypesofimages
2、.Inthecomputer,theimagecanbedividedintobinaryimage,grayscaleimageandtruecolorRGBimageaccordingtothecolorandgrayscale.2.DiscreteconvolutionFordiscretesequences,convolutioncanbeobtainedbyasimilarmethodtocontinuousfunctions.Therefore,theconvolutionformulaoftwosequenceswithtwolengthsmandnis:Th
3、eaboveformulagivesanoutputsequenceoflength.Discreteconvolutionandcontinuousconvolutionindigitalimagehavealmostcorrespondingproperties,whichcanbedescribedbycontinuousconvolution.3.Grayhistogram.Grayhistogramisafunctionofgrayscale,describestheimagewiththenumberofpixelgrayscaletheabscissaisgr
4、ayscale,ordinateisthefrequenciesofthegrayscale(thenumberofpixels).Itisworthnotingthatthehistogramonlyreflectsthefrequencyofdifferentgrayscalevaluesintheimage,anddoesnotreflectthelocationofagrayvaluepixel.Differentimagesmayhavethesamehistogram;Thesumofthehistogramofeachsubregionofanimageise
5、qualtothehistogramofthegraph.预备知识: 读取图像:F=imread(’e:图片.jpg’) 显示图像:imshow(f) 返回指定点的坐标和颜色值:[crp]=impixel(f) RGB彩色图像转换为灰度图像:rgb2gray(x) 灰度图像转换为二值图像:im2bw(x) 图像滤波(图像与模板卷积):imfilter(x1,w,'replicate'),或用P填充边界 获得图像直方图:imhist(f)三、实验题目1.编制一个程序,读取位图并显示在屏幕上,将图像数据化并显示结果,学会如何返回指定点的像素坐标。2.编制一个程序
6、,将RGB彩色图像转换为灰度图像,将灰度图像转换为二值图像。3.编制一个程序,实现二维离散卷积,用于对图像滤波。4.编制一个程序,对任意图像统计灰度值,并在屏幕上绘出直方图。四、实验步骤1.编写程序。2.调试程序。3.写出程序运行结果。五、实验要求1.提交题目1、2的源程序清单、程序流程图及代码各部分的详细说明。2.提交题目3的原始图像和直方图结果。实验二数字图像的基本运算Experiment2OperationofDigitalImageI.experimentalpurpose.1.Understandtheconceptsofpointoperation,algebr
7、aicoperationandgeometricoperation.2.Graspthebasicmethodsofgrayscaletransformation,gradientamplitudeandgeometrictransformation.II.Experimentalprinciple.1.ThepointofoperationInimageprocessing,pointarithmeticisasimplebutimportantclassoftechnologythatallowsusersto
此文档下载收益归作者所有