HomeSort by relevance Sort by last modified time
    Searched full:cameramatrix (Results 1 - 25 of 34) sorted by null

1 2

  /external/opencv3/modules/calib3d/test/
test_undistort_points.cpp 17 void generateCameraMatrix(Mat& cameraMatrix);
44 void CV_UndistortTest::generateCameraMatrix(Mat& cameraMatrix)
48 cameraMatrix.create(3, 3, CV_64FC1);
49 cameraMatrix.setTo(Scalar(0));
50 cameraMatrix.at<double>(0,0) = rng.uniform(fcMinVal, fcMaxVal);
51 cameraMatrix.at<double>(1,1) = rng.uniform(fcMinVal, fcMaxVal);
52 cameraMatrix.at<double>(0,2) = rng.uniform(fcMinVal, fcMaxVal);
53 cameraMatrix.at<double>(1,2) = rng.uniform(fcMinVal, fcMaxVal);
54 cameraMatrix.at<double>(2,2) = 1;
test_cameracalibration.cpp 261 double* distortionCoeffs, double* cameraMatrix, double* translationVectors,
265 double* cameraMatrix, double* distortion, CvPoint2D64f* imagePoints ) = 0;
310 double cameraMatrix[3*3];
513 memset( cameraMatrix, 0, 9*sizeof(cameraMatrix[0]) );
514 cameraMatrix[0] = cameraMatrix[4] = 807.;
515 cameraMatrix[2] = (imageSize.width - 1)*0.5;
516 cameraMatrix[5] = (imageSize.height - 1)*0.5;
517 cameraMatrix[8] = 1.
    [all...]
test_solvepnp_ransac.cpp 82 void generateCameraMatrix(Mat& cameraMatrix, RNG& rng)
86 cameraMatrix.create(3, 3, CV_64FC1);
87 cameraMatrix.setTo(Scalar(0));
88 cameraMatrix.at<double>(0,0) = rng.uniform(fcMinVal, fcMaxVal);
89 cameraMatrix.at<double>(1,1) = rng.uniform(fcMinVal, fcMaxVal);
90 cameraMatrix.at<double>(0,2) = rng.uniform(fcMinVal, fcMaxVal);
91 cameraMatrix.at<double>(1,2) = rng.uniform(fcMinVal, fcMaxVal);
92 cameraMatrix.at<double>(2,2) = 1;
test_cameracalibration_badarg.cpp 73 CvMat *cameraMatrix;
82 cameraMatrix, distCoeffs, rvecs, tvecs, flags );
102 CvMat objPts, imgPts, npoints, cameraMatrix, distCoeffs, rvecs, tvecs;
110 caller.cameraMatrix = &cameraMatrix;
146 cameraMatrix = cameraMatrix_cpp;
167 bad_caller.cameraMatrix = 0;
168 errors += run_test_case( CV_StsBadArg, "Zero passed in cameraMatrix", bad_caller );
234 bad_caller.cameraMatrix = &bad_cameraMatrix_c1;
238 bad_caller.cameraMatrix = &bad_cameraMatrix_c2
    [all...]
  /external/opencv3/modules/calib3d/src/
