diff --git a/modules/imgproc/perf/perf_integral.cpp b/modules/imgproc/perf/perf_integral.cpp index 741b956f3b..ee53b46b99 100644 --- a/modules/imgproc/perf/perf_integral.cpp +++ b/modules/imgproc/perf/perf_integral.cpp @@ -91,4 +91,3 @@ PERF_TEST_P( Size_MatType_OutMatDepth, integral3, SANITY_CHECK(sqsum); SANITY_CHECK(tilted); } - diff --git a/modules/imgproc/perf/perf_morph.cpp b/modules/imgproc/perf/perf_morph.cpp new file mode 100644 index 0000000000..4e448172d4 --- /dev/null +++ b/modules/imgproc/perf/perf_morph.cpp @@ -0,0 +1,28 @@ +#include "perf_precomp.hpp" + +using namespace std; +using namespace cv; +using namespace perf; + +typedef perf::TestBaseWithParam MatSize; + +/* + void erode( InputArray src, OutputArray dst, InputArray kernel, + Point anchor=Point(-1,-1), int iterations=1, + int borderType=BORDER_CONSTANT, + const Scalar& borderValue=morphologyDefaultBorderValue() ); +*/ +PERF_TEST_P( MatSize, erode, ::testing::Values( TYPICAL_MAT_SIZES )) +{ + Size sz = GetParam(); + int type = CV_8UC1; + + Mat src(sz, type); + Mat dst(sz, type); + + declare.in(src, WARMUP_RNG); + + TEST_CYCLE(100) { erode(src, dst, Mat()); } + + SANITY_CHECK(dst); +}