Index: modules/gpu/src/matrix_reductions.cpp =================================================================== --- modules/gpu/src/matrix_reductions.cpp (revision 8447) +++ modules/gpu/src/matrix_reductions.cpp (working copy) @@ -128,7 +128,8 @@ DeviceBuffer dbuf(2); int bufSize; - nppSafeCall( nppiMeanStdDev8uC1RGetBufferHostSize(sz, &bufSize) ); + //nppSafeCall( nppiMeanStdDev8uC1RGetBufferHostSize(sz, &bufSize) ); + nppSafeCall( nppiMeanStdDevGetBufferHostSize_8u_C1R(sz, &bufSize) ); ensureSizeIsEnough(1, bufSize, CV_8UC1, buf); Index: modules/gpu/src/element_operations.cpp =================================================================== --- modules/gpu/src/element_operations.cpp (revision 8447) +++ modules/gpu/src/element_operations.cpp (working copy) @@ -998,7 +998,9 @@ typedef NppTypeTraits::npp_t npp_t; typedef Npp32u scalar_t; - typedef NppStatus (*func_t)(const Npp16u* pSrc1, int nSrc1Step, Npp16u* pDst, int nDstStep, NppiSize oSizeROI, Npp32u nConstant); + //typedef NppStatus (*func_t)(const Npp16u* pSrc1, int nSrc1Step, Npp16u* pDst, int nDstStep, NppiSize oSizeROI, Npp32u nConstant); + typedef NppStatus (*func_t)(const Npp16u * pSrc1, int nSrc1Step, Npp16u * pDst, int nDstStep, NppiSize oSizeROI, Npp16u nConstant); + }; template ::func_t func> struct NppAbsDiffC