【问题标题】:How do I interpret the meta information in a TIFF image?如何解释 TIFF 图像中的元信息?
【发布时间】:2011-07-30 12:49:29
【问题描述】:

我的图片信息如下: imfinfo('果蝇.tif')

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。这是什么意思? 文件大小是如何计算的? wat信息存储在格式签名中

【问题讨论】:

    标签: image matlab tiff


    【解决方案1】:
    • 这意味着每种 RGB 颜色都以 8 位或 256 个可能的颜色值呈现。

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-19
    • 2021-03-22
    • 1970-01-01
    • 1970-01-01
    • 2018-03-28
    • 1970-01-01
    • 2011-07-05
    • 1970-01-01
    相关资源
    最近更新 更多