Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/imgproc/perf/perf_phasecorr.cpp
16339 views
1
// This file is part of OpenCV project.
2
// It is subject to the license terms in the LICENSE file found in the top-level directory
3
// of this distribution and at http://opencv.org/license.html.
4
#include "perf_precomp.hpp"
5
6
namespace opencv_test {
7
8
typedef TestBaseWithParam<Size > CreateHanningWindowFixture;
9
10
PERF_TEST_P( CreateHanningWindowFixture, CreateHanningWindow, Values(szVGA, sz1080p))
11
{
12
const Size size = GetParam();
13
Mat dst(size, CV_32FC1);
14
15
declare.in(dst, WARMUP_RNG).out(dst);
16
17
TEST_CYCLE() cv::createHanningWindow(dst, size, CV_32FC1);
18
19
SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE);
20
}
21
22
} // namespace
23
24