Skip to content

MNT: Attempt to find reference images for freesurfer/gifti meshes.

Paul McCarthy requested to merge paulmc/fsleyes:mnt/fs-gifti into main

FreeSurfer stores undocumented metadata in generated GIfTI files (e.g. from mris_convert lh.pial lh.surf.gii); these files also frequently contain vertices defined in the FreeSurfer coordinate system rather than a RAS coordinate system, and so need to be transformed accordingly. This MR detects such files, and initialises the .MeshOpts.coordSpace setting to 'torig' so that the surface should correctly align with its reference image. More information on this can be found at:

Merge request reports