Repeatedly run N3 on slices of time series and return image

timeseriesN3(boldimg, mask, ncorrections = c(2, 2))

Arguments

boldimg

input matrix

mask

mask to use

ncorrections

levels at which to apply n3

Value

antsImage is output

Author

Avants BB

Examples


bold <- makeImage(c(10, 10, 10, 4), rnorm(4000))
mask <- getMask(getAverageOfTimeSeries(bold))
boldn3 <- timeseriesN3(bold, mask, c(4, 2))