Python: Read and write TIFF 16 bit , three channel , colour images

后端 未结 6 2196
眼角桃花
眼角桃花 2020-12-07 14:32

Does anyone have a method for importing a 16 bit per channel, 3 channel TIFF image in Python?

I have yet to find a method which will preserve the 16 bit depth per ch

6条回答
  •  無奈伤痛
    2020-12-07 15:13

    I recommend using the python bindings to OpenImageIO, it's the standard for dealing with various image formats in the vfx domain (which usually are 16/32bit).

    import OpenImageIO as oiio
    input = oiio.ImageInput.open ("/path/to/image.tif")
    

提交回复
热议问题