neuromaps.images.fssurf_to_gifti

neuromaps.images.fssurf_to_gifti(surf, fn=None)[source]

Convert FreeSurfer surf surface file to GIFTI format.

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

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

Returns:

fn – Path to saved image file

Return type:

os.PathLike