Erosion
Description
Erosion is one of two fundamental operations (the other being dilation) in morphological image processing from which all other morphological operations are based. It was originally defined for binary images, later being extended to grayscale images, and subsequently to complete lattices. Wiki
Params
tSrc | Tensor | The source image to be downsampled. |
kernelSize | Array.<number> | Size of structure element. |
tKernel | Tensor | Optional kernel. |
Example
gm.erode(inputImage, [3, 3]);