OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Tue, 26 May 2015 19:52:24 -0500Eigenface average face in javahttp://answers.opencv.org/question/62668/eigenface-average-face-in-java/ Hi im doing a face rec app with opencv and java & i use the face recognizer of opencv createEigenfaceRecognizer()
everything works fine but my problem is that i want to acces to the eigenvector & the eigenvalues and also acess to the calculated average image by the recognizer from my training set and i dont know to access to them how can i do it and thank u vildetheTue, 26 May 2015 19:52:24 -0500http://answers.opencv.org/question/62668/Mismatch of the Eigen Vector & Valuehttp://answers.opencv.org/question/10841/mismatch-of-the-eigen-vector-value/Hello,
I need to retrieve the eigen vector from a matrix. The problem is I don't match the result same as my matlab code.
I have a matrix symmetric 100x100 and trying to obtain eigen value and eigen vector from it. I work with double matrix (CV_64F) to have the best precision as possible (Already tried Float and it fail more).
My eigen value seems good but the vector loses some accuracy for each value ( Ex : value 1 to 25 exactly match with matlab but further you get to 100 , more I am losing precision, but I can work with that.)
But the problem is more with the eigen vector.
The result is same as eigen value, lose precision but the problem is with the sign.
If I take the firsts 25x25 results. I'm totally matching with matlab but randomly have positive or negative value. So I got wrong information at the end.
Right now I'm using cv:eigen function like this :
> cv::eigen(oResultMax,oMatValue,oMatVector);
I have already tried the SelfAdjointSolver from the library Eigen.
[Eigen](http://eigen.tuxfamily.org/index.php?title=Main_Page)
[SelfAdjointSolver](http://eigen.tuxfamily.org/dox/classEigen_1_1SelfAdjointEigenSolver.html)
Anyone have an idea ? Or suggest me something ?
EDIT : (Add image of result)
Here you can see the image of the eigen value. If you refere to the MatLab result, the double result are almost same till the 27th and for the float till 14th.
![image description](/upfiles/13660503247970353.png)
And those Image, you have Eigen Vector in order : MatLab , OpenCV Double and OpenCV Float.
As you can see double matching until 35th and float until 15th.
And the sign of the result are differente from Matlab, Double and Float
![image description](/upfiles/13660505732191637.png)
![image description](/upfiles/13660505816901852.png)
![image description](/upfiles/13660505887633373.png)
Alexandre BizeauFri, 05 Apr 2013 13:33:00 -0500http://answers.opencv.org/question/10841/