Path: blob/master/modules/video/perf/opencl/perf_motempl.cpp
16344 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html.34// Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.5// Third party copyrights are property of their respective owners.67#include "../perf_precomp.hpp"8#include "opencv2/ts/ocl_perf.hpp"910#if 0 //def HAVE_OPENCL1112namespace opencv_test {13namespace ocl {1415///////////// UpdateMotionHistory ////////////////////////1617typedef TestBaseWithParam<Size> UpdateMotionHistoryFixture;1819OCL_PERF_TEST_P(UpdateMotionHistoryFixture, UpdateMotionHistory, OCL_TEST_SIZES)20{21const Size size = GetParam();22checkDeviceMaxMemoryAllocSize(size, CV_32FC1);2324UMat silhouette(size, CV_8UC1), mhi(size, CV_32FC1);25randu(silhouette, -5, 5);26declare.in(mhi, WARMUP_RNG);2728OCL_TEST_CYCLE() cv::updateMotionHistory(silhouette, mhi, 1, 0.5);2930SANITY_CHECK(mhi);31}3233} } // namespace opencv_test::ocl3435#endif // HAVE_OPENCL363738