Skip to content

[BUG] mne coreg GUI saves fiducials in meg space but labels as mri space #7081

@alexrockhill

Description

@alexrockhill

Try:

SUBJECT=sample
SUBJECTS_DIR=/path/to/mne_data/MNE-sample-data/subjects/
mne coreg

Save fiducials as test file

import mne
fids, coord_frame = mne.io.read_fiducials('/path/to/saved/mne_sample-fiducials.fif') 
print(fids)

The fiducials are in meg space but have coord_frame 5 corresponding to mri space.

[{'kind': 1, 'ident': 1, 'r': array([-0.07629625, -0.00062556, -0.00776012], dtype=float32),
 'coord_frame': 5}, {'kind': 1, 'ident': 2, 'r': array([0.00267222, 0.09362256, 0.03224791], dtype=float32), 
'coord_frame': 5}, {'kind': 1, 'ident': 3, 'r': array([ 0.07635873, -0.00258065, -0.01212903], 
dtype=float32), 'coord_frame': 5}]

Voxel space is something like:

array([[67.7471001 , 52.83904668, 48.1775196 ],
       [40.75665484, 24.14586344, 64.9023987 ],
       [16.50280451, 56.2472034 , 48.80732148]])

Either the fids should be changed to voxel space or the coordinate system should be changed to head.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions