Created
June 27, 2017 12:51
-
-
Save atinfinity/e68d4f177812b1fe4ecc06eb465ecdee to your computer and use it in GitHub Desktop.
copyToのテストプログラム
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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