diff options
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index 9a3dbcff..fe4a081c 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -85,8 +85,10 @@ void accela::filter(const double* input, double *output) std::fabs(nl.cur() - 1) > 5e-3 && vec < nl.max(); + static constexpr double nl_end = 1.5; + if (should_apply_rot_nonlinearity) - return std::pow(out_/nl.max(), nl.cur()) * nl.max(); + return std::pow(out_/nl_end, nl.cur()) * nl_end; else return out_; ); |