Click or drag to resize

PCA Constructor (InputArray, InputArray, PCAFlags, Double)

Constructor

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public PCA(
	InputArray data,
	InputArray mean,
	PCAFlags flags,
	double retainedVariance
)

Parameters

data
Type: OpenCvSharpInputArray
input samples stored as matrix rows or matrix columns.
mean
Type: OpenCvSharpInputArray
optional mean value; if the matrix is empty (noArray()), the mean is computed from the data.
flags
Type: OpenCvSharpPCAFlags
operation flags; currently the parameter is only used to specify the data layout (PCA::Flags)
retainedVariance
Type: SystemDouble
Percentage of variance that PCA should retain. Using this parameter will let the PCA decided how many components to retain but it will always keep at least 2.
See Also