On Wed, Jul 4, 2012 at 6:51 AM, Stefan Stavrev <[email protected]> wrote:
> Wow Kevin, thanks for the long reply ;).
>
> This will be tricky to handle, but I might deal with some common cases.
>
> What is a good upper limit for histogram width? 4096? For 16-bit image I
> can't have width 2^16 and draw bins 1:1, it is too much obviously. Do you
> have some big histogram image I can see?
>

You keep trying to put limits on things.  :)  Have you ever heard of
the "Zero, One, Infinity" rule?  I think it would be a good thing to
keep in mind whenever you ask how much of something should be allowed
in an API.  If somebody wants 2^16 bins, they can certainly print an
image that wide.  Or they can zoom into parts of it for detailed
inspection.  Or, they are just using the API a few years from now and
they want to show it on a very high resolution display that hasn't
been invented yet.  Another good idiom to keep in mind is "Mechanism,
not Policy."

A good tool should have lots of uses that the creator never intended.
You shouldn't try to fight your users just because you don't know why
something should be useful.  It's not as if a user who tries to make a
useless histogram is going to die in a fire because you didn't save
them from themselves.
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to