mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #16208 from shimat:fix_compare_16f
* add cv::compare test when Mat type == CV_16F * add assertion in cv::compare when src.depth() == CV_16F * cv::compare assertion minor fix * core: add more checks
This commit is contained in:
committed by
Alexander Alekhin
parent
1fac1421e5
commit
ee4feb4b09
@@ -2021,6 +2021,14 @@ TEST(Compare, regression_8999)
|
||||
EXPECT_THROW(cv::compare(A, B, C, CMP_LT), cv::Exception);
|
||||
}
|
||||
|
||||
TEST(Compare, regression_16F_do_not_crash)
|
||||
{
|
||||
cv::Mat mat1(2, 2, CV_16F, cv::Scalar(1));
|
||||
cv::Mat mat2(2, 2, CV_16F, cv::Scalar(2));
|
||||
cv::Mat dst;
|
||||
EXPECT_THROW(cv::compare(mat1, mat2, dst, cv::CMP_EQ), cv::Exception);
|
||||
}
|
||||
|
||||
|
||||
TEST(Core_minMaxIdx, regression_9207_1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user