summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Filter_EWMA2
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-02-01 21:00:36 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-02-01 21:00:36 +0000
commit6a168be69e38cbfba522666ced2fb3f6579b0f29 (patch)
tree7db4e8f74e4383e07b733ce2d27c2042d31ed2ef /FTNoIR_Filter_EWMA2
parent51a3eb679889844a0f8c8643034615dc12a7f523 (diff)
Fixing alpha-update 5 issues.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@46 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Filter_EWMA2')
-rw-r--r--FTNoIR_Filter_EWMA2/ftnoir_filter_ewma2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/FTNoIR_Filter_EWMA2/ftnoir_filter_ewma2.cpp b/FTNoIR_Filter_EWMA2/ftnoir_filter_ewma2.cpp
index c298c6e8..4748f879 100644
--- a/FTNoIR_Filter_EWMA2/ftnoir_filter_ewma2.cpp
+++ b/FTNoIR_Filter_EWMA2/ftnoir_filter_ewma2.cpp
@@ -96,7 +96,7 @@ FTNoIR_Filter_EWMA2::FTNoIR_Filter_EWMA2()
setParameterValue(kSmoothingScaleCurve,10.0f);
first_run = true;
- alpha_smoothing = 0.2f; //this is a constant for now, might be a parameter later
+ alpha_smoothing = 0.02f; //this is a constant for now, might be a parameter later
}
@@ -121,7 +121,7 @@ void FTNoIR_Filter_EWMA2::FilterHeadPoseData(THeadPoseData *current_camera_posit
float prev_output[6];
float target[6];
float output_delta[6];
- float scale[]={0.05f,0.05f,0.05f,1.2f,1.2f,1.2f};
+ float scale[]={0.025f,0.025f,0.025f,6.0f,6.0f,6.0f};
float norm_output_delta[6];
float output[6];
int i=0;