pencilSketchAsync function

Future<(Mat, Mat)> pencilSketchAsync(
  1. InputArray src, {
  2. double sigmaS = 60,
  3. double sigmaR = 0.07,
  4. double shadeFactor = 0.02,
})

Implementation

Future<(Mat dst1, Mat dst2)> pencilSketchAsync(
  InputArray src, {
  double sigmaS = 60,
  double sigmaR = 0.07,
  double shadeFactor = 0.02,
}) async {
  final dst1 = Mat.empty();
  final dst2 = Mat.empty();
  return cvRunAsync0(
    (callback) => cphoto.cv_pencilSketch(
      src.ref,
      dst1.ref,
      dst2.ref,
      sigmaS,
      sigmaR,
      shadeFactor,
      callback,
    ),
    (c) {
      return c.complete((dst1, dst2));
    },
  );
}