max-usable-range.cpp
Go to the documentation of this file.
1 
4 #include "max-usable-range.h"
5 
6 // Algo parameters
7 static const float PROCESSING_GAIN = 1.75f;
8 static const float THERMAL = 74.5f;
9 static const float INDOOR_MAX_RANGE = 9.0f;
10 
11 // Based off of code in RS5-8358
13 {
14  const float normalized_nest = noise_esimation / 16.0f;
15 
16  auto expected_max_range = INDOOR_MAX_RANGE;
17 
18  if (normalized_nest > THERMAL)
19  {
20  expected_max_range = 31000.0f * pow(normalized_nest, -2.0f) * PROCESSING_GAIN;
21  }
22 
23  return expected_max_range;
24 }
static const float PROCESSING_GAIN
static const float THERMAL
static const float INDOOR_MAX_RANGE
GLdouble f


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