Learn R Programming

ANTsR (version 1.0)

kellyKapowski: Compute cortical thickness using the DiReCT algorithm.

Description

Diffeomorphic registration-based cortical thickness based on probabilistic segmentation of an image. This is an optimization algorithm.

Usage

kellyKapowski(s = NA, g = NA, w = NA, its = 50, r = 0.025, m = 1.5,
  ...)

Arguments

s

segmentation image

g

gray matter probability image

w

white matter probability image

its

convergence params - controls iterations

r

gradient descent update parameter

m

gradient field smoothing parameter

...

anything else, see KK help in ANTs

Value

thickness antsImage

Examples

Run this code
# NOT RUN {
img<-antsImageRead( getANTsRData("r16") ,2)
img<-resampleImage(img,c(64,64),1,0)
mask<-getMask( img )
segs<-kmeansSegmentation( img, k=3, kmask = mask)
thk<-kellyKapowski( s=segs$segmentation, g=segs$probabilityimages[[2]],
  w=segs$probabilityimages[[3]],its=45,r=0.5,m=1 )
# }

Run the code above in your browser using DataLab