cluster_threshold {ARIbrain} | R Documentation |
Get spatially-connected clusters starting from a 3D map of logical values
cluster_threshold(map, max_dist = sqrt(3))
map |
3D map of logical values. |
max_dist |
maximum distance allowed to in the same cluster. By default:
|
a 3D map (same size of map
) with integer values identifying the cluster and 0 elsewhere.
## Not run:
Tmap = RNifti::readNifti(system.file("extdata", "zstat.nii.gz", package="ARIbrain"))
clstr=cluster_threshold(Tmap>3.2)
table(clstr)
## End(Not run)