PCAProjectAsync function

Future<(Mat, Mat)> PCAProjectAsync(
  1. Mat data,
  2. Mat mean,
  3. Mat eigenvectors, {
  4. OutputArray? result,
})

Implementation

Future<(Mat mean, Mat result)> PCAProjectAsync(
  Mat data,
  Mat mean,
  Mat eigenvectors, {
  OutputArray? result,
}) async {
  result ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_PCAProject(data.ref, mean.ref, eigenvectors.ref, result!.ref, callback),
    (c) {
      return c.complete((mean, result!));
    },
  );
}