使用MATLAB7.1中命令:imfinfo('example.bmp','bmp')
可以查看文件头.
例: imfinfo('li6zRiXBSf5eI.bmp','bmp')
ans =
Filename: 'li6zRiXBSf5eI.bmp'
FileModDate: '20-Mar-2006 12:47:32'
FileSize: 198054
Format: 'bmp'
FormatVersion: 'Version 3 (Microsoft Windows 3.x)'
Width: 300
Height: 220
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: 'BM'
NumColormapEntries: 0
Colormap: []
RedMask: []
GreenMask: []
BlueMask: []
ImageDataOffset: 54
BitmapHeaderSize: 40
NumPlanes: 1
CompressionType: 'none'
BitmapSize: 198000
HorzResolution: 0
VertResolution: 0
NumColorsUsed: 0
NumImportantColors: 0