View source: R/labelClusters.R
labelClusters | R Documentation |
This will give a unique ID to each connected component 1 through N of size > minClusterSize
labelClusters(
imagein,
minClusterSize = 50,
minThresh = 0.000001,
maxThresh = 1,
fullyConnected = FALSE
)
imagein |
input antsImage e.g. a statistical map |
minClusterSize |
throw away clusters smaller than this value |
minThresh |
threshold to a statistical map |
maxThresh |
threshold to a statistical map |
fullyConnected |
boolean sets neighborhood connectivity pattern |
labeled cluster image is output
Avants BB
img <- antsImageRead(getANTsRData("r16"))
timgFully <- labelClusters(img, 10, 128, 150, TRUE)
timgFace <- labelClusters(img, 10, 128, 150, FALSE)
## Not run:
plot(img, timgFace)
plot(img, timgFully)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.