Apply a precomputed surface sampler to a volume
Usage
apply_surface_sampler(
sampler,
vol,
fun = c("avg", "nn", "mode"),
sigma = 8,
fill = 0
)Arguments
- sampler
A sampler object returned by
surface_sampler().- vol
A
NeuroVolwith the same grid as the template used to build the sampler.- fun
Aggregation function: "avg", "nn", or "mode".
- sigma
Bandwidth for Gaussian weights when
fun = "avg".- fill
Value used when no valid voxels fall within
dthresh.