added buf support into gpu::minMax

This commit is contained in:
Alexey Spizhevoy
2010-11-25 10:19:06 +00:00
parent b7e9c6229b
commit fa5422a2ad
4 changed files with 92 additions and 71 deletions

View File

@@ -676,6 +676,8 @@ struct CV_GpuMinMaxTest: public CvTest
{
CV_GpuMinMaxTest(): CvTest("GPU-MinMaxTest", "minMax") {}
cv::gpu::GpuMat buf;
void run(int)
{
int depth_end;
@@ -732,7 +734,7 @@ struct CV_GpuMinMaxTest: public CvTest
double minVal_, maxVal_;
cv::Point minLoc_, maxLoc_;
cv::gpu::minMax(cv::gpu::GpuMat(src), &minVal_, &maxVal_);
cv::gpu::minMax(cv::gpu::GpuMat(src), &minVal_, &maxVal_, buf);
if (abs(minVal - minVal_) > 1e-3f)
{