filter2DAsync function
Future<Mat>
filter2DAsync(
- InputArray src,
- int ddepth,
- InputArray kernel, {
- OutputArray? dst,
- Point? anchor,
- double delta = 0,
- int borderType = BORDER_DEFAULT,
Filter2D applies an arbitrary linear filter to an image.
For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#ga27c049795ce870216ddfb366086b5a04
Implementation
Future<Mat> filter2DAsync(
InputArray src,
int ddepth,
InputArray kernel, {
OutputArray? dst,
Point? anchor,
double delta = 0,
int borderType = BORDER_DEFAULT,
}) {
dst ??= Mat.empty();
anchor ??= Point(-1, -1);
return cvRunAsync0(
(callback) => cimgproc.cv_filter2D(
src.ref,
dst!.ref,
ddepth,
kernel.ref,
anchor!.ref,
delta,
borderType,
callback,
),
(c) {
return c.complete(dst);
},
);
}