标签:roi imshow opencv2 ace color log ios 替换 pac
#include <opencv2/opencv.hpp> #include <iostream> using namespace cv; int main() { Mat img=imread("1.jpg"); Mat imgTemp=img.clone(); Mat logo = imread("2.jpg"); Mat roi = imgTemp(Rect(50, 50, logo.cols, logo.rows)); logo.copyTo(roi); imshow("logo", imgTemp); }
标签:roi imshow opencv2 ace color log ios 替换 pac
原文地址:https://www.cnblogs.com/hsy1941/p/11699630.html