.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH ANTSREGISTRATION "1" "September 2017" "antsRegistration 2.1.0" "User Commands" .SH NAME antsRegistration \- part of ANTS registration suite .SH DESCRIPTION All_Command_lines_OK .SS "COMMAND:" .IP antsRegistration .IP 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; and iterations, shrink factors, and smoothing sigmas for each level.Note that dimensionality, metric, transform, output, convergence, shrink\-factors and smoothing\-sigmas parameters are mandatory. .SS "OPTIONS:" .HP \fB\-v\fR, \fB\-\-version\fR .IP Get Version Information. .HP \fB\-d\fR, \fB\-\-dimensionality\fR 2/3 .IP This option forces the image to be treated as a specified\-dimensional image. If not specified, we try to infer the dimensionality from the input image. .HP \fB\-o\fR, \fB\-\-output\fR outputTransformPrefix .IP [outputTransformPrefix,,] .IP 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. Note that only the images specified in the first metric call are warped. Use antsApplyTransforms to warp other images using the resultant transform(s). .HP \fB\-j\fR, \fB\-\-save\-state\fR saveSateAsTransform .IP A boolean specifying whether or not the composite transform resulted from the current state of the registration should be written to an hdf5 composite file. It is specially usefull if we want to save the current state of a SyN registration to the disk, so we can load and restore that later to continue the next registration directly started from the same state that it was stored. The output of this flag will be the same as the write\-composite\-transform, unless the last transform is a SyN transform. In that case, the inverse displacement field of the SyN transform is also added to the output composite transform. To load the written file this flag, we must use restore\-state. .HP \fB\-k\fR, \fB\-\-restore\-state\fR restoreStateAsATransform .IP Specify the initial state of the registration which get immediately used to directly initialize the registration process. The flag is mutually exclusive with other intialization flags.If this flag is used, none of the initial\-moving\-transform and initial\-fixed\-transform cannot be used. .HP \fB\-a\fR, \fB\-\-write\-composite\-transform\fR 1/(0) .IP Boolean specifying whether or not the composite transform (and its inverse, if it exists) should be written to an hdf5 composite file. This is false by default so that only the transform for each stage is written to file. : 0 .HP \fB\-p\fR, \fB\-\-print\-similarity\-measure\-interval\fR .IP Prints out the CC similarity metric measure between the full\-size input fixed and the transformed moving images at each iteration a value of 0 (the default) indicates that the full scale computation should not take placeany value greater than 0 represents the interval of full scale metric computation. : 0 .HP \fB\-v\fR, \fB\-\-write\-interval\-volumes\fR .IP Writes out the output volume at each iteration. It helps to present the registration process as a short movie a value of 0 (the default) indicates that this option should not take placeany value greater than 0 represents the interval between the iterations which outputs are written to the disk. : 0 .HP \fB\-z\fR, \fB\-\-collapse\-output\-transforms\fR (1)/0 .IP Collapse output transforms. Specifically, enabling this option combines all adjacent transforms wherepossible. All adjacent linear transforms are written to disk in the forman itk affine transform (called xxxGenericAffine.mat). Similarly, all adjacent displacement field transforms are combined when written to disk (e.g. xxxWarp.nii.gz and xxxInverseWarp.nii.gz (if available)).Also, an output composite transform including the collapsed transforms is written to the disk (called outputCollapsed(Inverse)Composite). : 1 .HP \fB\-i\fR, \fB\-\-initialize\-transforms\-per\-stage\fR (1)/0 .IP Initialize linear transforms from the previous stage. By enabling this option, the current linear stage transform is directly intialized from the previous stage's linear transform; this allows multiple linear stages to be run where each stage directly updates the estimated linear transform from the previous stage. (e.g. Translation \-> Rigid \-> Affine). : 0 .TP \fB\-n\fR, \fB\-\-interpolation\fR Linear NearestNeighbor MultiLabel[,] Gaussian[,] BSpline[] CosineWindowedSinc WelchWindowedSinc HammingWindowedSinc LanczosWindowedSinc .IP Several interpolation options are available in ITK. These have all been made available. Currently the interpolator choice is only used to warp (and possibly inverse warp) the final output image(s). .HP \fB\-g\fR, \fB\-\-restrict\-deformation\fR PxQxR .IP This option allows the user to restrict the optimization of the displacement field, translation, rigid or affine transform on a per\-component basis. For example, if one wants to limit the deformation or rotation of 3\-D volume to the first two dimensions, this is possible by specifying a weight vector of '1x1x0' for a deformation field or '1x1x0x1x1x0' for a rigid transformation.Low\-dimensional restriction only works if there are no preceding transformations. .TP \fB\-q\fR, \fB\-\-initial\-fixed\-transform\fR initialTransform [initialTransform,] [fixedImage,movingImage,initializationFeature] .IP Specify the initial fixed transform(s) which get immediately incorporated into the composite transform. The order of the transforms is stack\-esque in that the last transform specified on the command line is the first to be applied. In addition to initialization with ITK transforms, the user can perform an initial translation alignment by specifying the fixed and moving images and selecting an initialization feature. These features include using the geometric center of the images (=0), the image intensities (=1), or the origin of the images (=2). .TP \fB\-r\fR, \fB\-\-initial\-moving\-transform\fR initialTransform [initialTransform,] [fixedImage,movingImage,initializationFeature] .IP Specify the initial moving transform(s) which get immediately incorporated into the composite transform. The order of the transforms is stack\-esque in that the last transform specified on the command line is the first to be applied. In addition to initialization with ITK transforms, the user can perform an initial translation alignment by specifying the fixed and moving images and selecting an initialization feature. These features include using the geometric center of the images (=0), the image intensities (=1), or the origin of the images (=2). .HP \fB\-m\fR, \fB\-\-metric\fR CC[fixedImage,movingImage,metricWeight,radius,,] .IP MI[fixedImage,movingImage,metricWeight,numberOfBins,,] Mattes[fixedImage,movingImage,metricWeight,numberOfBins,,] MeanSquares[fixedImage,movingImage,metricWeight,radius=NA,,] Demons[fixedImage,movingImage,metricWeight,radius=NA,,] GC[fixedImage,movingImage,metricWeight,radius=NA,,] ICP[fixedPointSet,movingPointSet,metricWeight,,] PSE[fixedPointSet,movingPointSet,metricWeight,,,,] JHCT[fixedPointSet,movingPointSet,metricWeight,,,,,,] .IP These image metrics are available\-\-\- CC: ANTS neighborhood cross correlation, MI: Mutual information, Demons: (Thirion), MeanSquares, and GC: Global Correlation. The "metricWeight" variable is used to modulate the per stage weighting of the metrics. The metrics can also employ a sampling strategy defined by a sampling percentage. The sampling strategy defaults to 'None' (aka a dense sampling of one sample per voxel), otherwise it defines a point set over which to optimize the metric. The point set can be on a regular lattice or a random lattice of points slightly perturbed to minimize aliasing artifacts. samplingPercentage defines the fraction of points to select from the domain. In addition, three point set metrics are available: Euclidean (ICP), Point\-set expectation (PSE), and Jensen\-Havrda\-Charvet\-Tsallis (JHCT). .TP \fB\-t\fR, \fB\-\-transform\fR Rigid[gradientStep] Affine[gradientStep] CompositeAffine[gradientStep] Similarity[gradientStep] Translation[gradientStep] BSpline[gradientStep,meshSizeAtBaseLevel] GaussianDisplacementField[gradientStep,updateFieldVarianceInVoxelSpace,totalFieldVarianceInVoxelSpace] BSplineDisplacementField[gradientStep,updateFieldMeshSizeAtBaseLevel,totalFieldMeshSizeAtBaseLevel,] TimeVaryingVelocityField[gradientStep,numberOfTimeIndices,updateFieldVarianceInVoxelSpace,updateFieldTimeVariance,totalFieldVarianceInVoxelSpace,totalFieldTimeVariance] TimeVaryingBSplineVelocityField[gradientStep,velocityFieldMeshSize,,] SyN[gradientStep,updateFieldVarianceInVoxelSpace,totalFieldVarianceInVoxelSpace] BSplineSyN[gradientStep,updateFieldMeshSizeAtBaseLevel,totalFieldMeshSizeAtBaseLevel,] Exponential[gradientStep,updateFieldVarianceInVoxelSpace,velocityFieldVarianceInVoxelSpace,] BSplineExponential[gradientStep,updateFieldMeshSizeAtBaseLevel,velocityFieldMeshSizeAtBaseLevel,,] .IP Several transform options are available. The gradientStep or learningRate 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. For the B\-spline transforms one can also specify the smoothing in terms of spline distance (i.e. knot spacing). .TP \fB\-c\fR, \fB\-\-convergence\fR MxNxO [MxNxO,,] .IP Convergence is determined from the number of iterations per level and is determined by fitting a line to the normalized energy profile of the last N iterations (where N is specified by the window size) and determining the slope which is then compared with the convergence threshold. .HP \fB\-s\fR, \fB\-\-smoothing\-sigmas\fR MxNxO... .IP Specify the sigma of gaussian smoothing at each level. Units are given in terms of voxels ('vox') or physical spacing ('mm'). Example usage is '4x2x1mm' and \&'4x2x1vox' where no units implies voxel spacing. .HP \fB\-f\fR, \fB\-\-shrink\-factors\fR MxNxO... .IP Specify the shrink factor for the virtual domain (typically the fixed image) at each level. .HP \fB\-u\fR, \fB\-\-use\-histogram\-matching\fR .IP Histogram match the images before registration. .HP \fB\-l\fR, \fB\-\-use\-estimate\-learning\-rate\-once\fR .IP turn on the option that lets you estimate the learning rate step size only at the beginning of each level. * useful as a second stage of fine\-scale registration. .HP \fB\-w\fR, \fB\-\-winsorize\-image\-intensities\fR [lowerQuantile,upperQuantile] .IP Winsorize data based on specified quantiles. .HP \fB\-x\fR, \fB\-\-masks\fR [fixedImageMask,movingImageMask] .IP Image masks to limit voxels considered by the metric. .HP \fB\-\-float\fR .IP Use 'float' instead of 'double' for computations. : 0 .HP \fB\-h\fR .IP Print the help menu (short version). .HP \fB\-\-help\fR .IP Print the help menu. Will also print values used on the current command line call. : 1