Click or drag to resize

Cv2PCACompute Method (InputArray, InputOutputArray, 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,
	int maxComponents = 0
)

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
maxComponents (Optional)
Type: SystemInt32
maximum number of components that PCA should retain; by default, all the components are retained.
See Also