OconnorProcedure#

class pyCGM2.Events.eventProcedures.OconnorProcedure(check=False)#

Detects initial contacts and final contacts from the heel and toe marker position data.

See:

O’Connor CM, et al. Gait Posture. 2007. doi: 10.1016/j.gaitpost.2006.05.016

Parameters:
  • heel_pos ((N, D) ndarray, (N, D) ndarray) – The marker position data with N time steps across D channels, for the heel and toe marker, respectively.

  • toe_pos ((N, D) ndarray, (N, D) ndarray) – The marker position data with N time steps across D channels, for the heel and toe marker, respectively.

  • fs (int, float) – The sampling frequency (in Hz).

Returns:

ix_IC, ix_FC (ndarray, ndarray) – The indexes corresponding to initial contacts and final contacts, respectively.

__init__(check=False)#

Initializes the OconnorProcedure class.

Methods

__init__([check])

Initializes the OconnorProcedure class.

detect(acq)

Detect events using the Oconnor method.

detect(acq: btkAcquisition) → Tuple[int, int, int, int] | int#

Detect events using the Oconnor method.

Parameters:

acq (btk.btkAcquisition) – A BTK acquisition instance containing motion capture data.

Returns:

Union[Tuple[int, int, int, int], int] – Frames indicating the left foot strike, left foot off, right foot strike, and right foot off respectively. Returns 0 if detection fails.