image2ClusterImages: Converts an image to several independent images.

Description Usage Arguments Value Author(s) Examples

View source: R/image2ClusterImages.R

Description

Produces a unique image for each connected component 1 through N of size > minClusterSize

Usage

1
2
3
4
5
6
image2ClusterImages(
  x,
  minClusterSize = 50,
  minThresh = 0.000001,
  maxThresh = 1
)

Arguments

x

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

the original image broken into a list of cluster images is the output

Author(s)

Avants BB

Examples

1
2
3
4
5
6
## Not run: 
img <- antsImageRead(  getANTsRData('r16') )
img <- thresholdImage( img, 1 , Inf )
imageclusterlist<-image2ClusterImages( img )

## End(Not run)

neuroconductor-devel/ANTsR documentation built on April 1, 2021, 1:02 p.m.