getCentroids | R Documentation |
Reduces a variate/statistical/network image to a set of centroids describing the center of each stand-alone non-zero component in the image.
getCentroids(img, clustparam = 0)
img |
the image to reduce to centroids - presumably some kind of statistical or network map |
clustparam |
look at regions greater than or equal to this size |
the centroids are output in matrix of size npoints by 3
Avants BB
img <- antsImageRead(getANTsRData("r16"))
img <- thresholdImage(img, 90, 120)
img <- labelClusters(img, 10)
cents <- getCentroids(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.