From 404f650cc670e89fed79df4781374141d9ca27dc Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Fri, 28 Apr 2017 15:23:08 +0200 Subject: [PATCH] Changed constructor to prevent IDE error Signed-off-by: Jim Martens --- ccv/sheet2/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccv/sheet2/main.cpp b/ccv/sheet2/main.cpp index 2a05e48..4f8fc14 100644 --- a/ccv/sheet2/main.cpp +++ b/ccv/sheet2/main.cpp @@ -4,7 +4,8 @@ int main() { // exercise 1 - cv::Mat M = (cv::Mat_(4, 4) << 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); + float g[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; + cv::Mat M(4, 4, CV_8UC1, g); std::cout << M << std::endl << std::endl; // exercise 2 M.at(1, 2) = 100;