Skip to content

Instantly share code, notes, and snippets.

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