mne.channels.transform_to_head#
- mne.channels.transform_to_head(montage)[source]#
Transform a DigMontage object into head coordinate.
- Parameters:
- montageinstance of
DigMontage
The montage.
- montageinstance of
- Returns:
- montageinstance of
DigMontage
The montage after transforming the points to head coordinate system.
- montageinstance of
Notes
This function requires that the LPA, RPA and Nasion fiducial points are available. If they are not, they will be added based by projecting the fiducials onto a sphere with radius equal to the average distance of each point to the origin (in the given coordinate frame).
This function assumes that all fiducial points are in the same coordinate frame (e.g. ‘unknown’) and it will convert all the point in this coordinate system to Neuromag head coordinate system.
Changed in version 1.2: Fiducial points will be added automatically if the montage does not have them.