compilation with CUDA5.0 (#1982, thanks to Rodrigo)

This commit is contained in:
Anatoly Baksheev
2012-05-25 09:44:00 +00:00
parent 6c86cce21f
commit 543825f2f5
2 changed files with 8 additions and 0 deletions

View File

@@ -128,7 +128,11 @@ void cv::gpu::meanStdDev(const GpuMat& src, Scalar& mean, Scalar& stddev, GpuMat
DeviceBuffer dbuf(2);
int bufSize;
#if (CUDA_VERSION <= 4020)
nppSafeCall( nppiMeanStdDev8uC1RGetBufferHostSize(sz, &bufSize) );
#else
nppSafeCall( nppiMeanStdDevGetBufferHostSize_8u_C1R(sz, &bufSize) );
#endif
ensureSizeIsEnough(1, bufSize, CV_8UC1, buf);