2011-10-20 09:32:12 +02:00
|
|
|
#include "perf_precomp.hpp"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace cv;
|
|
|
|
using namespace perf;
|
|
|
|
|
|
|
|
#define MAT_TYPES_DFT CV_32FC1, CV_64FC1
|
|
|
|
#define MAT_SIZES_DFT sz1080p, sz2K
|
|
|
|
#define TEST_MATS_DFT testing::Combine( testing::Values(MAT_SIZES_DFT), testing::Values(MAT_TYPES_DFT) )
|
|
|
|
|
|
|
|
PERF_TEST_P(Size_MatType, dft, TEST_MATS_DFT)
|
|
|
|
{
|
|
|
|
Size sz = std::tr1::get<0>(GetParam());
|
|
|
|
int type = std::tr1::get<1>(GetParam());
|
|
|
|
|
|
|
|
Mat src(sz, type);
|
|
|
|
Mat dst(sz, type);
|
|
|
|
|
|
|
|
declare.in(src, WARMUP_RNG);
|
|
|
|
declare.time(60);
|
|
|
|
|
|
|
|
TEST_CYCLE(100)
|
2011-10-21 10:28:33 +02:00
|
|
|
{
|
|
|
|
dft(src, dst);
|
|
|
|
}
|
2011-10-20 09:32:12 +02:00
|
|
|
|
2011-12-27 17:37:24 +01:00
|
|
|
SANITY_CHECK(dst, 1e-5);
|
2011-12-28 14:29:27 +01:00
|
|
|
}
|