rbfunc | R Documentation |
This makes a radial basis function.
rbfunc(imagedim, seppix, hispec = FALSE, mask = NULL, brainpos = NULL)
imagedim |
a vector indicating image three dimension. |
seppix |
a numeric. distance between knots. |
hispec |
a logical. TRUE produces a matrix output. FALSE produces a list output to reduce the data memorry. |
mask |
a vector. |
brainpos |
a logical vector. |
rbfunc
requires the dimensions of the original image to be applied and the knot interval. The output is obtained as a matrix, with the number of rows corresponding to the number of voxels in the original image and the number of columns determined by the knot spacing. By setting hispec = TRUE, you can get the output in list format with a smaller memory.
imagedim1=c(10,10,10)
B1 = rbfunc(imagedim=imagedim1, seppix=4, hispec=TRUE)
B2 = rbfunc(imagedim=imagedim1, seppix=4, hispec=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.