ManagedCuda.NPP.NPPImage_8uC3.MeanStdDev C# (CSharp) Method

MeanStdDev() public method

image mean and standard deviation. Buffer is internally allocated and freed.
public MeanStdDev ( int coi, CudaDeviceVariable mean, CudaDeviceVariable stdDev ) : void
coi int Channel of interest (0, 1 or 2)
mean CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(double)
stdDev CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(double)
return void
        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_8u_C3CR(_devPtrRoi, _pitch, _sizeRoi, coi, buffer.DevicePointer, mean.DevicePointer, stdDev.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMean_StdDev_8u_C3CR", status));
            buffer.Dispose();
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::MeanStdDev ( int coi, CudaDeviceVariable mean, CudaDeviceVariable stdDev, CudaDeviceVariable buffer ) : void
NPPImage_8uC3::MeanStdDev ( int coi, CudaDeviceVariable mean, CudaDeviceVariable stdDev, NPPImage_8uC1 mask ) : void
NPPImage_8uC3::MeanStdDev ( int coi, CudaDeviceVariable mean, CudaDeviceVariable stdDev, NPPImage_8uC1 mask, CudaDeviceVariable buffer ) : void
NPPImage_8uC3