I need to copy a cv::Mat image (source) to an ROI of another (Destination) cv::Mat image.
cv::Mat
I found this reference, but it seems that it does
Did work for me this way:
Mat imgPanel(100, 250, CV_8UC1, Scalar(0)); Mat imgPanelRoi(imgPanel, Rect(0, 0, imgSrc.cols, imgSrc.rows)); imgSrc.copyTo(imgPanelRoi); imshow("imgPanel", imgPanel); waitKey();
I am using Opencv 2.4.9 Based on Andrey's answer.