On Fri, Jul 27, 2012 at 5:23 AM, Stefan Stavrev <[email protected]> wrote:
> I suggest we allow the API user to provide both contrast
> and pivot values for each channel.

Do you have any particular use cases in mind?  Does other well known
software support this use case?  I'm on the fence with this one: on the
one hand I can see that it might be useful, on the other hand it makes
the C++ API more difficult to use, unless I'm mistaken.

> But for the oiiotool user I suggest we limit the usage,
> and allow him to specify only one pivot, but he can
> specify contrast values per channel as we talked:
>
> ./oiiotool in.png --contrast:pivot=0.5 1.2,1.5,1.8 -o -out.png

We can also support the usage

./oiiotool in.png --contrast:pivot=0.5,0.5,0.5 1.2,1.5,1.8 -o -out.png

without making the single pivot case more difficult to use.

> For future operations, is it ok to assume we have relatively
> advanced API user, but not so advanced oiiotool user?

IMHO the aim should be to give the oiiotool user as much power as
possible, while making the simple operations straightforward.  So let's
retain flexibility when it doesn't come at much of a cost to usage
complexity (and implementation complexity!)

~Chris
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to