#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/calib3d/calib3d.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat x=imread("mv4.jpg");
Mat y=imread("mv12.jpg");
Mat ROIx=x(Rect(100,100,y.cols,y.rows));//矩阵
y.copyTo(ROIx);//将y复制到ROIx矩阵中.
namedWindow("x",2);
imshow("x", x);
waitKey(0);
return 0;
}