Re: Pixel Iterator


I am just trying to clamp the values so they do not go outside of the range 0 to 1. I tried using ImageBufAlgo.clamp() but it does not seem to clamp all of the pixel values. In particular, the blue channel seems to not be affected by this clamp call.
This is the call I run: oiio.ImageBufAlgo.clamp(imgBuf, imgBuf, min=0, max=1, clampalpha01=True).

Join to automatically receive all group messages.