|
WPILibC++
2020.3.2
|
A class that implements a moving-window median filter. More...
#include <MedianFilter.h>
Public Member Functions | |
| MedianFilter (size_t size) | |
| Creates a new MedianFilter. More... | |
| T | Calculate (T next) |
| Calculates the moving-window median for the next value of the input stream. More... | |
| void | Reset () |
| Resets the filter, clearing the window of all elements. | |
A class that implements a moving-window median filter.
Useful for reducing measurement noise, especially with processes that generate occasional, extreme outliers (such as values from vision processing, LIDAR, or ultrasonic sensors).
|
inlineexplicit |
Creates a new MedianFilter.
| size | The number of samples in the moving window. |
|
inline |
Calculates the moving-window median for the next value of the input stream.
| next | The next input value. |