Commit 2de8487e authored by Roman Donchenko's avatar Roman Donchenko

Fixed a few tests that use uninitialized inputs.

parent bfd84dc5
...@@ -1424,7 +1424,7 @@ TEST(Imgproc_fitLine_vector_2d, regression) ...@@ -1424,7 +1424,7 @@ TEST(Imgproc_fitLine_vector_2d, regression)
TEST(Imgproc_fitLine_Mat_2dC2, 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; std::vector<float> line1;
cv::fitLine(mat1, line1, CV_DIST_L2, 0 ,0 ,0); cv::fitLine(mat1, line1, CV_DIST_L2, 0 ,0 ,0);
...@@ -1444,7 +1444,7 @@ TEST(Imgproc_fitLine_Mat_2dC1, regression) ...@@ -1444,7 +1444,7 @@ TEST(Imgproc_fitLine_Mat_2dC1, regression)
TEST(Imgproc_fitLine_Mat_3dC3, 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; std::vector<float> line1;
cv::fitLine(mat1, line1, CV_DIST_L2, 0 ,0 ,0); cv::fitLine(mat1, line1, CV_DIST_L2, 0 ,0 ,0);
...@@ -1454,7 +1454,7 @@ TEST(Imgproc_fitLine_Mat_3dC3, regression) ...@@ -1454,7 +1454,7 @@ TEST(Imgproc_fitLine_Mat_3dC3, regression)
TEST(Imgproc_fitLine_Mat_3dC1, 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; std::vector<float> line2;
cv::fitLine(mat2, line2, CV_DIST_L2, 0 ,0 ,0); cv::fitLine(mat2, line2, CV_DIST_L2, 0 ,0 ,0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment