Home
last modified time | relevance | path

Searched refs:imagePoints (Results 1 – 18 of 18) sorted by relevance

/external/opencv3/samples/cpp/
Dcalibration.cpp87 const vector<vector<Point2f> >& imagePoints, in computeReprojectionErrors()
101 err = norm(Mat(imagePoints[i]), Mat(imagePoints2), NORM_L2); in computeReprojectionErrors()
137 static bool runCalibration( vector<vector<Point2f> > imagePoints, in runCalibration() argument
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()
176 const vector<vector<Point2f> >& imagePoints, in saveCameraParams()
238 if( !imagePoints.empty() ) in saveCameraParams()
240 Mat imagePtMat((int)imagePoints.size(), (int)imagePoints[0].size(), CV_32FC2); in saveCameraParams()
241 for( int i = 0; i < (int)imagePoints.size(); i++ ) in saveCameraParams()
[all …]
Dstereo_calib.cpp72 vector<vector<Point2f> > imagePoints[2]; in StereoCalib() local
78 imagePoints[0].resize(nimages); in StereoCalib()
79 imagePoints[1].resize(nimages); in StereoCalib()
98 vector<Point2f>& corners = imagePoints[k][j]; in StereoCalib()
154 imagePoints[0].resize(nimages); in StereoCalib()
155 imagePoints[1].resize(nimages); in StereoCalib()
172 double rms = stereoCalibrate(objectPoints, imagePoints[0], imagePoints[1], in StereoCalib()
194 int npt = (int)imagePoints[0][i].size(); in StereoCalib()
198 imgpt[k] = Mat(imagePoints[k][i]); in StereoCalib()
204 double errij = fabs(imagePoints[0][i][j].x*lines[1][j][0] + in StereoCalib()
[all …]
/external/opencv3/samples/cpp/tutorial_code/calib3d/camera_calibration/
Dcamera_calibration.cpp222 vector<vector<Point2f> > imagePoints );
250 vector<vector<Point2f> > imagePoints; in main() local
267 if( mode == CAPTURING && imagePoints.size() >= (size_t)s.nrFrames ) in main()
269 if( runCalibrationAndSave(s, imageSize, cameraMatrix, distCoeffs, imagePoints)) in main()
277 if( mode != CALIBRATED && !imagePoints.empty() ) in main()
278 runCalibrationAndSave(s, imageSize, cameraMatrix, distCoeffs, imagePoints); in main()
322 imagePoints.push_back(pointBuf); in main()
342 msg = format( "%d/%d Undist", (int)imagePoints.size(), s.nrFrames ); in main()
344 msg = format( "%d/%d", (int)imagePoints.size(), s.nrFrames ); in main()
374 imagePoints.clear(); in main()
[all …]
/external/opencv/cv/src/
Dcvposit.cpp112 static CvStatus icvPOSIT( CvPOSITObject *pObject, CvPoint2D32f *imagePoints, in icvPOSIT() argument
129 if( imagePoints == NULL ) in icvPOSIT()
153 imgVectors[i] = imagePoints[i + 1].x - imagePoints[0].x; in icvPOSIT()
154 imgVectors[N + i] = imagePoints[i + 1].y - imagePoints[0].y; in icvPOSIT()
173 imgVectors[i] = imagePoints[i + 1].x * tmp - imagePoints[0].x; in icvPOSIT()
178 imgVectors[N + i] = imagePoints[i + 1].y * tmp - imagePoints[0].y; in icvPOSIT()
237 translation[0] = imagePoints[0].x * invScale; in icvPOSIT()
238 translation[1] = imagePoints[0].y * invScale; in icvPOSIT()
352 cvPOSIT( CvPOSITObject * pObject, CvPoint2D32f * imagePoints, in cvPOSIT() argument
360 IPPI_CALL( icvPOSIT( pObject, imagePoints,(float) focalLength, criteria, in cvPOSIT()
Dcvcalibration.cpp772 CvMat* imagePoints, CvMat* dpdr, in cvProjectPoints2() argument
797 /*!CV_IS_MAT(distCoeffs) ||*/ !CV_IS_MAT(imagePoints) ) in cvProjectPoints2()
812 if( CV_IS_CONT_MAT(imagePoints->type) && CV_MAT_DEPTH(imagePoints->type) == CV_64F && in cvProjectPoints2()
813 ((imagePoints->rows == 1 && CV_MAT_CN(imagePoints->type) == 2) || in cvProjectPoints2()
814 (imagePoints->rows == count && CV_MAT_CN(imagePoints->type)*imagePoints->cols == 2))) in cvProjectPoints2()
815 _m = imagePoints; in cvProjectPoints2()
1091 if( _m != imagePoints ) in cvProjectPoints2()
1092 cvConvertPointsHomogeneous( _m, imagePoints ); in cvProjectPoints2()
1108 if( _m != imagePoints ) in cvProjectPoints2()
1125 const CvMat* imagePoints, const CvMat* A, in cvFindExtrinsicCameraParams2() argument
[all …]
Dcvfundam.cpp576 cvFindHomography( const CvMat* objectPoints, const CvMat* imagePoints, in cvFindHomography() argument
592 CV_ASSERT( CV_IS_MAT(imagePoints) && CV_IS_MAT(objectPoints) ); in cvFindHomography()
594 count = MAX(imagePoints->cols, imagePoints->rows); in cvFindHomography()
598 cvConvertPointsHomogeneous( imagePoints, m ); in cvFindHomography()
/external/opencv3/modules/calib3d/src/
Dposit.cpp113 static CvStatus icvPOSIT( CvPOSITObject *pObject, CvPoint2D32f *imagePoints, in icvPOSIT() argument
123 if( imagePoints == NULL ) in icvPOSIT()
154 imgVectors[i] = imagePoints[i + 1].x - imagePoints[0].x; in icvPOSIT()
155 imgVectors[N + i] = imagePoints[i + 1].y - imagePoints[0].y; in icvPOSIT()
174 imgVectors[i] = imagePoints[i + 1].x * tmp - imagePoints[0].x; in icvPOSIT()
179 imgVectors[N + i] = imagePoints[i + 1].y * tmp - imagePoints[0].y; in icvPOSIT()
240 translation[0] = imagePoints[0].x * invScale; in icvPOSIT()
241 translation[1] = imagePoints[0].y * invScale; in icvPOSIT()
345 cvPOSIT( CvPOSITObject * pObject, CvPoint2D32f * imagePoints, in cvPOSIT() argument
349 IPPI_CALL( icvPOSIT( pObject, imagePoints,(float) focalLength, criteria, in cvPOSIT()
Dfisheye.hpp22 void projectPoints(cv::InputArray objectPoints, cv::OutputArray imagePoints,
26 void ComputeExtrinsicRefine(const Mat& imagePoints, const Mat& objectPoints, Mat& rvec,
31 CV_EXPORTS Mat NormalizePixels(const Mat& imagePoints, const IntrinsicParams& param);
35 void CalibrateExtrinsics(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints,
39 void ComputeJacobians(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints,
43 …XPORTS void EstimateUncertainties(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints,
Dfisheye.cpp62 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
73 imagePoints.create(objectPoints.size(), CV_MAKETYPE(objectPoints.depth(), 2)); in projectPoints()
117 Vec2f *xpf = imagePoints.getMat().ptr<Vec2f>(); in projectPoints()
118 Vec2d *xpd = imagePoints.getMat().ptr<Vec2d>(); in projectPoints()
690 double cv::fisheye::calibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, cons… in calibrate() argument
694 …CV_Assert(!objectPoints.empty() && !imagePoints.empty() && objectPoints.total() == imagePoints.tot… in calibrate()
696 CV_Assert(imagePoints.type() == CV_32FC2 || imagePoints.type() == CV_64FC2); in calibrate()
752 CalibrateExtrinsics(objectPoints, imagePoints, finalParam, check_cond, thresh_cond, omc, Tc); in calibrate()
[all …]
Dcalibration.cpp533 CvMat* imagePoints, CvMat* dpdr, in cvProjectPoints2() argument
554 /*!CV_IS_MAT(distCoeffs) ||*/ !CV_IS_MAT(imagePoints) ) in cvProjectPoints2()
581 if( CV_IS_CONT_MAT(imagePoints->type) && in cvProjectPoints2()
582 (CV_MAT_DEPTH(imagePoints->type) == CV_32F || CV_MAT_DEPTH(imagePoints->type) == CV_64F) && in cvProjectPoints2()
583 ((imagePoints->rows == 1 && CV_MAT_CN(imagePoints->type) == 2) || in cvProjectPoints2()
584 (imagePoints->rows == count && CV_MAT_CN(imagePoints->type)*imagePoints->cols == 2) || in cvProjectPoints2()
585 … (imagePoints->rows == 2 && CV_MAT_CN(imagePoints->type) == 1 && imagePoints->cols == count))) in cvProjectPoints2()
587 …_m.reset(cvCreateMat( imagePoints->rows, imagePoints->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(imagePoin… in cvProjectPoints2()
588 cvConvert(imagePoints, _m); in cvProjectPoints2()
903 if( _m != imagePoints ) in cvProjectPoints2()
[all …]
/external/opencv3/modules/java/src/
Dcalib3d+Calib3d.java72 …public static void projectPoints(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat rvec, Ma… in projectPoints() argument
75 Mat imagePoints_mat = imagePoints; in projectPoints()
82 …public static void projectPoints(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat rvec, Ma… in projectPoints() argument
85 Mat imagePoints_mat = imagePoints; in projectPoints()
203 …public static double calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat… in calibrate() argument
206 Mat imagePoints_mat = Converters.vector_Mat_to_Mat(imagePoints); in calibrate()
218 …public static double calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat… in calibrate() argument
221 Mat imagePoints_mat = Converters.vector_Mat_to_Mat(imagePoints); in calibrate()
233 …public static double calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat… in calibrate() argument
236 Mat imagePoints_mat = Converters.vector_Mat_to_Mat(imagePoints); in calibrate()
[all …]
Dcalib3d.cpp1177 std::vector<Point2f> imagePoints; in Java_org_opencv_calib3d_Calib3d_projectPoints_10() local
1184 …cv::fisheye::projectPoints( objectPoints, imagePoints, rvec, tvec, K, D, (double)alpha, jacobian ); in Java_org_opencv_calib3d_Calib3d_projectPoints_10()
1185 vector_Point2f_to_Mat( imagePoints, imagePoints_mat ); in Java_org_opencv_calib3d_Calib3d_projectPoints_10()
1208 std::vector<Point2f> imagePoints; in Java_org_opencv_calib3d_Calib3d_projectPoints_11() local
1214 cv::fisheye::projectPoints( objectPoints, imagePoints, rvec, tvec, K, D ); in Java_org_opencv_calib3d_Calib3d_projectPoints_11()
1215 vector_Point2f_to_Mat( imagePoints, imagePoints_mat ); in Java_org_opencv_calib3d_Calib3d_projectPoints_11()
1488 std::vector<Mat> imagePoints; in Java_org_opencv_calib3d_Calib3d_calibrate_10() local
1490 Mat_to_vector_Mat( imagePoints_mat, imagePoints ); 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()
1523 std::vector<Mat> imagePoints; in Java_org_opencv_calib3d_Calib3d_calibrate_11() local
[all …]
/external/opencv3/modules/calib3d/test/
Dtest_cameracalibration.cpp260 CvSize imageSize, CvPoint2D64f* imagePoints, CvPoint3D64f* objectPoints,
265 double* cameraMatrix, double* distortion, CvPoint2D64f* imagePoints ) = 0;
300 CvPoint2D64f* imagePoints; in run() local
328 imagePoints = 0; in run()
406 imagePoints = (CvPoint2D64f*)cvAlloc( numPoints * in run()
458 (imagePoints+i)->x = x; in run()
459 (imagePoints+i)->y = y; in run()
523 imagePoints, in run()
560 dx = rx - imagePoints[i].x; in run()
561 dy = ry - imagePoints[i].y; in run()
[all …]
Dtest_cameracalibration_artificial.cpp298 vector< vector<Point2f> > imagePoints; in runTest() local
302 case JUST_FIND_CORNERS: imagePoints = imagePoints_findCb; break; in runTest()
303 case ARTIFICIAL_CORNERS: imagePoints = imagePoints_art; break; in runTest()
312 imagePoints.push_back(tmp); in runTest()
322 imagePoints.push_back(tmp); in runTest()
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()
Dtest_fisheye.cpp240 std::vector<std::vector<cv::Point2d> > imagePoints(n_images); in TEST_F() local
247 fs_left[cv::format("image_%d", i )] >> imagePoints[i]; in TEST_F()
264 cv::fisheye::calibrate(objectPoints, imagePoints, imageSize, K, D, in TEST_F()
275 std::vector<std::vector<cv::Point2d> > imagePoints(n_images); in TEST_F() local
282 fs_left[cv::format("image_%d", i )] >> imagePoints[i]; in TEST_F()
295 cv::Mat _imagePoints (imagePoints[0]); in TEST_F()
336 std::vector<std::vector<cv::Point2d> > imagePoints(n_images); in TEST_F() local
343 fs_left[cv::format("image_%d", i )] >> imagePoints[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()
Dtest_cameracalibration_badarg.cpp477 CvMat* imagePoints; member
487 cvProjectPoints2( objectPoints, r_vec, t_vec, A, distCoeffs, imagePoints, in operator ()()
528 caller.imagePoints = &imagePoints_c; in run()
556 bad_caller.imagePoints = 0; in run()
/external/opencv3/modules/calib3d/include/opencv2/
Dcalib3d.hpp473 OutputArray imagePoints,
528 CV_EXPORTS_W bool solvePnP( InputArray objectPoints, InputArray imagePoints,
567 CV_EXPORTS_W bool solvePnPRansac( InputArray objectPoints, InputArray imagePoints,
590 InputArrayOfArrays imagePoints,
796 InputArrayOfArrays imagePoints, Size imageSize,
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…
/external/opencv3/doc/tutorials/calib3d/camera_calibration/
Dcamera_calibration.markdown135 *imagePoints* vector to collect all of the equations into a single container. Finally, for
187 objectPoints.resize(imagePoints.size(),objectPoints[0]);
208 double rms = calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,