Documentation/4.2/Modules/BRAINSDemonWarp

From SlicerWiki
Jump to: navigation, search
Home < Documentation < 4.2 < Modules < BRAINSDemonWarp

For the latest Slicer documentation, visit the 4.6 page.


Introduction and Acknowledgements

This work is part of the National Alliance for Medical Image Computing (NA-MIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Information on NA-MIC can be obtained from the NA-MIC website.
Author: Hans Johnson, UIOWA
Contact: Hans Johnson,

University of Iowa  
Surgical Planning Laboratory  

Module Description

  1. Parsing - The images are initialized by the ValidationInputParser. This function reads in the arguments from a parameter file. It sets the histogram bins, match points, number of levels in the multi resolution registration, shrink factors and number of iterations at each levels. If the orientation of the images are different, it sets the moving image orientation to that of the fixed image.
  1. PreProcessing - In the next step the DemonsPreProcessor preprocesses the images by resampling the template image to target image space. The intensity mismatch problem is solved by histogram matching the images. Histogram matching is done only if the command line option -e is set. ItkHistogramMatchingImageFilter is used to perform this function. Another important step in preprocessing is skull stripping. Skull stripping is done only if the command line option -maskProcessingMode is set to BOBF. We have written an itk filter, named itkBOBFFilter for this purpose. This filter takes in an input image and a whole brain mask and outputs a Brain Only Background Filled(BOBF) image. The non-brain parts in the image are filled with the user specified background value. All computations are performed in the precision of float data.
  1. Registration - The resulting moving Image and the fixed image are given as inputs to the demons registrator.It uses the MultiResolutionPDEDeformableRegistration filter with NN extrapolation as interpolator and implements the demons deformable algorithm by computing the deformation field which will map a moving image onto a fixed image. It is assumed that the vector elements behave like floating point scalars. Each vector in the deformation field represent the distance between a geometric point in the input space and a point in the output space. The output image is generated by warping the input image with the deformation field using the ItkWarpImageFilter. WarpImageFilter warps an existing image with respect to a given deformation field. Typically the mapped position does not correspond to an integer pixel position in the input image. Interpolation via an image function is used to compute values at non-integer positions. We have used the LinearInterpolateImageFunction for our application. To write the output image we cast the image to the user specified output pixel type.

The inputs to the BrainDemonsWarp program are

  • the target image,
  • the template image and
  • optional parameters.

These parameters define the arguments for histogram matching and multi resolution registration. The outputs are

  • the deformation field,
  • the output image,
  • a checkerboard comparison image of the output and the fixed image and
  • the x,y,z displacement vectors.

If we specify the --debug option we can get the outputs at different stages. The filter is templated over the input image type, real image type and the output image types. We implement the algorithm by parsing the inputs, preprocessing them and registering the processed images.

Use Cases

Tutorials

Links to tutorials that use this module

Panels and their use

Parameters:





     * '
     
       ** ': 
     
   
 


Similar Modules

  • Point to other modules that have similar functionality

References

Information for Developers