‘removeDuplicatedSorted’ is not a member of ‘cv::KeyPointsFilter’

asked 2017-09-26 22:08:45 -0500

Tao gravatar image

when i build opencv3.3 with opencv_contrib, it always show that problem: [ 72%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o /home/zhang/下载/opencv_contrib/modules/xfeatures2d/src/sift.cpp: In member function ‘virtual void cv::xfeatures2d::SIFT_Impl::detectAndCompute(cv::InputArray, cv::InputArray, std::vector<cv::keypoint>&, cv::OutputArray, bool)’: /home/zhang/Downloads/opencv_contrib/modules/xfeatures2d/src/sift.cpp:1156:9: error: ‘removeDuplicatedSorted’ is not a member of ‘cv::KeyPointsFilter’ KeyPointsFilter::removeDuplicatedSorted( keypoints ); ^ make[2]: * [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o] error 1 make[1]: [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all] error 2 make: ** [all] error 2 zhang@zhang:~/Downloads/opencv-3.3.0/build$

edit retag flag offensive close merge delete

Comments

one of your opencv repos is out of date. please get latest master branch for both , and try again.

berak gravatar imageberak ( 2017-09-27 07:52:22 -0500 )edit

Got the same problem with an actual opencv_contrib-master repo and OpenCV 3.3. Will investigate this now.

h0rbie gravatar imageh0rbie ( 2017-10-02 12:07:52 -0500 )edit

not sure if this is resolved or not, not even sure what is 'removeDuplicatedSorted'. We replaced that with 'removeDuplicated' and it was built...

wzhooo gravatar imagewzhooo ( 2017-10-26 00:53:21 -0500 )edit