Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

7.12.1. nilearn.surface.load_surf_data

nilearn.surface.load_surf_data(surf_data)

Loading data to be represented on a surface mesh.

Parameters:

surf_data : str or numpy.ndarray

Either a file containing surface data (valid format are .gii, .mgz, .nii, .nii.gz, or Freesurfer specific files such as .thickness, .curv, .sulc, .annot, .label) or a Numpy array containing surface data.

Returns

——-

data : numpy.ndarray

An array containing surface data

7.12.1.1. Examples using nilearn.surface.load_surf_data