Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// image sum with 64-bit double precision result. No additional buffer is allocated.
/// </summary>
/// <param name="mean">Allocated device memory with size of at least 1 * sizeof(double)</param>
/// <param name="stdDev">Allocated device memory with size of at least 1 * sizeof(double)</param>
/// <param name="mask">mask</param>
/// <param name="buffer">Allocated device memory with size of at <see cref="MeanStdDevMaskedGetBufferHostSize()"/></param>
image sum with 64-bit double precision result. No additional buffer is allocated.
image sum with 64 - bit double precision result . No additional buffer is allocated .
public void MeanStdDev(CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = MeanStdDevMaskedGetBufferHostSize();
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.MeanStdDevNew.nppiMean_StdDev_16u_C1MR(_devPtrRoi, _pitch, mask.DevicePointerRoi, mask.Pitch, _sizeRoi, buffer.DevicePointer, mean.DevicePointer, stdDev.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMean_StdDev_16u_C1MR", status));
			NPPException.CheckNppStatus(status, this);
		}
public void MeanStdDev ( CudaDeviceVariable < double > mean , CudaDeviceVariable < double > stdDev , NPPImage_8uC1 mask , CudaDeviceVariable < byte > buffer ) { int bufferSize = MeanStdDevMaskedGetBufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . MeanStdDevNew . nppiMean_StdDev_16u_C1MR ( _devPtrRoi , _pitch , mask . DevicePointerRoi , mask . Pitch , _sizeRoi , buffer . DevicePointer , mean . DevicePointer , stdDev . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
image sum with 64-bit double precision result.
image sum with 64 - bit double precision result .
mean
CudaDeviceVariable<double>
Allocated device memory with size of at least 1 * sizeof(double)
Allocated device memory with size of at least 1 * sizeof ( double )
stdDev
CudaDeviceVariable<double>
Allocated device memory with size of at least 1 * sizeof(double)
Allocated device memory with size of at least 1 * sizeof ( double )
mask
NPPImage_8uC1
None
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at