Hi Octavian, these types of things are generally not difficult to program, but they can be difficult to get set up correctly. If you do a search for "coordinates" on our wiki, it will take you to a page that explains the process. doug
On 09/26/2012 02:57 PM, octavian lie wrote: > Dear all, > I need to transform my electrode FS volume index coordinates stored in > a .mat file in surface RAS coordinates. Do you know of any matlab code > that could be shared to accomplish this and generate another .mat with > RAS coordinates? > Thank you, > Octavian Lie. > *To follow up and simplify for a single electrode location, * > ** > *What I need to do is for each electrode (already localized/ projected > onto the surface) to transform its volume volume index coordinate to a > vertex RAS (maybe via the closest vertex volume coordinates), then to > transform these vertex RAS coordinates to fsaverage template coordinate.* > *I then need to calculate the geodesic and euclidean distance between > the electrode location and another selected surface vertex, say (a,b,c).* > *Thank you for your insight.* > ** > *Octavian Lie.* > > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer -- Douglas N. Greve, Ph.D. MGH-NMR Center gr...@nmr.mgh.harvard.edu Phone Number: 617-724-2358 Fax: 617-726-7422 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting FileDrop: www.nmr.mgh.harvard.edu/facility/filedrop/index.html _______________________________________________ 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 Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.