disabled perf test on distance transform

This commit is contained in:
Daniil Osokin
2012-08-14 12:13:42 +04:00
parent f66ac31d62
commit f4d4b0d742
3 changed files with 519 additions and 517 deletions

View File

@@ -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);
}
}*/

View File

@@ -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);
}
}

File diff suppressed because it is too large Load Diff