【问题标题】:PIL: What does the 'I' band in a TIFF file representPIL:TIFF 文件中的“I”带代表什么
【发布时间】:2020-11-13 00:13:15
【问题描述】:

我有一张用热像仪拍摄的 TIFF 图像。图像看起来是灰度的,没有任何视觉颜色。

当使用 PIL 处理图像时,getbands() 会生成一个类型为“I”的单波段。这个“我”乐队代表什么?我找不到任何文档。

此外,getdata() 函数显示的所有像素数据的值大约为 22,000。我假设这是某种基于位数的数据编码,但它不符合正常的 RGB(A) 值范围。

【问题讨论】:

    标签: python-3.x image python-imaging-library


    【解决方案1】:

    https://pillow.readthedocs.io/en/stable/handbook/concepts.html

    这里说:I = (32 位有符号整数像素)

    【讨论】:

      猜你喜欢
      • 2020-07-20
      • 2017-06-03
      • 1970-01-01
      • 2020-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-13
      相关资源
      最近更新 更多