perf_motempl.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
  5. // Third party copyrights are property of their respective owners.
  6. #include "../perf_precomp.hpp"
  7. #include "opencv2/ts/ocl_perf.hpp"
  8. #if 0 //def HAVE_OPENCL
  9. namespace opencv_test {
  10. namespace ocl {
  11. ///////////// UpdateMotionHistory ////////////////////////
  12. typedef TestBaseWithParam<Size> UpdateMotionHistoryFixture;
  13. OCL_PERF_TEST_P(UpdateMotionHistoryFixture, UpdateMotionHistory, OCL_TEST_SIZES)
  14. {
  15. const Size size = GetParam();
  16. checkDeviceMaxMemoryAllocSize(size, CV_32FC1);
  17. UMat silhouette(size, CV_8UC1), mhi(size, CV_32FC1);
  18. randu(silhouette, -5, 5);
  19. declare.in(mhi, WARMUP_RNG);
  20. OCL_TEST_CYCLE() cv::updateMotionHistory(silhouette, mhi, 1, 0.5);
  21. SANITY_CHECK(mhi);
  22. }
  23. } } // namespace opencv_test::ocl
  24. #endif // HAVE_OPENCL