depth-to-rgb-calibration.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
8 #include "types.h"
9 #include <vector>
10 
11 
12 namespace librealsense
13 {
14  /*
15  Wrapper around the algo version, taking actual frames and translating to algo
16  vectors. Also translates the various stages in algo to actual RS2_CALIBRATION_
17  return values.
18  */
20  {
21  // inputs
24 
25  // input/output
27  rs2_intrinsics _raw_intr; // raw intrinsics for overriding the fw intrinsics
28  rs2_intrinsics _thermal_intr; // intrinsics with k_thermal for user
30  std::vector< algo::depth_to_rgb_calibration::yuy_t > _last_successful_frame_data;
33  std::function<void()> _should_continue;
34 
35  public:
39  rs2::frame ir,
40  rs2::frame yuy,
41  rs2::frame prev_yuy,
42  std::vector< algo::depth_to_rgb_calibration::yuy_t > const & last_yuy_data,
45  rs2_intrinsics const & yuy_intrinsics,
47  std::function<void()> should_continue = nullptr
48  );
49 
50  rs2_extrinsics const & get_extrinsics() const { return _extr; }
51  rs2_intrinsics const & get_raw_intrinsics() const { return _raw_intr; }
55  rs2_dsm_params const & get_dsm_params() const { return _dsm_params; }
56  std::vector< algo::depth_to_rgb_calibration::yuy_t > & get_last_successful_frame_data()
57  {
59  }
60 
61  void write_data_to( std::string const & dir );
62 
63  rs2_calibration_status optimize( std::function<void( rs2_calibration_status )> call_back = nullptr);
64 
65  private:
66  void debug_calibration( char const * prefix );
67  };
68 } // librealsense
69 
algo::depth_to_rgb_calibration::optimizer _algo
rs2_dsm_params const & get_dsm_params() const
rs2_extrinsics const & get_extrinsics() const
Video DSM (Digital Sync Module) parameters for calibration (same layout as in FW ac_depth_params) Thi...
Definition: rs_types.h:74
algo::thermal_loop::thermal_calibration_table_interface const & _thermal_table
GLint GLint GLsizei GLsizei GLsizei depth
GLsizei const GLchar *const * string
depth_to_rgb_calibration(algo::depth_to_rgb_calibration::optimizer::settings const &settings, rs2::frame depth, rs2::frame ir, rs2::frame yuy, rs2::frame prev_yuy, std::vector< algo::depth_to_rgb_calibration::yuy_t > const &last_yuy_data, algo::depth_to_rgb_calibration::algo_calibration_info const &cal_info, algo::depth_to_rgb_calibration::algo_calibration_registers const &cal_regs, rs2_intrinsics const &yuy_intrinsics, algo::thermal_loop::thermal_calibration_table_interface const &, std::function< void()> should_continue=nullptr)
rs2_intrinsics const & get_raw_intrinsics() const
rs2_calibration_status optimize(std::function< void(rs2_calibration_status)> call_back=nullptr)
rs2_calibration_status
Definition: rs_device.h:356
stream_profile_interface * get_from_profile() const
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
Definition: rs_sensor.h:96
std::vector< algo::depth_to_rgb_calibration::yuy_t > _last_successful_frame_data
Video stream intrinsics.
Definition: rs_types.h:58
std::vector< algo::depth_to_rgb_calibration::yuy_t > & get_last_successful_frame_data()
stream_profile_interface * get_to_profile() const
rs2_intrinsics const & get_thermal_intrinsics() const


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:12