hippomaps.utils.surface_to_volumeο
- hippomaps.utils.surface_to_volume(surf_data, indensity, hippunfold_dir, sub, ses, hemi, space='*', label='hipp', save_out_name=None, method='nearest')ο
- Labels voxels using data on a folded/unfolded surface and native space coordinates images.
from https://github.com/khanlab/hippunfold/blob/master/hippunfold/workflow/scripts/label_subfields_from_vol_coords.py this function labels voxels using data on a folded/unfolded surface (midthickness or any), and native space coords (ap, pd) images TODO: consider trying to simplify inputs specifying the coords paths?
- Parameters:
surf_data (Data on the folded/unfolded surface (midthickness or any).) β
indensity (str) β Density of the unfolded space. One of β0p5mmβ, β1mmβ, β2mmβ, or βunfoldisoβ.
hippunfold_dir (str) β Directory path to the HippUnfold output.
sub (str) β Subject identifier.
ses (str) β Session identifier.
hemi (str) β Hemisphere. Either βLβ or βRβ.
space (str, optional) β Default is β*β.
label (str, optional) β Default is βhippβ.
save_out_name (str, optional) β Output file name to save the label image. Default is None.
method (str, optional) β Interpolation method. Options are βnearestβ, βlinearβ, or βcubicβ. Default is βnearestβ.
- Returns:
Labeled voxel data.
- Return type:
numpy.ndarray