| PCA Constructor (InputArray, InputArray, PCAFlags, Int32) |
Constructor
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public PCA(
InputArray data,
InputArray mean,
PCAFlags flags,
int maxComponents = 0
)
Public Sub New (
data As InputArray,
mean As InputArray,
flags As PCAFlags,
Optional maxComponents As Integer = 0
)
public:
PCA(
InputArray^ data,
InputArray^ mean,
PCAFlags flags,
int maxComponents = 0
)
new :
data : InputArray *
mean : InputArray *
flags : PCAFlags *
?maxComponents : int
(* Defaults:
let _maxComponents = defaultArg maxComponents 0
*)
-> 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 (@c 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) - maxComponents (Optional)
- Type: SystemInt32
maximum number of components that PCA should retain; by default, all the components are retained.
See Also