diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-28 21:22:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-28 21:22:59 +0100 |
commit | eb7ead29ffa12cc1ccbfaa7440cd47e33ba5a078 (patch) | |
tree | d9c06233b18c262550339be0cecfd3e2fb3dd076 | |
parent | bf1ff7dc170b9dcf9ac151170845bf8f8ea10083 (diff) |
accela: work even at zero slider position
Issue: #96
-rw-r--r-- | ftnoir_filter_accela/ftnoir_accela_filtercontrols.ui | 4 | ||||
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ftnoir_filter_accela/ftnoir_accela_filtercontrols.ui b/ftnoir_filter_accela/ftnoir_accela_filtercontrols.ui index 4c836ac9..9860b54c 100644 --- a/ftnoir_filter_accela/ftnoir_accela_filtercontrols.ui +++ b/ftnoir_filter_accela/ftnoir_accela_filtercontrols.ui @@ -92,7 +92,7 @@ background:none;</string> <item row="2" column="1"> <widget class="QSlider" name="translation_slider"> <property name="maximum"> - <number>100</number> + <number>99</number> </property> <property name="pageStep"> <number>5</number> @@ -111,7 +111,7 @@ background:none;</string> <item row="1" column="1"> <widget class="QSlider" name="rotation_slider"> <property name="maximum"> - <number>100</number> + <number>99</number> </property> <property name="pageStep"> <number>5</number> diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp index 733af902..cb01bccc 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -40,8 +40,8 @@ void FTNoIR_Filter::filter(const double* input, double *output) return; } - const double rot_t = 10. * s.rot_threshold / 100.; - const double trans_t = 10. * s.trans_threshold / 100.; + const double rot_t = 10. * (1+s.rot_threshold) / 100.; + const double trans_t = 10. * (1+s.trans_threshold) / 100.; const double dt = t.elapsed() * 1e-9; t.start(); |