PCACompute3Async function

Future<(Mat, Mat, Mat)> PCACompute3Async(
  1. InputArray data,
  2. InputOutputArray mean, {
  3. double retainedVariance = 0,
})

Implementation

Future<(Mat mean, Mat eigenvalues, Mat eigenvectors)> PCACompute3Async(
  InputArray data,
  InputOutputArray mean, {
  double retainedVariance = 0,
}) async =>
    cvRunAsync2(
      (callback) => ccore.core_PCACompute_2_Async(data.ref, mean.ref, retainedVariance, callback),
      (completer, p, p1) =>
          completer.complete((mean, Mat.fromPointer(p.cast<ccore.Mat>()), Mat.fromPointer(p1.cast<ccore.Mat>()))),
    );