determinantAsync function

Future<double> determinantAsync(
  1. InputArray mtx
)

Determinant returns the determinant of a square floating-point matrix.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#gaf802bd9ca3e07b8b6170645ef0611d0c

Implementation

Future<double> determinantAsync(InputArray mtx) async {
  final p = calloc<ffi.Double>();
  return cvRunAsync0((callback) => ccore.cv_determinant(mtx.ref, p, callback), (c) {
    final rval = p.value;
    calloc.free(p);
    return c.complete(rval);
  });
}