PCACompute1Async function
Future<(Mat, Mat)>
PCACompute1Async(
- InputArray data,
- InputOutputArray mean, {
- 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>()))),
);