convertToAsync method

Future<Mat> convertToAsync(
  1. MatType type, {
  2. double alpha = 1,
  3. double beta = 0,
})

Implementation

Future<Mat> convertToAsync(MatType type, {double alpha = 1, double beta = 0}) async {
  final dst = Mat.empty();
  return cvRunAsync0<Mat>(
    (callback) => ccore.cv_Mat_convertTo_1(ref, dst.ref, type.value, alpha, beta, callback),
    (c) => c.complete(dst),
  );
}