R/scaled_neighborhood.R
scaled_neighborhood.RdThis function wraps the neighborhood to
provided scaled neighborhood or its ranks
scaled_neighborhood( img, mask = NULL, radius = rep(1, 3), method = c("pearson", "spearman"), center = TRUE, scale = TRUE, verbose = 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 |
| method | If pearson, scaling done on original data. If spearman, the ranks. |
| center | Should the data be centered |
| scale | Should the data be scaled |
| verbose | print diagnostic messages |
List similar to the output of getNeighborhoodInMask