NVIDIA DeepStream SDK API Reference

9.2 Release
rs2::colorizer Class Reference

Detailed Description

Inheritance diagram for rs2::colorizer:
Collaboration diagram for rs2::colorizer:

Public Member Functions

 colorizer ()
 Create colorizer filter Colorizer generate color image based on input depth frame. More...
 
 colorizer (float color_scheme)
 Create colorizer processing block Colorizer generate color image base on input depth frame. More...
 
video_frame colorize (frame depth) const
 Start to generate color image base on depth frame. More...
 
 colorizer ()
 Create colorizer filter Colorizer generate color image based on input depth frame. More...
 
 colorizer (float color_scheme)
 Create colorizer processing block Colorizer generate color image base on input depth frame. More...
 
video_frame colorize (frame depth) const
 Start to generate color image base on depth frame. More...
 
rs2::frame process (rs2::frame frame) const override
 Ask processing block to process the frame and poll the processed frame from internal queue. More...
 
rs2::frame process (rs2::frame frame) const override
 Ask processing block to process the frame and poll the processed frame from internal queue. More...
 
frame_queue get_queue ()
 
frame_queue get_queue ()
 
rs2_processing_block * get () const
 
rs2_processing_block * get () const
 
template<class T >
bool is () const
 
template<class T >
bool is () const
 
template<class T >
T as () const
 
template<class T >
T as () const
 
 operator bool () const
 
 operator bool () const
 
template<class S >
void start (S on_frame)
 Start the processing block with callback function on_frame to inform the application the frame is processed. More...
 
template<class S >
void start (S on_frame)
 Start the processing block with callback function on_frame to inform the application the frame is processed. More...
 
template<class S >
S & operator>> (S &on_frame)
 Does the same thing as "start" function. More...
 
template<class S >
S & operator>> (S &on_frame)
 Does the same thing as "start" function. More...
 
void invoke (frame f) const
 Ask processing block to process the frame. More...
 
void invoke (frame f) const
 Ask processing block to process the frame. More...
 
 operator rs2_options * () const
 
 operator rs2_options * () const
 
bool supports (rs2_camera_info info) const
 Check if a specific camera info field is supported. More...
 
bool supports (rs2_camera_info info) const
 Check if a specific camera info field is supported. More...
 
bool supports (rs2_option option) const
 check if particular option is supported More...
 
bool supports (rs2_option option) const
 check if particular option is supported More...
 
bool supports (rs2_option option) const
 check if particular option is supported More...
 
bool supports (rs2_option option) const
 check if particular option is supported More...
 
bool supports (rs2_option option) const
 check if particular option is supported More...
 
const char * get_info (rs2_camera_info info) const
 Retrieve camera specific information, like versions of various internal components. More...
 
const char * get_info (rs2_camera_info info) const
 Retrieve camera specific information, like versions of various internal components. More...
 
const char * get_option_description (rs2_option option) const
 get option description More...
 
const char * get_option_description (rs2_option option) const
 get option description More...
 
const char * get_option_name (rs2_option option) const
 get option name More...
 
const char * get_option_name (rs2_option option) const
 get option name More...
 
const char * get_option_value_description (rs2_option option, float val) const
 get option value description (in case specific option value hold special meaning) More...
 
const char * get_option_value_description (rs2_option option, float val) const
 get option value description (in case specific option value hold special meaning) More...
 
float get_option (rs2_option option) const
 read option's value More...
 
float get_option (rs2_option option) const
 read option's value More...
 
option_range get_option_range (rs2_option option) const
 retrieve the available range of values of a supported option More...
 
option_range get_option_range (rs2_option option) const
 retrieve the available range of values of a supported option More...
 
void set_option (rs2_option option, float value) const
 write new value to the option More...
 
void set_option (rs2_option option, float value) const
 write new value to the option More...
 
bool is_option_read_only (rs2_option option) const
 check if particular option is read-only More...
 
bool is_option_read_only (rs2_option option) const
 check if particular option is read-only More...
 
std::vector< rs2_option > get_supported_options ()
 
std::vector< rs2_option > get_supported_options ()
 

Protected Member Functions

 colorizer (std::shared_ptr< rs2_processing_block > block)
 
 colorizer (std::shared_ptr< rs2_processing_block > block)
 
void register_simple_option (rs2_option option_id, option_range range)
 
void register_simple_option (rs2_option option_id, option_range range)
 

Protected Attributes

frame_queue _queue
 
