getCentroids: Convert an image to the geometric centroids of its signal

Description Usage Arguments Value Author(s) Examples

Description

Reduces a variate/statistical/network image to a set of centroids describing the center of each stand-alone non-zero component in the image.

Usage

1
centroids<-getCentroids(  img  )

Arguments

img

the image to reduce to centroids - presumably some kind of statistical or network map

threshparam

thresholds the input image at mean( img[ img > 0 ] ) - threshparam * sdev( img[ img > 0 ] )

clustparam

ignore post-threshold clusters smaller than this value

Value

the centroids are output in matrix of size npoints by 3

Author(s)

Avants BB

Examples

1
2
3
4
## Not run: 
 getCentroids( f  , clustparam = 250, threshparam = 0 )

## End(Not run)

stnava/itkImageR documentation built on May 30, 2019, 7:21 p.m.