I think something like:

    oiiotool A.exr --ch R  B.exr --ch B  --chappend  A.exr --ch G  --chappend  
--chnames R,G,B  -o mix.exr

To break down what that means,

    * read A, take just its R channel
    * read B, take just its G channel
    * Append channels of the the top two images, yielding A.r,B.g on the top of 
the stack
    * read A again, take just its B channel
    * Append the channels of the top two images, now you have A.r,B.g,A.b
    * Force new channel names R,G,B just in case they carry their old names or 
got confused
    * Output to mix.exr


> On Feb 13, 2020, at 10:23 AM, Jovce Malakovski <jovc...@gmail.com> wrote:
> 
> Hi,
> Is it possible with the command line tool (oiiotool) to shuffle the rgb 
> channels like 
> R from image A 
> G from image B 
> B from image A?
> The current command --ch supports swapping channels of a single image, but is 
> it possible with two images? Or is there some other command that can do this?
> 
> Thanks
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
l...@larrygritz.com




_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to