6 #include "../algo-common.h" 7 #include "../../../src/algo/depth-to-rgb-calibration/optimizer.h" 9 #include "../../../src/algo/depth-to-rgb-calibration/k-to-dsm.h" 10 #include "../../../src/algo/depth-to-rgb-calibration/utils.h" 11 #include "../../../src/algo/depth-to-rgb-calibration/uvmap.h" 13 #include "../../../src/algo/thermal-loop/l500-thermal-loop.h" 16 #if ! defined( DISABLE_LOG_TO_STDOUT ) 21 #include "../../profiler.h" 44 std::vector< algo::yuy_t> yuy_last_successful_frame;
48 yuy_last_successful_frame
49 = read_image_file< algo::yuy_t >(
join( dir, yuy_last_successful ),
55 yuy_last_successful_frame.clear();
59 profiler->section(
"Preprocessing YUY" );
67 profiler->section_end();
70 profiler->section(
"Preprocessing IR" );
72 read_image_file< algo::ir_t >(
join( dir, ir ), camera.
z.
width, camera.
z.
height ),
76 profiler->section_end();
79 profiler->section(
"Preprocessing DEPTH" );
85 profiler->section_end();
std::string join(const std::string &base, const std::string &path)
librealsense::algo::depth_to_rgb_calibration::algo_calibration_info cal_info
GLsizei const GLchar *const * string
librealsense::algo::depth_to_rgb_calibration::algo_calibration_registers cal_regs
librealsense::algo::depth_to_rgb_calibration::rs2_intrinsics_double z
void set_z_data(std::vector< z_t > &&z_data, rs2_intrinsics_double const &depth_intrinsics, rs2_dsm_params const &dms_params, algo_calibration_info const &cal_info, algo_calibration_registers const &cal_regs, float depth_units)
void set_yuy_data(std::vector< yuy_t > &&yuy_data, std::vector< yuy_t > &&prev_yuy_data, std::vector< yuy_t > &&last_successful_yuy_data, calib const &calibration)
void init_algo(algo::optimizer &cal, std::string const &dir, std::string const &yuy, std::string const &yuy_prev, std::string const &yuy_last_successful, std::string const &ir, std::string const &z, camera_params const &camera, memory_profiler *profiler=nullptr)
librealsense::algo::depth_to_rgb_calibration::rs2_extrinsics_double extrinsics
void set_ir_data(std::vector< ir_t > &&ir_data, size_t width, size_t height)
rs2_dsm_params dsm_params
librealsense::algo::depth_to_rgb_calibration::rs2_intrinsics_double rgb
static const textual_icon camera
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT
std::string to_string(T value)