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.
26 lines
598 B
26 lines
598 B
#include "perf_precomp.hpp" |
|
|
|
using namespace std; |
|
using namespace cv; |
|
using namespace perf; |
|
using std::tr1::make_tuple; |
|
using std::tr1::get; |
|
|
|
#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 = get<0>(GetParam()); |
|
int type = get<1>(GetParam()); |
|
|
|
Mat src(sz, type); |
|
Mat dst(sz, type); |
|
|
|
declare.in(src, WARMUP_RNG).time(60); |
|
|
|
TEST_CYCLE() dft(src, dst); |
|
|
|
SANITY_CHECK(dst, 1e-5); |
|
}
|
|
|