Skip to content

Instantly share code, notes, and snippets.

@alfredplpl
Created October 16, 2013 13:37
Show Gist options
  • Save alfredplpl/7007835 to your computer and use it in GitHub Desktop.
Save alfredplpl/7007835 to your computer and use it in GitHub Desktop.
OpenCV: paste a image
cv::Mat image=cv::imread("./image.png",-1);
cv::Rect rect(startColumn,startRow,image.cols,image.rows);
cv::Mat subdst=dst(rect);
image.copyTo(subdst);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment