2014-02-02 21:47:06 +08:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
// Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
|
|
|
|
// Third party copyrights are property of their respective owners.
|
|
|
|
|
2014-08-01 22:11:20 +08:00
|
|
|
#include "../perf_precomp.hpp"
|
2014-02-02 21:47:06 +08:00
|
|
|
#include "opencv2/ts/ocl_perf.hpp"
|
|
|
|
|
2014-08-11 03:24:16 +08:00
|
|
|
#if 0 //def HAVE_OPENCL
|
2014-02-02 21:47:06 +08:00
|
|
|
|
2017-11-05 21:48:40 +08:00
|
|
|
namespace opencv_test {
|
2014-02-02 21:47:06 +08:00
|
|
|
namespace ocl {
|
|
|
|
|
|
|
|
///////////// UpdateMotionHistory ////////////////////////
|
|
|
|
|
|
|
|
typedef TestBaseWithParam<Size> UpdateMotionHistoryFixture;
|
|
|
|
|
|
|
|
OCL_PERF_TEST_P(UpdateMotionHistoryFixture, UpdateMotionHistory, OCL_TEST_SIZES)
|
|
|
|
{
|
|
|
|
const Size size = GetParam();
|
|
|
|
checkDeviceMaxMemoryAllocSize(size, CV_32FC1);
|
|
|
|
|
|
|
|
UMat silhouette(size, CV_8UC1), mhi(size, CV_32FC1);
|
|
|
|
randu(silhouette, -5, 5);
|
|
|
|
declare.in(mhi, WARMUP_RNG);
|
|
|
|
|
|
|
|
OCL_TEST_CYCLE() cv::updateMotionHistory(silhouette, mhi, 1, 0.5);
|
|
|
|
|
|
|
|
SANITY_CHECK(mhi);
|
|
|
|
}
|
|
|
|
|
2017-11-05 21:48:40 +08:00
|
|
|
} } // namespace opencv_test::ocl
|
2014-02-02 21:47:06 +08:00
|
|
|
|
|
|
|
#endif // HAVE_OPENCL
|