Using Eigen Library with OpenCV 2.3.1

后端 未结 2 1548
执念已碎
执念已碎 2021-01-02 14:20

I have trouble in using Eigen3 Library along with OpenCV application in C++. I have installed Eigen3 library on my Ubuntu

相关标签:
2条回答
  • 2021-01-02 14:31

    I just had to include

    #include <Eigen/Dense>
    

    before including OpenCV headers thats all. I compiled them by including the Eigen lib headers and OpenCV lib headers.

    0 讨论(0)
  • 2021-01-02 14:43

    First i would double check that the eigen include directions are found. You can use a CMakeList.txt to do so (and you should use the cmake functions to find headers and link to libraries instead of compiler flags)

    Next you could try to remove the using namespaces

        using namespace cv;
        using namespace std;
        using namespace Eigen;
    
    0 讨论(0)
提交回复
热议问题