函数原型:void cvResize( const CvArr* src, CvArr* dst, int interpolation=CV_INTER_LINEAR );
src:源图像
dst :目标图像
interpolation:修改、插补的方法,取值如下:
CV_INTER_NN - 最近-邻居插补
·
CV_INTER_LINEAR - 双线性插值(默认方法)
CV_INTER_AREA - 像素面积相关重采样。当缩小图像时,该方法可以避免波纹的出现。当放大图像时,类似于方法:
CV_INTER_NN。(It is the preferred method for image decimation that gives moire-free results. In case of zooming it is similar to CV_INTER_NN method. )
CV_INTER_CUBIC -
双三次插值。