thresholdAsync static method
Applies a fixed-level threshold to each array element.
Implementation
static Future<Mat> thresholdAsync(InputArray src, double thresh, int type) async {
  final dst = Mat.empty();
  return cvRunAsync0(
    (callback) => ccontrib.cv_ximgproc_rl_threshold(src.ref, dst.ref, thresh, type, callback),
    (c) {
      return c.complete(dst);
    },
  );
}