pub fn erode(input: &Tensor, kernel: &Tensor) -> Result<Tensor, ImgProcError>
Morphological erosion with arbitrary structuring element. Erode a single-channel [H, W, 1] image with an arbitrary structuring element.
[H, W, 1]