epnp.h 12 epnp(const cv::Mat& cameraMatrix, const cv::Mat& opoints, const cv::Mat& ipoints);
21 void init_camera_parameters(const cv::Mat& cameraMatrix)
23 uc = cameraMatrix.at<T> (0, 2);
24 vc = cameraMatrix.at<T> (1, 2);
25 fu = cameraMatrix.at<T> (0, 0);
26 fv = cameraMatrix.at<T> (1, 1);
p3p.h 11 p3p(cv::Mat cameraMatrix);
26 void init_camera_parameters(const cv::Mat& cameraMatrix)
28 cx = cameraMatrix.at<T> (0, 2);
29 cy = cameraMatrix.at<T> (1, 2);
30 fx = cameraMatrix.at<T> (0, 0);
31 fy = cameraMatrix.at<T> (1, 1);
solvepnp.cpp 86 Mat cameraMatrix = Mat_<double>(cameraMatrix0);
93 undistortPoints(ipoints, undistortedPoints, cameraMatrix, distCoeffs);
94 epnp PnP(cameraMatrix, opoints, undistortedPoints);
105 undistortPoints(ipoints, undistortedPoints, cameraMatrix, distCoeffs);
106 p3p P3Psolver(cameraMatrix);
116 CvMat c_cameraMatrix = cameraMatrix, c_distCoeffs = distCoeffs;
126 undistortPoints(ipoints, undistortedPoints, cameraMatrix, distCoeffs);
138 upnp PnP(cameraMatrix, opoints, ipoints);
157 : cameraMatrix(_cameraMatrix), distCoeffs(_distCoeffs), flags(_flags), useExtrinsicGuess(_useExtrinsicGuess),
166 bool correspondence = solvePnP( _m1, _m2, cameraMatrix, distCoeffs
    [all...]
upnp.h 58 upnp(const cv::Mat& cameraMatrix, const cv::Mat& opoints, const cv::Mat& ipoints);
64 void init_camera_parameters(const cv::Mat& cameraMatrix)
66 uc = cameraMatrix.at<T> (0, 2);
67 vc = cameraMatrix.at<T> (1, 2);
calibration.cpp     [all...]
epnp.cpp 8 epnp::epnp(const Mat& cameraMatrix, const Mat& opoints, const Mat& ipoints)
10 if (cameraMatrix.depth() == CV_32F)
11 init_camera_parameters<float>(cameraMatrix);
13 init_camera_parameters<double>(cameraMatrix);
  /external/opencv3/samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/
CalibrationResult.java 17 public static void save(Activity activity, Mat cameraMatrix, Mat distortionCoefficients) {
22 cameraMatrix.get(0, 0, cameraMatrixArray);
38 Log.i(TAG, "Saved camera matrix: " + cameraMatrix.dump());
42 public static boolean tryLoad(Activity activity, Mat cameraMatrix, Mat distortionCoefficients) {
56 cameraMatrix.put(0, 0, cameraMatrixArray);
57 Log.i(TAG, "Loaded camera matrix: " + cameraMatrix.dump());
  /external/opencv3/samples/cpp/
3calibration.cpp 84 Mat cameraMatrix = Mat::eye(3, 3, CV_64F);
86 cameraMatrix.at<double>(0,0) = aspectRatio;
90 double err = calibrateCamera(objpt, imgpt, imageSize, cameraMatrix,
93 bool ok = checkRange(cameraMatrix) && checkRange(distCoeffs);
102 cameraMatrix1 = cameraMatrix, distCoeffs1 = distCoeffs;
104 cameraMatrix2 = cameraMatrix, distCoeffs2 = distCoeffs;
106 cameraMatrix3 = cameraMatrix, distCoeffs3 = distCoeffs;
135 Mat cameraMatrix = c == 2 ? cameraMatrix2 : cameraMatrix3;
139 cameraMatrix, distCoeffs,
146 cameraMatrix2 = cameraMatrix;
    [all...]
stereo_calib.cpp 167 Mat cameraMatrix[2], distCoeffs[2];
168 cameraMatrix[0] = Mat::eye(3, 3, CV_64F);
169 cameraMatrix[1] = Mat::eye(3, 3, CV_64F);
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]
    [all...]
select3dobj.cpp 87 Mat& cameraMatrix, Mat& distCoeffs,
94 fs["camera_matrix"] >> cameraMatrix;
98 if( cameraMatrix.type() != CV_64F )
99 cameraMatrix = Mat_<double>(cameraMatrix);
116 const Mat& cameraMatrix, double Z)
120 Mat_<double> v = (cameraMatrix*R1).inv()*(Mat_<double>(3,1) << imgpt.x, imgpt.y, 1);
127 const Mat& cameraMatrix, const Mat& rvec, const Mat& tvec,
148 projectPoints(Mat(objpt), rvec, tvec, cameraMatrix, Mat(), imgpt);
199 const Mat& cameraMatrix, const Mat& rvec, const Mat& tvec
    [all...]
calibration.cpp 89 const Mat& cameraMatrix, const Mat& distCoeffs,
100 cameraMatrix, distCoeffs, imagePoints2);
140 int flags, Mat& cameraMatrix, Mat& distCoeffs,
145 cameraMatrix = Mat::eye(3, 3, CV_64F);
147 cameraMatrix.at<double>(0,0) = aspectRatio;
156 double rms = calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,
161 bool ok = checkRange(cameraMatrix) && checkRange(distCoeffs);
164 rvecs, tvecs, cameraMatrix, distCoeffs, reprojErrs);
173 const Mat& cameraMatrix, const Mat& distCoeffs,
212 fs << "camera_matrix" << cameraMatrix;
    [all...]
  /external/opencv3/modules/java/src/
