eigenAsync function

Future<(bool, Mat, Mat)> eigenAsync(
  1. InputArray src
)

Eigen calculates eigenvalues and eigenvectors of a symmetric matrix.

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

Implementation

Future<(bool ret, Mat eigenvalues, Mat eigenvectors)> eigenAsync(InputArray src) async =>
    cvRunAsync3((callback) => cffi.core_Eigen_Async(src.ref, callback), (completer, p, p1, p2) {
      final rval = p.cast<ffi.Bool>().value;
      calloc.free(p);
      completer.complete((rval, Mat.fromPointer(p1.cast<cvg.Mat>()), Mat.fromPointer(p2.cast<cvg.Mat>())));
    });