removed debug output from tests

This commit is contained in:
Alexey Spizhevoy 2011-02-14 13:58:20 +00:00
parent 202e239cbd
commit 6ce1c0e27c

View File

@ -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<unsigned char>(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()),