vol_to_surf: map values from a 3d volume to a surface in the same...

Description Usage Arguments Examples

View source: R/vol_to_surf.R

Description

map values from a 3d volume to a surface in the same coordinate space

Usage

1
2
vol_to_surf(surf_wm, surf_pial, vol, mask = NULL, fun = c("avg", "nn",
  "mode"), knn = 6, sigma = 8, dthresh = sigma * 2)

Arguments

surf_wm

the white matter (inner) surface

surf_pial

the pial (outer) surface

vol

an image volume of type NeuroVol that is to be mapped to surface

mask

a mask defining the valid voxel in the image volume

fun

the mapping function, which can be "avg" or "nn"

knn

the number of nearest neighbors to consider (for "avg" mapping function)

sigma

the bandwidth of the smoothing kernel (for the "avg" mapping function)

dthresh

a valid mapping voxel only if it is less than dthresh units away from vertex.

Examples

1
2
3
#volname <- system.file("inst/testdata/Schaefer2018_200Parcels_7Networks_order_FSLMNI152_1mm.nii",
#package="neurosurf")
#vol <- neuroim2::read_vol(volname)

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