#include <rs_processing.hpp>
Public Member Functions | |
temporal_filter () | |
temporal_filter (float smooth_alpha, float smooth_delta, int persistence_control) | |
temporal_filter (filter f) | |
Public Member Functions inherited from rs2::filter | |
template<class T > | |
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_block * | get () 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_block * | get () 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_option > | get_supported_options () |
bool | is_option_read_only (rs2_option option) const |
options & | operator= (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_block > | init () |
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 > | |
options & | operator= (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 |
Definition at line 810 of file rs_processing.hpp.
|
inline |
Create temporal filter with default settings Temporal filter smooths the image by calculating multiple frames with alpha and delta settings alpha defines the weight of current frame, and delta defines the threshold for edge classification and preserving. For more information, check the temporal-filter.cpp
Definition at line 819 of file rs_processing.hpp.
|
inline |
Create temporal filter with user settings Temporal filter smooths the image by calculating multiple frames with alpha and delta settings
[in] | smooth_alpha | - defines the weight of current frame. |
[in] | smooth_delta | - delta defines the threshold for edge classification and preserving. |
[in] | persistence_control | - A set of predefined rules (masks) that govern when missing pixels will be replaced with the last valid value so that the data will remain persistent over time: 0 - Disabled - Persistency filter is not activated and no hole filling occurs. 1 - Valid in 8/8 - Persistency activated if the pixel was valid in 8 out of the last 8 frames 2 - Valid in 2/last 3 - Activated if the pixel was valid in two out of the last 3 frames 3 - Valid in 2/last 4 - Activated if the pixel was valid in two out of the last 4 frames 4 - Valid in 2/8 - Activated if the pixel was valid in two out of the last 8 frames 5 - Valid in 1/last 2 - Activated if the pixel was valid in one of the last two frames 6 - Valid in 1/last 5 - Activated if the pixel was valid in one out of the last 5 frames 7 - Valid in 1/last 8 - Activated if the pixel was valid in one out of the last 8 frames 8 - Persist Indefinitely - Persistency will be imposed regardless of the stored history(most aggressive filtering) For more information, check temporal-filter.cpp |
Definition at line 837 of file rs_processing.hpp.
|
inline |
Definition at line 844 of file rs_processing.hpp.
|
inlineprivate |
Definition at line 856 of file rs_processing.hpp.
|
friend |
Definition at line 854 of file rs_processing.hpp.