PCACompute2Async function
Future<(Mat, Mat)>
PCACompute2Async(
- InputArray data,
- InputOutputArray mean, {
- double retainedVariance = 0,
Implementation
Future<(Mat mean, Mat eigenvectors)> PCACompute2Async(
InputArray data,
InputOutputArray mean, {
double retainedVariance = 0,
}) async =>
cvRunAsync(
(callback) => ccore.core_PCACompute_3_Async(data.ref, mean.ref, retainedVariance, callback),
(completer, p) => completer.complete((mean, Mat.fromPointer(p.cast<ccore.Mat>()))),
);