草庐IT

c++ - opencv undistortPoints 返回 NaN ios

我一直在使用opencv,但我似乎无法让undistortPoints工作。它返回的矩阵只有NaN值。//newKeyPointsisstd::vector,andit'svaluesarevalidcv::Matsrc=cv::Mat(1,newKeyPoints.size(),CV_32FC2);inti=0;for(std::vector::iteratorit=newKeyPoints.begin();it!=newKeyPoints.end();it++){src.at(0,i)[0]=(*it).pt.x;src.at(0,i)[1]=(*it).pt.y;i++;}cv: