From cc537741bcea6e1f67fffd7e028a213a9f943344 Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Wed, 1 Dec 2010 11:00:33 +0000 Subject: [PATCH] fixed some gpu tests --- tests/gpu/src/imgproc_gpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gpu/src/imgproc_gpu.cpp b/tests/gpu/src/imgproc_gpu.cpp index 6102015f75..f621782ece 100644 --- a/tests/gpu/src/imgproc_gpu.cpp +++ b/tests/gpu/src/imgproc_gpu.cpp @@ -616,7 +616,7 @@ struct CV_GpuCornerHarrisTest: CvTest { for (int i = 0; i < 5; ++i) { - int rows = 1 + rand() % 300, cols = 1 + rand() % 300; + int rows = 10 + rand() % 300, cols = 10 + rand() % 300; if (!compareToCpuTest(rows, cols, CV_32F, 1 + rand() % 5, 1 + 2 * (rand() % 4))) return; if (!compareToCpuTest(rows, cols, CV_32F, 1 + rand() % 5, -1)) return; } @@ -678,7 +678,7 @@ struct CV_GpuCornerMinEigenValTest: CvTest { for (int i = 0; i < 3; ++i) { - int rows = 1 + rand() % 300, cols = 1 + rand() % 300; + int rows = 10 + rand() % 300, cols = 10 + rand() % 300; if (!compareToCpuTest(rows, cols, CV_32F, 1 + rand() % 5, -1)) return; if (!compareToCpuTest(rows, cols, CV_32F, 1 + rand() % 5, 1 + 2 * (rand() % 4))) return; }