PCACompute1Async function

Future<(Mat, Mat, Mat)> PCACompute1Async(
  1. InputArray data,
  2. InputOutputArray mean,
  3. double retainedVariance, {
  4. OutputArray? eigenvectors,
  5. OutputArray? eigenvalues,
})

Implementation

Future<(Mat mean, Mat eigenvalues, Mat eigenvectors)> PCACompute1Async(
  InputArray data,
  InputOutputArray mean,
  double retainedVariance, {
  OutputArray? eigenvectors,
  OutputArray? eigenvalues,
}) async {
  eigenvectors ??= Mat.empty();
  eigenvalues ??= Mat.empty();
  return cvRunAsync0(
      (callback) => ccore.cv_PCACompute_1(
            data.ref,
            mean.ref,
            eigenvectors!.ref,
            eigenvalues!.ref,
            retainedVariance,
            callback,
          ), (c) {
    return c.complete((mean, eigenvalues!, eigenvectors!));
  });
}