Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::temporal_filter Class Reference

#include <temporal-filter.h>

Inheritance diagram for librealsense::temporal_filter:
Inheritance graph

Public Member Functions

 temporal_filter ()
- Public Member Functions inherited from librealsense::depth_processing_block
 depth_processing_block (const char *name)
virtual ~depth_processing_block ()
- 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)

Protected Member Functions

rs2::frame prepare_target_frame (const rs2::frame &f, const rs2::frame_source &source)
rs2::frame process_frame (const rs2::frame_source &source, const rs2::frame &f) override
template<typename T >
void temp_jw_smooth (void *frame_data, void *_last_frame_data, uint8_t *history)
void update_configuration (const rs2::frame &f)
- Protected Member Functions inherited from librealsense::depth_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)

Private Member Functions

void on_set_alpha (float val)
void on_set_delta (float val)
void on_set_persistence_control (uint8_t val)
void recalc_persistence_map ()

Private Attributes

float _alpha_param
size_t _bpp
uint8_t _cur_frame_index
size_t _current_frm_size_pixels
uint8_t _delta_param
rs2_extension _extension_type
size_t _height
std::vector< uint8_t_history
std::vector< uint8_t_last_frame
float _one_minus_alpha
std::array< uint8_t, PRESISTENCY_LUT_SIZE_persistence_map
uint8_t _persistence_param
rs2::stream_profile _source_stream_profile
size_t _stride
rs2::stream_profile _target_stream_profile
size_t _width

Additional Inherited Members

- 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 11 of file temporal-filter.h.

Constructor & Destructor Documentation

librealsense::temporal_filter::temporal_filter ( )

Definition at line 35 of file temporal-filter.cpp.

Member Function Documentation

void librealsense::temporal_filter::on_set_alpha ( float  val)

Definition at line 135 of file temporal-filter.cpp.

void librealsense::temporal_filter::on_set_delta ( float  val)

Definition at line 145 of file temporal-filter.cpp.

void librealsense::temporal_filter::on_set_persistence_control ( uint8_t  val)

Definition at line 126 of file temporal-filter.cpp.

rs2::frame librealsense::temporal_filter::prepare_target_frame ( const rs2::frame f,
const rs2::frame_source source 

Definition at line 179 of file temporal-filter.cpp.

rs2::frame librealsense::temporal_filter::process_frame ( const rs2::frame_source source,
const rs2::frame f 

Implements librealsense::generic_processing_block.

Definition at line 111 of file temporal-filter.cpp.

void librealsense::temporal_filter::recalc_persistence_map ( )

Definition at line 188 of file temporal-filter.cpp.

template<typename T >
void librealsense::temporal_filter::temp_jw_smooth ( void frame_data,
void _last_frame_data,
uint8_t history 

Definition at line 23 of file temporal-filter.h.

void librealsense::temporal_filter::update_configuration ( const rs2::frame f)

Definition at line 154 of file temporal-filter.cpp.

Member Data Documentation

float librealsense::temporal_filter::_alpha_param

Definition at line 94 of file temporal-filter.h.

size_t librealsense::temporal_filter::_bpp

Definition at line 98 of file temporal-filter.h.

uint8_t librealsense::temporal_filter::_cur_frame_index

Definition at line 105 of file temporal-filter.h.

size_t librealsense::temporal_filter::_current_frm_size_pixels

Definition at line 100 of file temporal-filter.h.

uint8_t librealsense::temporal_filter::_delta_param

Definition at line 96 of file temporal-filter.h.

rs2_extension librealsense::temporal_filter::_extension_type

Definition at line 99 of file temporal-filter.h.

size_t librealsense::temporal_filter::_height

Definition at line 97 of file temporal-filter.h.

std::vector<uint8_t> librealsense::temporal_filter::_history

Definition at line 104 of file temporal-filter.h.

std::vector<uint8_t> librealsense::temporal_filter::_last_frame

Definition at line 103 of file temporal-filter.h.

float librealsense::temporal_filter::_one_minus_alpha

Definition at line 95 of file temporal-filter.h.

std::array<uint8_t, PRESISTENCY_LUT_SIZE> librealsense::temporal_filter::_persistence_map

Definition at line 107 of file temporal-filter.h.

uint8_t librealsense::temporal_filter::_persistence_param

Definition at line 92 of file temporal-filter.h.

rs2::stream_profile librealsense::temporal_filter::_source_stream_profile

Definition at line 101 of file temporal-filter.h.

size_t librealsense::temporal_filter::_stride

Definition at line 97 of file temporal-filter.h.

rs2::stream_profile librealsense::temporal_filter::_target_stream_profile

Definition at line 102 of file temporal-filter.h.

size_t librealsense::temporal_filter::_width

Definition at line 97 of file temporal-filter.h.

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

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