Hi SPM Users/Devs,
I am new to using SPM for MEG, but had a few questions.
1) How would I get the fiducial locations on the original nifti image imported during the coregistration.
I have tried a few variables in the data structure:
D.fiducials
D.inv{2}.datareg.fid_eeg
D.inv{2}.datareg.fid_mri.fid.pnt
All of these variables are either in CTF space or head space and not MRI space. Is there a transformation matrix stored in the data structure to go from the original nifti image to the headspace mri so that I can invert and get the fiducial locations on the original MRI?
2) I have seen some operations to read bids datasets using spm - is there a bids export function for MEG datasets that are in SPM format (including the fiducials in the T1w.json)?
Any help would be greatly appreciated.
Thank you,
Jeff Stout
|