merge_atlases | R Documentation |
Combines two brain atlases into a single unified atlas object, preserving all region information and adjusting region IDs to prevent conflicts. This is useful for creating composite atlases that combine different parcellation schemes.
merge_atlases(atlas1, atlas2)
atlas1 |
The first atlas object to merge |
atlas2 |
The second atlas object to merge |
The merging process:
Verifies that both atlases have the same dimensions
Adjusts region IDs in the second atlas to avoid overlap
Combines color maps, labels, and hemisphere information
Creates a new ClusteredNeuroVol object for the merged atlas
A new atlas object containing:
Combined names of input atlases (atlas1::atlas2)
Combined ClusteredNeuroVol
object
Combined colormap for all regions
Adjusted vector of all region IDs
Combined vector of region labels
Original labels from both atlases
Combined hemisphere designations
get_aseg_atlas
, get_roi
## Not run:
# Load two atlases
atlas1 <- get_aseg_atlas()
atlas2 <- get_aseg_atlas()
# Merge the atlases
merged <- merge_atlases(atlas1, atlas2)
# Check the combined regions
print(merged)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.