From 8538d3a3d11f789038c7a936e52371b7daff6296 Mon Sep 17 00:00:00 2001
From: Tristan Walter <twalter@orn.mpg.de>
Date: Wed, 28 Oct 2020 16:38:48 +0100
Subject: [PATCH] * add averaging

---
 Application/src/tracker/VideoOpener.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Application/src/tracker/VideoOpener.cpp b/Application/src/tracker/VideoOpener.cpp
index 8ee50e6..341c885 100644
--- a/Application/src/tracker/VideoOpener.cpp
+++ b/Application/src/tracker/VideoOpener.cpp
@@ -215,7 +215,8 @@ VideoOpener::VideoOpener() {
             if(_result.tab.extension == "pv") {
                 // PV file, no need to add cmd
             } else if(!_result.selected_file.empty()) {
-                _result.cmd = "-i '" + path.str() + "' " + "-o '"+TEMP_SETTING(output_name).value<file::Path>().str()+"' -threshold "+TEMP_SETTING(threshold).get().valueString()+" -average_samples "+TEMP_SETTING(average_samples).get().valueString()+ " -reset_average";
+                _result.cmd = "-i '" + path.str() + "' " + "-o '"+TEMP_SETTING(output_name).value<file::Path>().str()+"' -threshold "+TEMP_SETTING(threshold).get().valueString()+" -average_samples "+TEMP_SETTING(average_samples).get().valueString()+ " -reset_average"
+                    +" -averaging_method "+TEMP_SETTING(averaging_method).get().valueString();
             }
             
             if(_load_results_checkbox && _load_results_checkbox->checked()) {
-- 
GitLab