That's pretty weird, since oiiotool --resize should just be using the ImageBufAlgo.resize underneath. Hmmm.
Is it just that one image, or any cryptomatte? Can you send me an example image that can reproduce this? (Something that doesn't contain any proprietary imagery, and preferably not super huge.) > On Jul 18, 2022, at 5:41 PM, Max Shooster <mshoos...@laika.com> wrote: > > Hello. I have a cryptomatte pass from an exr. When I run the > oiio.ImageBufAlgo.resize() call on the exr it produces unwanted artifacts. It > seemed to perhaps be related to the filter, but I tried all available filter > options and it did not produce acceptable results. > > Interestingly, using oiiotool's resize works fine, and accurately reproduces > the image at a smaller scale but I need to use the ImageBufAlgo version. > > Do you have any suggestions for how to match oiio.ImageBufAlgo's resize more > closely with oiiotool's resize? I also attempted to use other methods such as > ImageBufAlgo's fit(), and resample() but met similar results. > > To clarify, the line "oiiotool image.exr -resize WidthxHeight" works. But, > running oiio.ImageBufAlgo.resize(ImageBuf, roi=roi) does not work, where > roi = oiio.ROI(0, WIDTH, 0, HEIGHT, 0, 1, 0, ImageBuf.nchannels) > > It is also worth noting that none of the other exrs have trouble with > resizing with ImageBufAlgo's resize only the cryptomatte pass. > > Any assistance is appreciated! > > > _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org> > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org> -- Larry Gritz l...@larrygritz.com
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org