mne.bem.get_fitting_dig

mne.bem.get_fitting_dig(info, dig_kinds='auto', exclude_frontal=True, verbose=None)[source]

Get digitization points suitable for sphere fitting.

Parameters
infoinstance of Info

The measurement info.

dig_kindslist of str | str

Kind of digitization points to use in the fitting. These can be any combination of (‘cardinal’, ‘hpi’, ‘eeg’, ‘extra’). Can also be ‘auto’ (default), which will use only the ‘extra’ points if enough (more than 4) are available, and if not, uses ‘extra’ and ‘eeg’ points.

exclude_frontalbool

If True, exclude points that have both negative Z values (below the nasion) and positivy Y values (in front of the LPA/RPA). Default is True.

New in version 0.19.

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

Returns
digarray, shape (n_pts, 3)

The digitization points (in head coordinates) to use for fitting.

Notes

This will exclude digitization locations that have z < 0 and y > 0, i.e. points on the nose and below the nose on the face.

New in version 0.14.