Click or drag to resize

PCAProject Method (InputArray, OutputArray)

Projects vector(s) to the principal component subspace.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public void Project(
	InputArray vec,
	OutputArray result
)

Parameters

vec
Type: OpenCvSharpInputArray
input vector(s); must have the same dimensionality and the same layout as the input data used at PCA phase, that is, if DATA_AS_ROW are specified, then `vec.cols==data.cols` (vector dimensionality) and `vec.rows` is the number of vectors to project, and the same is true for the PCA::DATA_AS_COL case.
result
Type: OpenCvSharpOutputArray
output vectors; in case of PCA::DATA_AS_COL, the output matrix has as many columns as the number of input vectors, this means that `result.cols==vec.cols` and the number of rows match the number of principal components (for example, `maxComponents` parameter passed to the constructor).
See Also