Commit f4d4b0d7 authored by Daniil Osokin's avatar Daniil Osokin

disabled perf test on distance transform

parent f66ac31d
......@@ -7,7 +7,7 @@ using namespace perf;
typedef perf::TestBaseWithParam<Size> Size_DistanceTransform;
PERF_TEST_P(Size_DistanceTransform, icvTrueDistTrans, testing::Values(TYPICAL_MAT_SIZES))
/*PERF_TEST_P(Size_DistanceTransform, icvTrueDistTrans, testing::Values(TYPICAL_MAT_SIZES))
{
Size size = GetParam();
Mat src(size, CV_8UC1);
......@@ -20,4 +20,4 @@ PERF_TEST_P(Size_DistanceTransform, icvTrueDistTrans, testing::Values(TYPICAL_MA
TEST_CYCLE() icvTrueDistTrans(&srcStub, &dstStub);
SANITY_CHECK(dst, 1);
}
}*/
......@@ -25,6 +25,8 @@ PERF_TEST_P(Size_Source, calcHist,
Mat hist;
int channels [] = {0};
int histSize [] = {256};
int dims = 1;
int numberOfImages = 1;
const float r[] = {0.0f, 256.0f};
const float* ranges[] = {r};
......@@ -32,7 +34,7 @@ PERF_TEST_P(Size_Source, calcHist,
declare.in(source, WARMUP_RNG).time(20).iterations(1000);
TEST_CYCLE()
{
calcHist(&source, 1, channels, Mat(), hist, 1, histSize, ranges);
calcHist(&source, numberOfImages, channels, Mat(), hist, dims, histSize, ranges);
}
SANITY_CHECK(hist);
......@@ -53,4 +55,4 @@ PERF_TEST_P(MatSize, equalizeHist,
}
SANITY_CHECK(destination);
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment