I don't know how HDR images are handled. Let's say an HDR image has range 0-4, is that mapped to 0-1 internally?
I ask because I am not sure if our brightness function should also take min and max parameters, to clamp if adding goes above max or below min(if we add negative value). On 7/26/12, Chris Foster <[email protected]> wrote: > On Tue, Jul 24, 2012 at 4:18 AM, Larry Gritz <[email protected]> wrote: >> On Jul 23, 2012, at 9:51 AM, Stefan Stavrev wrote: >> >>> "oiiotool A.png --pattern constant=0.1,0.1,0.1 1x1 3 --add -o B.png" >> >> I really like the idea of overloading --add to understand that if it gets >> an >> argument that is obviously a number or comma-separated list of numbers > > Right. Good idea Stefan! However can we support this with our current > command line parser? --add doesn't normally take any parameters... > > We could do it fairly easily with an optional argument: > > oiiotool A.png --add:value=0.1,0.2,0.3 -o B.png > > Or perhaps just choose a different name rather than try to overload --add? > > ~Chris > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
