10 #ifndef mrpt_vision_chessboard_stereo_calib_H
11 #define mrpt_vision_chessboard_stereo_calib_H
Structure to hold the parameters of a pinhole stereo camera model.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
GLenum const GLfloat * params
bool checkerBoardStereoCalibration(TCalibrationStereoImageList &images, const TStereoCalibParams ¶ms, TStereoCalibResults &out_results)
Optimize the calibration parameters of a stereo camera or a RGB+D (Kinect) camera.
void(*)(const TImageStereoCallbackData &d, void *user_data) TSteroCalibCallbackFunctor
Prototype of optional user callback function.
std::vector< TImageStereoCalibData > TCalibrationStereoImageList
A list of images, used in checkerBoardStereoCalibration.
Classes for computer vision, detectors, features, etc.
std::vector< T, mrpt::aligned_allocator_cpp11< T > > aligned_std_vector
Data associated to each image in the calibration process mrpt::vision::checkerBoardCameraCalibration ...
Data associated to each stereo image in the calibration process mrpt::vision::checkerBoardCameraCalib...
void clear()
Empty all the data.
Params of the optional callback provided by the user.
int calibRound
=-1:Processing images; =0: Initial calib without distortion, =1: Calib of all parameters
double current_rmse
Current root-mean square reprojection error (in pixels)
unsigned int nImgsProcessed
Info for calibRound==-1.
unsigned int nImgsToProcess
Input parameters for mrpt::vision::checkerBoardStereoCalibration.
TSteroCalibCallbackFunctor callback
If set to !=NULL, this function will be called within each Lev-Marq.
unsigned int check_size_y
void * callback_user_param
If using a callback function, you can use this to pass custom data to your callback.
size_t maxIters
Maximum number of iterations of the optimizer (default=300)
double robust_kernel_param
The parameter of the robust kernel, in pixels (only if use_robust_kernel=true) (Default=10)
double check_squares_length_Y_meters
bool skipDrawDetectedImgs
bool use_robust_kernel
Employ a Pseudo-Huber robustifier kernel (Default: false)
bool verbose
Show progress messages to std::cout console (default=true)
unsigned int check_size_x
The number of squares in the checkerboard in the "X" & "Y" direction.
bool optimize_k1
Select which distortion parameters (of both left/right cameras) will be optimzed: k1,...
double check_squares_length_X_meters
The size of each square in the checkerboard, in meters, in the "X" & Y" axes.
Output results for mrpt::vision::checkerBoardStereoCalibration.
std::vector< bool > image_pair_was_used
true if a checkerboard was correctly detected in both left/right images.
Eigen::Array< double, 9, 1 > left_params_inv_variance
The inverse variance (information/precision) of each of the 9 left/right camera parameters [fx fy cx ...
size_t final_iters
Final number of optimization iterations executed.
mrpt::aligned_std_vector< mrpt::poses::CPose3D > left_cam_poses
Poses of the origin of coordinates of the pattern wrt the left camera (i.e.
mrpt::poses::CPose3D right2left_camera_pose
The pose of the left camera as seen from the right camera.
Eigen::Array< double, 9, 1 > right_params_inv_variance
double final_rmse
Final reprojection square Root Mean Square Error (in pixels).
size_t final_number_good_image_pairs
Number of image pairs in which valid checkerboards were correctly detected.
mrpt::img::TStereoCamera cam_params
Recovered parameters of the stereo camera.