SurfaceSearchlight | R Documentation |
Creates an iterator that systematically samples searchlight regions on a surface mesh using geodesic distance to define regions.
SurfaceSearchlight(
surfgeom,
radius = 8,
nodeset = NULL,
distance_type = c("euclidean", "geodesic", "spherical"),
as_deflist = FALSE
)
surfgeom |
A |
radius |
Numeric, radius of the searchlight as a geodesic distance in mm. Must be a positive, length-one value. |
nodeset |
Integer vector, optional subset of surface node indices to use. If provided, the vector must contain at least one node index. |
distance_type |
Character, the distance metric to use: "euclidean", "geodesic", or "spherical". |
as_deflist |
Logical, whether to return a deflist object. |
Create a Searchlight iterator for surface mesh using geodesic distance to define regions.
This function creates a systematic searchlight iterator, which visits each node of the surface mesh in order. The searchlight region for each node is defined by the specified radius and distance metric.
An iterator object of class "Searchlight".
file <- system.file("extdata", "std.8_lh.smoothwm.asc", package = "neurosurf")
geom <- read_surf(file)
searchlight <- SurfaceSearchlight(geom, 12, distance_type = "geodesic")
nodes <- searchlight$nextElem()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.