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

Erode() 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.
public Erode ( NPPImage_8uC3 dest, CudaDeviceVariable Mask, NppiSize aMaskSize, NppiPoint oAnchor ) : 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.
return void
        public void Erode(NPPImage_8uC3 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor)
        {
            status = NPPNativeMethods.NPPi.MorphologyFilter2D.nppiErode_8u_C3R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, Mask.DevicePointer, aMaskSize, oAnchor);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiErode_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }
NPPImage_8uC3