RandomSurfaceSearchlight | R Documentation |
Creates an iterator that randomly samples searchlight regions on a surface mesh using geodesic distance to define regions.
RandomSurfaceSearchlight(
surfgeom,
radius = 8,
nodeset = NULL,
as_deflist = FALSE
)
surfgeom |
A |
radius |
Numeric, radius of the searchlight as a geodesic distance in mm. Must be a positive numeric scalar. |
nodeset |
Integer vector, optional subset of surface node indices to use. If supplied, must contain more than one index. |
Must be a positive, length-one value.
On each call to nextElem
, a set of surface nodes is returned.
These nodes index into the vertices of the igraph
instance.
An iterator object of class "RandomSurfaceSearchlight".
file <- system.file("extdata", "std.8_lh.smoothwm.asc", package = "neurosurf")
geom <- read_surf(file)
searchlight <- RandomSurfaceSearchlight(geom, 12)
nodes <- searchlight$nextElem()
length(nodes) > 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.