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
}
librealsense::gl::gpu_processing_object
Definition:
synthetic-stream-gl.h:293
librealsense
Definition:
algo.h:18
librealsense::gl::colorizer::~colorizer
~colorizer() override
Definition:
colorizer-gl.cpp:176
librealsense::gl::colorizer::_viz
std::shared_ptr< rs2::visualizer_2d > _viz
Definition:
colorizer-gl.h:53
rs2::frame
Definition:
rs_frame.hpp:345
opengl3.h
rs2::frame_source
Definition:
rs_processing.hpp:18
librealsense::gl::colorizer::_enabled
int _enabled
Definition:
colorizer-gl.h:43
librealsense::gl::colorizer::_fhist
std::vector< float > _fhist
Definition:
colorizer-gl.h:50
librealsense::gl::colorizer::_height
int _height
Definition:
colorizer-gl.h:45
synthetic-stream-gl.h
librealsense::gl::colorizer::_cm_texture
uint32_t _cm_texture
Definition:
colorizer-gl.h:47
librealsense::gl::colorizer::_fhist_data
float * _fhist_data
Definition:
colorizer-gl.h:51
librealsense::gl::colorizer::populate_floating_histogram
static void populate_floating_histogram(float *f, int *hist)
Definition:
colorizer-gl.cpp:191
uint32_t
unsigned int uint32_t
Definition:
stdint.h:80
librealsense::gl::colorizer::process_frame
rs2::frame process_frame(const rs2::frame_source &source, const rs2::frame &f) override
Definition:
colorizer-gl.cpp:198
librealsense::gl::colorizer::create_gpu_resources
void create_gpu_resources() override
Definition:
colorizer-gl.cpp:145
rs.hpp
f
GLdouble f
Definition:
glad/glad/glad.h:1517
librealsense::gl::colorizer::colorizer
colorizer()
Definition:
colorizer-gl.cpp:162
synthetic-stream.h
rs2
Definition:
animated.h:9
source
GLsizei GLsizei GLchar * source
Definition:
glad/glad/glad.h:2828
librealsense::colorizer
Definition:
colorizer.h:99
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
librealsense::gl::colorizer::_last_selected_cm
int _last_selected_cm
Definition:
colorizer-gl.h:48
librealsense::gl::colorizer::cleanup_gpu_resources
void cleanup_gpu_resources() override
Definition:
colorizer-gl.cpp:135
librealsense::gl::colorizer
Definition:
colorizer-gl.h:29
colorizer.h
test-motion.stream_profile
stream_profile
Definition:
sw-dev/test-motion.py:26
librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01