Description Usage Arguments Value Examples
View source: R/BrainRegion3D.R
Create A Cuboid Region of Interest
1 | RegionCube(bvol, centroid, surround, fill = NULL, nonzero = FALSE)
|
bvol |
an |
centroid |
the center of the cube in voxel coordinates |
surround |
the number of voxels on either side of the central voxel. A |
fill |
optional value(s) to assign to data slot. |
nonzero |
keep only nonzero elements from |
an instance of class ROIVolume
1 2 3 4 5 6 | sp1 <- BrainSpace(c(10,10,10), c(1,1,1))
cube <- RegionCube(sp1, c(5,5,5), 3)
vox <- coords(cube)
cube2 <- RegionCube(sp1, c(5,5,5), 3, fill=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.