Mat img1 = imread(imageleft, -1);
Mat img2 = imread(imageright, -1);
Size img_size = img1.size();
Mat img_new(img_size.height, img_size.width*2, img1.type() );Mat part;
part = img_new(cv::Rect(0,0,img_size.width,img_size.height));
img1.copyTo(part);
//重點在這裏, 將 part 指向新影像的右半邊, 然後將第二張影像(img2)複製過去。
part = pair(cv::Rect(img_size.width,0,img_size.width,img_size.height));
img2.copyTo(part);
imwrite( new_image_naem, img_new);