Have you tried all the choices of specifying which filter you'd like resize to 
use?

    buf = oiio.ImageBufAlgo.resize(buf, roi=roi, filtername="blah")

That's a pretty extreme resizing of low-res data, almost 18x, of data with 
high-contrast edges. I'm wondering what you hope for it to look like under even 
the best of circumstances?

PS. `oiiotool --help` will, somewhere near the bottom, tell you the name of all 
the filters supported.


> On Jul 29, 2021, at 5:25 PM, Daniel Flood <daniel.flood...@gmail.com> wrote:
> 
> Hi folks,
> 
> I'm resizing an unusually small image (some convnet filter activations) from 
> 72x40 to 1280x720.  When I do, I get an excessive dilation or softening, 
> which I suspect is from the default filter being applied.  
> 
> What options are there in terms of filter names?  From digging around the api 
> docs I haven't been able to find them.  
> 
> left image: the 72x40 pixel image
> right image: rescaled to 720p in oiio
> 
> <image.png>
> 
>     buf = ImageBuf(ImageSpec(y, x, 1, oiio.FLOAT))
>     buf.set_pixels(ROI(), npAarray)
>     roi = ROI(0, 1280, 0, 720, 0, 1, 0, 3)
>     buf = oiio.ImageBufAlgo.resize(buf, roi=roi)
> 
> cheers
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.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

Reply via email to