Alternative interpolate method for smooth pixelation ?

    Mar 23 2010 | 5:17 pm
    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 ?

    • Mar 23 2010 | 5:57 pm
      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 | 7:20 pm
      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 ?
    • Mar 23 2010 | 8:02 pm
      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 | 12:10 am
      thanks, this sounds interesting !
      i'm looking at it...