erode static method

Uint8List erode(
  1. Uint8List gray,
  2. int width,
  3. int height, {
  4. int kernelSize = 3,
})

Morphological erosion: shrinks bright regions, removes small bright noise.

kernelSize — Structuring element size (odd). Default: 3.

Implementation

static Uint8List erode(
  Uint8List gray,
  int width,
  int height, {
  int kernelSize = 3,
}) {
  return _morphologyOp(gray, width, height, kernelSize, _MorphOp.erode);
}