PCACompute1Async function

Future<(Mat, Mat)> PCACompute1Async(
  1. InputArray data,
  2. InputOutputArray mean, {
  3. int maxComponents = 0,
})

Implementation

Future<(Mat mean, Mat eigenvectors)> PCACompute1Async(
  InputArray data,
  InputOutputArray mean, {
  int maxComponents = 0,
}) async =>
    cvRunAsync(
      (callback) => cffi.core_PCACompute_1_Async(data.ref, mean.ref, maxComponents, callback),
      (completer, p) => completer.complete((mean, Mat.fromPointer(p.cast<cvg.Mat>()))),
    );