cubicconvolution/bilinear/nearest算法的matlab实现。