mesh
tit.atlas.mesh ¶
Mesh (surface) atlas discovery and region listing.
MeshAtlasManager ¶
MeshAtlasManager(seg_dir: str)
Discovers and queries FreeSurfer .annot mesh atlases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seg_dir
|
str
|
Path to m2m_{subject}/segmentation/ directory. |
required |
Source code in tit/atlas/mesh.py
list_atlases ¶
List available mesh atlas names.
Returns:
| Type | Description |
|---|---|
list[str]
|
Sorted list of atlas names (always includes builtins). |
Source code in tit/atlas/mesh.py
list_regions ¶
List regions for a mesh atlas from .annot files.
Returns:
| Type | Description |
|---|---|
list[str]
|
Sorted list of region names with hemisphere suffix (e.g. "precentral-lh"). |
Source code in tit/atlas/mesh.py
find_atlas_file ¶
Find the .annot file path for a given atlas and hemisphere.
Returns:
| Type | Description |
|---|---|
str | None
|
Path to the .annot file, or None if not found. |
Source code in tit/atlas/mesh.py
find_all_atlases ¶
Find all available atlas files for a hemisphere.
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
Dict mapping atlas display name to file path. |
Source code in tit/atlas/mesh.py
list_annot_regions ¶
List all regions in a .annot file.
Returns:
| Type | Description |
|---|---|
list[tuple[int, str]]
|
List of (region_index, region_name) tuples. |