netneurotools.interface.extract_cifti_volume
- netneurotools.interface.extract_cifti_volume(data, axis)[source]
Extract volume data from CIFTI file.
Adapted from [1].
- Parameters:
data (np.ndarray) – Data from CIFTI file.
axis (nibabel.cifti2.BrainModelAxis) – BrainModelAxis object from CIFTI file.
- Returns:
vol_data (np.ndarray) – Volume data.
affine (np.ndarray) – Affine matrix.
References