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

DilateBorder() public method

Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search. With border control.
public DilateBorder ( NPPImage_8uC3 dest, CudaDeviceVariable Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType ) : void
dest NPPImage_8uC3 Destination image
Mask CudaDeviceVariable Pointer to the start address of the mask array.
aMaskSize NppiSize Width and Height mask array.
oAnchor NppiPoint X and Y offsets of the mask origin frame of reference w.r.t the source pixel.
eBorderType NppiBorderType The border type operation to be applied at source image border boundaries.
return void
        public void DilateBorder(NPPImage_8uC3 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
        {
            status = NPPNativeMethods.NPPi.DilationWithBorderControl.nppiDilateBorder_8u_C3R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, Mask.DevicePointer, aMaskSize, oAnchor, eBorderType);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiDilateBorder_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }
NPPImage_8uC3