Alternative interpolate method for smooth pixelation ?

Mar 23, 2010 at 5:17pm

Alternative interpolate method for smooth pixelation ?

Hi,
I need to put a 2D float32 matrix of poor resolution, let's say 32*50, into a high resolution float32 matrix, using interpolation like in the picture attached below. (made with the jitter tutorial n°14)

…but i'd like to have more options over the interpolation : here the interpolation curve seem to be linear, i'd like smoother interpolation, even perhaps controling its curve, how could i do this simply ?

thanks,

[attachment=127952,263]

Attachments:
  1. Image_10.png
#49305
Mar 23, 2010 at 5:57pm

The gaussian blurs on the GPU may be of interest to you. You can have a smaller input texture and larger output texture by using jit.gl.slab @dimscale or manually set the slab dimensions with @adapt 0.

#177167
Mar 23, 2010 at 7:20pm

hm.. I might not be that much experienced with jitter, i think i missed something, what i get using jit.gl.slab looks like a linear interpolation too, see picture below. where am i wrong ?

Maybe there is a simple way to use jit.expr to do this ?

thanks,

[attachment=127970,265]

Attachments:
  1. Image_14.png
#177168
Mar 23, 2010 at 8:02pm

Check out jit.gl.slab.gauss6x-example.maxpat as a starting point. Then consider smaller input to output dimensions, and using fewer blur operations. This should get you started. Sorry don’t have time to make a specific example for using this for resizing. Maybe later this week.

#177169
Mar 24, 2010 at 12:10am

thanks, this sounds interesting !
i’m looking at it…

#177170

You must be logged in to reply to this topic.