diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-31 10:28:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-31 10:28:07 +0200 |
commit | 3e12d7ff6cea9e90ace691bc2470f2182299f1e2 (patch) | |
tree | ea3fd043dd4bcb460d38b0a0d3d2b223209daea3 | |
parent | 743a79a3fcf3e6a9676146654127e6ee29715a1c (diff) |
filter/accela: fix typo
-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 11cb1aab..c677e1b5 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -102,7 +102,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(s.max_rot_nl - 1) > 5e-3 + const double out = i >= 3 && std::fabs(rot_nl - 1) > 5e-3 ? (out_ * std::min(1., std::pow(out_/s.max_rot_nl, rot_nl)) * s.max_rot_nl) : out_; const double val = m.getValue(float(out)); |