Learn R Programming

ANTsR (version 1.0)

labelClusters: Simple labelClustering function.

Description

This will give a unique ID to each connected component 1 through N of size > minClusterSize

Usage

labelClusters(imagein, minClusterSize = 50, minThresh = 1e-06,
  maxThresh = 1)

Arguments

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

Value

labeled cluster image is output

Examples

Run this code
# NOT RUN {
img<-antsImageRead( getANTsRData("mnib"), 3 )
outimage<-labelClusters( img )
# }

Run the code above in your browser using DataLab