I propose API and usage for ImageBufAlgo::histogram_match. This is what it does:
Original A: http://postimage.org/image/487txxysp/ Reference image B: http://postimage.org/image/q3ioagg7l/ Matched histogram R: http://postimage.org/image/56tj02n2p/ 1. API: http://ideone.com/zz69B If A.nchannels() != B.nchannels() operation fails. The histogram of channel A[i] is transformed to match the histogram of channel B[i], for 0 <= i < A.nchannels(). The code is dead simple, I don't think we need parallelization. 2. Usage: ./oiiotool A.png B.png --histogram_match -o R.png If you think anything can be added/improved let me know.
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
