Class temporal_filter

Inheritance Relationships

Base Type

Class Documentation

class temporal_filter : public rs2::filter

Public Functions

inline temporal_filter()

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

inline temporal_filter(float smooth_alpha, float smooth_delta, int persistence_control)

Create temporal filter with user settings Temporal filter smooths the image by calculating multiple frames with alpha and delta settings

Parameters:
  • smooth_alpha[in] - defines the weight of current frame.

  • smooth_delta[in] - delta defines the threshold for edge classification and preserving.

  • persistence_control[in] - 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

inline temporal_filter(filter f)