我一直在使用calibrateCamera功能。我正在使用opencv2.4.10,据我所知,所有的lib和dll都应该是它们的位置。
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/calib3d/calib3d.hpp"
...
vector<Point2f*> objectPoints;
vector<Point2f*> imagePoints;
Mat* imgpointertmp;
for(int i = 0; i<= param.numLights; i++){
objectPoints.push_back(referimages[i].crn_points);
imagePoints.push_back(scanimages[i].crn_points);
imgpointertmp = &referimages[i].image;
}
int h = imgpointertmp->rows;
int w = imgpointertmp->cols;
vector< Mat> rvecs, tvecs;
Mat intrinsic_Matrix(3,3, CV_64F);
Mat distortion_coeffs(8,1, CV_64F);
cv::calibrateCamera(objectPoints, imagePoints, Size(w, h), intrinsic_Matrix, distortion_coeffs, rvecs, tvecs, 0 );
我一直得到未定义的引用`cv :: calibrateCamera(cv :: _ InputArray const&amp;,cv :: InputArray const&amp;,cv :: Size ,cv :: _ OutputArray const&amp;,cv :: _ OutputArray const&amp;,cv :: _ OutputArray const&amp;,cv :: _ OutputArray const&amp;,int,cv :: TermCriteria)'
我现在在程序中使用的dvd是:
libopencv_calib3d2410.dll libopencv_core2410.dll libopencv_highgui2410.dll libopencv_imgproc2410.dll
我错过了什么?我正在使用MinGW和g ++