Dilation
Description
Dilation is one of the basic operations in mathematical morphology. Originally developed for binary images, it has been expanded first to grayscale images, and then to complete lattices. The dilation operation usually uses a structuring element for probing and expanding the shapes contained in the input image. Wiki
Params
tSrc | Tensor | The source image to be downsampled. |
kernelSize | Array.<number> | Size of structure element. |
tKernel | Tensor | Optional kernel. |
Example
gm.dilate(inputImage, [3, 3]);