Skip to content

.gii compatibility for load_fs_surf_in_grid from voxeldepths_from_surfaces.py #13

@smonfas

Description

@smonfas

Gii compatibility apparently got lost in recent commits. I was able to work around it using
fs_to_scanner = np.eye(4) if surf_file[-4:] == ".gii": surf_gii = nib.load(surf_file) coords = surf_gii.agg_data("NIFTI_INTENT_POINTSET") faces = surf_gii.agg_data("NIFTI_INTENT_TRIANGLE") volume_info = {"cras": np.array([0.0, 0.0, 0.0])} else: # load freesurfer surface coords, faces, volume_info = nib.freesurfer.read_geometry( surf_file, read_metadata=True )
Not sure, if thats a good way to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions