Interpolate a 3D array

Try Images lib: imrotate, imresize