Public Member Functions | Private Member Functions | Friends | List of all members
rs2::spatial_filter Class Reference

#include <rs_processing.hpp>

Inheritance diagram for rs2::spatial_filter:
Inheritance graph
[legend]

Public Member Functions

 spatial_filter ()
 
 spatial_filter (float smooth_alpha, float smooth_delta, float magnitude, float hole_fill)
 
 spatial_filter (filter f)
 
- Public Member Functions inherited from rs2::filter
template<class T >
as () const
 
 filter (std::shared_ptr< rs2_processing_block > block, int queue_size=1)
 
template<class S >
 filter (S processing_function, int queue_size=1)
 
rs2_processing_blockget () const
 
frame_queue get_queue ()
 
template<class T >
bool is () const
 
 operator bool () const
 
rs2::frame process (rs2::frame frame) const override
 
- Public Member Functions inherited from rs2::processing_block
rs2_processing_blockget () const
 
const char * get_info (rs2_camera_info info) const
 
void invoke (frame f) const
 
 operator rs2_options * () const
 
template<class S >
S & operator>> (S &on_frame)
 
 processing_block (std::shared_ptr< rs2_processing_block > block)
 
template<class S >
 processing_block (S processing_function)
 
template<class S >
void start (S on_frame)
 
bool supports (rs2_camera_info info) const
 
- Public Member Functions inherited from rs2::options
float get_option (rs2_option option) const
 
const char * get_option_description (rs2_option option) const
 
const char * get_option_name (rs2_option option) const
 
option_range get_option_range (rs2_option option) const
 
const char * get_option_value_description (rs2_option option, float val) const
 
std::vector< rs2_optionget_supported_options ()
 
bool is_option_read_only (rs2_option option) const
 
optionsoperator= (const options &other)
 
 options (const options &other)
 
void set_option (rs2_option option, float value) const
 
bool supports (rs2_option option) const
 
virtual ~options ()=default
 
- Public Member Functions inherited from rs2::filter_interface
virtual ~filter_interface ()=default
 

Private Member Functions

std::shared_ptr< rs2_processing_blockinit ()
 

Friends

class context
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::processing_block
void register_simple_option (rs2_option option_id, option_range range)
 
- Protected Member Functions inherited from rs2::options
template<class T >
optionsoperator= (const T &dev)
 
 options (rs2_options *o=nullptr)
 
- Protected Attributes inherited from rs2::filter
frame_queue _queue
 
- Protected Attributes inherited from rs2::processing_block
std::shared_ptr< rs2_processing_block_block
 

Detailed Description

Definition at line 871 of file rs_processing.hpp.

Constructor & Destructor Documentation

rs2::spatial_filter::spatial_filter ( )
inline

Create spatial filter Spatial filter smooths the image by calculating frame with alpha and delta settings alpha defines the weight of the current pixel for smoothing, and is bounded within [25..100]%, delta defines the depth gradient below which the smoothing will occur as number of depth levels For more information, check the spatial-filter.cpp

Definition at line 881 of file rs_processing.hpp.

rs2::spatial_filter::spatial_filter ( float  smooth_alpha,
float  smooth_delta,
float  magnitude,
float  hole_fill 
)
inline

Create spatial filter Spatial filter smooths the image by calculating frame with alpha and delta settings

Parameters
[in]smooth_alpha- defines the weight of the current pixel for smoothing is bounded within [25..100]%
[in]smooth_delta- defines the depth gradient below which the smoothing will occur as number of depth levels
[in]magnitude- number of filter iterations.
[in]hole_fill- an in-place heuristic symmetric hole-filling mode applied horizontally during the filter passes. Intended to rectify minor artefacts with minimal performance impact

Definition at line 892 of file rs_processing.hpp.

rs2::spatial_filter::spatial_filter ( filter  f)
inline

Definition at line 900 of file rs_processing.hpp.

Member Function Documentation

std::shared_ptr<rs2_processing_block> rs2::spatial_filter::init ( )
inlineprivate

Definition at line 912 of file rs_processing.hpp.

Friends And Related Function Documentation

friend class context
friend

Definition at line 910 of file rs_processing.hpp.


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


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