OpenCV功能匹配器丢失了

时间:2016-02-27 14:51:13

标签: c++ opencv

我正在使用openCV 3.0并尝试制作功能匹配器。我从http://docs.opencv.org/2.4/doc/tutorials/features2d/feature_flann_matcher/feature_flann_matcher.html复制了代码。 我没有

"opencv2/nonfree/features2d.hpp"

所以我在cpp文件中包含了来自https://github.com/itseez/opencv_contrib/的features2d.hpp。 但现在我得到了这个错误。

OneMoreMain.cpp(50) : error C2065: 'SurfFeatureDetector' : undeclared identifier
1>.\OneMoreMain.cpp(50) : error C2146: syntax error : missing ';' before identifier 'detector'
1>.\OneMoreMain.cpp(50) : error C3861: 'detector': identifier not found
1>.\OneMoreMain.cpp(54) : error C2065: 'detector' : undeclared identifier
1>.\OneMoreMain.cpp(54) : error C2228: left of '.detect' must have class/struct/union
1>        type is ''unknown-type''
1>.\OneMoreMain.cpp(55) : error C2065: 'detector' : undeclared identifier
1>.\OneMoreMain.cpp(55) : error C2228: left of '.detect' must have class/struct/union
1>        type is ''unknown-type''
1>.\OneMoreMain.cpp(58) : error C2065: 'SurfDescriptorExtractor' : undeclared identifier
1>.\OneMoreMain.cpp(58) : error C2146: syntax error : missing ';' before identifier 'extractor'
1>.\OneMoreMain.cpp(58) : error C2065: 'extractor' : undeclared identifier
1>.\OneMoreMain.cpp(62) : error C2065: 'extractor' : undeclared identifier
1>.\OneMoreMain.cpp(62) : error C2228: left of '.compute' must have class/struct/union
1>        type is ''unknown-type''
1>.\OneMoreMain.cpp(63) : error C2065: 'extractor' : undeclared identifier
1>.\OneMoreMain.cpp(63) : error C2228: left of '.compute' must have class/struct/union
1>        type is ''unknown-type''
1>.\OneMoreMain.cpp(97) : error C2065: 'vector' : undeclared identifier
1>.\OneMoreMain.cpp(97) : error C2062: type 'char' unexpected

我知道,有些东西不见了,但是什么?

0 个答案:

没有答案
相关问题