#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main()
{
Mat girl = imread(“1.jpg”);
namedWindow(“动漫窗口”);
imshow(“动漫窗口”,girl);
Mat image = imread(“dota.jpg”,199);
Mat logo = imread(“dota_logo.jpg”);
namedWindow(“原画图”);
imshow(“原画图”, image);
namedWindow(“logo图”);
imshow(“logo图”, logo);
Mat imageROT;
imageROT = image(Rect(800,350,logo.cols,logo.rows));
addWeighted(imageROT,0.5,logo,0.3,0.,imageROT);
namedWindow(“原画图+logo图”);
imshow(“原画图+logo图”,image);
imwrite(“由imwrite生成的图片.jpg”,image);
waitKey(0);
}