Hi All, Not sure if this is me doing it wrong, or possibly intentional behaviour - but it seems to me when I resample an image using ImageBufAlgo, I can’t resample the entire buffer, only the display window, even when the roi I pass the ImageBufAlog::resample() function is explicitly larger.
e.g. I wish to resample an EXR image, with a 2048x1152 display window, and a 2304x1152 data window into a new buffer that matches the aspect ratio of the data window. However, it seems like no matter what roi I pass, the display window is still used if the roi I pass in is larger. Looking at the code in ImageBufAlgo, it seems full_width and full_height are used to set up the regions for copy, and these would be the displayWindow I guess. Is there any way to easily accomplish this without resorting to a drity hack, like temporarily resetting the displayWindow of the imageSpec to the dataWindow for this operation? Thanks, -Pete _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
