Calibration code.
More...
#include "util/u_sink.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_frame.h"
#include "util/u_format.h"
#include "tracking/t_tracking.h"
#include "tracking/t_calibration_opencv.hpp"
#include <opencv2/opencv.hpp>
#include <sys/stat.h>
|
#define | P(...) snprintf(c.text, sizeof(c.text), __VA_ARGS__) |
|
#define P |
( |
|
... | ) |
snprintf(c.text, sizeof(c.text), __VA_ARGS__) |
◆ ArrayOfMeasurementF32s
◆ ArrayOfMeasurementF64s
◆ ArrayOfModelF32s
◆ ArrayOfModelF64s
◆ ArrayOfRects
A array of bounding rects.
◆ MeasurementF32
A measurement of the model as viewed on the camera.
◆ MeasurementF64
In doubles, because OpenCV can't agree on a single type to use.
◆ ModelF32
typedef std::vector<cv::Point3f> ModelF32 |
Model of the thing we are measuring to calibrate, 32 bit.
◆ ModelF64
typedef std::vector<cv::Point3d> ModelF64 |
Model of the thing we are measuring to calibrate, 64 bit.
◆ t_calibration_frame()
◆ t_calibration_stereo_create()
Create the camera calibration frame sink.
- Parameters
-
xfctx | Context for frame transport. |
params | Parameters to use during calibration. Values copied, pointer not retained. |
status | Optional pointer to structure for status information. Pointer retained, and pointed-to struct modified. |
gui | Frame sink |
out_sink | Output: created frame sink. |
References t_calibration_params::asymmetric_circles, Calibration::base, Calibration::board, t_calibration_params::checkers, t_calibration_params::circles, t_calibration_params::cols, t_calibration_params::diagonal_distance_meters, Calibration::dims, t_calibration_params::distance_meters, Calibration::enabled, t_calibration_params::enabled, Calibration::gui, Calibration::load, t_calibration_params::load, Calibration::mirror_rgb_image, t_calibration_params::mirror_rgb_image, Calibration::num_collect_restart, t_calibration_params::num_collect_restart, Calibration::num_collect_total, t_calibration_params::num_collect_total, Calibration::num_cooldown_frames, t_calibration_params::num_cooldown_frames, Calibration::num_images, t_calibration_params::num_images, Calibration::num_wait_for, t_calibration_params::num_wait_for, P, Calibration::pattern, t_calibration_params::pattern, xrt_frame_sink::push_frame, t_calibration_params::rows, Calibration::save_images, t_calibration_params::save_images, Calibration::sink, t_calibration_params::size_meters, Calibration::spacing_meters, Calibration::status, Calibration::stereo_sbs, t_calibration_params::stereo_sbs, Calibration::subpixel_enable, t_calibration_params::subpixel_enable, Calibration::subpixel_size, t_calibration_params::subpixel_size, T_BOARD_ASYMMETRIC_CIRCLES, T_BOARD_CHECKERS, T_BOARD_CIRCLES, t_calibration_frame(), Calibration::use_fisheye, and t_calibration_params::use_fisheye.