Browse Source

parameter tuning

Alexander Hendrich 7 years ago
parent
commit
a88f6c997e
1 changed files with 8 additions and 8 deletions
  1. 8 8
      bbiwarg/Parameters.cs

+ 8 - 8
bbiwarg/Parameters.cs

@@ -176,7 +176,7 @@ namespace BBIWARG
         /// <summary>
         /// if a tracked object moves this relative amount it will have a similarity of 0 to itself at the previous position
         /// </summary>
-        public static readonly float TrackerMaxRelativeMove = 0.25f;
+        public static readonly float TrackerMaxRelativeMove = 0.35f;
 
         #endregion general tracking
 
@@ -498,7 +498,7 @@ namespace BBIWARG
         /// <summary>
         /// the maximum downwards difference for the flood fill operation
         /// </summary>
-        public static readonly int TouchFloodfillDownDiff = 1;
+        public static readonly int TouchFloodfillDownDiff = 2;
 
         /// <summary>
         /// the maximum upwards difference for the flood fill operation
@@ -508,17 +508,17 @@ namespace BBIWARG
         /// <summary>
         /// the threshold number of pixels affected by the flood fill (in percentage) to be considered as a touch
         /// </summary>
-        public static readonly float TouchMinTouchValue = 0.3f;
+        public static readonly float TouchMinTouchValue = 0.5f;
 
         /// <summary>
         /// the position adjustment for the start point of the flood fill operation
         /// </summary>
-        public static int TouchTipInsideFactor { get { return InputSource == InputType.RS300 ? 10 : 2; }}
+        public static int TouchTipInsideFactor { get { return InputSource == InputType.RS300 ? 4 : 2; }}
 
         /// <summary>
         /// the position adjustment for the position of the actual touch event
         /// </summary>
-        public static int TouchTipOutsideFactor { get { return InputSource == InputType.RS300 ? 30 : 7; }}
+        public static int TouchTipOutsideFactor { get { return InputSource == InputType.RS300 ? 14 : 7; }}
 
         #endregion touch detection
 
@@ -537,7 +537,7 @@ namespace BBIWARG
         /// <summary>
         /// yy entry for the measurement noise covariance matrix for the kalman filter used to smooth touch events
         /// </summary>
-        public static readonly float TouchmYY = 0.00165f;
+        public static readonly float TouchmYY = 0.003f;
 
         /// <summary>
         /// value used for all entries in the process noise covariance matrix for the kalman filter used to smooth touch events
@@ -552,12 +552,12 @@ namespace BBIWARG
         /// <summary>
         /// number of frames an object needs to be detected before it is tracked
         /// </summary>
-        public static readonly int TouchTrackerNumFramesDetectedUntilTracked = 1;
+        public static readonly int TouchTrackerNumFramesDetectedUntilTracked = 2;
 
         /// <summary>
         /// number of frames an object needs to be lost before it is deleted
         /// </summary>
-        public static readonly int TouchTrackerNumFramesLostUntilDeleted = 5;
+        public static readonly int TouchTrackerNumFramesLostUntilDeleted = 10;
 
         #endregion touch tracking