morphologyDefaultBorderValueAsync function

Future<Scalar> morphologyDefaultBorderValueAsync()

MorphologyDefaultBorder returns "magic" border value for erosion and dilation. It is automatically transformed to Scalar::all(-DBL_MAX) for dilation.

For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a

Implementation

Future<Scalar> morphologyDefaultBorderValueAsync() async {
  final s = calloc<cvg.Scalar>();
  return cvRunAsync0((callback) => cimgproc.cv_morphologyDefaultBorderValue(s, callback), (c) {
    return c.complete(Scalar.fromPointer(s));
  });
}