Learn R Programming

ANTsR (version 0.4.0)

timeseriesN3: Run N3 on slices of timeseries.

Description

Repeatedly run N3 on slices of time series and return image

Usage

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

Examples

Run this code
# NOT RUN {
  bold<-makeImage( c(10,10,10,4), rnorm(4000) )
  mask<-getMask( getAverageOfTimeSeries( bold ) )
  boldn3<-timeseriesN3( bold, mask, c(4,2) )

# }

Run the code above in your browser using DataLab