Description Usage Arguments Examples
map values from a 3d volume to a surface in the same coordinate space
1 2 | vol_to_surf(surf_wm, surf_pial, vol, mask = NULL, fun = c("avg", "nn",
"mode"), knn = 6, sigma = 8, dthresh = sigma * 2)
|
surf_wm |
the white matter (inner) surface |
surf_pial |
the pial (outer) surface |
vol |
an image volume of type |
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 |
1 2 3 | #volname <- system.file("inst/testdata/Schaefer2018_200Parcels_7Networks_order_FSLMNI152_1mm.nii",
#package="neurosurf")
#vol <- neuroim2::read_vol(volname)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.