EventFilter#

class pyCGM2.Events.eventFilters.EventFilter(procedure: EventProcedure, acq: btkAcquisition)#

Event filter to handle an event procedure.

This filter is designed to detect foot contact events within a motion capture acquisition. It uses a specified event procedure to determine the timings of these events.

Parameters:
  • procedure (EventProcedure) – An event procedure instance used for detecting foot contact events.

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

__init__(procedure: EventProcedure, acq: btkAcquisition)#

Initializes the EventFilter with a given event procedure and acquisition data

Methods

__init__(procedure, acq)

Initializes the EventFilter with a given event procedure and acquisition data

detect()

Run the event detection procedure.

getState()

Return the state of the filter.

detect()#

Run the event detection procedure.

This method applies the event detection procedure to the acquisition data to identify foot strike and foot off events. Detected events are added to the acquisition instance.

getState()#

Return the state of the filter.

Indicates whether the event detection procedure was successful or not.

Returns:

bool – The state of the filter, True if event detection was successful, otherwise False.