10 #ifndef mrpt_vision_chessboard_camera_calib_H 11 #define mrpt_vision_chessboard_camera_calib_H 66 unsigned int check_size_x,
67 unsigned int check_size_y,
68 double check_squares_length_X_meters,
69 double check_squares_length_Y_meters,
71 bool normalize_image =
true,
72 double *out_MSE = NULL,
73 bool skipDrawDetectedImgs =
false,
74 bool useScaramuzzaAlternativeDetector =
false 95 unsigned int check_size_x,
96 unsigned int check_size_y,
97 double check_squares_length_X_meters,
98 double check_squares_length_Y_meters,
100 std::vector<double> &distortionParams,
101 bool normalize_image =
true,
102 double *out_MSE = NULL,
103 bool skipDrawDetectedImgs =
false,
104 bool useScaramuzzaAlternativeDetector =
false void clear()
Empty all the data.
mrpt::utils::CImage img_original
This image will be automatically loaded from the file name passed to checkerBoardCameraCalibration.
A class for storing images as grayscale or RGB bitmaps.
std::vector< mrpt::utils::TPixelCoordf > detected_corners
At output, the detected corners (x,y) in pixel units.
bool VISION_IMPEXP checkerBoardCameraCalibration(TCalibrationImageList &images, unsigned int check_size_x, unsigned int check_size_y, double check_squares_length_X_meters, double check_squares_length_Y_meters, mrpt::utils::TCamera &out_camera_params, bool normalize_image=true, double *out_MSE=NULL, bool skipDrawDetectedImgs=false, bool useScaramuzzaAlternativeDetector=false)
Performs a camera calibration (computation of projection and distortion parameters) from a sequence o...
std::vector< mrpt::utils::TPixelCoordf > projectedPoints_undistorted
At output, like projectedPoints_distorted but for the undistorted image.
Data associated to each image in the calibration process mrpt::vision::checkerBoardCameraCalibration ...
mrpt::utils::CImage img_checkboard
At output, this will contain the detected checkerboard overprinted to the image.
std::vector< mrpt::utils::TPixelCoordf > projectedPoints_distorted
At output, only will have an empty vector if the checkerboard was not found in this image...
std::map< std::string, TImageCalibData > TCalibrationImageList
A list of images, used in checkerBoardCameraCalibration.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
mrpt::utils::CImage img_rectified
At output, this will be the rectified image.
mrpt::poses::CPose3D reconstructed_camera_pose
At output, the reconstructed pose of the camera.
Structure to hold the parameters of a pinhole camera model.