Ask Your Question
1

LDA::subspaceProject and subspaceReconstruct in Java

asked 2016-12-10 14:08:54 -0600

phillity gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-12-10 22:58:24 -0600

berak gravatar image

LDA seems to be from to be missing from the Java version of OpenCV.

yes, sad but true, so you can only build the eigenfaces part.

W->eigenvectors

mean->mean

data->src

Is this the correct mapping for the input parameters?

yes, it is.

Is PCABackProject the correct substitution for subspaceReconstruct?

yes .

edit flag offensive delete link more

Comments

Thanks berak!

phillity gravatar imagephillity ( 2016-12-11 11:57:01 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-12-10 14:08:54 -0600

Seen: 570 times

Last updated: Dec 10 '16