提交 e12496d1 编写于 作者: V Vladislav Vinogradov

removed gpu name usage from ocl module

上级 fc37df05
...@@ -23,12 +23,12 @@ PARAM_TEST_CASE(MomentsTest, MatType, bool) ...@@ -23,12 +23,12 @@ PARAM_TEST_CASE(MomentsTest, MatType, bool)
mat1 = randomMat(rng, size, type, 5, 16, false); mat1 = randomMat(rng, size, type, 5, 16, false);
} }
void Compare(Moments& cpu, Moments& gpu) void Compare(Moments& cpu_moments, Moments& gpu_moments)
{ {
Mat gpu_dst, cpu_dst; Mat gpu_dst, cpu_dst;
HuMoments(cpu, cpu_dst); HuMoments(cpu_moments, cpu_dst);
HuMoments(gpu, gpu_dst); HuMoments(gpu_moments, gpu_dst);
EXPECT_MAT_NEAR(gpu_dst,cpu_dst, .5); EXPECT_MAT_NEAR(gpu_dst, cpu_dst, .5);
} }
}; };
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#define VARNAME(A) #A #define VARNAME(A) #A
using namespace std; using namespace std;
using namespace cv; using namespace cv;
using namespace cv::gpu;
using namespace cvtest; using namespace cvtest;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册