From 2de8487e5844a11a99bad39925bb2074be747ed3 Mon Sep 17 00:00:00 2001 From: Roman Donchenko <roman.donchenko@itseez.com> Date: Fri, 6 Sep 2013 15:53:42 +0400 Subject: [PATCH] Fixed a few tests that use uninitialized inputs. --- modules/imgproc/test/test_imgwarp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/imgproc/test/test_imgwarp.cpp b/modules/imgproc/test/test_imgwarp.cpp index 4ea3b76ba..53f7d5c2f 100644 --- a/modules/imgproc/test/test_imgwarp.cpp +++ b/modules/imgproc/test/test_imgwarp.cpp @@ -1424,7 +1424,7 @@ TEST(Imgproc_fitLine_vector_2d, regression) TEST(Imgproc_fitLine_Mat_2dC2, regression) { - cv::Mat mat1(3, 1, CV_32SC2); + cv::Mat mat1 = Mat::zeros(3, 1, CV_32SC2); std::vector<float> line1; cv::fitLine(mat1, line1, CV_DIST_L2, 0 ,0 ,0); @@ -1444,7 +1444,7 @@ TEST(Imgproc_fitLine_Mat_2dC1, regression) TEST(Imgproc_fitLine_Mat_3dC3, regression) { - cv::Mat mat1(2, 1, CV_32SC3); + cv::Mat mat1 = Mat::zeros(2, 1, CV_32SC3); std::vector<float> line1; cv::fitLine(mat1, line1, CV_DIST_L2, 0 ,0 ,0); @@ -1454,7 +1454,7 @@ TEST(Imgproc_fitLine_Mat_3dC3, regression) TEST(Imgproc_fitLine_Mat_3dC1, regression) { - cv::Mat mat2(2, 3, CV_32SC1); + cv::Mat mat2 = Mat::zeros(2, 3, CV_32SC1); std::vector<float> line2; cv::fitLine(mat2, line2, CV_DIST_L2, 0 ,0 ,0);