|
|
|
@ -25,7 +25,7 @@ PERF_TEST_P( Size_MatType_OutMatDepth, integral1, |
|
|
|
|
Mat src(sz, matType); |
|
|
|
|
Mat sum(sz, sdepth); |
|
|
|
|
|
|
|
|
|
declare.in(src, WARMUP_RNG); |
|
|
|
|
declare.in(src, WARMUP_RNG).out(sum); |
|
|
|
|
|
|
|
|
|
TEST_CYCLE(100) { integral(src, sum, sdepth); } |
|
|
|
|
|
|
|
|
@ -37,8 +37,58 @@ PERF_TEST_P( Size_MatType_OutMatDepth, integral1, |
|
|
|
|
/*
|
|
|
|
|
// void integral(InputArray image, OutputArray sum, OutputArray sqsum, int sdepth=-1 )
|
|
|
|
|
*/ |
|
|
|
|
PERF_TEST_P( Size_MatType_OutMatDepth, integral2,
|
|
|
|
|
testing::Combine( |
|
|
|
|
testing::Values( TYPICAL_MAT_SIZES ),
|
|
|
|
|
testing::Values( CV_8UC1, CV_8UC4 ), |
|
|
|
|
testing::Values( CV_32S, CV_32F, CV_64F ) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
Size sz = std::tr1::get<0>(GetParam()); |
|
|
|
|
int matType = std::tr1::get<1>(GetParam()); |
|
|
|
|
int sdepth = std::tr1::get<2>(GetParam()); |
|
|
|
|
|
|
|
|
|
Mat src(sz, matType); |
|
|
|
|
Mat sum(sz, sdepth); |
|
|
|
|
Mat sqsum(sz, sdepth); |
|
|
|
|
|
|
|
|
|
declare.in(src, WARMUP_RNG).out(sum, sqsum); |
|
|
|
|
|
|
|
|
|
TEST_CYCLE(100) { integral(src, sum, sqsum, sdepth); } |
|
|
|
|
|
|
|
|
|
SANITY_CHECK(sum); |
|
|
|
|
SANITY_CHECK(sqsum); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
// void integral(InputArray image, OutputArray sum, OutputArray sqsum, OutputArray tilted, int sdepth=-1 )
|
|
|
|
|
*/ |
|
|
|
|
PERF_TEST_P( Size_MatType_OutMatDepth, integral3,
|
|
|
|
|
testing::Combine( |
|
|
|
|
testing::Values( TYPICAL_MAT_SIZES ),
|
|
|
|
|
testing::Values( CV_8UC1, CV_8UC4 ), |
|
|
|
|
testing::Values( CV_32S, CV_32F, CV_64F ) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
Size sz = std::tr1::get<0>(GetParam()); |
|
|
|
|
int matType = std::tr1::get<1>(GetParam()); |
|
|
|
|
int sdepth = std::tr1::get<2>(GetParam()); |
|
|
|
|
|
|
|
|
|
Mat src(sz, matType); |
|
|
|
|
Mat sum(sz, sdepth); |
|
|
|
|
Mat sqsum(sz, sdepth); |
|
|
|
|
Mat tilted(sz, sdepth); |
|
|
|
|
|
|
|
|
|
declare.in(src, WARMUP_RNG).out(sum, sqsum, tilted); |
|
|
|
|
|
|
|
|
|
TEST_CYCLE(100) { integral(src, sum, sqsum, sdepth); } |
|
|
|
|
|
|
|
|
|
SANITY_CHECK(sum); |
|
|
|
|
SANITY_CHECK(sqsum); |
|
|
|
|
SANITY_CHECK(tilted); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|