std::shared_ptr< rs2_processing_block > _block
 

Constructor & Destructor Documentation

◆ colorizer() [1/6]

rs2::colorizer::colorizer ( )
inline

Create colorizer filter Colorizer generate color image based on input depth frame.

Definition at line 715 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

◆ colorizer() [2/6]

rs2::colorizer::colorizer ( float  color_scheme)
inline

Create colorizer processing block Colorizer generate color image base on input depth frame.

Parameters
[in]color_scheme- select one of the available color schemes: 0 - Jet 1 - Classic 2 - WhiteToBlack 3 - BlackToWhite 4 - Bio 5 - Cold 6 - Warm 7 - Quantized 8 - Pattern 9 - Hue

Definition at line 731 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References RS2_OPTION_COLOR_SCHEME, and rs2::options::set_option().

◆ colorizer() [3/6]

rs2::colorizer::colorizer ( std::shared_ptr< rs2_processing_block >  block)
inlineprotected

◆ colorizer() [4/6]

rs2::colorizer::colorizer ( )
inline

Create colorizer filter Colorizer generate color image based on input depth frame.

Definition at line 715 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

◆ colorizer() [5/6]

rs2::colorizer::colorizer ( float  color_scheme)
inline

Create colorizer processing block Colorizer generate color image base on input depth frame.

Parameters
[in]color_scheme- select one of the available color schemes: 0 - Jet 1 - Classic 2 - WhiteToBlack 3 - BlackToWhite 4 - Bio 5 - Cold 6 - Warm 7 - Quantized 8 - Pattern 9 - Hue

Definition at line 731 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References RS2_OPTION_COLOR_SCHEME, and rs2::options::set_option().

◆ colorizer() [6/6]

rs2::colorizer::colorizer ( std::shared_ptr< rs2_processing_block >  block)
inlineprotected

Member Function Documentation

◆ as() [1/2]

template<class T >
T rs2::filter::as ( ) const
inlineinherited

◆ as() [2/2]

template<class T >
T rs2::filter::as ( ) const
inlineinherited

◆ colorize() [1/2]

video_frame rs2::colorizer::colorize ( frame  depth) const
inline

Start to generate color image base on depth frame.

Parameters
[in]depth- depth frame to be processed to generate the color image
Returns
video_frame - generated color image

Definition at line 740 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::filter::process().

◆ colorize() [2/2]

video_frame rs2::colorizer::colorize ( frame  depth) const
inline

Start to generate color image base on depth frame.

Parameters
[in]depth- depth frame to be processed to generate the color image
Returns
video_frame - generated color image

Definition at line 740 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::filter::process().

◆ get() [1/2]

◆ get() [2/2]

◆ get_info() [1/2]

const char* rs2::processing_block::get_info ( rs2_camera_info  info) const
inlineinherited

Retrieve camera specific information, like versions of various internal components.

Parameters
[in]infocamera info type to retrieve
Returns
the requested camera info string, in a format specific to the processing_block model

Definition at line 323 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::_block, rs2::error::handle(), and rs2_get_processing_block_info().

◆ get_info() [2/2]

const char* rs2::processing_block::get_info ( rs2_camera_info  info) const
inlineinherited

Retrieve camera specific information, like versions of various internal components.

Parameters
[in]infocamera info type to retrieve
Returns
the requested camera info string, in a format specific to the processing_block model

Definition at line 323 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::_block, rs2::error::handle(), and rs2_get_processing_block_info().

◆ get_option() [1/2]

float rs2::options::get_option ( rs2_option  option) const
inlineinherited

read option's value

Parameters
[in]optionoption id to be queried
Returns
value of the option

Definition at line 72 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_get_option().

◆ get_option() [2/2]

float rs2::options::get_option ( rs2_option  option) const
inlineinherited

read option's value

Parameters
[in]optionoption id to be queried
Returns
value of the option

Definition at line 72 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_get_option().

◆ get_option_description() [1/2]

const char* rs2::options::get_option_description ( rs2_option  option) const
inlineinherited

get option description

Parameters
[in]optionoption id to be checked
Returns
human-readable option description

Definition at line 32 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_get_option_description().

◆ get_option_description() [2/2]

const char* rs2::options::get_option_description ( rs2_option  option) const
inlineinherited

get option description

Parameters
[in]optionoption id to be checked
Returns
human-readable option description

Definition at line 32 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_get_option_description().

◆ get_option_name() [1/2]

