getStructuringElementAsync static method

Future<Mat> getStructuringElementAsync(
  1. int shape,
  2. (int, int) ksize
)

Returns a run length encoded structuring element of the specified size and shape.

https://docs.opencv.org/4.x/df/def/group__ximgproc__run__length__morphology.html#ga8a7c10c524fb2572e2eefe0caf0375fc

Implementation

static Future<Mat> getStructuringElementAsync(int shape, (int, int) ksize) async {
  final dst = Mat.empty();
  return cvRunAsync0(
      (callback) => ccontrib.cv_ximgproc_rl_getStructuringElement(shape, ksize.cvd.ref, dst.ptr, callback),
      (c) {
    return c.complete(dst);
  });
}