|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlineexplicit |
Construct a filter.
| window | Number of recent accepted samples to test new candidates against, minimum 3 since MAD needs at least a few points to be meaningful |
| threshold_mad | Number of scaled-MAD units beyond which a candidate is rejected, typically 3.0 to 4.0 |
| max_consecutive_rejections | Forces the next candidate to be accepted unconditionally, and clears history to restart the window from it, once this many candidates in a row have been rejected. Without this, a real sustained change in the signal (which any consecutive Differential reading during real motion looks like relative to an older, now-stale window) can never be re-accepted: once every recent candidate is rejected against a frozen median, the filter locks onto whatever value it last accepted and holds it indefinitely, since a rejected candidate is never added to the window that future candidates are tested against. Default 3, since three consecutive genuine outliers from the same underlying cause is already an unusual coincidence; more than that is far more likely to be a real change the window has fallen behind. |
Definition at line 75 of file HampelFilter.hpp.