Alternative interpolate method for smooth pixelation ?

Mar 23, 2010 at 5:17pm

Alternative interpolate method for smooth pixelation ?

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 ?



  1. Image_10.png
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 @dimscale or manually set the slab dimensions with @adapt 0.

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 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 ?



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

Check out 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.

Mar 24, 2010 at 12:10am

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


You must be logged in to reply to this topic.