I'm writting an application that display 3D-images (surfaces) of a function plot (z=f(x,y)) using OpenGL rendering context. The function values are contained in a 2D matrix and what I want to do is to reduce the size of the matrix before rendering in the context because if the matrix is 1024x1024 the graph takes too much time to be displayed.
I'm considering about filtering the original 1024x1024 matrix in order to
get a smaller one (e.g. 124x124) but keeping a reasonable resolution (it's
not adequate to take 1 point and skip 9, it's necessary some sort of
interpolation). I would like to know if you are aware of any algorithm to do this.
Thanks in advance,