You need to enable JavaScript to run this app.Erosion - GammaCV
GammaCV Logo
DocsExamplesGitHub

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
tSrcTensorThe source image to be downsampled.
kernelSizeArray.<number>Size of structure element.
tKernelTensorOptional kernel.
Example
gm.erode(inputImage, [3, 3]);