RandomSurfaceSearchlight: Create a Random Searchlight iterator for surface mesh using...

Description Usage Arguments Details Examples

View source: R/Searchlight.R

Description

Create a Random Searchlight iterator for surface mesh using geodesic distance to define regions.

Usage

1
RandomSurfaceSearchlight(surfgeom, radius = 8, nodeset = NULL)

Arguments

surfgeom

a surface mesh: instance of class SurfaceGeometry

radius

radius of the searchlight as a geodesic distance in mm

nodeset

the subset of surface node indices to use

Details

On every call to nextElem a set of surface nodes are returned. These nodes index into the vertices of the igraph instance.

Examples

1
2
3
4
5
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

bbuchsbaum/neurosurf documentation built on April 6, 2021, 10:08 a.m.