determinant function

double determinant(
  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

double determinant(InputArray mtx) {
  final p = calloc<ffi.Double>();
  cvRun(() => ccore.cv_determinant(mtx.ref, p, ffi.nullptr));
  final rval = p.value;
  calloc.free(p);
  return rval;
}