PCACompute1Async function
Future<(Mat, Mat, Mat)>
PCACompute1Async(
- InputArray data,
- InputOutputArray mean,
- double retainedVariance, {
- OutputArray? eigenvectors,
- 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!));
});
}