removed gpu name usage from ocl module
This commit is contained in:
parent
fc37df05ec
commit
e12496d150
@ -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 @@
|
|||||||
#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;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user