random_searchlight | R Documentation |
This function generates a spherical random searchlight iterator for analyzing local neighborhoods of voxels within a given radius in a brain mask.
random_searchlight(mask, radius)
mask |
A |
radius |
A numeric value specifying the radius of the searchlight sphere in voxel units. |
A list of ROIVolWindow
objects, each representing
a spherical searchlight region.
# Create a simple brain mask
mask_data <- array(TRUE, c(10, 10, 10))
mask_data[1, 1, 1] <- FALSE
mask <- LogicalNeuroVol(mask_data, NeuroSpace(c(10,10,10)))
# Generate random searchlight iterator with a radius of 2 voxels
## Not run:
searchlights <- random_searchlight(mask, radius = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.