GapFillingFilter#

class pyCGM2.Gap.gapFilters.GapFillingFilter(procedure: GapFillingProcedure, acq: btkAcquisition)#

A filter for filling gaps in kinematic marker data.

This class uses specified gap filling procedures to handle missing or incomplete data in kinematic marker datasets. It supports customized gap filling strategies through different procedure implementations.

filledMarkers#

List of markers that were filled during the gap filling process.

Type:

List[str]

filledAcq#

The acquisition instance after the gap filling process.

Type:

btk.btkAcquisition

Parameters:
  • procedure (GapFillingProcedure) – A gap filling procedure instance.

  • acq (btk.btkAcquisition) – A BTK acquisition instance with kinematic data.

__init__(procedure: GapFillingProcedure, acq: btkAcquisition)#

Methods

__init__(procedure, acq)

fill([markers])

Fills gaps in marker data according to the specified procedure.

getFilledAcq()

Retrieves the acquisition instance after the gap filling process.

getFilledMarkers()

Retrieves the list of markers that were filled during the gap filling process.

fill(markers: List[str] | None = None)#

Fills gaps in marker data according to the specified procedure.

If markers are not specified, gaps in all markers are filled. The method updates the filledMarkers and filledAcq attributes with the results of the gap filling process.

Parameters:

markers (Optional[List[str]]) – A list of specific marker names to fill gaps in. If None, all markers are processed. Defaults to None.

getFilledAcq()#

Retrieves the acquisition instance after the gap filling process.

This method returns the BTK acquisition instance that has been processed by the gap filling procedure. It contains the kinematic data with gaps filled based on the specified procedure.

Returns:

btk.btkAcquisition – The acquisition instance with filled gaps in the kinematic marker data.

getFilledMarkers()#

Retrieves the list of markers that were filled during the gap filling process.

This method returns a list of marker names for which gaps were filled. It provides insight into which markers in the dataset were incomplete and required gap filling.

Returns:

List[str] – A list of marker names that had gaps filled during the process.