Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Support forum ARCHIVED – Please use Slack Channel instead’ is closed to new topics and replies.
Tagged: coordinates
Hello,
I am trying to measure distances from electrode contacts to the center of certain structures, such as STN and red nucleus. I am comfortable with obtaining the coordinates of electrode contacts and can easily view the surface coordinates of any structure using the data cursor but cannot seem to figure out how to obtain the coordinates at the center of these structures.
Thank you,
Anthony
Hi Anthony,
you can do so by averaging the vertices of the atlas surface I think:
lead path
load([ea_space([],'atlases'),'DISTAL Minimal (Ewert 2017)',filesep,'atlas_index.mat']);
centroid=mean(atlases.fv{1,1}.vertices);
would calculate the centroid of the right STN (11.2668 -12.6726 -7.7385) of the DISTAL atlas.
With
atlases.names
you can see the entries of the atlas set.
In this case, STN is the first one.
In Lead-DBS, right hemisphere is always entry number one, left is number two.
So replacing the third line with
centroid=mean(atlases.fv{5,2}.vertices);
would give you the left GPi (GPi is entry number 5, 2 stands for the left side.
Hope this helps,
best, Andy
Andy, thank you for your help! This is exactly what I needed.
Best,
Anthony