MarkerPresenceDetectionProcedure#

class pyCGM2.Inspector.inspectorProcedures.MarkerPresenceDetectionProcedure(markers: List | None = None)#

Procedure to check the presence of specified markers in a biomechanical acquisition.

Parameters:

markers (Optional[List], optional) – A list of marker names to check for presence in the acquisition. Defaults to None.

__init__(markers: List | None = None)#

Initializes the MarkerPresenceDetectionProcedure with a list of markers to be checked.

Methods

__init__([markers])

Initializes the MarkerPresenceDetectionProcedure with a list of markers to be checked.

run(acq, filename, options)

Executes the procedure to check for the presence of specified markers in the acquisition.

run(acq: btkAcquisition, filename: str, options: Dict) Dict#

Executes the procedure to check for the presence of specified markers in the acquisition.

Parameters:
  • acq (btk.btkAcquisition) – The btk acquisition instance to be inspected.

  • filename (str) – Filename of the C3D file associated with the acquisition.

  • options (Dict) – Additional options for the procedure.

Returns:

Dict – A dictionary with two keys ‘In’ and ‘Out’. ‘In’ contains a list of markers present in the acquisition, and ‘Out’ contains a list of markers not found.