labelClusters¶
purpose:
Simple labelClustering function.
description:
This will give a unique ID to each connected component 1 through N of size > minClusterSize
usage:
clust<-labelClusters( img , minClusterSize = 50 , minThresh = 1.e-6 , maxThresh = 1 )
examples:
img <- antsImageRead(getANTsRData("mnib"), 3)
outimage <- labelClusters(img)