typedef NppTypeTraits<CV_16U>::npp_t npp_t;\r
typedef Npp32u scalar_t;\r
\r
+#if (CUDA_VERSION <= 4020)\r
typedef NppStatus (*func_t)(const Npp16u* pSrc1, int nSrc1Step, Npp16u* pDst, int nDstStep, NppiSize oSizeROI, Npp32u nConstant);\r
+#else\r
+ typedef NppStatus (*func_t)(const Npp16u * pSrc1, int nSrc1Step, Npp16u * pDst, int nDstStep, NppiSize oSizeROI, Npp16u nConstant);\r
+#endif\r
};\r
\r
template <int DEPTH, typename NppAbsDiffCFunc<DEPTH>::func_t func> struct NppAbsDiffC\r
DeviceBuffer dbuf(2);\r
\r
int bufSize;\r
+#if (CUDA_VERSION <= 4020)\r
nppSafeCall( nppiMeanStdDev8uC1RGetBufferHostSize(sz, &bufSize) );\r
+#else\r
+ nppSafeCall( nppiMeanStdDevGetBufferHostSize_8u_C1R(sz, &bufSize) );\r
+#endif\r
\r
ensureSizeIsEnough(1, bufSize, CV_8UC1, buf);\r
\r