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

MeanStdDev() public method

image sum with 64-bit double precision result. No additional buffer is allocated.
public MeanStdDev ( int coi, CudaDeviceVariable mean, CudaDeviceVariable stdDev, NPPImage_8uC1 mask, CudaDeviceVariable buffer ) : 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)
mask NPPImage_8uC1 mask
buffer CudaDeviceVariable Allocated device memory with size of at
return void
        public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = MeanStdDevMaskedGetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

            status = NPPNativeMethods.NPPi.MeanStdDevNew.nppiMean_StdDev_8u_C3CMR(_devPtrRoi, _pitch, mask.DevicePointerRoi, mask.Pitch, _sizeRoi, coi, buffer.DevicePointer, mean.DevicePointer, stdDev.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMean_StdDev_8u_C3CMR", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::MeanStdDev ( int coi, CudaDeviceVariable mean, CudaDeviceVariable stdDev ) : void
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