From 6ce1c0e27c701b48d434cc91268e9cb4fb881ccd Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Mon, 14 Feb 2011 13:58:20 +0000 Subject: [PATCH] removed debug output from tests --- tests/gpu/src/arithm.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/gpu/src/arithm.cpp b/tests/gpu/src/arithm.cpp index 1d575cfb4b..56a5294a23 100644 --- a/tests/gpu/src/arithm.cpp +++ b/tests/gpu/src/arithm.cpp @@ -829,8 +829,8 @@ struct CV_GpuMinMaxLocTest: public CvTest cv::Mat mask(src.size(), CV_8U); rng.fill(mask, RNG::UNIFORM, Scalar(0), Scalar(2)); - // At least one of mask elements must be non zero as OpenCV returns 0 - // in such case, our implementation returns max value + // At least one of the mask elements must be non zero as OpenCV returns 0 + // in such case, when our implementation returns maximum or minimum value mask.at(0, 0) = 1; double minVal, maxVal; @@ -859,10 +859,6 @@ struct CV_GpuMinMaxLocTest: public CvTest cv::Point minLoc_, maxLoc_; cv::gpu::minMaxLoc(cv::gpu::GpuMat(src), &minVal_, &maxVal_, &minLoc_, &maxLoc_, cv::gpu::GpuMat(mask), valbuf, locbuf); - cout << rows << " " << cols << " " << depth << endl; - cout << minVal << " " << minVal_ << endl; - cout << maxVal << " " << maxVal_ << endl; - CHECK(minVal == minVal_, CvTS::FAIL_INVALID_OUTPUT); CHECK(maxVal == maxVal_, CvTS::FAIL_INVALID_OUTPUT); CHECK(0 == memcmp(src.ptr(minLoc.y) + minLoc.x * src.elemSize(), src.ptr(minLoc_.y) + minLoc_.x * src.elemSize(), src.elemSize()),