laplacian function

Mat laplacian(
  1. Mat src,
  2. int ddepth, {
  3. Mat? dst,
  4. int ksize = 1,
  5. double scale = 1,
  6. double delta = 0,
  7. int borderType = BORDER_DEFAULT,
})

Laplacian calculates the Laplacian of an image.

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

Implementation

Mat laplacian(
  Mat src,
  int ddepth, {
  Mat? dst,
  int ksize = 1,
  double scale = 1,
  double delta = 0,
  int borderType = BORDER_DEFAULT,
}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Laplacian(src.ref, dst!.ref, ddepth, ksize, scale, delta, borderType));
  return dst;
}