neuromaps.images.fsmorph_to_gifti

neuromaps.images.fsmorph_to_gifti(morph, fn=None, modifier=None)[source]

Convert FreeSurfer morph data file to GIFTI format.

Parameters:
  • obj (str or os.PathLike) – FreeSurfer morph file to be converted

  • fn (str or os.PathLike, None) – Output filename. If not supplied uses input morph filename (with appropriate suffix). Default: None

  • modifier (float, optional) – Scalar factor to modify (multiply) the morphometric data. Default: None

Returns:

fn – Path to saved image file

Return type:

os.PathLike