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

ErodeBorder() public method

Erosion computes the output pixel as the minimum 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 ErodeBorder ( 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 ErodeBorder(NPPImage_8uC3 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
        {
            status = NPPNativeMethods.NPPi.ErosionWithBorderControl.nppiErodeBorder_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, "nppiErodeBorder_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }
NPPImage_8uC3