MarkerPresenceDetectionProcedure#
- class pyCGM2.Anomaly.anomalyDetectionProcedures.MarkerPresenceDetectionProcedure(markers: List | None = None)#
Check the presence of markers in an acquisition.
A marker is considered absent if it does not exist in the acquisition or if it is a phantom (all residuals equal to -1).
The
Outputof the anomaly dictionary is{"In": [...], "Out": [...]}. Missing markers are only logged:ErrorStatestaysFalse.- Parameters:
markers (Optional[List]) – Marker labels to check. Defaults to None.
- __init__(markers: List | None = None)#
Initializes the AnomalyDetectionProcedure class.
Methods
__init__([markers])Initializes the AnomalyDetectionProcedure class.
getAnomaly()Returns the detected anomaly.
run(acq, filename, options)Run the marker presence check.
- run(acq: btkAcquisition, filename: str, options: Dict) Dict#
Run the marker presence check.
- Parameters:
acq (btk.btkAcquisition) – A btk acquisition instance.
filename (str) – Filename of the data being processed.
options (Dict) – Additional options passed from the filter (not used).
- Returns:
Dict –
{"In": present markers, "Out": absent markers}.