Merge pull request #3954 from martin-ueding:master

pull/3972/head
Vadim Pisarevsky 10 years ago
commit 7245803405
  1. 32
      modules/calib3d/include/opencv2/calib3d.hpp

@ -697,19 +697,19 @@ CV_EXPORTS_W bool findCirclesGrid( InputArray image, Size patternSize,
/** @brief Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern. /** @brief Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.
@param objectPoints In the new interface it is a vector of vectors of calibration pattern points @param objectPoints In the new interface it is a vector of vectors of calibration pattern points in
in the calibration pattern coordinate space. The outer vector contains as many elements as the the calibration pattern coordinate space (e.g. std::vector<std::vector<cv::Vec3f>>). The outer
number of the pattern views. If the same calibration pattern is shown in each view and it is fully vector contains as many elements as the number of the pattern views. If the same calibration pattern
visible, all the vectors will be the same. Although, it is possible to use partially occluded is shown in each view and it is fully visible, all the vectors will be the same. Although, it is
patterns, or even different patterns in different views. Then, the vectors will be different. The possible to use partially occluded patterns, or even different patterns in different views. Then,
points are 3D, but since they are in a pattern coordinate system, then, if the rig is planar, it the vectors will be different. The points are 3D, but since they are in a pattern coordinate system,
may make sense to put the model to a XY coordinate plane so that Z-coordinate of each input object then, if the rig is planar, it may make sense to put the model to a XY coordinate plane so that
point is 0. Z-coordinate of each input object point is 0.
In the old interface all the vectors of object points from different views are concatenated In the old interface all the vectors of object points from different views are concatenated
together. together.
@param imagePoints In the new interface it is a vector of vectors of the projections of @param imagePoints In the new interface it is a vector of vectors of the projections of calibration
calibration pattern points. imagePoints.size() and objectPoints.size() and imagePoints[i].size() pattern points (e.g. std::vector<std::vector<cv::Vec2f>>). imagePoints.size() and
must be equal to objectPoints[i].size() for each i. objectPoints.size() and imagePoints[i].size() must be equal to objectPoints[i].size() for each i.
In the old interface all the vectors of object points from different views are concatenated In the old interface all the vectors of object points from different views are concatenated
together. together.
@param imageSize Size of the image used only to initialize the intrinsic camera matrix. @param imageSize Size of the image used only to initialize the intrinsic camera matrix.
@ -719,11 +719,11 @@ and/or CV_CALIB_FIX_ASPECT_RATIO are specified, some or all of fx, fy, cx, cy mu
initialized before calling the function. initialized before calling the function.
@param distCoeffs Output vector of distortion coefficients @param distCoeffs Output vector of distortion coefficients
\f$(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\f$ of 4, 5, 8 or 12 elements. \f$(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\f$ of 4, 5, 8 or 12 elements.
@param rvecs Output vector of rotation vectors (see Rodrigues ) estimated for each pattern view. @param rvecs Output vector of rotation vectors (see Rodrigues ) estimated for each pattern view
That is, each k-th rotation vector together with the corresponding k-th translation vector (see (e.g. std::vector<cv::Mat>>). That is, each k-th rotation vector together with the corresponding
the next output parameter description) brings the calibration pattern from the model coordinate k-th translation vector (see the next output parameter description) brings the calibration pattern
space (in which object points are specified) to the world coordinate space, that is, a real from the model coordinate space (in which object points are specified) to the world coordinate
position of the calibration pattern in the k-th pattern view (k=0.. *M* -1). space, that is, a real position of the calibration pattern in the k-th pattern view (k=0.. *M* -1).
@param tvecs Output vector of translation vectors estimated for each pattern view. @param tvecs Output vector of translation vectors estimated for each pattern view.
@param flags Different flags that may be zero or a combination of the following values: @param flags Different flags that may be zero or a combination of the following values:
- **CV_CALIB_USE_INTRINSIC_GUESS** cameraMatrix contains valid initial values of - **CV_CALIB_USE_INTRINSIC_GUESS** cameraMatrix contains valid initial values of

Loading…
Cancel
Save