opencv-features2d.hpp的错误

类似这样的错误

In file included from /usr/include/opencv2/nonfree/nonfree.hpp:46:0,
             from panaroma.cpp:7:
/usr/include/opencv2/nonfree/features2d.hpp:73:21: error: ‘vector’ has not been declared
                 vector<KeyPoint>& keypoints) const;
                 ^
/usr/include/opencv2/nonfree/features2d.hpp:73:27: error: expected ‘,or...’ before ‘<’ token
                 vector<KeyPoint>& keypoints) const;
                       ^
/usr/include/opencv2/nonfree/features2d.hpp:77:21: error: ‘vector’ has not been declared
                 vector<KeyPoint>& keypoints,
                 ^
/usr/include/opencv2/nonfree/features2d.hpp:77:27: error: expected ‘,or...’ before ‘<’ token
                 vector<KeyPoint>& keypoints,
                       ^
/usr/include/opencv2/nonfree/features2d.hpp:76:10: error:void cv::SIFT::operator()(cv::InputArray, cv::InputArray, int) const’ cannot be overloaded
 void operator()(InputArray img, InputArray mask,
      ^
/usr/include/opencv2/nonfree/features2d.hpp:72:10: error: with ‘void cv::SIFT::operator()(cv::InputArray, cv::InputArray, int) constvoid operator()(InputArray img, InputArray mask,
      ^
/usr/include/opencv2/nonfree/features2d.hpp:81:5: error: ‘AlgorithmInfo’ does not name a type
 AlgorithmInfo* info() const;
 ^
/usr/include/opencv2/nonfree/features2d.hpp:83:49: error: ‘vector’ has not been declared
 void buildGaussianPyramid( const Mat& base, vector<Mat>& pyr, int nOctaves ) const;
                                             ^
/usr/include/opencv2/nonfree/features2d.hpp:83:55: error: expected ‘,or...’ before ‘<’ token
 void buildGaussianPyramid( const Mat& base, vector<Mat>& pyr, int nOctaves ) const;
                                                   ^
/usr/include/opencv2/nonfree/features2d.hpp:84:33: error: ‘vector’ does not name a type
 void buildDoGPyramid( const vector<Mat>& pyr, vector<Mat>& dogpyr ) const;
                             ^
/usr/include/opencv2/nonfree/features2d.hpp:84:39: error: expected ‘,or...’ before ‘<’ token
 void buildDoGPyramid( const vector<Mat>& pyr, vector<Mat>& dogpyr ) const;
                                   ^
/usr/include/opencv2/nonfree/features2d.hpp:85:39: error: ‘vector’ does not name a type

opencv-features2d.hpp的错误_第1张图片

你可能感兴趣的:(opencv)