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.
nilearn.surface.load_surf_mesh¶
- nilearn.surface.load_surf_mesh(surf_mesh)[source]¶
Load a surface mesh geometry.
- Parameters:
- surf_mesh
str
,pathlib.Path
, ornumpy.ndarray
orInMemoryMesh
Either a file containing surface mesh geometry (valid formats are .gii .gii.gz or Freesurfer specific files such as .orig, .pial, .sphere, .white, .inflated) or two Numpy arrays organized in a list, tuple or a namedtuple with the fields “coordinates” and “faces”, or an
InMemoryMesh
object with “coordinates” and “faces” attributes.
- surf_mesh
- Returns:
- mesh
InMemoryMesh
With the attributes “coordinates” and “faces”, each containing a
numpy.ndarray
- mesh