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

在这里插入图片描述

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值