文档详情

数字图像的matlab基本操作..doc

发布:2017-01-10约4.6千字共10页下载文档
文本预览下载声明
数字图像的基本操作 姓名: 吴 风 学号:20101302012 班级:通信10-3班 一、常用函数 3、利用imread( )函数读取一幅图像,假设其名为flower.tif,存入一个数组中;.利用whos 命令提取该读入图像flower.tif的基本信息;利用imshow()函数来显示这幅图像;利用imfinfo函数来获取图像文件的压缩,颜色等等其他的详细信息;利用imwrite()函数来压缩这幅图象,将其保存为一幅压缩了像素的jpg文件,设为flower.jpg语法:imwrite(原图像,新图像,‘quality’,q), q取0-100。同样利用imwrite()函数将最初读入的tif图象另存为一幅bmp图像设为flower.bmp。 a=imread(flow.tif); whos, imshow(a), imfinfo(flow.tif) 结果: Name Size Bytes Class Attributes a 296x394x3 349872 uint8 ans 1x1 1888 struct b 300x300x3 270000 uint8 c 256x256x3 196608 uint8 ans = Filename: flow.tif FileModDate: 09-十月-2013 10:33:13 FileSize: 270528 Format: tif FormatVersion: [] Width: 394 Height: 296 BitDepth: 24 ColorType: truecolor FormatSignature: [73 73 42 0] ByteOrder: little-endian NewSubFileType: 0 BitsPerSample: [8 8 8] Compression: LZW PhotometricInterpretation: RGB StripOffsets: [30x1 double] SamplesPerPixel: 3 RowsPerStrip: 10 StripByteCounts: [30x1 double] XResolution: 220 YResolution: 220 ResolutionUnit: Inch Colormap: [] PlanarConfiguration: Chunky TileWidth: [] TileLength: [] TileOffsets: [] TileByteCounts: [] Orientation: 1 FillOrder: 1 GrayResponseUnit: 0.0100 MaxSampleValue: [255 255 255] MinSampleValue: 0 Thresholding: 1
显示全部
相似文档