src
gl
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
9
#include "
proc/synthetic-stream.h
"
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
{
29
class
colorizer
:
public
librealsense::colorizer
,
30
public
gpu_processing_object
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
47
uint32_t
_cm_texture
;
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
}
source
GLsizei GLsizei GLchar * source
Definition:
glad/glad/glad.h:2828
rs2::frame
Definition:
rs_frame.hpp:345
colorizer.h
librealsense::gl::colorizer
Definition:
colorizer-gl.h:29
rs.hpp
rs2
Definition:
animated.h:9
librealsense::gl::colorizer::_cm_texture
uint32_t _cm_texture
Definition:
colorizer-gl.h:47
opengl3.h
librealsense::gl::colorizer::_viz
std::shared_ptr< rs2::visualizer_2d > _viz
Definition:
colorizer-gl.h:53
librealsense
Definition:
calibration-model.h:9
rs2::frame_source
Definition:
rs_processing.hpp:18
uint32_t
unsigned int uint32_t
Definition:
stdint.h:80
export_ply_example.colorizer
colorizer
Definition:
export_ply_example.py:28
librealsense::colorizer
Definition:
colorizer.h:98
synthetic-stream-gl.h
librealsense::gl::gpu_processing_object
Definition:
synthetic-stream-gl.h:294
librealsense::gl::colorizer::_fhist
std::vector< float > _fhist
Definition:
colorizer-gl.h:50
synthetic-stream.h
f
GLdouble f
Definition:
glad/glad/glad.h:1517
librealsense::gl::colorizer::_fhist_data
float * _fhist_data
Definition:
colorizer-gl.h:51
librealsense::gl::colorizer::_width
int _width
Definition:
colorizer-gl.h:45
librealsense::gl::colorizer::_fbo
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