Page 1 of 1
Opensim low pass filter question
Posted: Fri Oct 18, 2013 8:19 am
by jhb777
Does anyone know what type of low pass filter opensim uses to filter joint angle data for inverse dynamics, RRA, etc? At what point in the process is the filter applied?
Re: Opensim low pass filter question
Posted: Sun Nov 03, 2013 11:48 pm
by aseth
For the InverseDynamicsTool and AnalyzeTool the joint angles are filtered using a 3rd order lowpass IIR Butterworth digital filter. The RRATool (and CMCTool) use a lowpass FIR nonrecursive filter, with the order set to 50 with the following reference:
http://www.dspguide.com/CH16.PDF
In both cases they are filtered prior to being fitted by GCVSplines and the splines are differentiated to provide velocity and acceleration information.
Re: Opensim low pass filter question
Posted: Wed Nov 06, 2013 3:15 pm
by jhb777
Thanks Ajay!
Re: Opensim low pass filter question
Posted: Wed Aug 31, 2016 2:00 am
by antoinefalisse
I have another question related to the low pass filter used in the InverseDynamicsTool.
If I am right, the filter is a dual pass 3rd order filter. Is it thus right to say that, due to the dual pass, the effective cutoff frequency is lower than the selected cutoff frequency? This follows what is discussed in those threads:
http://biomch-l.isbweb.org/threads/2662 ... !!!)/page2 and
http://biomch-l.isbweb.org/threads/2500 ... #post27431.
If the desired cutoff frequency is 6 Hz, we should thus adjust the selected frequency to 6/0.8634 = 6.9493 Hz in OpenSim to obtain the desired response. I don't think this adjustment is made in OpenSim (
https://github.com/opensim-org/opensim- ... Signal.cpp).
Could anyone confirm? I am trying to compare two models/workflows and I want to make sure I am using the same filter. Many thanks.
Ps: 0.8634 = (sqrt(2)-1)^(1/(2*3)) where 3 is the order of the filter.