Library/ManagedCuda/NPP/NPPImage_8sC1.cs
/// <summary>
/// image mean and standard deviation. 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="buffer">Allocated device memory with size of at <see cref="MeanStdDevGetBufferHostSize()"/></param>
image mean and standard deviation. No additional buffer is allocated.
image mean and standard deviation . No additional buffer is allocated .
public void MeanStdDev(CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = MeanStdDevGetBufferHostSize();
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.MeanStdDevNew.nppiMean_StdDev_8s_C1R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, mean.DevicePointer, stdDev.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMean_StdDev_8s_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void MeanStdDev ( CudaDeviceVariable < double > mean , CudaDeviceVariable < double > stdDev , CudaDeviceVariable < byte > buffer ) { int bufferSize = MeanStdDevGetBufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . MeanStdDevNew . nppiMean_StdDev_8s_C1R ( _devPtrRoi , _pitch , _sizeRoi , buffer . DevicePointer , mean . DevicePointer , stdDev . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; 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 )
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at