Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
librealsense::colorizer Class Reference

#include <colorizer.h>

Inheritance diagram for librealsense::colorizer:
Inheritance graph
[legend]

Public Member Functions

 colorizer ()
 
- Public Member Functions inherited from librealsense::stream_filter_processing_block
 stream_filter_processing_block (const char *name)
 
virtual ~stream_filter_processing_block ()
 
- Public Member Functions inherited from librealsense::generic_processing_block
 generic_processing_block (const char *name)
 
virtual ~generic_processing_block ()
 
- Public Member Functions inherited from librealsense::processing_block
synthetic_source_interfaceget_source () override
 
void invoke (frame_holder frames) override
 
 processing_block (const char *name)
 
void set_output_callback (frame_callback_ptr callback) override
 
void set_processing_callback (frame_processor_callback_ptr callback) override
 
virtual ~processing_block ()
 
- Public Member Functions inherited from librealsense::processing_block_interface
virtual ~processing_block_interface ()=default
 
- Public Member Functions inherited from librealsense::options_interface
virtual ~options_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< options_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::options_container
void create_snapshot (std::shared_ptr< options_interface > &snapshot) const override
 
void enable_recording (std::function< void(const options_interface &)> record_action) override
 
optionget_option (rs2_option id) override
 
const optionget_option (rs2_option id) const override
 
std::shared_ptr< optionget_option_handler (rs2_option id)
 
std::shared_ptr< optionget_option_handler (rs2_option id) const
 
virtual const char * get_option_name (rs2_option option) const override
 
std::vector< rs2_optionget_supported_options () const override
 
void register_option (rs2_option id, std::shared_ptr< option > option)
 
bool supports_option (rs2_option id) const override
 
void unregister_option (rs2_option id)
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 
- Public Member Functions inherited from librealsense::info_container
void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
void enable_recording (std::function< void(const info_interface &)> record_action) override
 
const std::stringget_info (rs2_camera_info info) const override
 
void register_info (rs2_camera_info info, const std::string &val)
 
bool supports_info (rs2_camera_info info) const override
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void update_info (rs2_camera_info info, const std::string &val)
 

Static Public Member Functions

template<typename T >
static void update_histogram (int *hist, const T *depth_data, int w, int h)
 

Static Public Attributes

static const int MAX_DEPTH = 0x10000
 
static const int MAX_DISPARITY = 0x2710
 

Protected Member Functions

template<typename T , typename F >
void colorize_pixel (uint8_t *rgb_data, int idx, color_map *cm, T data, F coloring_func)
 
 colorizer (const char *name)
 
template<typename T , typename F >
void make_rgb_data (const T *depth_data, uint8_t *rgb_data, int width, int height, F coloring_func)
 
rs2::frame process_frame (const rs2::frame_source &source, const rs2::frame &f) override
 
bool should_process (const rs2::frame &frame) override
 
- Protected Member Functions inherited from librealsense::stream_filter_processing_block
bool should_process (const rs2::frame &frame) override
 
- Protected Member Functions inherited from librealsense::generic_processing_block
virtual rs2::frame prepare_output (const rs2::frame_source &source, rs2::frame input, std::vector< rs2::frame > results)
 

Protected Attributes

float _d2d_convert_factor = 0.f
 
float _depth_units = 0.f
 
bool _equalize
 
int * _hist_data
 
std::vector< int > _histogram
 
int _map_index = 0
 
std::vector< color_map * > _maps
 
float _max
 
float _min
 
int _preset = 0
 
rs2::stream_profile _source_stream_profile
 
rs2::stream_profile _target_stream_profile
 
- Protected Attributes inherited from librealsense::stream_filter_processing_block
stream_filter _stream_filter
 
- Protected Attributes inherited from librealsense::processing_block
frame_processor_callback_ptr _callback
 
std::mutex _mutex
 
frame_source _source
 
synthetic_source _source_wrapper
 
- Protected Attributes inherited from librealsense::options_container
std::map< rs2_option, std::shared_ptr< option > > _options
 
std::function< void(const options_interface &)> _recording_function = [](const options_interface&) {}
 

Detailed Description

Definition at line 98 of file colorizer.h.

Constructor & Destructor Documentation

librealsense::colorizer::colorizer ( )

Definition at line 137 of file colorizer.cpp.

librealsense::colorizer::colorizer ( const char *  name)
protected

Definition at line 141 of file colorizer.cpp.

Member Function Documentation

template<typename T , typename F >
void librealsense::colorizer::colorize_pixel ( uint8_t rgb_data,
int  idx,
color_map cm,
data,
coloring_func 
)
inlineprotected

Definition at line 138 of file colorizer.h.

template<typename T , typename F >
void librealsense::colorizer::make_rgb_data ( const T *  depth_data,
uint8_t rgb_data,
int  width,
int  height,
coloring_func 
)
inlineprotected

Definition at line 127 of file colorizer.h.

rs2::frame librealsense::colorizer::process_frame ( const rs2::frame_source source,
const rs2::frame f 
)
overrideprotectedvirtual

Implements librealsense::generic_processing_block.

Definition at line 236 of file colorizer.cpp.

bool librealsense::colorizer::should_process ( const rs2::frame frame)
overrideprotectedvirtual

Implements librealsense::generic_processing_block.

Definition at line 225 of file colorizer.cpp.

template<typename T >
static void librealsense::colorizer::update_histogram ( int *  hist,
const T *  depth_data,
int  w,
int  h 
)
inlinestatic

Definition at line 104 of file colorizer.h.

Member Data Documentation

float librealsense::colorizer::_d2d_convert_factor = 0.f
protected

Definition at line 170 of file colorizer.h.

float librealsense::colorizer::_depth_units = 0.f
protected

Definition at line 169 of file colorizer.h.

bool librealsense::colorizer::_equalize
protected

Definition at line 157 of file colorizer.h.

int* librealsense::colorizer::_hist_data
protected

Definition at line 163 of file colorizer.h.

std::vector<int> librealsense::colorizer::_histogram
protected

Definition at line 162 of file colorizer.h.

int librealsense::colorizer::_map_index = 0
protected

Definition at line 160 of file colorizer.h.

std::vector<color_map*> librealsense::colorizer::_maps
protected

Definition at line 159 of file colorizer.h.

float librealsense::colorizer::_max
protected

Definition at line 156 of file colorizer.h.

float librealsense::colorizer::_min
protected

Definition at line 156 of file colorizer.h.

int librealsense::colorizer::_preset = 0
protected

Definition at line 165 of file colorizer.h.

rs2::stream_profile librealsense::colorizer::_source_stream_profile
protected

Definition at line 167 of file colorizer.h.

rs2::stream_profile librealsense::colorizer::_target_stream_profile
protected

Definition at line 166 of file colorizer.h.

const int librealsense::colorizer::MAX_DEPTH = 0x10000
static

Definition at line 117 of file colorizer.h.

const int librealsense::colorizer::MAX_DISPARITY = 0x2710
static

Definition at line 118 of file colorizer.h.


The documentation for this class was generated from the following files:


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