roi to standard mesh

Hi, I’m trying to register a region, originally created with FreeSurfer, to the standard mesh but I got this error message:

SurfToSurf -i_fs /usr/local/freesurfer/subjects/DM/SUMA/std.60.lh.smoothwm.gii -i_fs /usr/local/freesurfer/subjects/DM/SUMA/lh.smoothwm.gii -prefix std.60. -data lh.ffa.niml.dset

oo Warning SUMA_Load_Surface_Object_eng (SUMA_Load_Surface_Object.c:879):
Warning Warning MSB!!!
Surface file name’s (/usr/local/freesurfer/subjects/DM/SUMA/std.60.lh.smoothwm.gii) extension indcates a
surface of type GIFTI and conflicts with specified
type of FreeSurfer.
Function will attempt to proceed as if type is
– Error SUMA_FreeSurfer_ReadBin_eng (SUMA_Surface_IO.c:3157):
Failed to identify magic number for a triangulated surface.

Error SUMA_Load_Surface_Object_eng: Failed in SUMA_FreeSurfer_Read.
Error SUMA_Load_Spec_Surf: could not load SO
Error SurfToSurf:
Failed to find surface
in spec file.


I think you should be able to use just the -i option without the “_fs”. If you have FreeSurfer’s sphere.reg surface, consider using MapIcosahedron or the mapping (M2M) dataset that MapIcosahedron generates to standardize it instead. Mapped datasets can be transformed with that using the -dset_map option in MapIcosahedron or this way suggested in that program’s help:

The program also outputs a new mapping file in the format
that SurfToSurf likes. This format has the extension .niml.M2M
This way you can use SurfToSurf to map a new dataset from original
to standard meshes in the same way that MapIcosahedron would have
carried out the mapping.
For example, the following command creates standard meshes and
also maps thickness data onto the new meshes:
MapIcosahedron -spec rh.spec -ld 60
-dset_map rh.thickness.gii.dset
-prefix std.60.
Say you want to map another (SOMEDSET) dataset defined on the
orignal mesh onto the std.60 mesh and use the same mapping derived
by MapIcosahedron. The command for that would be:
SurfToSurf -i_fs std.60.rh.smoothwm.asc
-i_fs rh.smoothwm.asc
-prefix std.60.
-mapfile std.60.rh.niml.M2M
-dset rh.SOMEDSET.gii.dset