ModelAbsoluteAnglesFilter#

class pyCGM2.Model.modelFilters.ModelAbsoluteAnglesFilter(iMod: Model, acq: btkAcquisition, segmentLabels: List[str] = [], angleLabels: List[str] = [], eulerSequences: List[str] = [], globalFrameOrientation: str = 'XYZ', forwardProgression: bool = True)#

Compute absolute joint angles.

This filter calculates the absolute angles of specified segments in the model. The angles are expressed relative to a global frame, making them ‘absolute’ in the context of the model’s motion. The computed angles are stored as points in the acquisition instance.

Parameters:
  • iMod (Model) – The model instance containing segment information.

  • acq (btk.btkAcquisition) – The acquisition instance where the angles will be stored.

  • segmentLabels (List[str]) – Labels of the segments for which the angles are computed.

  • angleLabels (List[str]) – Labels for the angles to be computed.

  • eulerSequences (List[str]) – Euler sequences for angle computations.

  • globalFrameOrientation (str) – Orientation of the global frame.

  • forwardProgression (bool) – Indicates the direction of subject’s movement.

__init__(iMod: Model, acq: btkAcquisition, segmentLabels: List[str] = [], angleLabels: List[str] = [], eulerSequences: List[str] = [], globalFrameOrientation: str = 'XYZ', forwardProgression: bool = True)#

Methods

__init__(iMod, acq[, segmentLabels, ...])

compute([description, pointLabelSuffix])

Run the absolute angles filter.

compute(description: str = 'absolute', pointLabelSuffix: str | None = None)#

Run the absolute angles filter.

Calculates and stores the absolute angles of specified segments in the model.

Parameters:
  • description (str, optional) – Description added to the angle labels.

  • pointLabelSuffix (Optional[str], optional) – Suffix added to the angle labels.