Table of Contents

Method BackProject

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

BackProject(InputArray)

Reconstructs vectors from their PC projections.

The methods are inverse operations to PCA::project. They take PC coordinates of projected vectors and reconstruct the original vectors. Unless all the principal components have been retained, the reconstructed vectors are different from the originals. But typically, the difference is small if the number of components is large enough (but still much smaller than the original vector dimensionality). As a result, PCA is used.

public Mat BackProject(InputArray vec)

Parameters

vec InputArray

coordinates of the vectors in the principal component subspace, the layout and size are the same as of PCA::project output vectors.

Returns

Mat

BackProject(InputArray, OutputArray)

Reconstructs vectors from their PC projections.

The methods are inverse operations to PCA::project. They take PC coordinates of projected vectors and reconstruct the original vectors. Unless all the principal components have been retained, the reconstructed vectors are different from the originals. But typically, the difference is small if the number of components is large enough (but still much smaller than the original vector dimensionality). As a result, PCA is used.

public void BackProject(InputArray vec, OutputArray result)

Parameters

vec InputArray

coordinates of the vectors in the principal component subspace, the layout and size are the same as of PCA::project output vectors.

result OutputArray

reconstructed vectors; the layout and size are the same as of PCA::project input vectors.