/external/opencv3/samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/ |
D | CameraCalibrator.java | 59 ArrayList<Mat> objectPoints = new ArrayList<Mat>(); in calibrate() local 60 objectPoints.add(Mat.zeros(mCornersSize, 1, CvType.CV_32FC3)); in calibrate() 61 calcBoardCornerPositions(objectPoints.get(0)); in calibrate() 63 objectPoints.add(objectPoints.get(0)); in calibrate() 66 Calib3d.calibrateCamera(objectPoints, mCornersBuffer, mImageSize, in calibrate() 72 mRms = computeReprojectionErrors(objectPoints, rvecs, tvecs, reprojectionErrors); in calibrate() 99 private double computeReprojectionErrors(List<Mat> objectPoints, in computeReprojectionErrors() argument 104 float viewErrors[] = new float[objectPoints.size()]; in computeReprojectionErrors() 108 for (int i = 0; i < objectPoints.size(); i++) { in computeReprojectionErrors() 109 MatOfPoint3f points = new MatOfPoint3f(objectPoints.get(i)); in computeReprojectionErrors() [all …]
|
/external/opencv3/modules/calib3d/src/ |
D | fisheye.cpp | 62 void cv::fisheye::projectPoints(InputArray objectPoints, OutputArray imagePoints, const Affine3d& a… in projectPoints() argument 65 …projectPoints(objectPoints, imagePoints, affine.rvec(), affine.translation(), K, D, alpha, jacobia… in projectPoints() 68 void cv::fisheye::projectPoints(InputArray objectPoints, OutputArray imagePoints, InputArray _rvec, in projectPoints() argument 72 CV_Assert(objectPoints.type() == CV_32FC3 || objectPoints.type() == CV_64FC3); in projectPoints() 73 imagePoints.create(objectPoints.size(), CV_MAKETYPE(objectPoints.depth(), 2)); in projectPoints() 74 size_t n = objectPoints.total(); in projectPoints() 115 const Vec3f* Xf = objectPoints.getMat().ptr<Vec3f>(); in projectPoints() 116 const Vec3d* Xd = objectPoints.getMat().ptr<Vec3d>(); in projectPoints() 122 Vec3d Xi = objectPoints.depth() == CV_32F ? (Vec3d)Xf[i] : Xd[i]; in projectPoints() 145 if (objectPoints.depth() == CV_32F) in projectPoints() [all …]
|
D | fisheye.hpp | 22 void projectPoints(cv::InputArray objectPoints, cv::OutputArray imagePoints, 26 void ComputeExtrinsicRefine(const Mat& imagePoints, const Mat& objectPoints, Mat& rvec, 35 void CalibrateExtrinsics(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, 39 void ComputeJacobians(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, 43 CV_EXPORTS void EstimateUncertainties(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoi…
|
D | calibration.cpp | 528 CV_IMPL void cvProjectPoints2( const CvMat* objectPoints, in cvProjectPoints2() argument 552 if( !CV_IS_MAT(objectPoints) || !CV_IS_MAT(r_vec) || in cvProjectPoints2() 557 int total = objectPoints->rows * objectPoints->cols * CV_MAT_CN(objectPoints->type); in cvProjectPoints2() 565 if( CV_IS_CONT_MAT(objectPoints->type) && in cvProjectPoints2() 566 (CV_MAT_DEPTH(objectPoints->type) == CV_32F || CV_MAT_DEPTH(objectPoints->type) == CV_64F)&& in cvProjectPoints2() 567 ((objectPoints->rows == 1 && CV_MAT_CN(objectPoints->type) == 3) || in cvProjectPoints2() 568 (objectPoints->rows == count && CV_MAT_CN(objectPoints->type)*objectPoints->cols == 3) || in cvProjectPoints2() 569 … (objectPoints->rows == 3 && CV_MAT_CN(objectPoints->type) == 1 && objectPoints->cols == count))) in cvProjectPoints2() 571 …matM.reset(cvCreateMat( objectPoints->rows, objectPoints->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(objec… in cvProjectPoints2() 572 cvConvert(objectPoints, matM); in cvProjectPoints2() [all …]
|
/external/opencv3/modules/java/src/ |
D | calib3d+Calib3d.java | 72 …public static void projectPoints(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat rvec, Ma… in projectPoints() argument 74 Mat objectPoints_mat = objectPoints; in projectPoints() 82 …public static void projectPoints(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat rvec, Ma… in projectPoints() argument 84 Mat objectPoints_mat = objectPoints; in projectPoints() 203 …public static double calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat… in calibrate() argument 205 Mat objectPoints_mat = Converters.vector_Mat_to_Mat(objectPoints); in calibrate() 218 …public static double calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat… in calibrate() argument 220 Mat objectPoints_mat = Converters.vector_Mat_to_Mat(objectPoints); in calibrate() 233 …public static double calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat… in calibrate() argument 235 Mat objectPoints_mat = Converters.vector_Mat_to_Mat(objectPoints); in calibrate() [all …]
|
D | calib3d.cpp | 1174 std::vector<Point3f> objectPoints; in Java_org_opencv_calib3d_Calib3d_projectPoints_10() local 1176 Mat_to_vector_Point3f( objectPoints_mat, objectPoints ); in Java_org_opencv_calib3d_Calib3d_projectPoints_10() 1184 …cv::fisheye::projectPoints( objectPoints, imagePoints, rvec, tvec, K, D, (double)alpha, jacobian ); in Java_org_opencv_calib3d_Calib3d_projectPoints_10() 1205 std::vector<Point3f> objectPoints; in Java_org_opencv_calib3d_Calib3d_projectPoints_11() local 1207 Mat_to_vector_Point3f( objectPoints_mat, objectPoints ); in Java_org_opencv_calib3d_Calib3d_projectPoints_11() 1214 cv::fisheye::projectPoints( objectPoints, imagePoints, rvec, tvec, K, D ); in Java_org_opencv_calib3d_Calib3d_projectPoints_11() 1485 std::vector<Mat> objectPoints; in Java_org_opencv_calib3d_Calib3d_calibrate_10() local 1487 Mat_to_vector_Mat( objectPoints_mat, objectPoints ); in Java_org_opencv_calib3d_Calib3d_calibrate_10() 1499 …double _retval_ = cv::fisheye::calibrate( objectPoints, imagePoints, image_size, K, D, rvecs, tvec… in Java_org_opencv_calib3d_Calib3d_calibrate_10() 1520 std::vector<Mat> objectPoints; in Java_org_opencv_calib3d_Calib3d_calibrate_11() local [all …]
|
/external/opencv3/samples/cpp/ |
D | calibration.cpp | 86 const vector<vector<Point3f> >& objectPoints, in computeReprojectionErrors() 95 perViewErrors.resize(objectPoints.size()); in computeReprojectionErrors() 97 for( i = 0; i < (int)objectPoints.size(); i++ ) in computeReprojectionErrors() 99 projectPoints(Mat(objectPoints[i]), rvecs[i], tvecs[i], in computeReprojectionErrors() 102 int n = (int)objectPoints[i].size(); in computeReprojectionErrors() 151 vector<vector<Point3f> > objectPoints(1); in runCalibration() local 152 calcChessboardCorners(boardSize, squareSize, objectPoints[0], patternType); in runCalibration() 154 objectPoints.resize(imagePoints.size(),objectPoints[0]); in runCalibration() 156 double rms = calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix, in runCalibration() 163 totalAvgErr = computeReprojectionErrors(objectPoints, imagePoints, in runCalibration()
|
D | stereo_calib.cpp | 73 vector<vector<Point3f> > objectPoints; in StereoCalib() local 156 objectPoints.resize(nimages); in StereoCalib() 162 objectPoints[i].push_back(Point3f(k*squareSize, j*squareSize, 0)); in StereoCalib() 172 double rms = stereoCalibrate(objectPoints, imagePoints[0], imagePoints[1], in StereoCalib()
|
/external/opencv3/modules/calib3d/test/ |
D | test_cameracalibration.cpp | 260 CvSize imageSize, CvPoint2D64f* imagePoints, CvPoint3D64f* objectPoints, 263 virtual void project( int pointCount, CvPoint3D64f* objectPoints, 301 CvPoint3D64f* objectPoints; in run() local 329 objectPoints = 0; in run() 409 objectPoints = (CvPoint3D64f*)cvAlloc( numPoints * in run() 441 (objectPoints+i)->x = x; in run() 442 (objectPoints+i)->y = y; in run() 443 (objectPoints+i)->z = z; in run() 524 objectPoints, in run() 536 objectPoints + currImage * nPoints, in run() [all …]
|
D | test_fisheye.cpp | 241 std::vector<std::vector<cv::Point3d> > objectPoints(n_images); in TEST_F() local 253 fs_object[cv::format("image_%d", i )] >> objectPoints[i]; in TEST_F() 264 cv::fisheye::calibrate(objectPoints, imagePoints, imageSize, K, D, in TEST_F() 276 std::vector<std::vector<cv::Point3d> > objectPoints(n_images); in TEST_F() local 288 fs_object[cv::format("image_%d", i )] >> objectPoints[i]; in TEST_F() 296 cv::Mat _objectPoints(objectPoints[0]); in TEST_F() 337 std::vector<std::vector<cv::Point3d> > objectPoints(n_images); in TEST_F() local 349 fs_object[cv::format("image_%d", i )] >> objectPoints[i]; in TEST_F() 362 cv::fisheye::calibrate(objectPoints, imagePoints, imageSize, K, D, in TEST_F() 377 cv::internal::EstimateUncertainties(objectPoints, imagePoints, param, rvec, tvec, in TEST_F() [all …]
|
D | test_cameracalibration_artificial.cpp | 249 vector< vector<Point3f> > objectPoints; member in CV_CalibrateCameraArtificialTest 267 objectPoints.clear(); in prepareForTest() 268 objectPoints.resize(brdsNum, chessboard3D); in prepareForTest() 334 …double rep_error = calibrateCamera(objectPoints, imagePoints, imgSize, camMat_est, distCoeffs_est,… in runTest() 363 …solvePnP(Mat(objectPoints[i]), Mat(imagePoints[i]), camMat, distCoeffs, rvecs_spnp[i], tvecs_spnp[… in runTest()
|
D | test_cameracalibration_badarg.cpp | 472 CvMat* objectPoints; member 487 cvProjectPoints2( objectPoints, r_vec, t_vec, A, distCoeffs, imagePoints, in operator ()() 523 caller.objectPoints = &objectPoints_c; in run() 540 bad_caller.objectPoints = 0; in run()
|
/external/opencv3/samples/cpp/tutorial_code/calib3d/camera_calibration/ |
D | camera_calibration.cpp | 406 static double computeReprojectionErrors( const vector<vector<Point3f> >& objectPoints, in computeReprojectionErrors() argument 415 perViewErrors.resize(objectPoints.size()); in computeReprojectionErrors() 417 for(size_t i = 0; i < objectPoints.size(); ++i ) in computeReprojectionErrors() 419 projectPoints(objectPoints[i], rvecs[i], tvecs[i], cameraMatrix, distCoeffs, imagePoints2); in computeReprojectionErrors() 422 size_t n = objectPoints[i].size(); in computeReprojectionErrors() 467 vector<vector<Point3f> > objectPoints(1); in runCalibration() local 468 calcBoardCornerPositions(s.boardSize, s.squareSize, objectPoints[0], s.calibrationPattern); in runCalibration() 470 objectPoints.resize(imagePoints.size(),objectPoints[0]); in runCalibration() 473 double rms = calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix, in runCalibration() 480 totalAvgErr = computeReprojectionErrors(objectPoints, imagePoints, in runCalibration()
|
/external/opencv3/modules/calib3d/include/opencv2/ |
D | calib3d.hpp | 470 CV_EXPORTS_W void projectPoints( InputArray objectPoints, 528 CV_EXPORTS_W bool solvePnP( InputArray objectPoints, InputArray imagePoints, 567 CV_EXPORTS_W bool solvePnPRansac( InputArray objectPoints, InputArray imagePoints, 589 CV_EXPORTS_W Mat initCameraMatrix2D( InputArrayOfArrays objectPoints, 795 CV_EXPORTS_W double calibrateCamera( InputArrayOfArrays objectPoints, 913 CV_EXPORTS_W double stereoCalibrate( InputArrayOfArrays objectPoints, 1662 …CV_EXPORTS void projectPoints(InputArray objectPoints, OutputArray imagePoints, const Affine3d& af… 1666 …CV_EXPORTS_W void projectPoints(InputArray objectPoints, OutputArray imagePoints, InputArray rvec,… 1789 …CV_EXPORTS_W double calibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, con… 1859 …CV_EXPORTS_W double stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoint…
|
/external/opencv/cv/src/ |
D | cvcalibration.cpp | 767 cvProjectPoints2( const CvMat* objectPoints, in cvProjectPoints2() argument 795 if( !CV_IS_MAT(objectPoints) || !CV_IS_MAT(r_vec) || in cvProjectPoints2() 800 count = MAX(objectPoints->rows, objectPoints->cols); in cvProjectPoints2() 802 if( CV_IS_CONT_MAT(objectPoints->type) && CV_MAT_DEPTH(objectPoints->type) == CV_64F && in cvProjectPoints2() 803 ((objectPoints->rows == 1 && CV_MAT_CN(objectPoints->type) == 3) || in cvProjectPoints2() 804 (objectPoints->rows == count && CV_MAT_CN(objectPoints->type)*objectPoints->cols == 3))) in cvProjectPoints2() 805 _M = (CvMat*)objectPoints; in cvProjectPoints2() 809 CV_CALL( cvConvertPointsHomogeneous( objectPoints, _M )); in cvProjectPoints2() 1106 if( _M != objectPoints ) in cvProjectPoints2() 1124 cvFindExtrinsicCameraParams2( const CvMat* objectPoints, in cvFindExtrinsicCameraParams2() argument [all …]
|
D | cvfundam.cpp | 576 cvFindHomography( const CvMat* objectPoints, const CvMat* imagePoints, in cvFindHomography() argument 592 CV_ASSERT( CV_IS_MAT(imagePoints) && CV_IS_MAT(objectPoints) ); in cvFindHomography() 601 cvConvertPointsHomogeneous( objectPoints, M ); in cvFindHomography()
|
/external/opencv3/doc/tutorials/calib3d/camera_calibration/ |
D | camera_calibration.markdown | 185 vector<vector<Point3f> > objectPoints(1); 186 calcBoardCornerPositions(s.boardSize, s.squareSize, objectPoints[0], s.calibrationPattern); 187 objectPoints.resize(imagePoints.size(),objectPoints[0]); 208 double rms = calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,
|
/external/opencv/cvaux/src/ |
D | cvepilines.cpp | 2707 CvPoint3D32f* objectPoints, in icvSelectBestRt() argument 2758 icvCvt_32f_64d((float*)objectPoints, (double*)objectPoints_64d, totalNum*3); in icvSelectBestRt() 2846 tmpPoint.x = (double)(objectPoints[i].x); in icvSelectBestRt() 2847 tmpPoint.y = (double)(objectPoints[i].y); in icvSelectBestRt() 2848 tmpPoint.z = (double)(objectPoints[i].z); in icvSelectBestRt() 3168 CvPoint3D32f* objectPoints, in icvStereoCalibration() argument 3191 objectPoints, in icvStereoCalibration() 3203 objectPoints, in icvStereoCalibration() 3222 objectPoints, in icvStereoCalibration()
|
/external/opencv/cvaux/include/ |
D | cvaux.h | 592 CvPoint3D32f* objectPoints,
|