createSingleSegment#

pyCGM2.Lib.modelling.createSingleSegment(acq: btkAcquisition, calibration_markers: List[str], tracking_markers: List[str], calibFramesOfInterest: List[str] | None = None)#

Create and calibrate a single rigid segment model from markers.

The technical frame of the segment, named Body, is defined from the first three calibration markers (sequence XYZ), with the fourth one as origin.

Parameters:
  • acq (btk.btkAcquisition) – Acquisition used for the calibration.

  • calibration_markers (List[str]) – Calibration markers (at least four).

  • tracking_markers (List[str]) – Tracking markers.

  • calibFramesOfInterest (Optional[List[int]], optional) – First and last frames used for the calibration. Defaults to None (all frames).

Returns:

pyCGM2.Model.model.Segment – The calibrated segment.