pyCGM2.Lib.CGM.cgm2_4.calibrate#

pyCGM2.Lib.CGM.cgm2_4.calibrate(DATA_PATH: str, calibrateFilenameLabelled: str, translators: Dict, weights: Dict, required_mp: Dict, optional_mp: Dict, ik_flag: bool, leftFlatFoot: bool, rightFlatFoot: bool, headFlat: bool, markerDiameter: float, hjcMethod: Dict, pointSuffix: str, *argv, **kwargs)#

CGM24 calibration.

Parameters:
  • DATA_PATH (str) – folder path.

  • calibrateFilenameLabelled (str) – filename of your static file.

  • translators (dict) – marker translators.

  • required_mp (dict) – required anthropometric parameter.

  • optional_mp (dict) – optional anthropometric parameter.

  • ik_flag (bool) – enable or disable inverse kinematics

  • leftFlatFoot (bool) – flat foot option.

  • rightFlatFoot (bool) – flat foot option.

  • headFlat (bool) – flat head option.

  • markerDiameter (float) – marker diameter

  • hjcMethod (dict) – hip joint centre regressions

  • pointSuffix (str) – suffix to add to ouputs

Keyword Arguments:
  • anomalyException (bool) – raise exception if anomaly detected

  • forceBtkAcq (btk.btkAcquisition) – use a btkAcquisition instance instead of building the btkAcquisition from the static filename

  • displayCoordinateSystem (bool) – return virtual markers for visualisation of the anatomical refentials

  • noKinematicsCalculation (bool) – disable computation of joint kinematics

  • forceMP (bool) – force the use of mp offset to compute the knee and ankle joint centres

Returns:
  • model (pyCGM2.Model) – the calibrated Model

  • acqStatic (btk.btkAcquisition) – static btkAcquisition instance with model ouputs

  • detectAnomaly (bool) – presence of anomaly