makeMRIspatial(mask, nnei, sub)TRUE, a new mask
which splits each voxel into
eight subvoxels is generated, and then obtain the neighbors and blocks
of subvoxels; otherwise obtain the neighbors and blocks at
the voxel level.mask and the number of columns is the
number of neighbors of each (sub)voxel. For the (sub)voxels on the
boundaries, when one or more of their
neighbors are missing, the missing are represented by the total
number of (sub)voxels within the mask plus 1.sub.sub is TRUE, it is a matrix,
with each row giving the eight subvoxels of a voxel;
otherwise it is equal to NULL.mask <- array(1, dim=c(2,2,2))
spa <- makeMRIspatial(mask, nnei=6, sub=FALSE)
spa <- makeMRIspatial(mask, nnei=6, sub=TRUE)Run the code above in your browser using DataLab