Click or drag to resize

Cv2PCACompute Method

PCA of the supplied dataset.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
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
maxComponents (Optional)
Type: SystemInt32
maximum number of components that PCA should retain; by default, all the components are retained.
See Also