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

NormRel_L2() public method

image NormRel_L2. Buffer is internally allocated and freed.
public NormRel_L2 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormRel ) : void
tpl NPPImage_8uC3 template image.
pNormRel CudaDeviceVariable Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))
return void
        public void NormRel_L2(NPPImage_8uC3 tpl, CudaDeviceVariable<double> pNormRel)
        {
            int bufferSize = NormRelL2GetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

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

Same methods

NPPImage_8uC3::NormRel_L2 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormRel, CudaDeviceVariable buffer ) : void
NPPImage_8uC3::NormRel_L2 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormRel, int nCOI, NPPImage_8uC1 pMask ) : void
NPPImage_8uC3::NormRel_L2 ( NPPImage_8uC3 tpl, CudaDeviceVariable pNormRel, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable buffer ) : void
NPPImage_8uC3