fix bugs in tests, set device for each test case
Signed-off-by: yao <bitwangyaoyao@gmail.com>
This commit is contained in:
@@ -49,22 +49,16 @@
|
||||
#ifdef HAVE_OPENCL
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
PARAM_TEST_CASE(PyrUp,cv::Size,int)
|
||||
{
|
||||
cv::Size size;
|
||||
int type;
|
||||
std::vector<cv::ocl::Info> oclinfo;
|
||||
|
||||
virtual void SetUp()
|
||||
{
|
||||
int devnums = cv::ocl::getDevice(oclinfo, OPENCV_DEFAULT_OPENCL_DEVICE);
|
||||
CV_Assert(devnums > 0);
|
||||
size = GET_PARAM(0);
|
||||
type = GET_PARAM(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user