antsMotionCorr: Motion Correction

Description Usage Arguments Value Author(s) Examples

Description

This program is a user-level registration application meant to utilize ITKv4-only classes. The user can specify any number of stages where a stage consists of – a transform, an image metric, number of iterations, shrink factors, and smoothing sigmas for each level. Specialized for 4D time series data: fixed image is 3D, moving image should be the 4D time series. Fixed image is a reference space or time slice.

Usage

1
2
3
antsMotionCorr( <list of named arguments> )
<list of named arguments> -- an R list of name-value pairs as described in the section 'Arguments'
see section: Arguments, Examples

Arguments

d -or- dimensionality = <value>

This option forces the image to be treated as a specified-dimensional image. If not specified, N4 tries to infer the dimensionality from the input image. Allowed values: 2, 3.

n -or- "n-images" = <value>

This option sets the number of images to use to construct the template image. Default: 10.

m -or metric =
  • list( name = CC, <fixedImage>, <movingImage>, <metricWeight>, <radius>, <samplingStrategy=Regular,Random>, <samplingPercentage=[0,1]>)

  • list( name = MI, <fixedImage>, <movingImage>, <metricWeight>, <numberOfBins>, <samplingStrategy=Regular,Random>, <samplingPercentage=[0,1]>)

  • list( name = Demons, <fixedImage>, <movingImage>, <metricWeight>, <radius>, <samplingStrategy=Regular,Random>, <samplingPercentage=[0,1]>)

  • list( name = GC, <fixedImage>, <movingImage>, <metricWeight>, <radius>, <samplingStrategy=Regular,Random>, <samplingPercentage=[0,1]>)

Four image metrics are available— GC : global correlation, CC: ANTS neighborhood cross correlation, MI: Mutual information, and Demons: Thirion's Demons (modified mean-squares). Note that the metricWeight is currently not used. Rather, it is a temporary place holder until multivariate metrics are available for a single stage.

u -or- useFixedReferenceImage = <value>

use a fixed reference image instead of the neighor in the time series.

e -or- useScalesEstimator = <value>

use the scale estimator to control optimization.

t -or- transform =
  • list( name = Affine, <gradientStep>)

  • list( name = Rigid, <gradientStep>)

  • list( name = GaussianDisplacementField, <gradientStep>, <updateFieldSigmaInPhysicalSpace>, <totalFieldSigmaInPhysicalSpace>)

Several transform options are available. The gradientStep orlearningRate characterizes the gradient descent optimization and is scaled appropriately for each transform using the shift scales estimator. Subsequent parameters are transform-specific and can be determined from the usage.

i -or- iterations = <value>

Specify the number of iterations at each level in the form MxNx0...

s -or- smoothingSigmas = <value>

Specify the amount of smoothing at each level in the form MxNx0...

f -or- shrinkFactors = <value>

Specify the shrink factor for the virtual domain (typically the fixed image) at each level in the form MxNx0...

o -or- output = list( <outputTransformPrefix>, <outputWarpedImage>, <outputAverageImage>)

Specify the output transform prefix (output format is .nii.gz ).Optionally, one can choose to warp the moving image to the fixed space and, if the inverse transform exists, one can also output the warped fixed image.

a -or- "average-image" = <image>

Average the input time series image.

Value

0 – Success
1 – Failure

Author(s)

Shrinidhi KL

Examples

1
2
3
4
5
## Not run: 
antsMotionCorr( list( d = 3 , a = img , o = avg_img ) )
antsMotionCorr( list( d = 3 , o = list( moco_params , moco_img , avg_img ) , m = list( name = "MI" , avg_img , img , 1 , 32 , 50 ) , t = "Rigid[0.01]" , i = 25 , u = 1 , e = 1 , s = 0 , f = 1 , n = 25 ) )

## End(Not run)

stnava/itkImageR documentation built on May 30, 2019, 7:21 p.m.