48 /** Data associated to each stereo image in the calibration process mrpt::vision::checkerBoardCameraCalibration (All the information can be left empty and will be filled up in the calibration method).
73unsignedint check_size_x,check_size_y; //!< The number of squares in the checkerboard in the "X" & "Y" direction.
74double check_squares_length_X_meters,check_squares_length_Y_meters; //!< The size of each square in the checkerboard, in meters, in the "X" & "Y" axes.
77boolverbose; //!< Show progress messages to std::cout console (default=true)
78size_tmaxIters; //!< Maximum number of iterations of the optimizer (default=300)
79
80 /** Select which distortion parameters (of both left/right cameras) will be optimzed:
81 * k1,k2,k3 are the r^2, r^4 and r^6 radial distorion coeficients, and t1 and t2 are the tangential distortion coeficients (see mrpt::utils::TCamera).
82 * Those set to false will be assumed to be fixed to zero (no distortion).
83 * \note Default values are to only assume distortion via k1 and k2 (the rest are zeros).
87booluse_robust_kernel; //!< Employ a Pseudo-Huber robustifier kernel (Default: false)
88doublerobust_kernel_param; //!< The parameter of the robust kernel, in pixels (only if use_robust_kernel=true) (Default=10)
89
90
91TSteroCalibCallbackFunctorcallback; //!< If set to !=NULL, this function will be called within each Lev-Marq. iteration (don't do heavy stuff here since performance will degrade)
92void * callback_user_param; //!< If using a callback function, you can use this to pass custom data to your callback.
106 /** Poses of the origin of coordinates of the pattern wrt the left camera (i.e. the origin of coordinates, as seen from the different camera poses)
109 std::vector<bool> image_pair_was_used; //!< true if a checkerboard was correctly detected in both left/right images. false if it wasn't, so the image pair didn't make it to the optimization.
110
111doublefinal_rmse; //!< Final reprojection square Root Mean Square Error (in pixels).
112size_tfinal_iters; //!< Final number of optimization iterations executed.
126 /** Optimize the calibration parameters of a stereo camera or a RGB+D (Kinect) camera.
127 * This computes the projection and distortion parameters of each camera, and their relative spatial pose,
128 * from a sequence of pairs of captured images of a checkerboard.
129 *
130 * \param input_images [IN/OUT] At input, this list must have one entry for each image to process. At output the original, detected checkboard and rectified images can be found here. See TImageCalibData.
131 * \param params [IN] Mandatory: the user must provide the size of the checkerboard, which parameters to optimize and which to leave fixed to zero, etc.
132 * \param out_results [OUT] The results of the calibration, and its uncertainty measure, will be found here upon return.
133 *
134 * \return false on any error (more info will be dumped to cout), or true on success.
135 * \note See also the ready-to-use application: <a href="http://www.mrpt.org/Application:kinect-calibrate" >kinect-calibrate</a>