This commit is contained in:
Vadim Pisarevsky
2017-05-23 18:16:40 +03:00
parent b59df66709
commit 4eda8efd42
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -1912,3 +1912,13 @@ TEST(Subtract, scalarc4_matc4)
ASSERT_EQ(0, cv::norm(cv::Mat(5, 5, CV_8UC4, cv::Scalar::all(250)), destImage, cv::NORM_INF));
}
TEST(Compare, empty)
{
cv::Mat temp, dst1, dst2;
cv::compare(temp, temp, dst1, cv::CMP_EQ);
dst2 = temp > 5;
EXPECT_TRUE(dst1.empty());
EXPECT_TRUE(dst2.empty());
}