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

#include <spatial-filter.h>

Inheritance diagram for librealsense::spatial_filter:
Inheritance graph

Public Member Functions

 spatial_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

template<typename T >
void dxf_smooth (void *frame_data, float alpha, float delta, int iterations)
template<typename T >
void intertial_holes_fill (T *image_data)
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 recursive_filter_horizontal (void *image_data, float alpha, float deltaZ)
void recursive_filter_horizontal_fp (void *image_data, float alpha, float deltaZ)
template<typename T >
void recursive_filter_vertical (void *image_data, float alpha, float deltaZ)
void recursive_filter_vertical_fp (void *image_data, float alpha, float deltaZ)
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 Attributes

size_t _bpp
size_t _current_frm_size_pixels
rs2_extension _extension_type
float _focal_lenght_mm
size_t _height
uint8_t _holes_filling_mode
uint8_t _holes_filling_radius
rs2::stream_profile _source_stream_profile
float _spatial_alpha_param
uint8_t _spatial_delta_param
float _spatial_edge_threshold
uint8_t _spatial_iterations
float _stereo_baseline_mm
bool _stereoscopic_depth
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 18 of file spatial-filter.h.

Constructor & Destructor Documentation

librealsense::spatial_filter::spatial_filter ( )

Definition at line 51 of file spatial-filter.cpp.

Member Function Documentation

template<typename T >
void librealsense::spatial_filter::dxf_smooth ( void frame_data,
float  alpha,
float  delta,
int  iterations 

Definition at line 30 of file spatial-filter.h.

template<typename T >
void librealsense::spatial_filter::intertial_holes_fill ( T *  image_data)

Definition at line 220 of file spatial-filter.h.

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

Definition at line 220 of file spatial-filter.cpp.

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

Implements librealsense::generic_processing_block.

Definition at line 150 of file spatial-filter.cpp.

template<typename T >
void librealsense::spatial_filter::recursive_filter_horizontal ( void image_data,
float  alpha,
float  deltaZ 

Definition at line 59 of file spatial-filter.h.

void librealsense::spatial_filter::recursive_filter_horizontal_fp ( void image_data,
float  alpha,
float  deltaZ 

Definition at line 229 of file spatial-filter.cpp.

template<typename T >
void librealsense::spatial_filter::recursive_filter_vertical ( void image_data,
float  alpha,
float  deltaZ 

Definition at line 154 of file spatial-filter.h.

void librealsense::spatial_filter::recursive_filter_vertical_fp ( void image_data,
float  alpha,
float  deltaZ 

Definition at line 357 of file spatial-filter.cpp.

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

Definition at line 166 of file spatial-filter.cpp.

Member Data Documentation

size_t librealsense::spatial_filter::_bpp

Definition at line 273 of file spatial-filter.h.

size_t librealsense::spatial_filter::_current_frm_size_pixels

Definition at line 275 of file spatial-filter.h.

rs2_extension librealsense::spatial_filter::_extension_type

Definition at line 274 of file spatial-filter.h.

float librealsense::spatial_filter::_focal_lenght_mm

Definition at line 279 of file spatial-filter.h.

size_t librealsense::spatial_filter::_height

Definition at line 272 of file spatial-filter.h.

uint8_t librealsense::spatial_filter::_holes_filling_mode

Definition at line 281 of file spatial-filter.h.

uint8_t librealsense::spatial_filter::_holes_filling_radius

Definition at line 282 of file spatial-filter.h.

rs2::stream_profile librealsense::spatial_filter::_source_stream_profile

Definition at line 276 of file spatial-filter.h.

float librealsense::spatial_filter::_spatial_alpha_param

Definition at line 268 of file spatial-filter.h.

uint8_t librealsense::spatial_filter::_spatial_delta_param

Definition at line 269 of file spatial-filter.h.

float librealsense::spatial_filter::_spatial_edge_threshold

Definition at line 271 of file spatial-filter.h.

uint8_t librealsense::spatial_filter::_spatial_iterations

Definition at line 270 of file spatial-filter.h.

float librealsense::spatial_filter::_stereo_baseline_mm

Definition at line 280 of file spatial-filter.h.

bool librealsense::spatial_filter::_stereoscopic_depth

Definition at line 278 of file spatial-filter.h.

size_t librealsense::spatial_filter::_stride

Definition at line 272 of file spatial-filter.h.

rs2::stream_profile librealsense::spatial_filter::_target_stream_profile

Definition at line 277 of file spatial-filter.h.

size_t librealsense::spatial_filter::_width

Definition at line 272 of file spatial-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