perf_phasecorr.cpp 632 B

12345678910111213141516171819202122
  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. namespace opencv_test {
  6. typedef TestBaseWithParam<Size > CreateHanningWindowFixture;
  7. PERF_TEST_P( CreateHanningWindowFixture, CreateHanningWindow, Values(szVGA, sz1080p))
  8. {
  9. const Size size = GetParam();
  10. Mat dst(size, CV_32FC1);
  11. declare.in(dst, WARMUP_RNG).out(dst);
  12. TEST_CYCLE() cv::createHanningWindow(dst, size, CV_32FC1);
  13. SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE);
  14. }
  15. } // namespace