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

Sum() public method

image sum with 64-bit double precision result. No additional buffer is allocated.
public Sum ( CudaDeviceVariable result, CudaDeviceVariable buffer ) : void
result 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 Sum(CudaDeviceVariable<double> result, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = SumDoubleGetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

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

Same methods

NPPImage_8uC3::Sum ( CudaDeviceVariable result ) : void
NPPImage_8uC3