Hi Stefan,

On Fri, Jun 29, 2012 at 10:49 AM, Stefan Stavrev
<[email protected]> wrote:
> The contrast algorithm for color images needs histograms
> so I will have to leave it for now and do histograms first.

Which contrast formula do you plan to use, and how does it need
a histogram exactly?  I imagine exposing the contrast function
parameters to the user rather than choosing them automatically.

> It compiles fine but I have not tested it. For that I will need to
> add the histogram drawing function, but first I need to get
> some feedback on this. I would suggest that you ignore details
> for now and just look at the API.

It looks pretty nice.  Without knowing what it's used for it's a bit
difficult to know whether it will do everything we need.

> Once API is approved I will add the histogram drawing function and
> will be able to test it in detail.

I assume you mean to produce an image of the 2D graph of count vs
intensity from oiiotool?  The problem with doing that is you're limited
to simply eyeballing the data and it's a bit hard to process it any
further.  In oiiotool, maybe it would make more sense to produce a 1D
image as a result (not in the basic API though - the std::vector is good
there), with the option of writing the image values directly to stdout
from oiiotool for further processing?

For example,

oiiotool foo.tiff -histogram -dumptostdout

That could produce the list of values in the histogram on stdout, which
could then be visualized using whichever graph plotting software you
please.

Then again, perhaps this idea is a bit of a blight on the oiiotool
architecture.  Thoughts anyone?

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

Reply via email to