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

Mean() public method

image mean with 64-bit double precision result. Buffer is internally allocated and freed.
public Mean ( CudaDeviceVariable mean ) : void
mean CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(double)
return void
        public void Mean(CudaDeviceVariable<double> mean)
        {
            int bufferSize = MeanGetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

            status = NPPNativeMethods.NPPi.MeanNew.nppiMean_8u_C3R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, mean.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMean_8u_C3R", status));
            buffer.Dispose();
            NPPException.CheckNppStatus(status, this);
        }

Same methods

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