|
From: | Peter Hillman |
Subject: | Re: [Openexr-user] Change Channel names |
Date: | Mon, 14 Dec 2015 14:15:46 +1300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
You cannot modify a channel name because the ChannelList object
keeps them sorted. If you wish to rename a channel within a list,
you must delete it and reinsert it with the new name, or else
assemble a completely new ChannelList containing the channels the
way you want. You may find the source of the multiview utility instructive: https://github.com/openexr/openexr/blob/master/OpenEXR/exrmultiview/makeMultiView.cpp That reads in channels from the input(s) and writes them out with different names. You could drop a channel from the output file by making these two lines conditional: header.channels().insert (outChanName, inChannel); and outFb.insert (outChanName,image.channel(outChanName).slice()); On 12/12/15 08:02, Aaron Carlisle
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |