diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-28 14:10:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-28 14:10:35 +0200 |
commit | f7e66633b3906c90342ff1bd857ab9b3d63dab8e (patch) | |
tree | c8f07f125298725bc11b18461275af29fdbe6b48 /filter-accela | |
parent | 6b7fb0200daaca00e6f54734af8a33470c7a4a6a (diff) |
filter/accela: add forgotten fabs in check
Diffstat (limited to 'filter-accela')
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index 24768dea..acf1e267 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -149,7 +149,7 @@ void accela::filter(const double* input, double *output) { static constexpr double nl_end = 1.5; - if (deltas[k] <= nl_end) + if (fabs(deltas[k]) <= nl_end) deltas[k] = copysign(pow(fabs(deltas[k]/nl_end), nl) * nl_end, deltas[k]); } } |