I think you need to specify ‘--src_type curv’ and ‘--trg_type curv’ to read 
thickness files.

It looks like you passed ‘thickness’ to the wrong flag. Use ‘—srcsurfval’ and 
‘—trgsurfval’ instead.

Here is wiki help page - https://surfer.nmr.mgh.harvard.edu/fswiki/mri_surf2surf

Best,

Yujing

From: freesurfer-boun...@nmr.mgh.harvard.edu 
<freesurfer-boun...@nmr.mgh.harvard.edu> On Behalf Of Sahil Bajaj
Sent: Wednesday, December 6, 2023 3:37 PM
To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>
Subject: [Freesurfer] Faces and vertices error !


        External Email - Use Caution
Hi FreeSurfer community,

I am trying to map subject-specific cortical thickness map to standard 
fsaverage space and I ran the following command where sub1_filled is my 
individual subject in native:


mri_surf2surf --srcsubject sub1_filled --srcsurfreg thickness --trgsubject 
fsaverage --trgsurfreg thickness --hemi lh --sval sub1/surf/lh.thickness --tval 
fsaverage/surf/lh.thickness



After I run the above command, I am getting the following output and error. I 
am not sure how to resolve this and whether there is something wrong with my 
command line or with the data. I would greatly appreciate any help.



Source registration surface changed to thickness

Target registration surface changed to thickness



7.4.1



setenv SUBJECTS_DIR /Users/sbajaj/FS_Projects/

cd /Users/sbajaj/FS_Projects

mri_surf2surf --srcsubject sub1_filled --srcsurfreg thickness --trgsubject 
fsav1 --trgsurfreg thickness --hemi lh --sval sub1/surf/lh.thickness --tval 
fsav1/surf/lh.thickness



sysname  Darwin

hostname MDACM0CL9004107

machine  x86_64

user     sbajaj

srcsubject = sub1_filled

srcval     = sub1/surf/lh.thickness

srctype    =

trgsubject = fsav1

trgval     = fsav1/surf/lh.thickness

trgtype    =

srcsurfreg = thickness

trgsurfreg = thickness

srchemi    = lh

trghemi    = lh

frame      = 0

fwhm-in    = 0

fwhm-out   = 0

label-src  = (null)

label-trg  = (null)

OKToRevFaceOrder  = 1

UseDualHemi = 0

Reading source surface reg 
/Users/sbajaj/FS_Projects//sub1_filled/surf/lh.thickness

nquads=4456450,  nvertices=341

error: ERROR: MRISread: file 
'/Users/sbajaj/FS_Projects//sub1_filled/surf/lh.thickness' has many more faces 
than vertices!

Probably trying to use a scalar data file as a surface!
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
<https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail. 

Reply via email to