Try this instead:
mri_surf2surf --srcsubject $SUBJECT --sval-xyz $SUBJECTS_DIR/$SUBJECT/surf/lh.smseghead --trgsubject ico --tval $SUBJECTS_DIR/$SUBJECT/surf/$SUBJECT'_outer_skull' --tval-xyz --hemi lh
It is admittedly a little obtuse. mri_surf2surf was originally programmed to accept surface overlay and not surfaces themselves. --sval-xyz indicates that the input is a surface. --tval-xyz indicates that the output should be saved as a surface instead of an overlay.
doug
Daniel Wakeman wrote:
Hi,
I have a question (I believe about mri_surf2surf). First, I'll describe my goal:
I want to take a surface created with mri_tessellate and modified with mris_smooth and convert it to an isomorphic equally subdivided icosahedron (like mri_watershed creates).
e.g. take the lh.smseghead created by mkheadsurf and resample it:
mri_surf2surf --srcsubject $SUBJECT --srcsurfval $SUBJECTS_DIR/$SUBJECT/surf/lh.smseghead --src_type surf --trgsubject ico --trgsurfval $SUBJECTS_DIR/$SUBJECT/surf/$SUBJECT'_outer_skull' --hemi lh
I get the following error:
ERROR: could not determine type of /imaging/dw01/simulation/subjects/subject_02/surf/lh.smseghead
If this is possible, I want to know how I can correct my command.
Cheers, Dan