/external/opencv3/modules/calib3d/test/ |
test_undistort_points.cpp | 18 void generateDistCoeffs(Mat& distCoeffs, int count); 56 void CV_UndistortTest::generateDistCoeffs(Mat& distCoeffs, int count) 58 distCoeffs = Mat::zeros(count, 1, CV_64FC1); 60 distCoeffs.at<double>(i,0) = rng.uniform(0.0, 1.0e-3); 65 Mat intrinsics, distCoeffs; 75 generateDistCoeffs(distCoeffs, modelMembersCount[idx]); 76 projectPoints(Mat(points), Mat::zeros(3,1,CV_64FC1), Mat::zeros(3,1,CV_64FC1), intrinsics, distCoeffs, projectedPoints); 82 undistortPoints(Mat(projectedPoints), undistortedPoints, intrinsics, distCoeffs);
|
test_chessboardgenerator.cpp | 109 Mat cv::ChessBoardGenerator::generateChessBoard(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, 131 projectPoints(Mat(pts_square3d), rvec, tvec, camMat, distCoeffs, pts_square2d); 144 projectPoints(Mat(corners3d), rvec, tvec, camMat, distCoeffs, corners); 152 projectPoints(Mat(whole3d), rvec, tvec, camMat, distCoeffs, whole2d); 179 Mat cv::ChessBoardGenerator::operator ()(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, vector<Point2f>& corners) const 218 projectPoints(Mat(pts3d), rvec, tvec, camMat, distCoeffs, pts2d); 239 return generateChessBoard(bg, camMat, distCoeffs, zero, pb1, pb2, sqWidth, sqHeight, pts3d, corners); 243 Mat cv::ChessBoardGenerator::operator ()(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, 283 projectPoints(Mat(pts3d), rvec, tvec, camMat, distCoeffs, pts2d); 298 return generateChessBoard(bg, camMat, distCoeffs, zero, pb1, pb2 [all...] |
test_solvepnp_ransac.cpp | 95 void generateDistCoeffs(Mat& distCoeffs, RNG& rng) 97 distCoeffs = Mat::zeros(4, 1, CV_64FC1); 99 distCoeffs.at<double>(i,0) = rng.uniform(0.0, 1.0e-6); 120 Mat intrinsics, distCoeffs; 124 distCoeffs = Mat::zeros(4, 1, CV_64FC1); 126 generateDistCoeffs(distCoeffs, rng); 131 projectPoints(Mat(points), trueRvec, trueTvec, intrinsics, distCoeffs, projectedPoints); 140 solvePnPRansac(points, projectedPoints, intrinsics, distCoeffs, rvec, tvec, 215 Mat intrinsics, distCoeffs; 219 distCoeffs = Mat::zeros(4, 1, CV_64FC1) [all...] |
test_cameracalibration_artificial.cpp | 136 void compareDistCoeffs(const Mat_<double>& distCoeffs, const Mat& distCoeffs_est) 143 double k1 = distCoeffs(0, 0), k2 = distCoeffs(0, 1), k3 = distCoeffs(0, 4); 144 double p1 = distCoeffs(0, 2), p2 = distCoeffs(0, 3); 254 void prepareForTest(const Mat& bg, const Mat& camMat, const Mat& distCoeffs, size_t brdsNum, const ChessBoardGenerator& cbg) 277 boards[i] = cbg(bg, camMat, distCoeffs, sqSile, corners_art); 294 void runTest(const Size& imgSize, const Mat_<double>& camMat, const Mat_<double>& distCoeffs, size_t brdsNum, const Size& cornersSize, int flag = 0) 345 compareDistCoeffs(distCoeffs, distCoeffs_est) [all...] |
test_cameracalibration_badarg.cpp | 74 CvMat *distCoeffs; 82 cameraMatrix, distCoeffs, rvecs, tvecs, flags ); 102 CvMat objPts, imgPts, npoints, cameraMatrix, distCoeffs, rvecs, tvecs; 111 caller.distCoeffs = &distCoeffs; 147 distCoeffs = distCoeffs_cpp; 171 bad_caller.distCoeffs = 0; 172 errors += run_test_case( CV_StsBadArg, "Zero passed in distCoeffs", bad_caller ); 252 bad_caller.distCoeffs = &bad_distCoeffs_c1; 253 errors += run_test_case( CV_StsBadArg, "Bad distCoeffs header", bad_caller ) [all...] |
/external/opencv3/modules/calib3d/src/ |
solvepnp.cpp | 87 Mat distCoeffs = Mat_<double>(distCoeffs0); 93 undistortPoints(ipoints, undistortedPoints, cameraMatrix, distCoeffs); 105 undistortPoints(ipoints, undistortedPoints, cameraMatrix, distCoeffs); 116 CvMat c_cameraMatrix = cameraMatrix, c_distCoeffs = distCoeffs; 126 undistortPoints(ipoints, undistortedPoints, cameraMatrix, distCoeffs); 157 : cameraMatrix(_cameraMatrix), distCoeffs(_distCoeffs), flags(_flags), useExtrinsicGuess(_useExtrinsicGuess), 166 bool correspondence = solvePnP( _m1, _m2, cameraMatrix, distCoeffs, 189 projectPoints(opoints, _rvec, _tvec, cameraMatrix, distCoeffs, projpoints); 204 Mat distCoeffs; 244 Mat cameraMatrix = _cameraMatrix.getMat(), distCoeffs = _distCoeffs.getMat() [all...] |
/external/opencv3/samples/cpp/ |
3calibration.cpp | 88 Mat distCoeffs = Mat::zeros(5, 1, CV_64F); 91 distCoeffs, rvecs, tvecs, 93 bool ok = checkRange(cameraMatrix) && checkRange(distCoeffs); 102 cameraMatrix1 = cameraMatrix, distCoeffs1 = distCoeffs; 104 cameraMatrix2 = cameraMatrix, distCoeffs2 = distCoeffs; 106 cameraMatrix3 = cameraMatrix, distCoeffs3 = distCoeffs; 136 Mat distCoeffs = c == 2 ? distCoeffs2 : distCoeffs3; 139 cameraMatrix, distCoeffs, 147 distCoeffs2 = distCoeffs; 247 Mat cameraMatrix[3], distCoeffs[3], R[3], P[3], R12, T12 [all...] |
stereo_calib.cpp | 167 Mat cameraMatrix[2], distCoeffs[2]; 173 cameraMatrix[0], distCoeffs[0], 174 cameraMatrix[1], distCoeffs[1], 199 undistortPoints(imgpt[k], imgpt[k], cameraMatrix[k], distCoeffs[k], Mat(), cameraMatrix[k]); 218 fs << "M1" << cameraMatrix[0] << "D1" << distCoeffs[0] << 219 "M2" << cameraMatrix[1] << "D2" << distCoeffs[1]; 228 stereoRectify(cameraMatrix[0], distCoeffs[0], 229 cameraMatrix[1], distCoeffs[1], 279 initUndistortRectifyMap(cameraMatrix[0], distCoeffs[0], R1, P1, imageSize, CV_16SC2, rmap[0][0], rmap[0][1]); 280 initUndistortRectifyMap(cameraMatrix[1], distCoeffs[1], R2, P2, imageSize, CV_16SC2, rmap[1][0], rmap[1][1]) [all...] |
calibration.cpp | 89 const Mat& cameraMatrix, const Mat& distCoeffs, 100 cameraMatrix, distCoeffs, imagePoints2); 140 int flags, Mat& cameraMatrix, Mat& distCoeffs, 149 distCoeffs = Mat::zeros(8, 1, CV_64F); 157 distCoeffs, rvecs, tvecs, flags|CALIB_FIX_K4|CALIB_FIX_K5); 161 bool ok = checkRange(cameraMatrix) && checkRange(distCoeffs); 164 rvecs, tvecs, cameraMatrix, distCoeffs, reprojErrs); 173 const Mat& cameraMatrix, const Mat& distCoeffs, 213 fs << "distortion_coefficients" << distCoeffs; 271 Mat& distCoeffs, bool writeExtrinsics, bool writePoints [all...] |
select3dobj.cpp | 87 Mat& cameraMatrix, Mat& distCoeffs, 93 fs["distortion_coefficients"] >> distCoeffs; 96 if( distCoeffs.type() != CV_64F ) 97 distCoeffs = Mat_<double>(distCoeffs); 467 Mat cameraMatrix, distCoeffs; 469 readCameraMatrix(intrinsicsFilename, cameraMatrix, distCoeffs, calibratedImageSize ); 553 initUndistortRectifyMap(cameraMatrix, distCoeffs, Mat(), 556 distCoeffs = Mat::zeros(5, 1, CV_64F); 565 distCoeffs, rvec, tvec, false) [all...] |
/external/opencv3/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/ |
PnPProblem.cpp | 113 cv::Mat distCoeffs = cv::Mat::zeros(4, 1, CV_64FC1); 120 bool correspondence = cv::solvePnP( list_points3d, list_points2d, _A_matrix, distCoeffs, rvec, tvec, 140 cv::Mat distCoeffs = cv::Mat::zeros(4, 1, CV_64FC1); // vector of distortion coefficients 147 cv::solvePnPRansac( list_points3d, list_points2d, _A_matrix, distCoeffs, rvec, tvec,
|
/external/opencv3/samples/cpp/tutorial_code/calib3d/camera_calibration/ |
camera_calibration.cpp | 221 bool runCalibrationAndSave(Settings& s, Size imageSize, Mat& cameraMatrix, Mat& distCoeffs, 251 Mat cameraMatrix, distCoeffs; 269 if( runCalibrationAndSave(s, imageSize, cameraMatrix, distCoeffs, imagePoints)) 278 runCalibrationAndSave(s, imageSize, cameraMatrix, distCoeffs, imagePoints); 357 undistort(temp, view, cameraMatrix, distCoeffs); 384 initUndistortRectifyMap(cameraMatrix, distCoeffs, Mat(), 385 getOptimalNewCameraMatrix(cameraMatrix, distCoeffs, imageSize, 1, imageSize, 0), 409 const Mat& cameraMatrix , const Mat& distCoeffs, 419 projectPoints(objectPoints[i], rvecs[i], tvecs[i], cameraMatrix, distCoeffs, imagePoints2); 456 static bool runCalibration( Settings& s, Size& imageSize, Mat& cameraMatrix, Mat& distCoeffs, [all...] |
/external/opencv3/modules/imgproc/src/ |
undistort.cpp | 66 Mat cameraMatrix = _cameraMatrix.getMat(), distCoeffs = _distCoeffs.getMat(); 93 if( !distCoeffs.empty() ) 94 distCoeffs = Mat_<double>(distCoeffs); 97 distCoeffs.create(12, 1, CV_64F); 98 distCoeffs = 0.; 109 CV_Assert( distCoeffs.size() == Size(1, 4) || distCoeffs.size() == Size(4, 1) || 110 distCoeffs.size() == Size(1, 5) || distCoeffs.size() == Size(5, 1) | [all...] |
/external/opencv3/modules/java/src/ |
calib3d.cpp | [all...] |
imgproc.cpp | [all...] |
/cts/apps/CtsVerifier/libs/ |
opencv3-android.jar | |
/external/opencv3/modules/imgproc/misc/java/test/ |
ImgprocTest.java | [all...] |