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"
6 
8 
9 // Create a fictitious table with min=0 and max depending on the table size
11 create_synthetic_table( const int table_size = 29, float min_temp = 0, float max_temp = 75 )
12 {
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.5f;
30  res.bins[i].sheer = 0;
31  res.bins[i].tx = 0;
32  res.bins[i].ty = 0;
33  }
34  return res;
35 }
thermal::thermal_calibration_table create_synthetic_table(const int table_size=29, float min_temp=0, float max_temp=75)
GLdouble f
int i


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Thu Dec 22 2022 03:43:16