ModelMotionFilter#

class pyCGM2.Model.modelFilters.ModelMotionFilter(procedure: GeneralCalibrationProcedure | StaticCalibrationProcedure, acq: btkAcquisition, iMod: Model, method: motionMethod, **options)#

Updates the model with the pose of both technical and anatomical coordinate systems at each frame.

Parameters:
Kwargs:

markerDiameter (float): Diameter of the markers used. It helps in determining the exact location of the markers. basePlate (float): Thickness of the base plate. Used in calculations where ground interaction is considered. viconCGM1compatible (bool): If true, replicates the Vicon Plugin-gait error related to proximal and distal tibia. useLeftKJCmarker (str): Label of the left knee joint center, present in the c3d as a virtual marker. useLeftAJCmarker (str): Label of the left ankle joint center, present in the c3d as a virtual marker. useLeftSJCmarker (str): Label of the left shoulder joint center, present in the c3d as a virtual marker. useLeftEJCmarker (str): Label of the left elbow joint center, present in the c3d as a virtual marker. useLeftWJCmarker (str): Label of the left wrist joint center, present in the c3d as a virtual marker. useRightKJCmarker (str): Label of the right knee joint center, present in the c3d as a virtual marker. useRightAJCmarker (str): Label of the right ankle joint center, present in the c3d as a virtual marker. useRightSJCmarker (str): Label of the right shoulder joint center, present in the c3d as a virtual marker. useRightEJCmarker (str): Label of the right elbow joint center, present in the c3d as a virtual marker. useRightWJCmarker (str): Label of the right wrist joint center, present in the c3d as a virtual marker.

__init__(procedure: GeneralCalibrationProcedure | StaticCalibrationProcedure, acq: btkAcquisition, iMod: Model, method: motionMethod, **options)#

Methods

__init__(procedure, acq, iMod, method, **options)

compute()

Runs the motion filter.

segmentalCompute(segments)

Computes motion for the given segments.

setBoolOption(label)

Activate a boolean option.

setNoAnatomicalMotion(boolFlag)

Determines whether or not anatomical motion should be computed.

setOption(label, value)

Set or update an option for the motion filter.

compute()#

Runs the motion filter.

segmentalCompute(segments: List[str])#

Computes motion for the given segments.

Parameters:

segments (List[str]) – Labels of the segments to process.

setBoolOption(label: str)#

Activate a boolean option.

Parameters:

label (str) – The option label.

setNoAnatomicalMotion(boolFlag: bool)#

Determines whether or not anatomical motion should be computed.

Parameters:

boolFlag (bool) – Flag to activate or deactivate anatomical motion.

setOption(label: str, value)#

Set or update an option for the motion filter.

Parameters:
  • label (str) – The option label.

  • value – The value of the option.