Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the user guide for the big picture.
nilearn.surface.InMemoryMesh¶
- class nilearn.surface.InMemoryMesh(coordinates, faces)[source]¶
A surface mesh stored as in-memory numpy arrays.
Added in version 0.11.0.
- Parameters:
- coordinates
numpy.ndarray
- faces
numpy.ndarray
- coordinates
- Attributes:
- n_verticesint
number of vertices
- coordinates¶
- faces¶
- n_vertices¶
- to_gifti(gifti_file)[source]¶
Write surface mesh to a Gifti file on disk.
- Parameters:
- gifti_file
str
orpathlib.Path
Filename to save the mesh to.
- gifti_file
Examples using nilearn.surface.InMemoryMesh
¶
Working with Surface images