Projects:RegistrationDocumentation:ReferenceManual

From NAMIC Wiki
Jump to: navigation, search
Home < Projects:RegistrationDocumentation:ReferenceManual

Back to ARRA main page

Back to Registration main page

Main Register Images Parameters

  • 'Parameter set: could be made into the "Presets" menu?
  • IO
    • Fixed Image:
    • Moving Image:
    • Resample Image:
  • Registration Parameters
  • Load Transform: provide the Loaded Transform for the loaded phase of registration
  • Save Transform: results of the entire registration pipeline will be saved here
  • Initialization:
    • None (sets the center of rotation to the center of the moving image)
    • Landmark (uses N-pairs of landmarks (passed as vectors) and a least-squared error metric to register the images using a rigid transform
    • Image Centers (shifts the images to align their centers)
    • Centers of Mass (shifts the images to align their centers of mass)
    • Second Moments (shifts and rotates the images to align the 1st and 2nd moments)
  • Registration
    • None (applies the loaded transforms)
    • Initial: computes and applies the initial transform to the loaded registrations)
    • Rigid:computes a rigid transform and then applies it to the loaded registrations
    • Affine: computes an affine transform and then applies it to the loaded registrations
    • BSpline: computes a bspline transform and then applies it to the loaded registrations
    • PipelineRigid: computes a rigid transform (initialized using the results from the initial registration) and then applies it to the loaded registrations
    • PipelineAffine: computes a rigid transform (initialized using the results from the initial registration), uses those results to initialize and compute an affine transform, and then applies it to the loaded registrations
    • PipelineBSpline: computes a rigid transform (initialized using the results from the initial registration), uses those results to initialize and compute an affine transform, and then applies it to the loaded registrations, THEN computes and applies a BSpline transform
  • Metric
    • Mutual Information metric. It is an multithreaded and optimized version of the Mattes MI method. For more information, check the code; Insight/Code/Review/itkOptMattesMutualInformationImageMetric.h/txx
    • NormCorr
    • MeanSqrd
  • Expected Offset controls the offset scales in rigid and affine registration the deformation vector scale in bspline registration
  • Expected Rotation is roughly in terms of radians. It controls the rotation angles in rigid and affine registration
  • Expected Scale is for scaling during affine registration
  • Expected Skew is for skew for affine registration
  • Advanced Tab
  • Verbosity Level: Controls the level of detail in the reports in the log file
  • Sample from fixed/moving overlap: When the fixed image is much larger than the moving image, it is CRITICAL to set this flag and to pick a good initialization method. In that way, only the portion of the fixed image that is initially covered by the moving image will be used during registration. This prevents ITK from throwing an exception (error) stating that too many fixed-image samples miss (map outside of) the moving image.
  • Fixed Image Mask: if a labelmap with a mask region is available and to be used, select it from the dropdown menu.
  • Random Number Seed: To ensure consistent performance, you can set a seed - repeated runs should produce identical results.
  • Number of Threads: Number of multi-core/mult-processor threads to use during metric value computations.
  • Minimize Memory: Turns off caching of intermediate values during bspline registration
  • Interpolation: select interpolation type for resampling result image immediately
  • Max.iterations Number of iterations for one-plus-one and for FRPR registration
  • Sampling Ratio Portion of the image pixels to be used when computing the metric
  • Apply button: this launches the automated registration process. Other functions of Slicer are still accessible while the registration is running. The registration module itself is disabled (appears in gray) and the notice Running appears at the top.

Main Algorithm

  • For rigid and affine registrations, one-plus-one evoluation optimization is first applied for N iterations, and then FRPR gradient-line-search optimization is applied.
      • For more information, check the code: RegisterImagesModule/itkOptimizedImageToImageRegistrationmethod.h/txx
    • For BSpline registration, a hierarchical registration scheme is used. An image pyramid having 3 levels is used to resample the images and the control grids. Heuristics are used to control the various resampling parameters. At each level, registration is conducted using FRPR gradient-line-search optimization.
      • For more information, check the code: RegisterImagesModule/itkBSplineImageToImageRegistrationMethod.h/txx

