将 .tiff 文件的像素顺序从 rgbrgb 更改为 rrbbgg(交错 non-interleaved)

Change pixel order of a .tiff file from rgbrgb to rrbbgg (interleaved to non-interleaved)

我一直在尝试找到一种创建 non-interleaved .tiff 文件的方法,如下所述:https://questionsomething.wordpress.com/2012/07/26/databending-using-audacity-effects/(在“摄影基础”标题下)。

使用 photoshop 似乎是一件微不足道的事情,但我正在使用 linux 并且不想仅仅为了这个选项而给自己复印一份。如果有人知道一种方法,无论是通过 imagemagick、破解 gimp 还是一些晦涩的程序,我很乐意提出任何建议。

如果用 TIFF 的说法,您有一个连续平面配置的文件,并且想要单独的平面配置。

LibTIFF 附带的 tiffcp 实用程序可以为您完成这项工作。使用 -p separate 选项:

tiffcp -p separate src.tif dest.tif

the man page