Skip to content

Commit

Permalink
Update sphere_fitting.md (#821)
Browse files Browse the repository at this point in the history
* Update sphere_fitting.md

* Update sphere_fitting.md
  • Loading branch information
contsili authored Nov 13, 2024
1 parent c792e18 commit ec23cce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/sphere_fitting.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ This example script demonstrates how to fit a sphere to the MEG Polhemus recorde
% scale the template MRI
scale = headshape_sphere.r/scalp_sphere.r;

T2 = [1 0 0 scalp_sphere.o(1);
0 1 0 scalp_sphere.o(2);
0 0 1 scalp_sphere.o(3);
T2 = [1 0 0 headshape_sphere.o(1);
0 1 0 headshape_sphere.o(2);
0 0 1 headshape_sphere.o(3);
0 0 0 1 ];

T1 = [1 0 0 -scalp_sphere.o(1);
Expand All @@ -111,7 +111,7 @@ This example script demonstrates how to fit a sphere to the MEG Polhemus recorde
0 0 scale 0;
0 0 0 1 ];

TRANSFORM = T1*S*T2;
TRANSFORM = T2*S*T1;

segmentedmri.transform = TRANSFORM*T_neuromag;

Expand Down

0 comments on commit ec23cce

Please sign in to comment.