const char* rs2::options::get_option_name ( rs2_option  option) const
inlineinherited

get option name

Parameters
[in]optionoption id to be checked
Returns
human-readable option name

Definition at line 45 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_get_option_name().

◆ get_option_name() [2/2]

const char* rs2::options::get_option_name ( rs2_option  option) const
inlineinherited

get option name

Parameters
[in]optionoption id to be checked
Returns
human-readable option name

Definition at line 45 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_get_option_name().

◆ get_option_range() [1/2]

option_range rs2::options::get_option_range ( rs2_option  option) const
inlineinherited

retrieve the available range of values of a supported option

Returns
option range containing minimum and maximum values, step and default value

Definition at line 84 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::option_range::def, rs2::error::handle(), rs2::option_range::max, rs2::option_range::min, rs2_get_option_range(), and rs2::option_range::step.

◆ get_option_range() [2/2]

option_range rs2::options::get_option_range ( rs2_option  option) const
inlineinherited

retrieve the available range of values of a supported option

Returns
option range containing minimum and maximum values, step and default value

Definition at line 84 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::option_range::def, rs2::error::handle(), rs2::option_range::max, rs2::option_range::min, rs2_get_option_range(), and rs2::option_range::step.

◆ get_option_value_description() [1/2]

const char* rs2::options::get_option_value_description ( rs2_option  option,
float  val 
) const
inlineinherited

get option value description (in case specific option value hold special meaning)

Parameters
[in]optionoption id to be checked
[in]valvalue of the option
Returns
human-readable description of a specific value of an option or null if no special meaning

Definition at line 59 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), rs2_get_option_value_description(), and val.

◆ get_option_value_description() [2/2]

const char* rs2::options::get_option_value_description ( rs2_option  option,
float  val 
) const
inlineinherited

get option value description (in case specific option value hold special meaning)

Parameters
[in]optionoption id to be checked
[in]valvalue of the option
Returns
human-readable description of a specific value of an option or null if no special meaning

Definition at line 59 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), rs2_get_option_value_description(), and val.

◆ get_queue() [1/2]

frame_queue rs2::filter::get_queue ( )
inlineinherited

◆ get_queue() [2/2]

frame_queue rs2::filter::get_queue ( )
inlineinherited

◆ get_supported_options() [1/2]

◆ get_supported_options() [2/2]

◆ invoke() [1/2]

void rs2::processing_block::invoke ( frame  f) const
inlineinherited

Ask processing block to process the frame.

Parameters
[in]on_frameframe to be processed.

Definition at line 267 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::get(), rs2::error::handle(), rs2_process_frame(), and absl::swap_internal::swap().

Referenced by rs2::syncer::operator()(), and rs2::filter::process().

◆ invoke() [2/2]

void rs2::processing_block::invoke ( frame  f) const
inlineinherited

Ask processing block to process the frame.

Parameters
[in]on_frameframe to be processed.

Definition at line 267 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::get(), rs2::error::handle(), rs2_process_frame(), and absl::swap_internal::swap().

◆ is() [1/2]

template<class T >
bool rs2::filter::is ( ) const
inlineinherited

◆ is() [2/2]

template<class T >
bool rs2::filter::is ( ) const
inlineinherited

◆ is_option_read_only() [1/2]

bool rs2::options::is_option_read_only ( rs2_option  option) const
inlineinherited

check if particular option is read-only

Parameters
[in]optionoption id to be checked
Returns
true if option is read-only

Definition at line 111 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_is_option_read_only().

◆ is_option_read_only() [2/2]

bool rs2::options::is_option_read_only ( rs2_option  option) const
inlineinherited

check if particular option is read-only

Parameters
[in]optionoption id to be checked
Returns
true if option is read-only

Definition at line 111 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_is_option_read_only().

◆ operator bool() [1/2]

rs2::filter::operator bool ( ) const
inlineinherited

◆ operator bool() [2/2]

rs2::filter::operator bool ( ) const
inlineinherited

◆ operator rs2_options *() [1/2]

rs2::processing_block::operator rs2_options * ( ) const
inlineinherited

◆ operator rs2_options *() [2/2]

rs2::processing_block::operator rs2_options * ( ) const
inlineinherited

◆ operator>>() [1/2]

template<class S >
S& rs2::processing_block::operator>> ( S &  on_frame)
inlineinherited

Does the same thing as "start" function.

Parameters
[in]on_frameaddress of callback function for noticing the frame to be processed is ready.
Returns
address of callback function.

