This function wraps the getNeighborhoodInMask to
be more friendly for R and nifti objects
neighborhood( img, mask = NULL, radius = rep(1, 3), get.gradient = TRUE, verbose = TRUE, run_gc = TRUE, ... )
| img | Object of class |
|---|---|
| mask | Binary image of class |
| radius | vector of length 3 for number of voxels to go in each direction.
Default is 27 neighbors (including voxel at center).
Passed to |
| get.gradient | logical indicating if a matrix of gradients (at the center voxel) should be returned in addition to the value matrix |
| verbose | Print diagnostic messages |
| run_gc | Experimental - trying to run with gc(); for memory cleanup. |
| ... | arguments other than |
List similar to the output of
getNeighborhoodInMask