I want use `oiiotool` to apply certain processing to, and then output, every subimage (AOV) in an EXR file.
The -a option works for some things (like resizing each subimage), and I can use `-sisplit` to get the subimages on the stack, then write them all to disk with `-o:all=1`. But there doesn't seem to be a way to apply general processing to each image on the stack, where some operations will have an expression that should evaluated for each image. What I can't seem to figure out, or maybe is missing, is a way to do the equivalent of: FOREACH image on the stack: ...process... or alternatively: WHILE stack size > 0: ...process... POP (What I want to do is resize every subimage, and for certain subimages (1-channel monochrome images), turn it into a heatmap... so I need to apply a "pipeline" involving stuff like --if, --subc {TOP.MINCOLOR}, --colormap, etc. etc. to each subimage. I would also like name the output files based on each subimage's "name" info.) Maybe the answer is to write out the subimages and then process them separately, but for performance reasons it would be nice to do it all in one call to `oiiotool`. My current idea for a workaround is two separate calls: one get the names of all the subimages, and then I build a very long `oiiotool` command line with args that extract, process, and output each named subimage separately. Anyone know a better way? Thanks, Matt _______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org