Description Usage Arguments Value Examples
Creates a Spherical ROI based on a Centroid.
1 | RegionSphere(bvol, centroid, radius, fill = NULL, nonzero = FALSE)
|
bvol |
an |
centroid |
the center of the sphere in voxel space |
radius |
the radius in real units (e.g. millimeters) of the spherical ROI |
fill |
optional value(s) to store as data |
nonzero |
if |
an instance of class ROIVolume
1 2 3 4 5 6 7 | sp1 <- BrainSpace(c(10,10,10), c(1,2,3))
cube <- RegionSphere(sp1, c(5,5,5), 3.5)
vox <- coords(cube)
cds <- coords(cube, real=TRUE)
## fill in ROI with value of 6
cube1 <- RegionSphere(sp1, c(5,5,5), 3.5, fill=6)
all(cube1@data == 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.