pencilSketchAsync function
Future<(Mat, Mat)>
pencilSketchAsync(
- InputArray src, {
- double sigmaS = 60,
- double sigmaR = 0.07,
- 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 {
return cvRunAsync2(
(callback) => cffi.PencilSketch_Async(
src.ref,
sigmaS,
sigmaR,
shadeFactor,
callback,
),
(c, pdst1, pdst2) => c.complete(
(Mat.fromPointer(pdst1.cast<cvg.Mat>()), Mat.fromPointer(pdst2.cast<cvg.Mat>())),
),
);
}