eigenAsync function
Future<(bool, Mat, Mat)>
eigenAsync(
- InputArray src, {
- OutputArray? eigenvalues,
- OutputArray? eigenvectors,
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, {
OutputArray? eigenvalues,
OutputArray? eigenvectors,
}) async {
eigenvalues ??= Mat.empty();
eigenvectors ??= Mat.empty();
final p = calloc<ffi.Bool>();
return cvRunAsync0(
(callback) => ccore.cv_eigen(src.ref, eigenvalues!.ref, eigenvectors!.ref, p, callback),
(c) {
final ret = p.value;
calloc.free(p);
return c.complete((ret, eigenvalues!, eigenvectors!));
},
);
}