Why not just flatten it and save it as a .mgz? Then I think it should be straightforward
-----Original Message----- From: Greve, Douglas N.,Ph.D. <dgr...@mgh.harvard.edu> Sent: Wednesday, April 27, 2022 10:42 AM To: freesurfer@nmr.mgh.harvard.edu; Fischl, Bruce <bfis...@mgh.harvard.edu> Subject: Re: [Freesurfer] Resampling of surface-based bivariate data No, there is not (at least that I know of). Bruce might have something along these lines. On 4/26/2022 3:32 PM, Burke Rosen wrote: > External Email - Use Caution > > Is there a way to resample a vertex-by-vertex matrix of data from one subject > to another or to ico? For example, I have calculated the Euclidean distance > matrix for all the vertices of lh.white for my subjects and wish to find the > average distance matrix. Another example might be functional connectivity > values. > > If the data were univariate (i.e. vectors not matrices), I could save my > measure as a .w file for each subject and use mri_surf2surf to morph each > vector to ico and then average across the resulting ico vectors. One idea is > to use make_average_subject to morph each subject’s surface to ico and then > calculate bivariate measures on these surfaces. This might be ok for the > functional connectivity case. However, this morphing distorts the absolute > size of the surface, so the Euclidean distance matrix would be untenably > distorted. > > In other words, is there an extension of mri_surf2surf (or maybe > mris_convert) that operates on v(i,j) measures rather than v(i) measures? > > Thank you, > > -Burke > > > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer _______________________________________________ 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.