ModelJCSFilter#

class pyCGM2.Model.modelFilters.ModelJCSFilter(iMod: Model, acq: btkAcquisition)#

Compute the relative joint angles using joint coordinate systems.

This filter calculates the relative angles between segments at each joint using the anatomical and technical coordinate systems defined in the model. The angles are computed for each joint and stored as points in the acquisition instance.

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

  • acq (btk.btkAcquisition) – The acquisition instance to which the computed angles will be added.

m_aqui#

The acquisition instance.

Type:

btk.btkAcquisition

m_model#

The model instance.

Type:

Model

m_fixEuler#

Flag to determine if Euler angles should be fixed.

Type:

bool

__init__(iMod: Model, acq: btkAcquisition)#

Methods

__init__(iMod, acq)

compute([description, pointLabelSuffix])

Run the joint coordinate system filter.

setFixEuler(fix)

Set the flag to fix Euler angles.

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

Run the joint coordinate system filter.

Computes the relative joint angles for each joint defined in the model and stores them in the acquisition instance.

Parameters:
  • description (str, optional) – Short description to be added to the point labels.

  • pointLabelSuffix (str, optional) – Suffix to be added to the point labels.

setFixEuler(fix: bool)#

Set the flag to fix Euler angles.

Parameters:

fix (bool) – If True, Euler angles will be fixed.