aslAveraging(asl, mask = NA, tc = NA, nuisance = NA, method = "regression", ...)
regression
or bayesian
methods.sincSubtract
,
simpleSubtract
, cubicSubtract
, surroundSubtract
,
regression
, or bayesian
. See Details
.Details
.simple
subtracts adjacent tag and control images. The other methods use
interpolation to obtain a subtracted time-series. Sinc subtraction may
be marginally more accurate than cubic interpolation, but takes much
longer. Surround subtraction uses linear interpolation and is fast.
For bayesian
, two more arguments are required:
These would be as output from atropos
; see Examples
for a
sample usage.
nvox <- 8 * 8 * 8 * 10
dims <- c(8, 8, 8, 10)
voxvals <- array(rnorm(nvox) + 500, dim=dims)
asl <- makeImage(dims, voxvals)
tc <- rep(c(-0.5, 0.5), dims[4]/2)
avg <- aslAveraging(asl, tc=tc)
slice <- extractSlice(asl, 4, 4)
mask <-getMask(slice)
seg <- atropos(d=3, a=slice, x=mask, i='kmeans[6]', m='[0.0,1x1x1]')
bayesAvg <- aslAveraging(asl, tc=tc, method='bayesian',
segmentation=seg$segmentation, tissuelist=seg$probabilityimages)
Run the code above in your browser using DataLab