Library/ManagedCuda/NPP/NPPImage_32fC3.cs
/// <summary>
/// image mean with 64-bit double precision result. No additional buffer is allocated.
/// </summary>
/// <param name="coi">Channel of interest (0, 1 or 2)</param>
/// <param name="mean">Allocated device memory with size of at least 3 * sizeof(double)</param>
/// <param name="buffer">Allocated device memory with size of at <see cref="MeanMaskedGetBufferHostSize()"/></param>
/// <param name="mask">If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0.</param>
image mean with 64-bit double precision result. No additional buffer is allocated.
image mean with 64 - bit double precision result . No additional buffer is allocated .
public void Mean(int coi, CudaDeviceVariable<double> mean, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = MeanMaskedGetBufferHostSize();
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.MeanNew.nppiMean_32f_C3CMR(_devPtrRoi, _pitch, mask.DevicePointerRoi, mask.Pitch, _sizeRoi, coi, buffer.DevicePointer, mean.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMean_32f_C3CMR", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Mean ( int coi , CudaDeviceVariable < double > mean , NPPImage_8uC1 mask , CudaDeviceVariable < byte > buffer ) { int bufferSize = MeanMaskedGetBufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . MeanNew . nppiMean_32f_C3CMR ( _devPtrRoi , _pitch , mask . DevicePointerRoi , mask . Pitch , _sizeRoi , coi , buffer . DevicePointer , mean . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
image mean with 64-bit double precision result.
image mean with 64 - bit double precision result .
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 3 * sizeof(double)
Allocated device memory with size of at least 3 * sizeof ( double )
mask
NPPImage_8uC1
If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0.
If the mask is filled with zeros then all the returned values are zeros i . e . pMinIndex = { 0 0 } pMaxIndex = { 0 0 } pMinValue = 0 pMaxValue = 0 .
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at