Temporal Filter#
该滤波器使用同一像素在不同时间点的值来滤除图像中的瞬时噪声。其基础是深度图数据。它考虑了目标场景中的任何运动,有助于减少运动伪影。
使用 Temporal Filter Strength 参数可定义时间滤波器的强度。
运作原理#
This is a recursive filter. The filter is initialized with the depth data measured for the first frame. This initial depth value is updated with the depth value of the subsequent frame by adding the old value weighted by (k / 255) and the new value weighted by (k - 1 / 255). "k" is the value specified by the TemporalFilterStrength
parameter. If motion is detected in the image, i.e., if the depth value for a certain pixel changes drastically to the previous value, the values of the corresponding pixels are reset and reinitialized to avoid motion artifacts.
以下公式说明了滤镜的工作原理:
OUT = (k / 255) * STATE + (1 – k / 255) * IN
其中
OUT = result
IN = new frame
STATE = old frame
k = filter strength (value of the TemporalFilterStrength
parameter)
Temporal Filter Strength#
The value you enter for the TemporalFilterStrength
parameter is used as the weight factor k in the formula for calculating the strength of the temporal filter. You can set a value between 50 to 255.