unit-tests
algo
thermal-loop
create-synthetic-l500-thermal-table.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
#include "../algo-common.h"
5
#include <
src/algo/thermal-loop/l500-thermal-loop.h
>
6
7
namespace
thermal
=
librealsense::algo::thermal_loop::l500
;
8
9
// Create a fictitious table with min=0 and max depending on the table size
10
thermal::thermal_calibration_table
11
create_synthetic_table
(
const
int
table_size = 29,
float
min_temp = 0,
float
max_temp = 75 )
12
{
13
thermal::thermal_calibration_table
res;
14
res.
_header
.
min_temp
= min_temp;
15
res.
_header
.
max_temp
= max_temp;
16
res.
_header
.
reference_temp
= 35.f;
17
res.
_header
.
valid
= 1.f;
18
res.
_resolution
= table_size;
19
res.
bins
.resize( table_size );
20
21
// [0 - 2.5] --> 0.5
22
// (2.5 - 5] --> 1
23
// (5 - 7.5] --> 1.5
24
// (7.5 - 10] --> 2
25
// ...
26
// (72.5 - 75] --> 15
27
for
(
auto
i
= 0;
i
< table_size;
i
++ )
28
{
29
res.
bins
[
i
].scale = (
i
+ 1 ) * 0.5
f
;
30
res.
bins
[
i
].sheer = 0;
31
res.
bins
[
i
].tx = 0;
32
res.
bins
[
i
].ty = 0;
33
}
34
return
res;
35
}
l500-thermal-loop.h
librealsense::algo::thermal_loop::l500::thermal_calibration_table::thermal_table_header::valid
float valid
Definition:
l500-thermal-loop.h:40
create_synthetic_table
thermal::thermal_calibration_table create_synthetic_table(const int table_size=29, float min_temp=0, float max_temp=75)
Definition:
create-synthetic-l500-thermal-table.h:11
librealsense::algo::thermal_loop::l500::thermal_calibration_table
Definition:
l500-thermal-loop.h:29
librealsense::algo::thermal_loop::l500::thermal_calibration_table::_header
thermal_table_header _header
Definition:
l500-thermal-loop.h:57
librealsense::algo::thermal_loop::l500::thermal_calibration_table::bins
std::vector< thermal_bin > bins
Definition:
l500-thermal-loop.h:58
librealsense::algo::thermal_loop::l500::thermal_calibration_table::_resolution
size_t _resolution
Definition:
l500-thermal-loop.h:55
librealsense::algo::thermal_loop::l500::thermal_calibration_table::thermal_table_header::reference_temp
float reference_temp
Definition:
l500-thermal-loop.h:39
librealsense::algo::thermal_loop::l500::thermal_calibration_table::thermal_table_header::max_temp
float max_temp
Definition:
l500-thermal-loop.h:38
f
GLdouble f
Definition:
glad/glad/glad.h:1517
i
int i
Definition:
rs-pcl-color.cpp:54
librealsense::algo::thermal_loop::l500
Definition:
l500-thermal-loop.cpp:10
librealsense::algo::thermal_loop::l500::thermal_calibration_table::thermal_table_header::min_temp
float min_temp
Definition:
l500-thermal-loop.h:37
librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Thu Dec 22 2022 03:43:16