[Simnibs-discuss] Scalp to cortex distance
Guilherme B Saturnino
guilhermebs at drcmr.dk
Fri Jun 12 16:08:43 CEST 2020
Hello,
I have just added this to the standard output for the next SimNIBS
version. If you want to calculate this now, you will have to:
1. Determine the coil position, for example in the GUI or looking at the
last row of the /matsimnibs/ matrix, in the SimNIBS output
2. Load the mesh in python or matlab
3. Calculate the distances between the gray matter surface triangles
(tag 1002) and the coil in python or matlab.
For steps 2-3, these functions might help:
MATLAB: /mesh_load_gmsh4 /to load the mesh, /mesh_extract_regions/ to
get the gray matter surface, and /mesh_get_triangle_centers /to
calculate the positions of the tiangles
//
PYTHON: /mesh = simnibs.read_msh/ to load the mesh, /mesh.crop_mesh /to
get the gray matter surface, and /mesh.elements_baricenters/()[:] to
calculate the positions of the triangles.
Best Regards,
Guilherme
On 11/06/2020 19.39, Giacomo Bertazzoli wrote:
> Dear all,
>
> I am trying to extract the information about the scalp to cortex
> distance under the TMS coil.
> After I have defined the position of the coil on the scalp (by either
> coordinate or electrode position), is there a way to calculate the
> distance between that position on the scalp and its projection on the
> cortical surface?
>
> Thanks in advance,
> Giacomo
>
> --
> Giacomo Bertazzoli, PhD Candidate
> Cognition Neurostimulation & Connectivity Lab - CIMeC
> University of Trento, Corso Bettini 31, 38068 Rovereto (TN) Italy
> Email: giacomo.bertazzoli at unitn.it <mailto:giacomo.bertazzoli at unitn.it>
> https://webapps.unitn.it/du/en/Persona/PER0194098
>
> _______________________________________________
> Simnibs-discuss mailing list
> Simnibs-discuss at drcmr.dk
> https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.drcmr.dk/pipermail/simnibs-discuss/attachments/20200612/7b0b4048/attachment.html>
More information about the Simnibs-discuss
mailing list