diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-06-14 18:33:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-06-14 18:33:34 +0200 |
commit | 379f05cbaa02d328b538134a719f3a6a2400d6c6 (patch) | |
tree | b90224ef350aa292b15f0529c49990dd75a8ab2e | |
parent | 8e6d217dca098b5b508dc09185abeda3331fc4e7 (diff) |
update lerp api in filters
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.cpp | 4 | ||||
-rw-r--r-- | ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp index a82ff077..b07290e2 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -32,7 +32,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double* target_camera_position, {
for (int j = 0; j < 3; j++)
last_output[j][i] = target_camera_position[i];
- l.write(target_camera_position, new_camera_position);
+ l.write(target_camera_position, target_camera_position, new_camera_position);
}
first_run = false;
@@ -63,7 +63,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double* target_camera_position, }
}
- l.write(last_output[0], new_camera_position);
+ l.write(target_camera_position, last_output[0], new_camera_position);
}
extern "C" FTNOIR_FILTER_BASE_EXPORT IFilter* CALLING_CONVENTION GetConstructor()
diff --git a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp index dcc1475c..d3cb2c32 100644 --- a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp +++ b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp @@ -71,7 +71,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double *target_camera_position, for (int i=0;i<6;i++) { delta[i] = 0.0; noise[i] = 0.0; - l.write(target_camera_position, new_camera_position); + l.write(target_camera_position, target_camera_position, new_camera_position); } first_run=false; return; @@ -100,7 +100,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double *target_camera_position, } } - l.write(pos, new_camera_position); + l.write(target_camera_position, pos, new_camera_position); } extern "C" FTNOIR_FILTER_BASE_EXPORT IFilter* CALLING_CONVENTION GetConstructor() |