Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/156.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ OpenCV:错误:对';(简历:Mat)(国际、国际)和#x27;_C++_Opencv - Fatal编程技术网

C++ OpenCV:错误:对';(简历:Mat)(国际、国际)和#x27;

C++ OpenCV:错误:对';(简历:Mat)(国际、国际)和#x27;,c++,opencv,C++,Opencv,我想显示基本矩阵,但得到的错误如下: 错误:对“(cv::Mat)(int&,int&)的调用不匹配 这是我的密码: vector<Point2f> imgpts1,imgpts2; for(unsigned int i=0;i<matches.size();i++) { imgpts1.push_back(keypoint1[matches[i].trainIdx].pt); imgpts2.push_back(keypoint

我想显示基本矩阵,但得到的错误如下: 错误:对“(cv::Mat)(int&,int&)的调用不匹配

这是我的密码:

vector<Point2f> imgpts1,imgpts2;
    for(unsigned int i=0;i<matches.size();i++)
    {
        imgpts1.push_back(keypoint1[matches[i].trainIdx].pt);
        imgpts2.push_back(keypoint2[matches[i].trainIdx].pt);
    }
    //Mat fundamental=Mat(3,3,CV_32F);
    Mat fundamental=findFundamentalMat(imgpts1,imgpts2,FM_RANSAC,3,0.99);

cout<<"fundamental:"<<endl;
    for(int i=0;i<fundamental.rows;i++)
    {
        for(int j=0;j<fundamental.cols;j++)
        {
            cout<<fundamental(i,j)<<" ";
        }
        cout<<endl;
    }
向量imgpts1,imgpts2;

对于(unsigned int i=0;i我找到了解决问题的方法:

Mat fundamental=findFundamentalMat(imgpts1,imgpts2,FM_RANSAC,3,0.99);
    cout<<"fundamental="<<endl<<" "<<fundamental<<endl;
Mat Basic=findFundamentalMat(imgpts1、imgpts2、FM_-RANSAC,3,0.99);

coutWhat是
Mat::operator()
的签名吗?+1我搞错了。我以为你在调用运算符方法。