fixed minor bugs in gpu module

This commit is contained in:
Alexey Spizhevoy
2010-12-15 12:10:30 +00:00
parent 93e344a962
commit e5eec31be1
2 changed files with 43 additions and 3 deletions

View File

@@ -945,7 +945,7 @@ struct CV_GpuSumTest: CvTest
int typemax = hasNativeDoubleSupport(getDevice()) ? CV_64F : CV_32F;
for (int type = CV_8U; type <= typemax; ++type)
{
gen(1 + rand() % 1000, 1 + rand() % 1000, type, src);
gen(1 + rand() % 500, 1 + rand() % 500, type, src);
a = sum(src);
b = sum(GpuMat(src));
if (abs(a[0] - b[0]) > src.size().area() * max_err)