Re: [Oiio-dev] Normalize values

2019-11-27 Thread Chris Dawlud
irst three channels! >> ImageBufAlgo::contrast_remap(*image, *image, min, max, 0.0f, 1.0f, 1.0, >> 0.5, roi); >> >> Using IBA::computePixelStats and contrast_remap has two big advantages over >> writing the loops yourself: (1) it handles every data type that OIIO >&

[Oiio-dev] Normalize values

2019-11-27 Thread Chris Dawlud
Hi, I want to normalize exr to make even very bright/dark images visible. The idea is simple but I can't figure out how to do this correctly. I have come up with the following, but it doesn't work properly: void ImageLoader :: normalize ( OIIO :: ImageBuf * image ) { using