zero-order.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "../include/librealsense2/hpp/rs_frame.hpp"
7 #include "synthetic-stream.h"
8 #include "option.h"
9 #include "l500/l500-private.h"
10 
11 #define IR_THRESHOLD 120
12 #define RTD_THRESHOLD 50
13 #define BASELINE -10
14 #define PATCH_SIZE 5
15 #define Z_MAX_VALUE 1200
16 #define IR_MIN_VALUE 75
17 #define THRESHOLD_OFFSET 10
18 #define THRESHOLD_SCALE 20
19 
20 namespace librealsense
21 {
23  {
34  read_baseline(false)
35  {}
36 
40  float baseline;
43  int z_max;
44  int ir_min;
47  };
48 
50  {
51  public:
52  zero_order(std::shared_ptr<bool_option> is_enabled_opt = nullptr);
53 
54  rs2::frame process_frame(const rs2::frame_source& source, const rs2::frame& f) override;
55 
56  private:
57  bool should_process(const rs2::frame& frame) override;
58  rs2::frame prepare_output(const rs2::frame_source& source, rs2::frame input, std::vector<rs2::frame> results) override;
59  const char * get_option_name(rs2_option option) const override;
60  bool try_read_baseline(const rs2::frame& frame);
61  ivcam2::intrinsic_params try_read_intrinsics(const rs2::frame& frame);
62 
63  std::pair<int, int> get_zo_point(const rs2::frame& frame);
64 
67 
70 
72 
74 
76  std::weak_ptr<bool_option> _is_enabled_opt;
78  };
80 }
#define RTD_THRESHOLD
Definition: zero-order.h:12
rs2::stream_profile _source_profile_depth
Definition: zero-order.h:65
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:22
std::weak_ptr< bool_option > _is_enabled_opt
Definition: zero-order.h:76
unsigned short uint16_t
Definition: stdint.h:79
rs2::stream_profile _target_profile_confidence
Definition: zero-order.h:69
#define IR_THRESHOLD
Definition: zero-order.h:11
unsigned char uint8_t
Definition: stdint.h:78
GLdouble f
#define PATCH_SIZE
Definition: zero-order.h:14
#define THRESHOLD_OFFSET
Definition: zero-order.h:17
#define BASELINE
Definition: zero-order.h:13
rs2::stream_profile _source_profile_confidence
Definition: zero-order.h:68
#define IR_MIN_VALUE
Definition: zero-order.h:16
GLenum GLenum GLenum input
Definition: glext.h:10805
GLsizei GLsizei GLchar * source
zero_order_options _options
Definition: zero-order.h:75
ivcam2::intrinsic_params _resolutions_depth
Definition: zero-order.h:77
#define THRESHOLD_SCALE
Definition: zero-order.h:18
#define Z_MAX_VALUE
Definition: zero-order.h:15
rs2::stream_profile _target_profile_depth
Definition: zero-order.h:66
rs2::pointcloud _pc
Definition: zero-order.h:71
MAP_EXTENSION(RS2_EXTENSION_POINTS, librealsense::points)


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