mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
697 B
29 lines
697 B
13 years ago
|
#include "perf_precomp.hpp"
|
||
|
|
||
|
using namespace std;
|
||
|
using namespace cv;
|
||
|
using namespace perf;
|
||
|
|
||
|
typedef perf::TestBaseWithParam<cv::Size> 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);
|
||
|
}
|