when I tried to built my project using Kdevelop, some evident errors was displayed at "build"tools view. /home/htf/slambook/ch7/triangulation.cpp: error: ‘CV_FM_8POINT’ was not declared in this scope /home/htf/slambook/ch7/triangulation.cpp: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope
the opencv version is 4.0.0, so I was thinking these errors should not have appeared.Then I planned to installed some packages to solve this problem,unfortunately, I do not know where could I find the package named imgcodecs. if you have some good ideas or helpful approaches, please contact me as soon as you can , Thank you very much.
1.
Mat fundamental_matrix; fundamental_matrix = findFundamentalMat ( points1, points2, CV_FM_8POINT ); cout<<"fundamental_matrix is "<<endl<< fundamental_matrix<<endl;<="" p="">
2.
Mat img_1 = imread ( argv[1],CV_LOAD_IMAGE_COLOR ); Mat img_2 = imread ( argv[2],CV_LOAD_IMAGE_COLOR);