Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
}
rs2::frame
Definition:
rs_frame.hpp:343
colorizer.h
librealsense::gl::colorizer
Definition:
colorizer-gl.h:29
rs.hpp
rs2
Definition:
cah-model.h:10
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:6
f
GLdouble f
Definition:
glad/glad/glad.h:1518
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:293
librealsense::gl::colorizer::_fhist
std::vector< float > _fhist
Definition:
colorizer-gl.h:50
synthetic-stream.h
source
GLsizei GLsizei GLchar * source
Definition:
glad/glad/glad.h:2829
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): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:11