Hi there,
I am trying to create a surface dataset from a .gii file. However, cosmo_surface_dataset isn't compatible with .gii files. Is there a way to get around this?
I can read in the .gii file using the gifti function in matlab but I am unsure of how to format it as a surf_ds. My surface files were created with HippUnfold, which uses .gii files.
Is it possible to do this or am I out of luck?
Thanks!
Sam
On 25 Apr 2024, at 19:40, samantha audrain <samanth...@gmail.com> wrote:I am trying to create a surface dataset from a .gii file. However, cosmo_surface_dataset isn't compatible with .gii files. Is there a way to get around this?
I can read in the .gii file using the gifti function in matlab but I am unsure of how to format it as a surf_ds. My surface files were created with HippUnfold, which uses .gii files.
On 26 Apr 2024, at 16:41, samantha audrain <samanth...@gmail.com> wrote:Can you clarify regarding the support available for gifti files using cosmo_surface_dataset? I am aware of the gifti library and I can read my gifti in to matlab using it. But how do I then get cosmo_surface_dataset to turn it into the surf_ds format? When I feed the cosmo_surface_dataset function the imported gifti file, it gives me the following error:Error using cosmo_surface_dataset>find_single_or_error
unknown object of type giftiOr is there some other way I should be using the gifti library you mentioned?
On 30 Apr 2024, at 15:53, samantha audrain <samanth...@gmail.com> wrote:It's a gifti object but isn't a struct, isa(g, 'struct') returns 0. And there is no cdata field.intermediate_fn=fullfile(surface_path,...sprintf('sub-pilot5_hemi-L_space-T2w_den-0p5mm_label-hipp_midthickness.surf.gii'));g=gifti(intermediate_fn)