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

NormDiff_L1() public method

image NormDiff_L1. Buffer is internally allocated and freed.
public NormDiff_L1 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormDiff ) : void
tpl NPPImage_8uC3 template image.
pNormDiff CudaDeviceVariable Pointer to the computed L1-norm of differences. (3 * sizeof(double))
return void
        public void NormDiff_L1(NPPImage_8uC3 tpl, CudaDeviceVariable<double> pNormDiff)
        {
            int bufferSize = NormDiffL1GetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

            status = NPPNativeMethods.NPPi.NormDiff.nppiNormDiff_L1_8u_C3R(_devPtrRoi, _pitch, tpl.DevicePointerRoi, tpl.Pitch, _sizeRoi, pNormDiff.DevicePointer, buffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiNormDiff_L1_8u_C3R", status));
            buffer.Dispose();
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::NormDiff_L1 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormDiff, CudaDeviceVariable buffer ) : void
NPPImage_8uC3::NormDiff_L1 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormDiff, int nCOI, NPPImage_8uC1 pMask ) : void
NPPImage_8uC3::NormDiff_L1 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormDiff, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable buffer ) : void
NPPImage_8uC3