mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
Merge pull request #25820 from asmorkalov:as/HAL_non_strict_equalizeHist
Relax equalizeHist test for some HAL implementations
This commit is contained in:
commit
be00247ca0
@ -2087,8 +2087,8 @@ TEST_P(Imgproc_Equalize_Hist, accuracy)
|
||||
ASSERT_EQ(CV_8UC1, dst.type());
|
||||
ASSERT_EQ(gold.size(), dst.size());
|
||||
|
||||
int nz = cv::countNonZero(dst != gold);
|
||||
ASSERT_EQ(nz, 0);
|
||||
EXPECT_MAT_NEAR(dst, gold, 1);
|
||||
EXPECT_MAT_N_DIFF(dst, gold, 0.05 * size.area()); // The 5% range could be accomodated to HAL
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(Imgproc_Hist, Imgproc_Equalize_Hist, ::testing::Combine(
|
||||
|
Loading…
Reference in New Issue
Block a user