morphologyExAsync function
MorphologyEx performs advanced morphological transformations.
For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#ga67493776e3ad1a3df63883829375201f
Implementation
Future<Mat> morphologyExAsync(
Mat src,
int op,
Mat kernel, {
Mat? dst,
Point? anchor,
int iterations = 1,
int borderType = BORDER_CONSTANT,
Scalar? borderValue,
}) async =>
cvRunAsync(
(callback) => cimgproc.MorphologyExWithParams_Async(
src.ref,
op,
kernel.ref,
anchor?.ref ?? Point(-1, -1).ref,
iterations,
borderType,
borderValue?.ref ?? Scalar().ref,
callback,
),
matCompleter,
);