diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-04 15:30:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-04 15:30:10 +0200 |
commit | 7f39b5709248c57860cf584d56f735a9e2273dcd (patch) | |
tree | 664cf507c4c389700b455754a3b9dced9e43708a /filter-accela | |
parent | f1b7f2f8d0b508baa39b554e86d5499637681101 (diff) |
filter/accela: actually fix nonlinearity formula
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 09472f35..439638eb 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -95,7 +95,7 @@ void FTNoIR_Filter::filter(const double* input, double *output) const double vec_ = std::max(0., fabs(vec) - dz); const double thres = i >= 3 ? rot_t : trans_t; const double out_ = vec_ / thres; - const double out = i >= 3 && std::fabs(rot_nl - 1) > 5e-3 + const double out = i >= 3 && std::fabs(rot_nl - 1) > 5e-3 && vec_ < s.max_rot_nl ? (std::pow(out_/s.max_rot_nl, rot_nl) * s.max_rot_nl) : out_; const double val = m.getValue(float(out)); |