pyCGM2.Lib.CGM.cgm2_2.calibrate#

pyCGM2.Lib.CGM.cgm2_2.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, *argv, **kwargs)#

CGM22 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..

  • 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 (Model) – the calibrated Model

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

  • detectAnomaly (bool) – presence of anomaly