Transform Surface Vertices to Volume Space
Source:R/coordinate_spaces.R
transform_vertices_to_volume.RdConvenience function to transform surface vertex coordinates to match a target volumetric coordinate space.
Value
Transformed vertex coordinates (N x 3 matrix). Returns the input unchanged if no transform is needed.
Details
This is a convenience wrapper around transform_coords that
automatically determines the source space from the surface template.
Examples
if (FALSE) { # \dontrun{
# Load fsaverage surface
surf <- load_surface_template("fsaverage", "white", hemi = "L")
verts <- neurosurf::vertices(surf)
# Transform vertices to MNI152 for sampling from fMRI volume
verts_mni152 <- transform_vertices_to_volume(verts, "fsaverage", "MNI152")
} # }