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
OpenCV 2.4:
src.copyTo(dst(Rect(left, top, src.cols, src.rows)));
OpenCV 2.x:
Mat dst_roi = dst(Rect(left, top, src.cols, src.rows)); src.copyTo(dst_roi);