powered by
Reduces a variate/statistical/network image to a set of centroids describing the center of each stand-alone non-zero component in the image.
centroids<-getCentroids( img )
the image to reduce to centroids - presumably some kind of statistical or network map
thresholds the input image at mean( img[ img > 0 ] ) - threshparam * sdev( img[ img > 0 ] )
ignore post-threshold clusters smaller than this value
the centroids are output in matrix of size npoints by 3
# NOT RUN { getCentroids( f , clustparam = 250, threshparam = 0 ) # }
Run the code above in your browser using DataLab