#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;
using namespace cv;
//************************************
// 图像尺寸调整
//************************************
int main()
{
Mat srcImage = imread("C:/Users/hasee-pc/Desktop/girl.jpg");
Mat dstImage1, dstImage2, tmpImage;
tmpImage = srcImage;
imshow("原图", srcImage);
resize(tmpImage, dstImage1, Size(tmpImage.cols / 2, tmpImage.rows / 2), (0, 0), (0, 0), 3);
resize(tmpImage, dstImage2, Size(tmpImage.cols *2, tmpImage.rows *2 ), (0, 0), (0, 0), 3);
imshow("1", dstImage1);
imshow("2", dstImage2);
waitKey(0);
}