Closed georgeoneill closed 2 years ago
Yeah the CRAS offset was precisely the problem.
Reference code for future me
# set up the coreg object (this doesnt initialise it)
dig = copy.deepcopy(info['dig'])
# hack to shift by CRAS
lol = mne.read_surface(op.join(subjects_dir,subject,'bem','watershed',subject+'_brain_surface'),read_metadata=True)
cras = lol[2]['cras']/1000
for ii in range(3):
dig[ii]['r']=dig[ii]['r']-cras
coreg = mne.coreg.Coregistration(info, subject, subjects_dir,fiducials=dig)
There appears to be something strange afoot with going on with the registration between the anatomy and the sensors where the fiducials (spheres in figures) are floating away from the head. The diamonds are just estimates from fsaverage but these are at least on the scalp.
Code below:
Also confirm from coreg.trans that it is indeed an identy transform in this case, as its a headcast derived from an MRI.
I have a hunch its CRAS.