Register Images Usage

  --processinformationaddress <std::string>
    Address of a structure to store process information (progress, abort,
    etc.). (default: 0)
  --xml
    Produce xml description of command line arguments (default: 0)
  --echo
    Echo the command line arguments (default: 0)
  --controlPointSpacing <int>
    Number of pixels between control points (default: 40)
  --bsplineSamplingRatio <float>
    Portion of the image to use in computing the metric during BSpline
    registration (default: 0.1)
  --bsplineMaxIterations <int>
    Maximum number of bspline optimization iterations (default: 20)
  --affineSamplingRatio <float>
    Portion of the image to use in computing the metric during affine
    registration (default: 0.02)
  --affineMaxIterations <int>
    Maximum number of affine optimization iterations (default: 50)
  --rigidSamplingRatio <float>
    Portion of the image to use in computing the metric during rigid
    registration (default: 0.01)
  --rigidMaxIterations <int>
    Maximum number of rigid optimization iterations (default: 100)
  --movingLandmarks <std::vector<std::vector<float> >>  (accepted multiple
     times)
    Ordered list of landmarks in the moving image
  --fixedLandmarks <std::vector<std::vector<float> >>  (accepted multiple
     times)
    Ordered list of landmarks in the fixed image
  --baselineResampledMovingImage <std::string>
    Result resampling the moving image to the space of the baseline image
  --baselineDifferenceImage <std::string>
    Result from subtracting the registered moving image from the baseline
    image
  --baselineRadiusTolerance <int>
    Maximum neighborhood that will be searched to find a matching pixel
    (default: 0)
  --baselineIntensityTolerance <double>
    Maximum intensity difference for pixels to be considered matching
    (default: 10)
  --baselineNumberOfFailedPixelsTolerance <int>
    Maximum number of pixels that can differ and the test pass (default:
    1000)
  --baselineImage <std::string>
    Image against which the resampled moving image will be compared
  --interpolation <NearestNeighbor|Linear|BSpline>
    Method for interpolation within the optimization process (default:
    Linear)
  --minimizeMemory
    Reduce the amount of memory required at the cost of increased
    computation time (default: 0)
  --numberOfThreads <int>
    Number of CPU threads to use (default: 0)
  --randomNumberSeed <int>
    Seed to generate a consistent random number sequence (default: 0)
  --fixedImageMask <std::string>
    Image which defines a mask for the fixed image
  --sampleFromOverlap
    Limit metric evaluation to the fixed image region overlapped by the
    moving image (default: 0)
  --verbosityLevel <Silent|Standard|Verbose>
    Level of detail of reporting progress (default: Standard)
  --expectedSkew <float>
    Expected misalignment after initialization (default: 0.01)
  --expectedScale <float>
    Expected misalignment after initialization (default: 0.05)
  --expectedRotation <float>
    Expected misalignment after initialization (default: 0.1)
  --expectedOffset <float>
    Expected misalignment after initialization (default: 10)
  --metric <MattesMI|NormCorr|MeanSqrd>
    Method to quantify image match (default: MattesMI)
  --registration <None|Initial|Rigid|Affine|BSpline|PipelineRigid
     |PipelineAffine|PipelineBSpline>
    Method for the registration process (default: PipelineAffine)
  --initialization <None|Landmarks|ImageCenters|CentersOfMass
     |SecondMoments>
    Method to prime the registration process (default: CentersOfMass)
  --saveTransform <std::string>
    Save the transform that results from registration
  --loadTransform <std::string>
    Load a transform that is immediately applied to the moving image
  --resampledImage <std::string>
    Registration results
  --,  --ignore_rest
    Ignores the rest of the labeled arguments following this flag.
  --version
    Displays version information and exits.
  -h,  --help
    Displays usage information and exits.
  <std::string>
    (required)  Image which defines the space into which the moving image
    is registered
  <std::string>
    (required)  The transform goes from the fixed image's space into the
    moving image's space


  Description: Provides rigid, affine, and BSpline registration methods
  via a simple GUI
  Author(s): Stephen R Aylward

Publications

  1. Aylward, Stephen; Jomier, Julien; Barre, Sebastien; Davis, Brad; Ibanez, Luis, "Optimizing ITK’s Registration Methods for Multi-processor, Shared-Memory Systems." MICCAI Open Source and Open Data Workshop, 2007 (Download PDF)
  2. BWH Neuroimaging Analysis Center (NAC), 2007-2008: Grid Enabled ITK
  3. IJ article on oriented images and registration in ITK

Algorithmic Requirements and Use Cases

  • Use-cases
    1. Intersubject mapping
    2. fMRI to hi-res brain morphology mapping
    3. DTI: components of the diffusion tensor
  • Use-cases
    1. Intel Core2Duo
    2. Intel quad-core Xeon processors, Visual Studio 8, Windows Vista (Kitware: redwall)
    3. 6 CPU Sun, Solaris 8 (SPL: vision)
    4. 12 CPU Sun, Solaris 8 (SPL: forest and ocean)
    5. 16 core Opteron (SPL: john, ringo, paul, george)
    6. 16 core, Sun Fire, AMDOpteron (UNC: Styner)

Historic Results

January 5, 2008 - Note: "Opt" results are not using the OptLinearInterpolateImageFunction.

Historic Events

Related Pages

Notes on Software Profiling Tools