powered by
RegionSquare(bvol, centroid, surround, fill = NULL, nonzero = FALSE, fixdim = 3)
BrainVolume
BrainSpace
bvol
ROIVolume
sp1 <- BrainSpace(c(10,10,10), c(1,1,1)) square <- RegionSquare(sp1, c(5,5,5), 1) vox <- coords(square) ## a 3 X 3 X 1 grid nrow(vox) == 9
Run the code above in your browser using DataLab