RegionSphere {neuroim}R Documentation

Create A Spherical Region of Interest

Description

Create A Spherical Region of Interest

Usage

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

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

[Package neuroim version 0.0.6 Index]