issue 4457

This commit is contained in:
Alexander Alekhin
2015-07-02 15:10:12 +03:00
parent 0b99f70773
commit a6f46d7bb1
2 changed files with 9 additions and 0 deletions

View File

@@ -1178,6 +1178,11 @@ TEST(Core_IOArray, submat_create)
EXPECT_THROW( OutputArray_create2(A.row(0)), cv::Exception );
}
TEST(Core_Mat, issue4457_pass_null_ptr)
{
ASSERT_ANY_THROW(cv::Mat mask(45, 45, CV_32F, 0));
}
TEST(Core_Mat, reshape_1942)
{
cv::Mat A = (cv::Mat_<float>(2,3) << 3.4884074, 1.4159607, 0.78737736, 2.3456569, -0.88010466, 0.3009364);