netstim / leaddbs

Lead-DBS is a MATLAB toolbox facilitating deep brain stimulation electrode localization and connectomic neuroimaging.
https://www.lead-dbs.org
Other
94 stars 98 forks source link

ENH: save spm transforms as ants #1177

Closed simonoxen closed 7 months ago

simonoxen commented 7 months ago

This PR makes changes to save spm transforms as itk, so as to use with ANTs and WarpDrive.

Logic for the conversion is inhelpers/ea_spm_fwd_displacement_field_to_ants.m (to transform the fwd spm to itk); and helpers/ea_slicer_invert_transform.m (to create the inverse).

The rest of the changes are integration, which should probably need revision.

Leaving this PR open so can be reviewed.