fixed clone of empty matrix

This commit is contained in:
Ilya Lavrenov
2016-07-14 16:36:57 +03:00
parent ce05d6cb89
commit 87ae4e0564
5 changed files with 12 additions and 12 deletions

View File

@@ -706,7 +706,6 @@ protected:
EXPECT_EQ(_em_in.rows , _em_out.rows);
EXPECT_EQ(_em_in.cols , _em_out.cols);
EXPECT_EQ(_em_in.dims , _em_out.dims);
EXPECT_EQ(_em_in.depth(), _em_out.depth());
EXPECT_TRUE(_em_in.empty());

View File

@@ -1538,3 +1538,11 @@ TEST(Mat, push_back_vector)
ASSERT_EQ(6, result.rows);
}
TEST(Mat, regression_5917_clone_empty)
{
Mat cloned;
Mat_<Point2f> source(5, 0);
ASSERT_NO_THROW(cloned = source.clone());
}