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.*