CvProjectPCA Method OpenCvSharp Class Library
Projects vectors to the specified subspace

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void ProjectPCA(
	CvArr data,
	CvArr avg,
	CvArr eigenvects,
	CvArr result
)

Parameters

data
Type: OpenCvSharpCvArr
The input data; each vector is either a single row or a single column.
avg
Type: OpenCvSharpCvArr
The mean (average) vector. If it is a single-row vector, it means that the output vectors are stored as rows of result; otherwise, it should be a single-column vector, then the vectors are stored as columns of result.
eigenvects
Type: OpenCvSharpCvArr
The eigenvectors (principal components); one vector per row.
result
Type: OpenCvSharpCvArr
The output matrix of decomposition coefficients. The number of rows must be the same as the number of vectors, the number of columns must be less than or equal to the number of rows in eigenvectors. That it is less, the input vectors are projected into subspace of the first cols(result) principal components.

Return Value

Type: 
See Also

Reference