Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt::auxiliary::tracking::Calibration Class Reference

Main class for doing calibration. More...

Collaboration diagram for xrt::auxiliary::tracking::Calibration:

Data Fields

struct xrt_frame_sink base = {}
 
struct { 
 
   cv::Mat   rgb = {} 
 
   struct xrt_frame *   frame = {} 
 
   struct xrt_frame_sink *   sink = {} 
 
gui 
 
struct { 
 
   ModelF32   model_f32 = {} 
 
   ModelF64   model_f64 = {} 
 
   cv::Size   dims = {8, 6} 
 
   enum t_board_pattern   pattern = T_BOARD_CHECKERS 
 
   float   spacing_meters = 0.05 
 
   bool   marker 
 Center board marker for sb_checkers. More...
 
   bool   normalize_image 
 For SB checkers. More...
 
board 
 
struct { 
 
   ViewState   view [2] = {} 
 
   ArrayOfModelF32s   board_models_f32 = {} 
 
   ArrayOfModelF64s   board_models_f64 = {} 
 
   uint32_t   calibration_count = {} 
 
   bool   calibrated = false 
 
   uint32_t   cooldown = 0 
 
   uint32_t   waited_for = 0 
 
   uint32_t   collected_of_part = 0 
 
state 
 
struct { 
 
   bool   enabled = false 
 
   uint32_t   num_images = 20 
 
load 
 
bool subpixel_enable = true
 Should we use subpixel enhancing for checkerboard.
 
int subpixel_size = 5
 What subpixel range for checkerboard enhancement.
 
uint32_t num_cooldown_frames = 20
 Number of frames to wait for cooldown.
 
uint32_t num_wait_for = 5
 Number of frames to wait for before collecting.
 
uint32_t num_collect_total = 20
 Total number of samples to collect.
 
uint32_t num_collect_restart = 1
 Number of frames to capture before restarting.
 
enum t_camera_distortion_model distortion_model = T_DISTORTION_OPENCV_RADTAN_5
 Distortion model to use.
 
bool stereo_sbs = false
 From parameters.
 
bool clear_frame = false
 Should we clear the frame.
 
bool dump_measurements = false
 Dump all of the measurements to stdout.
 
bool save_images = false
 Should we save images used for capture.
 
bool mirror_rgb_image = false
 Should we mirror the rgb images.
 
cv::Mat gray = {}
 
char text [512] = {}
 
t_calibration_statusstatus
 

Detailed Description

Main class for doing calibration.

Field Documentation

◆ clear_frame

bool xrt::auxiliary::tracking::Calibration::clear_frame = false

Should we clear the frame.

◆ distortion_model

enum t_camera_distortion_model xrt::auxiliary::tracking::Calibration::distortion_model = T_DISTORTION_OPENCV_RADTAN_5

Distortion model to use.

◆ dump_measurements

bool xrt::auxiliary::tracking::Calibration::dump_measurements = false

Dump all of the measurements to stdout.

◆ marker

bool xrt::auxiliary::tracking::Calibration::marker

Center board marker for sb_checkers.

◆ mirror_rgb_image

bool xrt::auxiliary::tracking::Calibration::mirror_rgb_image = false

Should we mirror the rgb images.

◆ normalize_image

bool xrt::auxiliary::tracking::Calibration::normalize_image

For SB checkers.

◆ num_collect_restart

uint32_t xrt::auxiliary::tracking::Calibration::num_collect_restart = 1

Number of frames to capture before restarting.

Referenced by xrt::auxiliary::tracking::do_capture_logic_mono(), and xrt::auxiliary::tracking::do_capture_logic_stereo().

◆ num_collect_total

◆ num_cooldown_frames

uint32_t xrt::auxiliary::tracking::Calibration::num_cooldown_frames = 20

◆ num_wait_for

uint32_t xrt::auxiliary::tracking::Calibration::num_wait_for = 5

Number of frames to wait for before collecting.

Referenced by xrt::auxiliary::tracking::do_capture_logic_mono(), and xrt::auxiliary::tracking::do_capture_logic_stereo().

◆ save_images

bool xrt::auxiliary::tracking::Calibration::save_images = false

◆ stereo_sbs

bool xrt::auxiliary::tracking::Calibration::stereo_sbs = false

From parameters.

◆ subpixel_enable

bool xrt::auxiliary::tracking::Calibration::subpixel_enable = true

Should we use subpixel enhancing for checkerboard.

◆ subpixel_size

int xrt::auxiliary::tracking::Calibration::subpixel_size = 5

What subpixel range for checkerboard enhancement.


The documentation for this class was generated from the following file: