View source: R/image2ClusterImages.R
image2ClusterImages | R Documentation |
Produces a unique image for each connected component 1 through N of size > minClusterSize
image2ClusterImages(
x,
minClusterSize = 50,
minThresh = 0.000001,
maxThresh = 1
)
x |
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 |
the original image broken into a list of cluster images is the output
Avants BB
## Not run:
img <- antsImageRead(getANTsRData("r16"))
img <- thresholdImage(img, 1, Inf)
imageclusterlist <- image2ClusterImages(img)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.