| 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
)
Public Sub New (
data As InputArray,
mean As InputArray,
flags As PCAFlags,
retainedVariance As Double
)
public:
PCA(
InputArray^ data,
InputArray^ mean,
PCAFlags flags,
double retainedVariance
)
new :
data : InputArray *
mean : InputArray *
flags : PCAFlags *
retainedVariance : float -> PCA
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