mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +08:00
4a297a2443
- removed tr1 usage (dropped in C++17) - moved includes of vector/map/iostream/limits into ts.hpp - require opencv_test + anonymous namespace (added compile check) - fixed norm() usage (must be from cvtest::norm for checks) and other conflict functions - added missing license headers
23 lines
632 B
C++
23 lines
632 B
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
#include "perf_precomp.hpp"
|
|
|
|
namespace opencv_test {
|
|
|
|
typedef TestBaseWithParam<Size > CreateHanningWindowFixture;
|
|
|
|
PERF_TEST_P( CreateHanningWindowFixture, CreateHanningWindow, Values(szVGA, sz1080p))
|
|
{
|
|
const Size size = GetParam();
|
|
Mat dst(size, CV_32FC1);
|
|
|
|
declare.in(dst, WARMUP_RNG).out(dst);
|
|
|
|
TEST_CYCLE() cv::createHanningWindow(dst, size, CV_32FC1);
|
|
|
|
SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE);
|
|
}
|
|
|
|
} // namespace
|