Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

LDA::subspaceProject and subspaceReconstruct in Java

Hi everyone. I am trying to convert the Fisherface and Eigenface demos from C++ to Java. I am using OpenCV 3.1.0.

LDA seems to be from to be missing from the Java version of OpenCV. I have tried to substitute PCA methods but I am unsure about the conversion.

LDA version:

cv::LDA::subspaceProject(InputArray W, InputArray mean, InputArray src)       
cv::LDA::subspaceReconstruct(InputArray W, InputArray mean, InputArray src)

PCA version:

cv::PCAProject(InputArray data, InputArray mean, InputArray eigenvectors, OutputArray result) 
cv::PCABackProject(InputArray data, InputArray mean, InputArray eigenvectors, OutputArray result)

W->eigenvectors

mean->mean

data->src

Is this the correct mapping for the input parameters? Is PCABackProject the correct substitution for subspaceReconstruct?