dilate static method

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

Morphological dilation: expands bright regions, fills small dark gaps.

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

Implementation

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