Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | Friends | List of all members
rs2::spatial_filter Class Reference

#include <rs_processing.hpp>

Inheritance diagram for rs2::spatial_filter:
rs2::process_interface rs2::options

Public Member Functions

 spatial_filter ()
 
rs2::frame process (rs2::frame frame) override
 
void operator() (frame f) const override
 
- Public Member Functions inherited from rs2::process_interface
virtual ~process_interface ()=default
 
- Public Member Functions inherited from rs2::options
bool supports (rs2_option option) const
 
const char * get_option_description (rs2_option option) const
 
const char * get_option_value_description (rs2_option option, float val) const
 
float get_option (rs2_option option) const
 
option_range get_option_range (rs2_option option) const
 
void set_option (rs2_option option, float value) const
 
bool is_option_read_only (rs2_option option) const
 
optionsoperator= (const options &other)
 
virtual ~options ()=default
 

Friends

class context
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::options
 options (rs2_options *o=nullptr)
 
template<class T >
optionsoperator= (const T &dev)
 
 options (const options &other)
 

Constructor & Destructor Documentation

◆ spatial_filter()

rs2::spatial_filter::spatial_filter ( )
inline

Create spatial filter processing block spatial filter smooth the image by calculating frame with alpha and delta settings alpha defines he weight of the current pixel for smoothing 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

Member Function Documentation

◆ operator()()

void rs2::spatial_filter::operator() ( frame  f) const
inlineoverridevirtual

process the frame

Parameters
[in]frame- depth frame to be processed

Implements rs2::process_interface.

◆ process()

rs2::frame rs2::spatial_filter::process ( rs2::frame  frame)
inlineoverridevirtual

process the frame AND return the result

Parameters
[in]frame- depth frame to be processed
Returns
rs2::frame - filtered frame

Implements rs2::process_interface.

Friends And Related Function Documentation

◆ context

friend class context
friend

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