pencilSketch function

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

PencilSketch pencil-like non-photorealistic line drawing. For further details, please see: https://docs.opencv.org/4.x/df/dac/group__photo__render.html#gae5930dd822c713b36f8529b21ddebd0c

Implementation

//
/// For further details, please see:
/// https://docs.opencv.org/4.x/df/dac/group__photo__render.html#gae5930dd822c713b36f8529b21ddebd0c
(Mat dst1, Mat dst2) pencilSketch(
  InputArray src, {
  double sigmaS = 60,
  double sigmaR = 0.07,
  double shadeFactor = 0.02,
}) {
  final dst1 = Mat.empty();
  final dst2 = Mat.empty();
  cvRun(
    () => cphoto.cv_pencilSketch(
      src.ref,
      dst1.ref,
      dst2.ref,
      sigmaS,
      sigmaR,
      shadeFactor,
      ffi.nullptr,
    ),
  );
  return (dst1, dst2);
}