0 building opencv extra modules xfeature2d error

asked 2014-10-29 23:05:17 -0500

hello everyone! I met a problem while building the extra modules. it shows like below. allocating an object of abstract class type 'cv::xfeatures2d::BriefDescriptorExtractorImpl' return Ptr<t>(new T(a1));

  in instantiation of function template specialization
  'cv::makePtr<cv::xfeatures2d::BriefDescriptorExtractorImpl, int>'
  requested here
return makePtr<BriefDescriptorExtractorImpl>(bytes);

  unimplemented pure virtual method 'computeImpl' in
  'BriefDescriptorExtractorImpl'
virtual void computeImpl( InputArray image, std::vector<KeyPoint>& k...

make[2]: * [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/brief.cpp.o] Error 1 make[1]: * [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all] Error 2

Anyone would help me solve this, thanks!

edit retag flag offensive close merge delete

Comments

1

are you sure, both opencv and opencv_contrib repos are up-to-date ?

there's been a lot of refactoring in the last weeks, e.g. there's no more computeImpl in the current versions

berak gravatar imageberak ( 2014-10-30 02:53:38 -0500 )edit
1

the opencv_contrib is new, but the opencv was downloaded a month ago, let me try again.

Johnnyiiiii gravatar imageJohnnyiiiii ( 2014-11-04 07:32:03 -0500 )edit
1

Finally got it! Thank you soooooo much!!

Johnnyiiiii gravatar imageJohnnyiiiii ( 2014-11-04 09:09:41 -0500 )edit