Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Principal Component Analysis »
ReversePCATransform
Reverses Principal Component Analysis (PCA) process. Can be used to transform data back to original feature space.
Syntax
C++
C#
void avl::ReversePCATransform
(
const avl::Matrix& inTransformedMatrix,
const avl::PCAModel& inPCAModel,
avl::Matrix& outMatrix
)
void ReversePCATransform
(
Matrix inTransformedMatrix,
PCAModel inPCAModel,
out Matrix outMatrix
)
Parameters
|
Name |
Type |
Default |
Description |
 |
inTransformedMatrix |
const Matrix& |
|
Data that was transformed earlier. |
 |
inPCAModel |
const PCAModel& |
|
PCA model used to create inTransformedMatrix. |
 |
outMatrix |
Matrix& |
|
inTransformedMatrix transformed back to its original feature space. |
Errors
| Error type |
Description |
| DomainError |
Feature vector of inPCAModel and Transformed Data matrices dimensions do not correspond to each other in ReversePCATransform. |
| DomainError |
Malformed inPCAModel - uneven vector sizes in ReversePCATransform. |
| DomainError |
Malformed inPCAModel - MeanVector is not row-vector in ReversePCATransform. |
| DomainError |
Malformed inPCAModel - StandardDeviationVector is not row-vector in ReversePCATransform. |
| DomainError |
inMeanVector and inStandardDeviationVector have incorrect size for inTransformedMatrix provided in ReversePCATransform. |