1 #include "perf_precomp.hpp"
2 
3 using namespace std;
4 using namespace cv;
5 using namespace perf;
6 using namespace testing;
7 using std::tr1::make_tuple;
8 using std::tr1::get;
9 
10 typedef TestBaseWithParam<Size > CreateHanningWindowFixture;
11 
PERF_TEST_P(CreateHanningWindowFixture,CreateHanningWindow,Values (szVGA,sz1080p))12 PERF_TEST_P( CreateHanningWindowFixture, CreateHanningWindow, Values(szVGA, sz1080p))
13 {
14     const Size size = GetParam();
15     Mat dst(size, CV_32FC1);
16 
17     declare.in(dst, WARMUP_RNG).out(dst);
18 
19     TEST_CYCLE() cv::createHanningWindow(dst, size, CV_32FC1);
20 
21     SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE);
22 }
23