I'm getting an error 'error C2065: 'resultImgs' : undeclared identifier' when compiling this. What is wrong here? Please help!

    {
        // record all non-zero responses in case we need to do further research
        // but in fact, we only need the max response as the final result
        responses.push_back(response);
        IplImage* resultImg = siftController.setResultImg(it->ptr.get(),image);
        resultImgs.push_back(BasicCvApi::MyImagePtr(resultImg));
        strings.push_back(it->className);
    }
有帮助吗?

解决方案

The error mesage is clear enough: the compiler does not see definition of name resultImgs. So check this name taking into account the spelling of the name

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top