Issues with lsh_table.h and lsh_index.h

asked 2012-12-10 12:19:48 -0500

Cassio gravatar image

I'm trying to accomplish the tutorial "Load, Modify, and Save an Image" from the OpenCV website and I'm faced with several issues on 2 header files when including "opencv/cv.hpp" file.

The 2 header files are:

  • lsh_table.h

  • lsh_index.h

And the errors I'm getting are like these:

/usr/local/include/opencv2/flann/lsh_table.h:190:14: No template named 'Matrix'; did you mean 'cvflann::Matrix'?

/usr/local/include/opencv2/flann/lsh_index.h:241:24: Use of undeclared identifier 'lsh'; did you mean 'flann::lsh'?

I'm currently using Xcode 4.5.1 and I have added the proper search paths for Headers and Libs as well as adding the proper libs to the project.

Well, it suggests simple modifications, like adding "flann::" to "lsh". But I'm guessing it is not supposed to be this way and that I must have a mismatching version.

Do you guys know what I can do to fix this?

edit retag flag offensive close merge delete