fixed some more compile errors and test failures
This commit is contained in:
@@ -185,7 +185,7 @@ CV_EXPORTS_W void drawChessboardCorners( InputOutputArray image, Size patternSiz
|
||||
//! finds circles' grid pattern of the specified size in the image
|
||||
CV_EXPORTS_W bool findCirclesGrid( InputArray image, Size patternSize,
|
||||
OutputArray centers, int flags = CALIB_CB_SYMMETRIC_GRID,
|
||||
const Ptr<FeatureDetector> &blobDetector = makePtr<SimpleBlobDetector>());
|
||||
const Ptr<FeatureDetector> &blobDetector = SimpleBlobDetector::create());
|
||||
|
||||
//! finds intrinsic and extrinsic camera parameters from several fews of a known calibration pattern.
|
||||
CV_EXPORTS_W double calibrateCamera( InputArrayOfArrays objectPoints,
|
||||
|
@@ -115,7 +115,10 @@ bool cv::solvePnP( InputArray _opoints, InputArray _ipoints,
|
||||
cv::Mat R, rvec = _rvec.getMat(), tvec = _tvec.getMat();
|
||||
double f = PnP.compute_pose(R, tvec);
|
||||
cv::Rodrigues(R, rvec);
|
||||
cameraMatrix.at<double>(0,0) = cameraMatrix.at<double>(1,1) = f;
|
||||
if(cameraMatrix.type() == CV_32F)
|
||||
cameraMatrix.at<float>(0,0) = cameraMatrix.at<float>(1,1) = f;
|
||||
else
|
||||
cameraMatrix.at<double>(0,0) = cameraMatrix.at<double>(1,1) = f;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user