--- /dev/null
+#include "perf_precomp.hpp"\r
+\r
+using namespace std;\r
+using namespace cv;\r
+using namespace perf;\r
+\r
+typedef perf::TestBaseWithParam<cv::Size> MatSize;\r
+\r
+/*\r
+ void erode( InputArray src, OutputArray dst, InputArray kernel,\r
+ Point anchor=Point(-1,-1), int iterations=1,\r
+ int borderType=BORDER_CONSTANT,\r
+ const Scalar& borderValue=morphologyDefaultBorderValue() );\r
+*/\r
+PERF_TEST_P( MatSize, erode, ::testing::Values( TYPICAL_MAT_SIZES ))\r
+{\r
+ Size sz = GetParam();\r
+ int type = CV_8UC1;\r
+\r
+ Mat src(sz, type);\r
+ Mat dst(sz, type);\r
+\r
+ declare.in(src, WARMUP_RNG);\r
+\r
+ TEST_CYCLE(100) { erode(src, dst, Mat()); }\r
+\r
+ SANITY_CHECK(dst);\r
+}\r