predictAsync method

Future<Mat> predictAsync({
  1. Mat? control,
})

Implementation

Future<Mat> predictAsync({Mat? control}) async {
  final dst = Mat.empty();
  if (control == null) {
    return cvRunAsync0(
      (callback) => cvideo.cv_KalmanFilter_predict(ref, dst.ptr, callback),
      (c) {
        return c.complete(dst);
      },
    );
  }
  return cvRunAsync0(
    (callback) => cvideo.cv_KalmanFilter_predict_1(ref, control.ref, dst.ptr, callback),
    (c) {
      return c.complete(dst);
    },
  );
}