数字图像处理MATLAB图像处理分析.pptVIP

  • 3
  • 0
  • 约1.71千字
  • 约 41页
  • 2020-12-23 发布于福建
  • 举报
数字图像处理 MATLAB图像处理 概述 1、 MATLAB中的图像和图像处理工具箱 O MATLAB中大多数是用二维数据(矩阵) double(64位)浮 点型,或uint8(8位无符号整数)、uint16(16位无符号 整数)来存储的,矩阵中的每一个无素对应图像中的一 个像素( pixel) 例如:一幅由200行300列不同灰度值的点组成的图像可以用 200*300的矩阵来存储 对于彩色图像,如RGB图像,需要用三维数组来存储; 图像文件格式 ◎ MATLAB支持下列图像文件格式: ①bmp( microsoft windows bitmap,位图) ②hdf( Hierarchical data format,层次数据) ③jpeg〔 joint photographic expert group,静止图像压缩标 准) ④px( paintbrush,画刷格式) ◎png( portable network graphics,可移植网络图像) 6 tiff(tagged image file format,标记图像文件) ⑦xwd( X window dump) gif( graphics interchange format,图形交换) Ⅵ ATLAB的图像类型 ◎二值图像( Binary):图像的取值为0或1 ◎索引图像( Indexed, pseudocolor):图像为mn矩阵, 矩阵元素的值指向颜色映像表( colormap); 灰度图像( Intensity, gray scale, gray level):图为m*n矩 阵,矩阵元素的值指的是灰度值。对 single or double矩 阵取值范围为[0,1,对uint8矩阵取值范围为[O,255 ,对uint16矩阵取值范围为0,65535],对uint16矩阵取 值范围为[-32768,32768] 真彩色图像(RGB):图像为mn*3矩阵 值图像 1119090001 L110odadadl L1100dg ooo o索引图像 141212153 151631118 c.45a o灰度图像 230.20,2B70T 0510.2170.850.210.451.43N 53420.10.13072.t90.20510.32560.2483 00.瑟48自,262438440,340,2684 0,2624.3440 29720,0270,202D.222 真彩色图像 168C,25E8c.2S81.25 图像的读写与显示 常用函数 imread; imwrite; imshow; images colormap(可以自定义颜色映射矩阵) 例如: a=imread(D: MATLABIworkicy\wavelet \ena ena512 B MP); figure, dshow(a,D);tec原始图像); 或 figure, images(cc); colormap(gray) Ⅵ ATLAB函数 o图像类型转换函数 gray2ind: Convert a grayscale image to an indexed image grayslice: Convert a grayscale image, indexed image, or truecolor image, bi ind2gray: Convert an indexed image to a grayscale image ind2rgb: Convert an indexed image to a true color image, mat2gray: Convert a data matrix to a grayscale image, by scaling the rgb2gray: Convert a true color image to a grayscale image; rgb2ind: Convert a true color image to an indexed image

文档评论(0)

1亿VIP精品文档

相关文档