pyCGM2.Model.modelDecorator.midPoint#

pyCGM2.Model.modelDecorator.midPoint(acq: btkAcquisition, lateralMarkerLabel: str, medialMarkerLabel: str, offset: float = 0) ndarray#

Returns the mid-point trajectory between two markers.

Parameters:
  • acq (btk.btkAcquisition) – An acquisition.

  • lateralMarkerLabel (str) – Label of the lateral marker.

  • medialMarkerLabel (str) – Label of the medial marker.

  • offset (float, optional) – Offset value for the calculation. Defaults to 0.

Returns:

np.ndarray – Mid-point trajectory between the two markers.

Note

if offset is different to 0, the mid point is computed from the statement:

lateral + offset*(Vector[medial->lateral])