Skip to content

Instantly share code, notes, and snippets.

@atinfinity
Created June 27, 2017 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atinfinity/e68d4f177812b1fe4ecc06eb465ecdee to your computer and use it in GitHub Desktop.
Save atinfinity/e68d4f177812b1fe4ecc06eb465ecdee to your computer and use it in GitHub Desktop.
copyToのテストプログラム
#include <opencv2/core.hpp>
int main(int argc, const char* argv[])
{
cv::Mat img(cv::Size(512, 512), CV_8UC3, cv::Scalar(0, 0, 255));
cv::Mat dst;
cv::Rect empty_roi(0, 0, 0, 0);
img(empty_roi).copyTo(dst);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment