1 / 41
文档名称:

数字图像处理-----MATLAB图像处理.ppt

格式:ppt   大小:3,036KB   页数:41页
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

数字图像处理-----MATLAB图像处理.ppt

上传人:daoqqzhuanyongyou2 2019/1/30 文件大小:2.96 MB

下载得到文件列表

数字图像处理-----MATLAB图像处理.ppt

文档介绍

文档介绍:数字图像处理-----MATLAB图像处理概述1、MATLAB中的图像和图像处理工具箱MATLAB中大多数是用二维数据(矩阵)double(64位)浮点型,或uint8(8位无符号整数)、uint16(16位无符号整数)来存储的,矩阵中的每一个无素对应图像中的一个像素(pixel).例如:一幅由200行300列不同灰度值的点组成的图像可以用200*300的矩阵来存储;对于彩***像,如RGB图像,需要用三维数组来存储;图像文件格式MATLAB支持下列图像文件格式:bmp(microsoftwindowsbitmap,位图)hdf(hierarchicaldataformat,层次数据)jpeg(jointphotographicexpertgroup,静止图像压缩标准)pcx(paintbrush,画刷格式)png(workgraphics,可移植网络图像)tiff(taggedimagefileformat,标记图像文件)xwd(xwindowdump)gif(graphicsinterchangeformat,图形交换)MATLAB的图像类型二值图像(Binary):图像的取值为0或1;索引图像(Indexed,pseudocolor):图像为m*n矩阵,矩阵元素的值指向颜色映像表(colormap);灰度图像(intensity,grayscale,graylevel):图为m*n矩阵,矩阵元素的值指的是灰度值。对singleordouble矩阵取值范围为[0,1],对uint8矩阵取值范围为[0,255],对uint16矩阵取值范围为[0,65535],对uint16矩阵取值范围为[-32768,32768];真彩***像(RGB):图像为m*n*3矩阵;二值图像索引图像灰度图像真彩***像图像的读写与显示常用函数:imread;imwrite;imshow;imagesc;colormap(可以自定义颜色映射矩阵)例如:a=imread('D:\MATLAB\work\cy\wavelet\lena\');figure,imshow(a,[]),title(‘原始图像');或:figure,);colormap(gray);MATLAB函数图像类型转换函数gray2ind:Convertagrayscaleimagetoanindexedimage;grayslice:Convertagrayscaleimage,indexedimage,ortruecolorimage,toabinaryimage;ind2gray:Convertanindexedimagetoagrayscaleimage;ind2rgb:Convertanindexedimagetoatruecolorimage;mat2gray:Convertadatamatrixtoagrayscaleimage,byscalingthedata;rgb2gray:Convertatruecolorimagetoagrayscaleimage;rgb2ind:Convertatruecolorimagetoanindexedimage

最近更新