Upsampling- Theory and practice