calib3d+Calib3d.java 310 // C++: void decomposeProjectionMatrix(Mat projMatrix, Mat& cameraMatrix, Mat& rotMatrix, Mat& transVect, Mat& rotMatrixX = Mat(), Mat& rotMatrixY = Mat(), Mat& rotMatrixZ = Mat(), Mat& eulerAngles = Mat())
313 //javadoc: decomposeProjectionMatrix(projMatrix, cameraMatrix, rotMatrix, transVect, rotMatrixX, rotMatrixY, rotMatrixZ, eulerAngles)
314 public static void decomposeProjectionMatrix(Mat projMatrix, Mat cameraMatrix, Mat rotMatrix, Mat transVect, Mat rotMatrixX, Mat rotMatrixY, Mat rotMatrixZ, Mat eulerAngles)
317 decomposeProjectionMatrix_0(projMatrix.nativeObj, cameraMatrix.nativeObj, rotMatrix.nativeObj, transVect.nativeObj, rotMatrixX.nativeObj, rotMatrixY.nativeObj, rotMatrixZ.nativeObj, eulerAngles.nativeObj);
322 //javadoc: decomposeProjectionMatrix(projMatrix, cameraMatrix, rotMatrix, transVect)
323 public static void decomposeProjectionMatrix(Mat projMatrix, Mat cameraMatrix, Mat rotMatrix, Mat transVect)
326 decomposeProjectionMatrix_1(projMatrix.nativeObj, cameraMatrix.nativeObj, rotMatrix.nativeObj, transVect.nativeObj);
370 // C++: void projectPoints(vector_Point3f objectPoints, Mat rvec, Mat tvec, Mat cameraMatrix, vector_double distCoeffs, vector_Point2f& imagePoints, Mat& jacobian = Mat(), double aspectRatio = 0)
373 //javadoc: projectPoints(objectPoints, rvec, tvec, cameraMatrix, distCoeffs, imagePoints, jacobian, aspectRatio)
374 public static void projectPoints(MatOfPoint3f objectPoints, Mat rvec, Mat tvec, Mat cameraMatrix, MatOfDouble distCoeffs, MatOfPoint2f imagePoints, Mat jacobian, double aspectRatio
    [all...]
imgproc+Imgproc.java     [all...]
calib3d.cpp     [all...]
  /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...]
in_VID5.xml 28 <!-- Consider only fy as a free parameter, the ratio fx/fy stays the same as in the input cameraMatrix.
  /external/opencv3/modules/imgproc/src/
undistort.cpp 48 Mat cameraMatrix = _cameraMatrix.getMat();
49 if( !centerPrincipalPoint && cameraMatrix.type() == CV_64F )
50 return cameraMatrix;
53 cameraMatrix.convertTo(newCameraMatrix, CV_64F);
66 Mat cameraMatrix = _cameraMatrix.getMat(), distCoeffs = _distCoeffs.getMat();
83 Mat_<double> A = Mat_<double>(cameraMatrix), Ar;
173 Mat src = _src.getMat(), cameraMatrix = _cameraMatrix.getMat();
186 cameraMatrix.convertTo(A, CV_64F);
397 Mat src = _src.getMat(), cameraMatrix = _cameraMatrix.getMat();
406 CvMat _csrc = src, _cdst = dst, _ccameraMatrix = cameraMatrix;
    [all...]
  /external/opencv3/doc/tutorials/calib3d/camera_calibration_square_chess/
camera_calibration_square_chess.markdown 48 solvePnP(Mat(boardPoints), Mat(foundBoardCorners), cameraMatrix,
  /external/opencv3/modules/imgproc/misc/java/test/
ImgprocTest.java     [all...]
  /external/opencv3/3rdparty/openexr/Imath/
ImathFrustumTest.h 163 Imath::Matrix44<T> cameraMat() const {return cameraMatrix;}
182 Matrix44<T> cameraMatrix;
228 cameraMatrix = cameraMat;
  /external/opencv3/modules/calib3d/include/opencv2/
calib3d.hpp 359 @param cameraMatrix Output 3x3 camera matrix K.
378 CV_EXPORTS_W void decomposeProjectionMatrix( InputArray projMatrix, OutputArray cameraMatrix,
444 @param cameraMatrix Camera matrix \f$A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{_1}\f$ .
465 @note By setting rvec=tvec=(0,0,0) or by setting cameraMatrix to a 3x3 identity matrix, or by
472 InputArray cameraMatrix, InputArray distCoeffs,
483 @param cameraMatrix Input camera matrix \f$A = \vecthreethree{fx}{0}{cx}{0}{fy}{cy}{0}{0}{1}\f$ .
508 assuming that both have the same value. Then the cameraMatrix is updated with the estimated
529 InputArray cameraMatrix, InputArray distCoeffs,
539 @param cameraMatrix Input camera matrix \f$A = \vecthreethree{fx}{0}{cx}{0}{fy}{cy}{0}{0}{1}\f$ .
568 InputArray cameraMatrix, InputArray distCoeffs
    [all...]

Completed in 796 milliseconds

1 2