ZeniProcedure#

class pyCGM2.Events.eventProcedures.ZeniProcedure#

Gait event detection procedure based on the method described by Zeni et al., 2008.

This procedure implements a gait event detection algorithm that identifies foot strike and foot off events based on the motion of heel and toe markers relative to the pelvis.

description#

Description of the event detection procedure.

Type:

str

footStrikeOffset#

Systematic offset applied to each foot strike event.

Type:

int

footOffOffset#

Systematic offset applied to each foot off event.

Type:

int

__init__()#

Initializes the ZeniProcedure class.

Methods

__init__()

Initializes the ZeniProcedure class.

detect(acq)

Detect events using the Zeni method.

setFootOffOffset(value)

Set a systematic offset to each foot off event.

setFootStrikeOffset(value)

Set a systematic offset to each foot strike event.

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

Detect events using the Zeni 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.

setFootOffOffset(value: int)#

Set a systematic offset to each foot off event.

Parameters:

value (int) – Frame offset to apply to each foot off event.

setFootStrikeOffset(value: int)#

Set a systematic offset to each foot strike event.

Parameters:

value (int) – Frame offset to apply to each foot strike event.