2011-04-06 48 views
1

我的图像的信息如下: imfinfo( 'drosophila.tif')如何解释TIFF图像中的元信息?

ANS =

    Filename: 'drosophila.tif' 
       FileModDate: '10-Nov-2009 18:52:42' 
       FileSize: 264768 
        Format: 'tif' 
      FormatVersion: [] 
        Width: 512 
        Height: 512 
       BitDepth: 8 
       ColorType: 'grayscale' 
      FormatSignature: [73 73 42 0] 
       ByteOrder: 'little-endian' 
      NewSubFileType: 0 
      BitsPerSample: 8 
       Compression: 'PackBits' 
PhotometricInterpretation: 'BlackIsZero' 
      StripOffsets: [32x1 double] 
      SamplesPerPixel: 1 
      RowsPerStrip: 16 
      StripByteCounts: [32x1 double] 
       XResolution: 72 
       YResolution: 72 
      ResolutionUnit: 'Inch' 
       Colormap: [] 
     PlanarConfiguration: 'Chunky' 
       TileWidth: [] 
       TileLength: [] 
       TileOffsets: [] 
      TileByteCounts: [] 
       Orientation: 1 
       FillOrder: 1 
     GrayResponseUnit: 0.0100 
      MaxSampleValue: 255 
      MinSampleValue: 0 
      Thresholding: 1 
        Offset: 264322 

它示出了位深度被8.什么意思? 如何计算文件大小? 笏信息存储在格式签名

回答

4
  • 这意味着每个RGB颜色呈现具有8个比特或用于颜色256个可能值。

  • 文件大小:ColorType:'灰度' - 这意味着每个像素只有1个字节。 512高度* 512宽度= 262144字节。 262144个字节被压​​缩(压缩:'PackBits'),并且在文件的开头添加一些带有信息的标题。共264768字节。

+0

您可以告诉我有关标题信息 – user1234 2011-04-07 07:34:59

+0

标题是包含以某种二进制形式显示的信息的部分。有关更多信息,请参阅TIFF格式规范。 http://en.wikipedia.org/wiki/Tagged_Image_File_Format – Ross 2011-04-07 07:45:01