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

NormL1() public method

image L1 norm. No additional buffer is allocated.
public NormL1 ( CudaDeviceVariable norm, CudaDeviceVariable buffer ) : void
norm 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 NormL1(CudaDeviceVariable<double> norm, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = NormL1GetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

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

Same methods

NPPImage_8uC3::NormL1 ( CudaDeviceVariable norm ) : void
NPPImage_8uC3::NormL1 ( int coi, CudaDeviceVariable norm, NPPImage_8uC1 mask ) : void
NPPImage_8uC3::NormL1 ( int coi, CudaDeviceVariable norm, NPPImage_8uC1 mask, CudaDeviceVariable buffer ) : void
NPPImage_8uC3