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

Mean() public method

image mean with 64-bit double precision result. No additional buffer is allocated.
public Mean ( CudaDeviceVariable mean, CudaDeviceVariable buffer ) : void
mean CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(double)
buffer CudaDeviceVariable Allocated device memory with size of at
return void
        public void Mean(CudaDeviceVariable<double> mean, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = MeanGetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

            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));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::Mean ( CudaDeviceVariable mean ) : 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