Definition at line 257 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::start().

◆ operator>>() [2/2]

template<class S >
S& rs2::processing_block::operator>> ( S &  on_frame)
inlineinherited

Does the same thing as "start" function.

Parameters
[in]on_frameaddress of callback function for noticing the frame to be processed is ready.
Returns
address of callback function.

Definition at line 257 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::start().

◆ process() [1/2]

rs2::frame rs2::filter::process ( rs2::frame  frame) const
inlineoverridevirtualinherited

Ask processing block to process the frame and poll the processed frame from internal queue.

Parameters
[in]on_frameframe to be processed. return processed frame

Implements rs2::filter_interface.

Definition at line 352 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::filter::_queue, rs2::processing_block::invoke(), and rs2::frame_queue::poll_for_frame().

◆ process() [2/2]

rs2::frame rs2::filter::process ( rs2::frame  frame) const
inlineoverridevirtualinherited

Ask processing block to process the frame and poll the processed frame from internal queue.

Parameters
[in]on_frameframe to be processed. return processed frame

Implements rs2::filter_interface.

Definition at line 352 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::filter::_queue, rs2::processing_block::invoke(), and rs2::frame_queue::poll_for_frame().

Referenced by rs2::frame::apply_filter(), rs2::pointcloud::calculate(), colorize(), rs2::pointcloud::map_to(), and rs2::align::process().

◆ register_simple_option() [1/2]

◆ register_simple_option() [2/2]

◆ set_option() [1/2]

void rs2::options::set_option ( rs2_option  option,
float  value 
) const
inlineinherited

write new value to the option

Parameters
[in]optionoption id to be queried
[in]valuenew value for the option

Definition at line 99 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_set_option().

◆ set_option() [2/2]

◆ start() [1/2]

template<class S >
void rs2::processing_block::start ( S  on_frame)
inlineinherited

Start the processing block with callback function on_frame to inform the application the frame is processed.

Parameters
[in]on_framecallback function for notifying the frame to be processed is ready.

Definition at line 244 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::get(), rs2::error::handle(), and rs2_start_processing().

◆ start() [2/2]

template<class S >
void rs2::processing_block::start ( S  on_frame)
inlineinherited

Start the processing block with callback function on_frame to inform the application the frame is processed.

Parameters
[in]on_framecallback function for notifying the frame to be processed is ready.

Definition at line 244 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::get(), rs2::error::handle(), and rs2_start_processing().

Referenced by rs2::filter::filter(), rs2::processing_block::operator>>(), and rs2::syncer::syncer().

◆ supports() [1/7]

bool rs2::processing_block::supports ( rs2_camera_info  info) const
inlineinherited

Check if a specific camera info field is supported.

Parameters
[in]infothe parameter to check for support
Returns
true if the parameter both exists and well-defined for the specific processing_block

Definition at line 310 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::_block, rs2::error::handle(), and rs2_supports_processing_block_info().

◆ supports() [2/7]

bool rs2::processing_block::supports ( rs2_camera_info  info) const
inlineinherited

Check if a specific camera info field is supported.

Parameters
[in]infothe parameter to check for support
Returns
true if the parameter both exists and well-defined for the specific processing_block

Definition at line 310 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_processing.hpp.

References rs2::processing_block::_block, rs2::error::handle(), and rs2_supports_processing_block_info().

◆ supports() [3/7]

bool rs2::options::supports ( rs2_option  option) const
inlineinherited

check if particular option is supported

Parameters
[in]optionoption id to be checked
Returns
true if option is supported

Definition at line 19 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

References rs2::error::handle(), and rs2_supports_option().

◆ supports() [4/7]

bool rs2::options::supports
inlineinherited

check if particular option is supported

Parameters
[in]optionoption id to be checked
Returns
true if option is supported

Definition at line 19 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

◆ supports() [5/7]

bool rs2::options::supports
inlineinherited

check if particular option is supported

Parameters
[in]optionoption id to be checked
Returns
true if option is supported

Definition at line 19 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

◆ supports() [6/7]

bool rs2::options::supports
inlineinherited

check if particular option is supported

Parameters
[in]optionoption id to be checked
Returns
true if option is supported

Definition at line 19 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

◆ supports() [7/7]

bool rs2::options::supports
inlineinherited

check if particular option is supported

Parameters
[in]optionoption id to be checked
Returns
true if option is supported

Definition at line 19 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_options.hpp.

Field Documentation

◆ _block

◆ _queue


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