2012-08-14 11:01:52 +02:00
|
|
|
/*#include "perf_precomp.hpp"
|
2012-08-10 13:33:19 +02:00
|
|
|
#include "distransform.cpp"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace cv;
|
|
|
|
using namespace perf;
|
|
|
|
|
|
|
|
typedef perf::TestBaseWithParam<Size> Size_DistanceTransform;
|
|
|
|
|
2012-08-14 11:01:52 +02:00
|
|
|
PERF_TEST_P(Size_DistanceTransform, icvTrueDistTrans, testing::Values(TYPICAL_MAT_SIZES))
|
2012-08-10 13:33:19 +02:00
|
|
|
{
|
|
|
|
Size size = GetParam();
|
|
|
|
Mat src(size, CV_8UC1);
|
|
|
|
Mat dst(size, CV_32FC1);
|
|
|
|
CvMat srcStub = src;
|
|
|
|
CvMat dstStub = dst;
|
|
|
|
|
|
|
|
declare.in(src, WARMUP_RNG).out(dst);
|
|
|
|
|
|
|
|
TEST_CYCLE() icvTrueDistTrans(&srcStub, &dstStub);
|
|
|
|
|
|
|
|
SANITY_CHECK(dst, 1);
|
2012-08-14 10:13:42 +02:00
|
|
|
}*/
|