Library/ManagedCuda/NPP/NPPImage_16uC3.cs
/// <summary>
/// image mean and standard deviation. Buffer is internally allocated and freed.
/// </summary>
/// <param name="coi">Channel of interest (0, 1 or 2)</param>
/// <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>
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(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev)
		{
			int bufferSize = MeanStdDevGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MeanStdDevNew.nppiMean_StdDev_16u_C3CR(_devPtrRoi, _pitch, _sizeRoi, coi, buffer.DevicePointer, mean.DevicePointer, stdDev.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMean_StdDev_16u_C3CR", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MeanStdDev ( int coi , CudaDeviceVariable < double > mean , CudaDeviceVariable < double > stdDev ) { int bufferSize = MeanStdDevGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MeanStdDevNew . nppiMean_StdDev_16u_C3CR ( _devPtrRoi , _pitch , _sizeRoi , coi , 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 .
coi
int
Channel of interest (0, 1 or 2)
Channel of interest ( 0 1 or 2 )
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 )