summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-23 11:11:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-23 11:11:40 +0100
commitb30e1244a3367bc796aa6e82ef057e210844b29b (patch)
treeec35a1a32baad082e6ba1b49ee607a0c881df240
parent7f00e05847bb57796e7444a4a4cf5fdb4ab2b303 (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.cpp2
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_;
);