braindecode.preprocessing.ReinterpolateRemovedChannels#
- class braindecode.preprocessing.ReinterpolateRemovedChannels(*, can_change_duration=False, record_orig_chanlocs=False, force_dtype=None)[source]#
 Reinterpolate previously removed EEG channels to restore original channel set.
This reinterpolates EEG channels that were previously dropped via one of the EEGPrep channel removal operations and restores the original order of EEG channels. This is typically necessary when you are using automatic channel removal but you need a consistent channel set across multiple recordings/sessions. Uses spherical-spline interpolation (based on [Perrin1989]).
The typical place to perform this is after all other EEGPrep-related artifact removal steps, except re-referencing. If no channel locations were recorded, this preprocessor has no effect.
Preconditions:
Must have 3D channel locations.
This filter will only have an effect if one or more of the preceding steps recorded original channel locations (e.g.,
RemoveBadChannels,RemoveBadChannelsNoLocs, orRemoveFlatChannels).If you are re-referencing to common average (
RemoveCommonAverageReference), this should normally NOT be done before this step, but after it (otherwise your reference will depend on which channels were removed).
References
[Perrin1989]Perrin, F., Pernier, J., Bertrand, O. and Echallier, J.F., 1989. Spherical splines for scalp potential and current density mapping. Electroencephalography and Clinical Neurophysiology, 72(2), pp.184-187.
Methods