The exrstdattr tool that comes with openexr does a similar thing, so you
could look at how it is done there. In short it does the following:
InputFile in (inFileName);
Header header = in.header();
// insert additional attributes to header here
OutputFile out (outFileName, header);
out.copyPixels(in);
--Ken
Nicholas Yue wrote:
Hi,
I am writing a tool to add custom attributes a collection of
existing OpenEXR files.
Looking at the API, I have found methods to retrieve the headers
from the ImfRgbaFile object but they are const.
What are the best practice way of updating/adding attributes to
existing OpenEXR files?
Regards
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/openexr-devel