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,
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.
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.
thanks, this sounds interesting !
i'm looking at it...