| resample_images | R Documentation |
Aligns two brain maps into the same coordinate space and density before comparison. Supports multiple strategies for choosing the target space.
resample_images(
src,
trg,
src_space = c("fsaverage", "fsLR"),
trg_space = c("fsaverage", "fsLR"),
strategy = c("downsample_only", "transform_to_src", "transform_to_trg",
"transform_to_alt"),
alt_space = NULL,
alt_density = NULL,
hemisphere = c("left", "right"),
area_surf_current = NULL,
area_surf_new = NULL,
wb_path = NULL,
verbose = TRUE
)
src |
Character, file path to the source GIFTI. |
trg |
Character, file path to the target GIFTI. |
src_space |
Source coordinate space ( |
trg_space |
Target coordinate space ( |
strategy |
Resampling strategy. One of |
alt_space |
Alternative space for |
alt_density |
Alternative density for |
hemisphere |
Which hemispheres: |
area_surf_current |
Path to a current-resolution area-correction
surface (e.g. midthickness). Passed to |
area_surf_new |
Path to a target-resolution area-correction surface.
Passed to |
wb_path |
Path to |
verbose |
Logical, print progress messages. |
List with $src and $trg file paths in the aligned space.
Markello RD et al. (2022) Nature Methods 19:1472-1480. doi:10.1038/s41592-022-01625-w
## Not run:
resample_images("src.func.gii", "trg.func.gii",
src_space = "fsaverage", trg_space = "fsaverage"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.