Python读取tiff

使用 opencv 保存的 tiff 或 tif 格式的图片,会默认使用LZW压缩。nn在python 3 当中,使用下面的库都能打开压缩之后的tiff图片,但是值不正确(或许没有正确解压)。nnnmatplotlibnPILncv2nn要正确的进行解压,需要使用libtiff这个库,使用如下方式打开:nnnnfrom libtiff import TIFFntif = TIFF.open(‘fi…