Difference between revisions of "Documentation:Nightly:Registration:RegistrationLibrary:RegLib C01"

From Slicer Wiki
Jump to: navigation, search
Line 92: Line 92:
 
|[[Image:RegLib_C01_unregistered.png|300px]] ||baseline and follow-up before registration (click to enlarge)
 
|[[Image:RegLib_C01_unregistered.png|300px]] ||baseline and follow-up before registration (click to enlarge)
 
|-
 
|-
|[[Image:RegLib_C01_rigid|300px]]||after rigid alignment. Note the residual shape differences (click to enlarge)
+
|[[Image:RegLib_C01_rigid.png|300px]]||after rigid alignment. Note the residual shape differences (click to enlarge)
 
|-  
 
|-  
 
|[[Image:RegLib_C01_affine.png|300px]]||after affine registration (click to enlarge)
 
|[[Image:RegLib_C01_affine.png|300px]]||after affine registration (click to enlarge)

Revision as of 20:45, 19 August 2013

Home < Documentation:Nightly:Registration:RegistrationLibrary:RegLib C01

Back to Registration Library

Slicer Registration Library Case #1: Follow-up MRI of Brain Tumor

Input

this is the fixed baseline image.
RegArrow Affine.png
this is the follow-up scan, to be registered the baseline on the left
fixed image moving image

Objective / Background

Goal is to align the follow-up image with the reference/baseline scan to assess changes.

Modules used

Download (from NAMIC MIDAS)

Keywords

MRI, brain, head, intra-subject, meningioma

Video Screencasts

  1. Movie/screencast showing generating a registration mask to exclude the tumor
  2. Movie/screencast showing rigid and affine registration

Procedure

  1. Rigid Registration: open the General Registration (BRAINS) module
    1. Input Images: Fixed Image Volume: MRMeningioma_1
    2. 'Input Images: Moving Image Volume: MRMeningioma_2
    3. Output Settings:
      1. Slicer Linear Transform (create new transform, rename to: "Xf1_Rigid")
      2. Output Image Volume none
    4. Registration Phases: select/check Rigid
    5. Initialization Phases: none
    6. Main Parameters:
    7. Leave all other settings at default
    8. click: Apply; runtime < 10 sec
  2. Building Registration Masks: We have now generate two masks that exclude the tumor region from contributing to the registration.
    1. open the Editor module
    2. As Master Volume, select the MR_1_baseline image
    3. click on the threshold tool and lower the threshold until the entire volume is selected (about a threshold of 5). Then click Apply.
    4. select the Brush tool. Increase the radius so that the brush completely covers the tumor (about 18mm).
    5. set the paint color to 0 (background).
    6. place the brush on an axial slice over the tumor. Use a left click to paint and the arrow keys to switch to the next slice. Repeat for all slices showing the tumor.
    7. save the mask as "MR_1_baseline_mask.nrrd"
    8. Now we generate a mask for MR_2. We can repeat the above or we can generate a mask by sending the first one through the inverse of the rigid transform we already computed.
    9. Go to the Transforms module.
    10. Active Transform: select the "Xf1_Rigid" transform we created above
    11. scroll down and click on the Invert button. This inverts the transform, which now points from MR_1 to MR_2. So now we can use it to generate a mask for MR_2 from the mask of MR_1. We must not forget to undo the invert afterwards!
    12. Go to the BRAINSResample module
      1. Image To Warp: select MR_1_baseline_mask
      2. Reference Image: select MR_2_followup
      3. Outputs:OutputImage: create & rename new, rename to "MR_2_followup_mask"
      4. Pixel Type: select uint or uchar
      5. Transform File: select "Xf1_Rigid"
      6. Interpolation Mode: select Nearest Neighbor
      7. Click Apply.
    13. Return to the Transforms module and invert the "Xf1_Rigid" transform again to return it to its original state.
    14. Go to the Volumes module
      1. Active Volume: select the new "MR_2_followup_mask"
      2. scroll down and check the 'labelmap checkbox.
    15. save the new mask.
    16. we now have two masks for use in the affine registration
  3. Affine registration: We have now increase the DOF to 12 in the form of an affine transform that also corrects scale and allows shear.
    1. Input Images: Fixed Image Volume: MR_1_baseline
    2. 'Input Images: Moving Image Volume: MR_2_followup
    3. Output Settings:
      1. Slicer Linear Transform (create new transform, rename to: "Xf2_Affine")
      2. Output Image Volume none
    4. Registration Phases: uncheck Rigid, select "Rigid+Scale" and "Affine"
    5. Initialization Transform: select "Xf1_Rigid"
    6. Initialization Transform Mode: off
    7. Main Parameters:
    8. Number Of Samples: increase to 300,000
    9. Masking Option: select "ROI" button
      1. Masking input fixed: select "MR_1_baseline_mask"
      2. Masking input moving: select "MR_2_followup_mask"
    10. click: Apply
  4. Verify
    1. place "MR_1_baseline" in the background and "MR_2_followup" into the foreground.
    2. place fade slider halfway
    3. Go to the Data module
      1. Drag "MR_2_followup" into the "Xf2_Affine" transform node, if it isn't there already.

Registration Results

RegLib C01 unregistered.png baseline and follow-up before registration (click to enlarge)
RegLib C01 rigid.png after rigid alignment. Note the residual shape differences (click to enlarge)
RegLib C01 affine.png after affine registration (click to enlarge)

Discussion: Key Strategies

  • The affine registration seeks to address residual distortions that are typical for longitudinal MRI. However to prevent the tumor (and putative tumor change) from affecting the registration, we mask out the tumor so that it does not contribute to the registration. The assumption is thus that aside from the tumor we expect the two serial scans to be matching exactly, i.e. any differences in size or shape is considered an artifact we wish to remove by registration.

Acknowledgments