subspaceProject/reconstruct identifier not found

asked 2016-04-01 07:14:10 -0600

Schinkenbrot gravatar image

Hi!

I have a problem with the LDA class. I want to use something like this:

cv::Mat projection = LDA::subspaceProject(eigenvectors, averageFaceRow, img_new.reshape(1,1));  
cv::Mat reconstructionRow = LDA::subspaceReconstruct(eigenvectors,averageFaceRow, projection);

But I obtain errors like : LDA is not a namespace or class and subspaceProject identifier not found (same for Reconstruct) I have this code from " Mastering OpenCV with Practical Computer Vision Projects" which works with OpenCV 2.4. I work with OpenCV 3.0 master_contrib extra modules from Github/Itseez

Couldn´t find information about what I need to include or what´s wrong.

Thanks.

edit retag flag offensive close merge delete

Comments

it's all in core.hpp

berak gravatar imageberak ( 2016-04-01 08:05:16 -0600 )edit

Thanks but I have already included core.hpp but itsn´t working. That is so strange..

Schinkenbrot gravatar imageSchinkenbrot ( 2016-04-01 15:17:56 -0600 )edit

Any luck with this? I've run into the same problem using java

phillity gravatar imagephillity ( 2016-06-20 14:19:34 -0600 )edit

@psphill, in java, you'll have to resort to PCAProject and such

berak gravatar imageberak ( 2016-06-20 14:26:08 -0600 )edit