| Cv2PCACompute Method (InputArray, InputOutputArray, OutputArray, OutputArray, Int32) |
PCA of the supplied dataset.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void PCACompute(
InputArray data,
InputOutputArray mean,
OutputArray eigenvectors,
OutputArray eigenvalues,
int maxComponents = 0
)
Public Shared Sub PCACompute (
data As InputArray,
mean As InputOutputArray,
eigenvectors As OutputArray,
eigenvalues As OutputArray,
Optional maxComponents As Integer = 0
)
public:
static void PCACompute(
InputArray^ data,
InputOutputArray^ mean,
OutputArray^ eigenvectors,
OutputArray^ eigenvalues,
int maxComponents = 0
)
static member PCACompute :
data : InputArray *
mean : InputOutputArray *
eigenvectors : OutputArray *
eigenvalues : OutputArray *
?maxComponents : int
(* Defaults:
let _maxComponents = defaultArg maxComponents 0
*)
-> unit
Parameters
- data
- Type: OpenCvSharpInputArray
input samples stored as the matrix rows or as the matrix columns. - mean
- Type: OpenCvSharpInputOutputArray
optional mean value; if the matrix is empty (noArray()), the mean is computed from the data. - eigenvectors
- Type: OpenCvSharpOutputArray
eigenvectors of the covariation matrix - eigenvalues
- Type: OpenCvSharpOutputArray
eigenvalues of the covariation matrix - maxComponents (Optional)
- Type: SystemInt32
maximum number of components that PCA should
retain; by default, all the components are retained.
See Also