Difference between revisions of "Projects:RegistrationLibrary:RegLib C06"

From NAMIC Wiki
Jump to: navigation, search
Line 76: Line 76:
 
##''Apply''
 
##''Apply''
 
#repeat for Post_Rx_left_n4
 
#repeat for Post_Rx_left_n4
 +
#save intermediate results
 +
#we need to exclude the tumor from the mask, to prevent the registration from trying to match that region. Much should already be excluded from the above segmentation, but it may be necessary to apply some manual edits:
 +
#Go to the [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Editor ''Editor''] module
 +
##Click ''Apply'' on the popup do confirm colormap selection (choice does not matter)
 +
##Master Volume: PreRx_left
 +
##''Merge Volume'': PreRx_mask (generated above)
 +
##click on the Brush Icon ("PaintEffect")
 +
##Label: 0 (black)
 +
##increase radius to ~ 10-15 mm.
 +
##navigate to an axial slice showing the tumor
 +
##click & drag  left mouse to apply, then use arrow keys to move to the next slice.
 +
#repeat for Post_Rx_mask
 
#save intermediate results
 
#save intermediate results
 
*'''Phase 4: Affine pre-Registration'''
 
*'''Phase 4: Affine pre-Registration'''
Line 90: Line 102:
 
##Leave all other settings at default
 
##Leave all other settings at default
 
##''Apply''
 
##''Apply''
##this should generate a first alignment. To see it you need to:
+
##this should generate a first alignment. note that the Slicer4.1 version of BRAINS registration does '''not''' automatically place the moving volume inside the result transform, as it did for Slicer 3.6. In order to see the result, you must either go to the [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Data ''Data module''] and drag the moving volume inside the transform node, or select to generate a resampled ''Output Volume''. See demo movie you can download here shows how to do this.
#
+
*'''Phase 5: Nonrigid final registration'''
t and also 2 masks. We already have a DWI mask, so we care not  about "DWI_mask_ROIauto", but we will use the T1_mask_ROIauto" output to edit/cleanup and use as mask in the subsequent nonrigid registration
+
#open the [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BRAINSFit ''General Registration (BRAINS)''] module
*'''Phase IV: T1 mask'''
+
##''Fixed Image Volume'': PreRx_left_n4
#open the [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/Editor Editor module]
+
##''Moving Image Volume'': PostRx_left_n4
#select  "T1_mask_ROIauto" as the volume to edit
 
#select the ''Erosion'' tool and click ''Apply'' until all of the segmented skull areas are removed
 
#select the ''Brush'' tool and manually fill in missing areas. Note that this need not be extremely accurate along the edges, since it will serve as a registration mask. To skip this step load the "T1_mask_edit.nrrd" file from the downloaded dataset.
 
*'''Phase V: Nonrigid Registration'''
 
#open the [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BRAINSFit General Registration (BRAINS) module]
 
##''Fixed Image Volume'': T1_n4
 
##''Moving Image Volume'': DWI_baseline
 
 
##Output Settings:  
 
##Output Settings:  
###''Slicer BSpline Transform": create new transform, rename to "Xf2_DWI-T1_BSpline"
+
###''Slicer BSpline Transform": create & rename new transform, rename to "Xf2_BSpline"
 
###''Slicer Linear Transform'': none
 
###''Slicer Linear Transform'': none
###''Output Image Volume'': create new volume, rename to "DWI_baseline_Xf2"  
+
###''Output Image Volume'': create & rename new transform, rename to "PostRx_left_Xf2"
##''Registration Phases'': check boxes for ''BSpline'' only
+
##''Registration Phases'': uncheck rigid & affine boxes, check box for ''BSpline'' only
 
##''Main Parameters'':
 
##''Main Parameters'':
###''Number Of Samples'': 200,000
+
###''Number Of Samples'': 300,000
###''B-Spline Grid Size'': 5,5,5
+
###''B-Spline Grid Size'': 7,7,5
 
##''Mask Option'': select ''ROI'' button
 
##''Mask Option'': select ''ROI'' button
###''ROI Masking input fixed'': select  " "T1_mask_ROIauto" or "T1_mask_edit" edited in phase III above
+
###''ROI Masking input fixed'': select  "PreRx_mask" generated in Phase 3 above
###''ROI Masking input moving'':  select  "DWI_mask" created in phase I above
+
###''ROI Masking input moving'':  select  "PostRx_mask" generated in Phase 3 above
 
##Leave all other settings at default
 
##Leave all other settings at default
 
##click: Apply
 
##click: Apply

Revision as of 22:21, 5 June 2012

Home < Projects:RegistrationLibrary:RegLib C06

Back to ARRA main page
Back to Registration main page
Back to Registration Use-case Inventory

updated for v4.1 Slicer4 RegLibLogo.png Registration Library Case #6: Breast MRI Treatment Assessment

this is the fixed reference image. All images are aligned into this space lleft this is the DTI Baseline scan, to be registered with the T2
fixed image/target
pre Rx MRI
moving image
post Rx MRI

Versions

For the Slicer 3.6 version of this tutorial see here

Modules

Objective / Background

We seek to align the post-treatment (PostRx) scan with the pre-treatment scan to compare local effects (left side only).

Keywords

MRI, breast cancer, intra-subject, treatment assessment, change detection, non-rigid registration

Download

