![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Applies running average filtering independently to each component of a 3D vector. More...
#include <VectorRunningAverageFilter.h>
Public Member Functions | |
VectorRunningAverageFilter () | |
Default constructor for VectorRunningAverageFilter . | |
VectorRunningAverageFilter (float gain) | |
Constructs a VectorRunningAverageFilter with a specified gain. | |
Vector3D | Filter (Vector3D input) |
Filters a 3D vector input using the running average filter. | |
Private Attributes | |
RunningAverageFilter< memory > | X |
Running average filter for the X component of the vector. | |
RunningAverageFilter< memory > | Y |
Running average filter for the Y component of the vector. | |
RunningAverageFilter< memory > | Z |
Running average filter for the Z component of the vector. | |
Applies running average filtering independently to each component of a 3D vector.
The VectorRunningAverageFilter
class uses three RunningAverageFilter
instances to process the X, Y, and Z components of a Vector3D
, providing a smoothed output for noisy 3D data.
memory | The size of the memory buffer used for the running average filter. |
Definition at line 28 of file VectorRunningAverageFilter.h.
VectorRunningAverageFilter | ( | ) |
Default constructor for VectorRunningAverageFilter
.
Initializes the running average filters for each component with default parameters.
Definition at line 4 of file VectorRunningAverageFilter.cpp.
VectorRunningAverageFilter | ( | float | gain | ) |
Constructs a VectorRunningAverageFilter
with a specified gain.
Initializes the running average filters for each component with the given gain value.
Definition at line 11 of file VectorRunningAverageFilter.cpp.
Filters a 3D vector input using the running average filter.
Applies running average filtering independently to the X, Y, and Z components of the input vector.
input | The input Vector3D to filter. |
Vector3D
. Definition at line 18 of file VectorRunningAverageFilter.cpp.
Referenced by BNO055::GetLocalAccelerationFiltered(), BNO055::GetLocalAngularVelocityFiltered(), and BNO055::Update().
|
private |
Running average filter for the X component of the vector.
Definition at line 30 of file VectorRunningAverageFilter.h.
|
private |
Running average filter for the Y component of the vector.
Definition at line 31 of file VectorRunningAverageFilter.h.
|
private |
Running average filter for the Z component of the vector.
Definition at line 32 of file VectorRunningAverageFilter.h.