colorizer-gl.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <map>
7 #include <vector>
8 
10 #include "synthetic-stream-gl.h"
11 
12 #include <librealsense2/rs.hpp>
13 #include "opengl3.h"
14 
15 #include "proc/colorizer.h"
16 
17 #include <memory>
18 
19 namespace rs2
20 {
21  class stream_profile;
22  class visualizer_2d;
23 }
24 
25 namespace librealsense
26 {
27  namespace gl
28  {
31  {
32  public:
33  colorizer();
34  ~colorizer() override;
35 
36  void cleanup_gpu_resources() override;
37  void create_gpu_resources() override;
38 
39  static void populate_floating_histogram(float* f, int* hist);
40 
41  rs2::frame process_frame(const rs2::frame_source& source, const rs2::frame& f) override;
42  private:
43  int _enabled = 0;
44 
45  int _width, _height;
46 
48  int _last_selected_cm = -1;
49 
50  std::vector<float> _fhist;
51  float* _fhist_data;
52 
53  std::shared_ptr<rs2::visualizer_2d> _viz;
54  std::shared_ptr<rs2::fbo> _fbo;
55  };
56  }
57 }
GLsizei GLsizei GLchar * source
Definition: animated.h:9
std::shared_ptr< rs2::visualizer_2d > _viz
Definition: colorizer-gl.h:53
unsigned int uint32_t
Definition: stdint.h:80
std::vector< float > _fhist
Definition: colorizer-gl.h:50
GLdouble f
std::shared_ptr< rs2::fbo > _fbo
Definition: colorizer-gl.h:54


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