Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 CImg,我注意到我不能用浮点数据编写 TIFF 图像。CImg 将它们写为 1 字节/每像素整数图像。
¿ 有谁知道是否可以编写浮动图像?或者,您是否知道其他库可以做到这一点。
CImg 可能是所有图像处理库中最好的 tiff 支持之一,非常适合读/写浮点值多光谱图像。但是,您必须通过将宏“cimg_use_tiff”定义为编译变量来将代码与 libtiff 库链接以允许它:
#define cimg_use_tiff #include "CImg.h" .. CImg<float> img(..); img.save_tiff("file_float.tiff");