Difference between revisions of "Documentation/Nightly/Registration/RegistrationLibrary/RegLib C29"

From Slicer Wiki
Jump to: navigation, search
Line 52: Line 52:
 
:#Affine align T2-T1, incl. resampled T2 volume = T2r
 
:#Affine align T2-T1, incl. resampled T2 volume = T2r
 
=== Procedures ===
 
=== Procedures ===
 +
*'''Phase II: Preprocessing: Build DWI mask + baseline'''
 +
#open the  [[Documentation/{{documentation/version}}/Modules/DiffusionWeightedVolumeMasking|''Modules:Diffusion:DiffusionWeightedImages:DiffusionWeightedVolumeMasking'' ]] module
 +
##''Input DWI Volume'': "DWI"
 +
##''Output Baseline Volume'':  ''Create & Rename New Volume'', rename to "DWI_baseline"
 +
##''Output Threshold Mask'': ''Create & Rename New Volume'', rename to "DWI_mask"
 +
##Leave other settings at default; click ''Apply''
 +
##You should obtain a baseline scalar image and a mask label map.
 +
*'''Phase III: Preprocessing: Convert DWI -> DTI'''
 +
#open [[Documentation/{{documentation/version}}/Modules/DiffusionTensorEstimation "Diffusion Tensor Estimation" module]] (menu: Diffusion:DiffusionWeightedImages: DiffusionTensorEstimation)
 +
##''Input DWI Volume'': DWI
 +
##''Output DTI Volume'': create & rename new, rename to "DTI"
 +
##''Output Baseline Volume'': create  & rename new, rename to "DTI_baseline"
 +
#Click: Apply
 
*'''Phase I: build a T2 mask'''
 
*'''Phase I: build a T2 mask'''
 
