C ++使用' vector<>时的参数无效&安培;'

时间:2015-11-25 14:01:00

标签: c++ opencv

我正在使用OpenCV库(v3.0.0)并尝试使用Eclipse 4.5.1编译一个C++ project

我收到了一个错误:

Invalid arguments' Candidates are: 
void detectColor(?*, ?&, std::vector<float, std::allocator<float>>&))'

更新:它确实在错误消息中说&#39;?&#39;。点击&#34; Build&#34;后显示错误消息。我想我&# 39; m使用Cross GCC编译器。)

detectColor()函数定义为:

void detectColor(IplImage *img, std::vector<IplImage*>& 
                 imgDetect, std::vector<float>& ratios);

并被称为:

void CRForestDetector::detectPyramid(IplImage *img, 
                                     vector<vector<IplImage*> >& vImgDetect,
                                     std::vector<float>& ratios) {
    IplImage* cLevel = cvCreateImage(...);
    for(int i=...; i<...; ++i) {
        detectColor(cLevel,vImgDetect[i],ratios);
    }    
}

如何解决此错误?

更新:重启Eclipse后,这些错误消失了。)

0 个答案:

没有答案