ManagedCuda.NPP.NPPImage_16sC3.Sum C# (CSharp) 메소드

Sum() 공개 메소드

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

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

Same methods

NPPImage_16sC3::Sum ( CudaDeviceVariable result, CudaDeviceVariable buffer ) : void
NPPImage_16sC3