See here for a selection of [[Documentation/Nightly/RegistrationVideoTutorials#Registration_Masking:_How_do_I_quickly_generate_a_mask_for_use_in_registration.3F|'''videos showing 6 different methods to build a mask''']]. Below is one of those, using the "GrowCut" tool in the Editor
 
See here for a selection of [[Documentation/Nightly/RegistrationVideoTutorials#Registration_Masking:_How_do_I_quickly_generate_a_mask_for_use_in_registration.3F|'''videos showing 6 different methods to build a mask''']]. Below is one of those, using the "GrowCut" tool in the Editor
Line 63: Line 76:
 
#switch to the ''GrowCutEffect'' and click Apply.
 
#switch to the ''GrowCutEffect'' and click Apply.
 
#Apply some Dilation+Erosion filtering to cleanup the result.
 
#Apply some Dilation+Erosion filtering to cleanup the result.
 
*'''Phase II: Preprocessing: Build DWI mask + baseline'''  [[Documentation/{{documentation/version}}/Modules/ExpertAutomatedRegistration|'''Expert Automated Registration''']]
 
#open the  [[Documentation/{{documentation/version}}/Modules/DiffusionWeightedVolumeMasking|''Modules:Diffusion:DiffusionWeightedImages:DiffusionWeightedVolumeMasking'' ]] module
 
##''Input DWI Volume'': "DWI"
 
##''Output Baseline Volume'':  ''Create & Rename New Volume'', rename to "DWI_baseline"
 
##''Output Threshold Mask'': ''Create & Rename New Volume'', rename to "DWI_mask"
 
##Leave other settings at default; click ''Apply''
 
##You should obtain a baseline scalar image and a mask label map.
 
*'''Phase II: Preprocessing: Convert DWI -> DTI'''
 
#open [[Documentation/Nightly/Modules/DiffusionTensorEstimation "Diffusion Tensor Estimation" module]] (menu: Diffusion:DiffusionWeightedImages: DiffusionTensorEstimation)
 
##''Input DWI Volume'': DWI_iso,
 
##''Output DTI Volume'': create new, rename to "DTI_iso"
 
##''Output Baseline Volume'': create new, rename to "DWI_iso_baseline"
 
#Click: Apply
 
 
*'''Phase III: register T2 to T1'''
 
*'''Phase III: register T2 to T1'''
#open the [http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BRAINSFit General Registration (BRAINS) module]
+
#open the [[Documentation/{{documentation/version}}/Modules/BRAINSFit General Registration (BRAINS) module]]
 
##''Fixed Image Volume'': T1
 
##''Fixed Image Volume'': T1
 
##''Moving Image Volume'': T2
 
##''Moving Image Volume'': T2

Revision as of 16:35, 9 May 2013

Home < Documentation < Nightly < Registration < RegistrationLibrary < RegLib C29

Back to Registration Library

SRegLib Logo2.png

Slicer Registration Library Case #29: Intra-subject Brain DTI

Input

this is the fixed reference image. All images are aligned into this space lleft this is the T2 reference image, serves as target to the DTI baseline, but is itself aligned to the SPGR lleft this is the DTI Baseline scan, to be registered with the T2 this is the DTI tensor image, in the same orientation as the DTI Baseline
fixed image/target
T1 SPGR
moving image 1
T2
moving image 2a
DTI baseline
moving image 2b
DTI tensor

Slicer4 Modules used

Objective / Background

This is a classic case of a multi-sequence MRI exam we wish to spatially align to the anatomical reference scan (T1-SPGR). The scan of interest is the DTI image to be aligned for surgical planning/reference.

Download (from NAMIC MIDAS)

Keywords

MRI, brain, head, intra-subject, DTI, T1, T2, non-rigid, tumor, surgical planning

Registration Challenges

  • The DWI sequence (EPI) contains strong distortions we seek to correct via non-rigid alignment
  • The DWI sequence also contains strong intensity inhomogeneity (coil bias)
  • the DTI baseline is similar in contrast to a T2, albeit at much lower resolution
  • we have different amounts of voxel-anisotropy

Registration Approach

  • a direct registration of the DTI_baseline to the T1 is not recommended, since the T2 is a better match in contrast to the DTI baseline. We therefore first align the DTI with the T2 and then also register the T1 to the T2.
  • the DTI-T2 registration includes non-rigid deformation to correct for the strong distortions from the EPI acquisition. Because of the nonrigid component a mask of the brain parenchyma helps in obtaining a meaningful transform. Registration without a mask is possible but not as good as with a mask.
  • The DTI estimation provides an automated mask for the DTI_baseline scan, but we have no mask for the T2. We obtain a T2 mask through separate segmentation.
  • thus the full pipeline is this:
  1. build a mask for the T2.
  1. Affine+BSpline align of DTI_baseline to T2r (unmasked)
  1. Resample DTI_mask with above BSpline -> mask for the T2r
  2. repeat Affine+BSpline align of DTI_base to T2r, WITH masks
  3. resample DTI with result Affine+BSpline transform
  4. Affine align T2-T1, incl. resampled T2 volume = T2r

Procedures

  • Phase II: Preprocessing: Build DWI mask + baseline
  1. open the Modules:Diffusion:DiffusionWeightedImages:DiffusionWeightedVolumeMasking module
    1. Input DWI Volume: "DWI"
    2. Output Baseline Volume: Create & Rename New Volume, rename to "DWI_baseline"
    3. Output Threshold Mask: Create & Rename New Volume, rename to "DWI_mask"
    4. Leave other settings at default; click Apply
    5. You should obtain a baseline scalar image and a mask label map.
  • Phase III: Preprocessing: Convert DWI -> DTI
  1. open Documentation/Nightly/Modules/DiffusionTensorEstimation "Diffusion Tensor Estimation" module (menu: Diffusion:DiffusionWeightedImages: DiffusionTensorEstimation)
    1. Input DWI Volume: DWI
    2. Output DTI Volume: create & rename new, rename to "DTI"
    3. Output Baseline Volume: create & rename new, rename to "DTI_baseline"
  2. Click: Apply
  • Phase I: build a T2 mask

See here for a selection of videos showing 6 different methods to build a mask. Below is one of those, using the "GrowCut" tool in the Editor

  1. see here for a video (4 min) of the steps below:
  2. Open the editor tool, select the T2 as master volume and create a new label map.
  3. select the brush tool, set the label to 2 and the brush size to 80 mm or larger (filling almost entire FOV)
  4. on 4 or 5 slices select the entire head and a good portion of the background
  5. switch to the Level Tracing effect/tool. Switch the label to 1.
  6. On the same slices as before, place the cursor near the brain surface until the yellow outline shows a good enclosure of the brain at that slice. Click the left mouse to fill.
  7. you should now have a handful of slices, even distributed, where label 1 describes the brain parenchyma and label 2 everything else.
  8. switch to the GrowCutEffect and click Apply.
  9. Apply some Dilation+Erosion filtering to cleanup the result.
  • Phase III: register T2 to T1
  1. open the Documentation/Nightly/Modules/BRAINSFit General Registration (BRAINS) module
    1. Fixed Image Volume: T1
    2. Moving Image Volume: T2
    3. Output Settings:
      1. Slicer BSpline Transform": none
      2. Slicer Linear Transform: create new transform, rename to "Xf1_T2-T1"
      3. Output Image Volume: create new volume, rename to "T2_Xf1"
    4. Registration Phases: check boxes for Rigid and Affine
    5. Main Parameters:
      1. Number Of Samples: 200,000
    6. Leave all other settings at default
    7. click: Apply; runtime < 10 sec (MacPro QuadCore 2.4GHz)
  • Phase IV: Register DTI (masked)
  1. open the General Registration (BRAINS) module
    1. Fixed Image Volume: FLAIR_Xf1
    2. Moving Image Volume: DWI_iso_baseline
    3. Output Settings:
      1. Slicer BSpline Transform": create new transform, rename to "Xf2_DTI-T1"
      2. Slicer Linear Transform: none
      3. Output Image Volume: create new volume, rename to DWI_baseline_Xf2
    4. Regstration Phases: check boxes for Rigid, Affine and BSpline
    5. Main Parameters:
      1. Number Of Samples: 300,000
      2. B-Spline Grid Size: 7,7,5
    6. Mask Option: select ROIAUTO button
      1. (ROIAUTO) Output fixed mask: create new volume
      2. (ROIAUTO) Output moving mask: create new volume
    7. Leave all other settings at default
    8. click: Apply; runtime 1-2 min (MacPro QuadCore 2.4GHz)
  • Phase V: Resample DTI
  1. Open the Resample DTI Volume module (under All Modules menu; note this is distinct from the ResampleScalarVectorDWIVolume used above)
    1. Input Volume: DTI
    2. Output Volume: create new DTI Volume, rename to DTI_Xf2
    3. Reference Volume: T2_Xf1
    4. Transform Node: select "Xf2_DTI-T1 created above
    5. check box: displacement
  2. leave all other settings at defaults
  3. Click Apply; runtime ~ 3 min.
  4. set T1 or FLAIR as background and the new DTI_Xf2 volume as foreground
  5. Move fade slider to see DTI overlay onto the structural image

Registration Results

Registered DTI superimposed on SPGR and T2 registered (cycles show T1 and T2 and color DTI overlay)