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