Description Usage Arguments Value Examples
View source: R/coords_to_talairach.R
This uses the affine transform in <subject>/mri/transforms/talairach.xfm
, be sure to know about the limitations of this approach. See the FreeSurfer documentation on talairach for details. The coordinates produced by this approach are referred to as 'MNI Talairach' coordinates in the FreeSurfer documentation, and are not identical to Talairach space.
1 | coord_fssurface_to_fstalairach(subjects_dir, subject_id, surface_coords)
|
subjects_dir |
character string, the path to the recon-all SUBJECTS_DIR containing the data of all subjects of your study. |
subject_id |
character string, the subject identifier (i.e., the sub directory name under the |
surface_coords |
nx3 numerical matrix of surface coordinates (vertex positions in FreeSurfer surface space). |
nx3 numerical matrix of MNI Talairach space coordinates.
1 2 3 4 5 6 7 8 | ## Not run:
# Will lead to identity transform for fsaverage, so no change in coords.
sjd = fsbrain::fsaverage.path();
sj = "fsaverage";
surf = fsbrain::subject.surface(sjd, sj, hemi="lh", surface="orig");
tal = coord_fssurface_to_talairach(sjd, sj, surf$vertices);
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.