edgePreservingFilterAsync function

Future<Mat> edgePreservingFilterAsync(
  1. InputArray src, {
  2. int flags = 1,
  3. double sigmaS = 60,
  4. double sigmaR = 0.4,
})

Implementation

Future<Mat> edgePreservingFilterAsync(
  InputArray src, {
  int flags = 1,
  double sigmaS = 60,
  double sigmaR = 0.4,
}) async {
  return cvRunAsync(
    (callback) => cphoto.EdgePreservingFilter_Async(
      src.ref,
      flags,
      sigmaS,
      sigmaR,
      callback,
    ),
    (c, pdst) => c.complete(Mat.fromPointer(pdst.cast<cphoto.Mat>())),
  );
}