Input Data

  • reference/fixed : 0.44 x 0.44 x 5 mm , 784 x 784 x 30
  • moving: 0.68 x 0.68 x 1.5 mm, 515 x 515 x 93


Methods

  • Phase 1: Extract left breast image of PreRx and PostRx scan
  1. Open the Crop Volume module
      1. Input volume: "PreRx"
      2. Input ROI: "Create new annotation ROI"
      3. ROI visibilité: turn on
      4. Isotropic output voxel: yes (checkbox)
      5. Interpolator: "WindowedSinc" (radio button)
      6. place/drag the color markers visible in the slice views to enclose the left breast only (right side of image)
    1. click on Crop! button
  2. go to the Data module
    1. several new nodes were created: look for the "PreRx_subvolume-scale_1" entry, double click and rename to "PreRx_Left"
  3. repeat the same for the "PostRx" image
  4. Save intermediate results.
  • Phase 2: MRI Bias field inhomogeneity correction
  1. Open the N4ITKBiasFieldCorrection module
    1. Input Image: PreRx_left
    2. Mask Image: none
    3. Output Volume: create & rename new: "PreRx_left_n4"
    4. leave all parameters at defaults
    5. Apply.
  2. repeat for the Post_Rx image.
  3. save intermediate results
  • Phase 3: Build masks
  1. open the Foregroud masking (BRAINS) module (under Segmentation:Specialized)
    1. Input Image Volume: PreRx_left
    2. Output Mask: create & rename new: "PreRx_mask"
    3. Output Image clipped by ROI: none
    4. Configuration Parameters:
      1. ROI Auto Dilate Size: 0.1
      2. defaults for the rest
    5. Apply
  2. repeat for Post_Rx_left_n4
  3. save intermediate results
  4. we need to exclude the tumor from the mask, to prevent the registration from trying to match that region. Much should already be excluded from the above segmentation, but it may be necessary to apply some manual edits:
  5. Go to the Editor module
    1. Click Apply on the popup do confirm colormap selection (choice does not matter)
    2. Master Volume: PreRx_left
    3. Merge Volume: PreRx_mask (generated above)
    4. click on the Brush Icon ("PaintEffect")
    5. Label: 0 (black)
    6. increase radius to ~ 10-15 mm.
    7. navigate to an axial slice showing the tumor
    8. click & drag left mouse to apply, then use arrow keys to move to the next slice.
  6. repeat for Post_Rx_mask
  7. save intermediate results
  • Phase 4: Affine pre-Registration
  1. open the General Registration (BRAINS) module
    1. Fixed Image Volume: PreRx_left_n4
    2. Moving Image Volume: PostRx_left_n4
    3. Output Settings:
      1. Slicer BSpline Transform": none
      2. Slicer Linear Transform: create & rename new transform, rename to "Xf1_Affine"
      3. Output Image Volume: none
    4. Registration Phases: check boxes for Rigid , Rigid+Scale and Affine
    5. Main Parameters:
      1. Number Of Samples: 200,000
    6. Leave all other settings at default
    7. Apply
    8. this should generate a first alignment. note that the Slicer4.1 version of BRAINS registration does not automatically place the moving volume inside the result transform, as it did for Slicer 3.6. In order to see the result, you must either go to the Data module and drag the moving volume inside the transform node, or select to generate a resampled Output Volume. See demo movie you can download here shows how to do this.
  • Phase 5: Nonrigid final registration
  1. open the General Registration (BRAINS) module
    1. Fixed Image Volume: PreRx_left_n4
    2. Moving Image Volume: PostRx_left_n4
    3. Output Settings:
      1. Slicer BSpline Transform": create & rename new transform, rename to "Xf2_BSpline"
      2. Slicer Linear Transform: none
      3. Output Image Volume: create & rename new transform, rename to "PostRx_left_Xf2"
    4. Registration Phases: uncheck rigid & affine boxes, check box for BSpline only
    5. Main Parameters:
      1. Number Of Samples: 300,000
      2. B-Spline Grid Size: 7,7,5
    6. Mask Option: select ROI button
      1. ROI Masking input fixed: select "PreRx_mask" generated in Phase 3 above
      2. ROI Masking input moving: select "PostRx_mask" generated in Phase 3 above
    7. Leave all other settings at default
    8. click: Apply

Registration Results

unregistered affine registered Bspline registered


Discussion: Registration Challenges

  • soft tissue deformations during image acquisition cause large differences in appearance
  • the large tumor recession represents a significant pre/post difference in image content that will influence unmasked intensity-driven registration, which becomes a problem for the non-rigid portion of registration, particularly at higher DOF, because the registration will try to "recreate" the tumor area from the postRx image in order to match the content.
  • contrast enhancement and pathology and treatment changes cause additional differences in image content
  • the surface coils used cause strong differences in intensity inhomogeneity.
  • we have strongly anisotropic voxel sizes with much less through-plane resolution
  • resolution and FOV change between the two scans

Discussion: Key Strategies

  • because of the strong changes in shape and position, we break the problem down and register each breast separately.
  • we perform a bias-field correction on both images before registration
  • we use the Multires version of RegisterImages for an initial affine alignment
  • the nonlinear portion is then addressed with a BSpline or DiffeomorphicDemons algorithm
  • because accuracy is more important than speed here, we increase the sampling rate (i.e. the number of points sampled for the BSpline registration)