dilate function

Mat dilate(
  1. Mat src,
  2. Mat kernel, {
  3. Mat? dst,
  4. Point? anchor,
  5. int iterations = 1,
  6. int borderType = BORDER_CONSTANT,
  7. Scalar? borderValue,
})

Dilate dilates an image by using a specific structuring element.

For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#ga4ff0f3318642c4f469d0e11f242f3b6c

Implementation

Mat dilate(
  Mat src,
  Mat kernel, {
  Mat? dst,
  Point? anchor,
  int iterations = 1,
  int borderType = BORDER_CONSTANT,
  Scalar? borderValue,
}) {
  borderValue ??= Scalar();
  dst ??= Mat.empty();
  anchor ??= Point(-1, -1);
  cvRun(
    () => cffi.DilateWithParams(
      src.ref,
      dst!.ref,
      kernel.ref,
      anchor!.ref,
      iterations,
      borderType,
      borderValue!.ref,
    ),
  );
  return dst;
}