OpenCV Resize image

1:C语言方式,当然是cvResize函数,处理IplImage;

2:C++方式,cv::resize:

示例:

cv::Mat matImageResize;


cv::resize( *pMat, matImageResize, cv::Size(200,100) );


cvSaveImage("H:\\resize.bmp", &(IplImage( matImageResize)) );

你可能感兴趣的:(OpenCV Resize image)