mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
OpenCV G-API test for Filter2d has changed:
> Size parameter is changed from int to cv::Size type to allow rectangle kernels
> Kernel creation code is adopted for different kernel sizes to not create only white images on the output
This commit is contained in:
@@ -26,7 +26,10 @@ INSTANTIATE_TEST_CASE_P(Filter2DTestCPU, Filter2DTest,
|
||||
Values(-1, CV_32F),
|
||||
Values(IMGPROC_CPU),
|
||||
Values(AbsExact().to_compare_obj()),
|
||||
Values(3, 4, 5, 7),
|
||||
Values(cv::Size(3, 3),
|
||||
cv::Size(4, 4),
|
||||
cv::Size(5, 5),
|
||||
cv::Size(7, 7)),
|
||||
Values(cv::BORDER_DEFAULT)));
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(BoxFilterTestCPU, BoxFilterTest,
|
||||
|
||||
@@ -214,7 +214,7 @@ INSTANTIATE_TEST_CASE_P(filter2DTestFluid, Filter2DTest,
|
||||
Values(-1, CV_32F),
|
||||
Values(IMGPROC_FLUID),
|
||||
Values(ToleranceFilter(1e-4f, 0.01).to_compare_obj()),
|
||||
Values(3), // add kernel size=4,5,7 when implementation ready
|
||||
Values(cv::Size(3, 3)), // add kernel size=4x4,5x5,7x7 when implementation ready
|
||||
Values(cv::BORDER_DEFAULT)));
|
||||
|
||||
} // opencv_test
|
||||
|
||||
Reference in New Issue
Block a user