Library/ManagedCuda/NPP/NPPImage_32fC1.cs
/// <summary>
/// image mean and standard deviation. Buffer is internally allocated and freed.
/// </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>
image mean and standard deviation. Buffer is internally allocated and freed.
image mean and standard deviation . Buffer is internally allocated and freed .
public void MeanStdDev(CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask)
		{
			int bufferSize = MeanStdDevMaskedGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MeanStdDevNew.nppiMean_StdDev_32f_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_32f_C1MR", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MeanStdDev ( CudaDeviceVariable < double > mean , CudaDeviceVariable < double > stdDev , NPPImage_8uC1 mask ) { int bufferSize = MeanStdDevMaskedGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MeanStdDevNew . nppiMean_StdDev_32f_C1MR ( _devPtrRoi , _pitch , mask . DevicePointerRoi , mask . Pitch , _sizeRoi , buffer . DevicePointer , mean . DevicePointer , stdDev . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
image mean and standard deviation.
image mean and standard deviation .
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