diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-23 11:11:40 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-23 11:11:40 +0100 |
| commit | b30e1244a3367bc796aa6e82ef057e210844b29b (patch) | |
| tree | ec35a1a32baad082e6ba1b49ee607a0c881df240 | |
| parent | 7f00e05847bb57796e7444a4a4cf5fdb4ab2b303 (diff) | |
filter/accela: fix formula
We need to multiply by rot_nl or there's a discontinuity.
| -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 89698413..dea39eb7 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -69,7 +69,7 @@ void accela::filter(const double* input, double *output) vec < nl.max(); if (should_apply_rot_nonlinearity) - return std::pow(out_/nl.max(), nl.cur()); + return std::pow(out_/nl.max(), nl.cur()) * nl.max(); else return out_; ); |
