RegionSphere: Create A Spherical Region of Interest

Description Usage Arguments Value Examples

Description

Create A Spherical Region of Interest

Usage

1
RegionSphere(bvol, centroid, radius, fill = NULL, nonzero = FALSE)

Arguments

bvol

an BrainVolume or BrainSpace instance

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 assign to data slot

nonzero

keep only nonzero elements from bvol

Value

an instance of class ROIVolume

Examples

1
2
3
 sp1 <- BrainSpace(c(10,10,10), c(1,1,1))
 cube <- RegionSphere(sp1, c(5,5,5), 3.5)
 vox = coords(cube)

neuroim documentation built on May 2, 2019, 1:04 p.m.