netneurotools.interface.deconstruct_cifti
- netneurotools.interface.deconstruct_cifti(filename, brain_model_axis_index=1)[source]
Extract volume and surface data from CIFTI file.
Adapted from [1].
- Parameters:
filename (str or Path) – Path to CIFTI file.
brain_model_axis_index (int, optional) – Index of BrainModelAxis in CIFTI file.
- Returns:
vol_data (np.ndarray) – Volume data.
surf_left (np.ndarray) – Left hemisphere surface (
CIFTI_STRUCTURE_CORTEX_LEFT
) data.surf_right (np.ndarray) – Right hemisphere surface (
CIFTI_STRUCTURE_CORTEX_RIGHT
) data.
References