mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
GAPI Fluid: Enable dynamic dispatching for the Sub kernel.
This commit is contained in:
@@ -436,7 +436,7 @@ PERF_TEST_P_(DivPerfTest, TestPerformance)
|
||||
// FIXIT Unstable input data for divide
|
||||
initMatsRandU(type, sz, dtype, false);
|
||||
|
||||
//This condition need to workaround issue in the OpenCV.
|
||||
//This condition need to workaround the #21044 issue in the OpenCV.
|
||||
//It reinitializes divider matrix without zero values for CV_16S DST type.
|
||||
if (dtype == CV_16S && dtype != type)
|
||||
cv::randu(in_mat2, cv::Scalar::all(1), cv::Scalar::all(255));
|
||||
@@ -482,7 +482,7 @@ PERF_TEST_P_(DivCPerfTest, TestPerformance)
|
||||
// FIXIT Unstable input data for divide
|
||||
initMatsRandU(type, sz, dtype, false);
|
||||
|
||||
//This condition need as workaround the issue in the OpenCV.
|
||||
//This condition need to workaround the #21044 issue in the OpenCV.
|
||||
//It reinitializes divider scalar without zero values for CV_16S DST type.
|
||||
if (dtype == CV_16S || (type == CV_16S && dtype == -1))
|
||||
cv::randu(sc, cv::Scalar::all(1), cv::Scalar::all(SHRT_MAX));
|
||||
@@ -528,7 +528,7 @@ PERF_TEST_P_(DivRCPerfTest, TestPerformance)
|
||||
|
||||
// FIXIT Unstable input data for divide
|
||||
initMatsRandU(type, sz, dtype, false);
|
||||
//This condition need as workaround the bug in the OpenCV.
|
||||
//This condition need to workaround the #21044 issue in the OpenCV.
|
||||
//It reinitializes divider matrix without zero values for CV_16S DST type.
|
||||
if (dtype == CV_16S || (type == CV_16S && dtype == -1))
|
||||
cv::randu(in_mat1, cv::Scalar::all(1), cv::Scalar::all(255));
|
||||
|
||||
@@ -40,10 +40,10 @@ INSTANTIATE_TEST_CASE_P(AddCPerfTestFluid, AddCPerfTest,
|
||||
Values(cv::compile_args(CORE_FLUID))));
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(SubPerfTestFluid, SubPerfTest,
|
||||
Combine(Values(AbsExact().to_compare_f()),
|
||||
Combine(Values(Tolerance_FloatRel_IntAbs(1e-6, 0).to_compare_f()),
|
||||
Values(szSmall128, szVGA, sz720p, sz1080p),
|
||||
Values(CV_8UC1, CV_8UC3, CV_16SC1, CV_32FC1),
|
||||
Values(-1, CV_8U, CV_32F),
|
||||
Values(CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1),
|
||||
Values(-1, CV_8U, CV_16U, CV_16S, CV_32F),
|
||||
Values(cv::compile_args(CORE_FLUID))));
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(SubCPerfTestFluid, SubCPerfTest,
|
||||
|
||||
Reference in New Issue
Block a user