summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-12 08:39:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-12 08:39:52 +0200
commit1a65333bb92cd6ad1b0b6b35734eb8eed70454bd (patch)
tree63cc6f856c443797e057284d82d3bb597e01a7c1
parentf54b9ddb1a2108c3b4ee7e84f66b82d00477c0bf (diff)
filter/accela: make nonlinearity actually useful
It needs to go further than the very beginning.
-rw-r--r--filter-accela/ftnoir_accela_filtercontrols.ui2
-rw-r--r--filter-accela/ftnoir_filter_accela.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/filter-accela/ftnoir_accela_filtercontrols.ui b/filter-accela/ftnoir_accela_filtercontrols.ui
index 22c18b10..74356aa8 100644
--- a/filter-accela/ftnoir_accela_filtercontrols.ui
+++ b/filter-accela/ftnoir_accela_filtercontrols.ui
@@ -416,7 +416,7 @@
<number>0</number>
</property>
<property name="maximum">
- <number>12</number>
+ <number>10</number>
</property>
<property name="pageStep">
<number>2</number>
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp
index bdf8067d..38c32392 100644
--- a/filter-accela/ftnoir_filter_accela.cpp
+++ b/filter-accela/ftnoir_filter_accela.cpp
@@ -123,7 +123,7 @@ void accela::filter(const double* input, double *output)
{
for (unsigned k = 3; k < 6; k++)
{
- static constexpr double nl_end = 1.5;
+ static constexpr double nl_end = 5;
if (fabs(deltas[k]) <= nl_end)
deltas[k] = copysign(pow(fabs(deltas[k]/nl_end), nl) * nl_end, deltas[k]);