Difference between revisions of "Documentation/Nightly/Registration/RegistrationLibrary/RegLib C29"
From Slicer Wiki
Line 33: | Line 33: | ||
=== Keywords === | === Keywords === | ||
MRI, brain, head, intra-subject, DTI, T1, T2, non-rigid, tumor, surgical planning | MRI, brain, head, intra-subject, DTI, T1, T2, non-rigid, tumor, surgical planning | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Registration Challenges=== | ===Registration Challenges=== | ||
Line 45: | Line 39: | ||
*the DTI baseline is similar in contrast to a T2, albeit at much lower resolution | *the DTI baseline is similar in contrast to a T2, albeit at much lower resolution | ||
*we have different amounts of voxel-anisotropy | *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. | |
− | *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 | ||
− | *The DTI estimation provides an automated mask for the DTI_baseline scan, but we have no mask for the T2. We | ||
*thus the full pipeline is this: | *thus the full pipeline is this: | ||
− | :# | + | :#build a mask for the T2. |
− | :#Affine+BSpline align of DTI_baseline to T2r (unmasked) | + | ::#Affine+BSpline align of DTI_baseline to T2r (unmasked) |
:#Resample DTI_mask with above BSpline -> mask for the T2r | :#Resample DTI_mask with above BSpline -> mask for the T2r | ||
:#repeat Affine+BSpline align of DTI_base to T2r, WITH masks | :#repeat Affine+BSpline align of DTI_base to T2r, WITH masks | ||
:#resample DTI with result Affine+BSpline transform | :#resample DTI with result Affine+BSpline transform | ||
+ | :#Affine align T2-T1, incl. resampled T2 volume = T2r | ||
=== Procedures === | === Procedures === | ||
− | *'''Phase I: Preprocessing: Build DWI mask + baseline''' | + | *'''Phase I: build a T2 mask''' |
− | #open the [ | + | A selection of 6 different methods to build a mask are shown here. Below is one of those, using the "GrowCut" tool in the Editor |
+ | #a video of the steps below is found here. | ||
+ | #Open the editor tool, select the T2 as master volume and create a new label map. | ||
+ | #select the brush tool, set the label to 2 and the brush size to 80 mm or larger (filling almost entire FOV) | ||
+ | #on 4 or 5 slices select the entire head and a good portion of the background | ||
+ | #switch to the ''Level Tracing'' effect/tool. Switch the label to 1. | ||
+ | #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. | ||
+ | #you should now have a handful of slices, even distributed, where label 1 describes the brain parenchyma and label 2 everything else. | ||
+ | #switch to the ''GrowCutEffect'' and click Apply. | ||
+ | #Apply some Dilation+Erosion filtering to cleanup the result. | ||
+ | |||
+ | *'''Phase II: Preprocessing: Build DWI mask + baseline''' | ||
+ | #open the [[Documentation/Nightly/Modules/DiffusionWeightedVolumeMasking ''Modules:Diffusion:DiffusionWeightedImages:DiffusionWeightedVolumeMasking'' ]] module | ||
##''Input DWI Volume'': "DWI" | ##''Input DWI Volume'': "DWI" | ||
− | ##''Output Baseline Volume'': ''Create New Volume'', rename to "DWI_baseline" | + | ##''Output Baseline Volume'': ''Create & Rename New Volume'', rename to "DWI_baseline" |
− | ##''Output Threshold Mask'': ''Create New Volume'', rename to "DWI_mask" | + | ##''Output Threshold Mask'': ''Create & Rename New Volume'', rename to "DWI_mask" |
##Leave other settings at default; click ''Apply'' | ##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''' | *'''Phase II: Preprocessing: Convert DWI -> DTI''' | ||
− | #open [ | + | #open [[Documentation/Nightly/Modules/DiffusionTensorEstimation "Diffusion Tensor Estimation" module]] (menu: Diffusion:DiffusionWeightedImages: DiffusionTensorEstimation) |
##''Input DWI Volume'': DWI_iso, | ##''Input DWI Volume'': DWI_iso, | ||
##''Output DTI Volume'': create new, rename to "DTI_iso" | ##''Output DTI Volume'': create new, rename to "DTI_iso" |
Revision as of 15:31, 9 May 2013
Home < Documentation < Nightly < Registration < RegistrationLibrary < RegLib C29Contents
Slicer Registration Library Case #29: Intra-subject Brain DTI
Input
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:
- build a mask for the T2.
- Affine+BSpline align of DTI_baseline to T2r (unmasked)
- Resample DTI_mask with above BSpline -> mask for the T2r
- repeat Affine+BSpline align of DTI_base to T2r, WITH masks
- resample DTI with result Affine+BSpline transform
- Affine align T2-T1, incl. resampled T2 volume = T2r
Procedures
- Phase I: build a T2 mask
A selection of 6 different methods to build a mask are shown here. Below is one of those, using the "GrowCut" tool in the Editor
- a video of the steps below is found here.
- Open the editor tool, select the T2 as master volume and create a new label map.
- select the brush tool, set the label to 2 and the brush size to 80 mm or larger (filling almost entire FOV)
- on 4 or 5 slices select the entire head and a good portion of the background
- switch to the Level Tracing effect/tool. Switch the label to 1.
- 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.
- you should now have a handful of slices, even distributed, where label 1 describes the brain parenchyma and label 2 everything else.
- switch to the GrowCutEffect and click Apply.
- Apply some Dilation+Erosion filtering to cleanup the result.
- Phase II: Preprocessing: Build DWI mask + baseline
- open the Documentation/Nightly/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
- open the General Registration (BRAINS) module
- Fixed Image Volume: T1
- Moving Image Volume: T2
- Output Settings:
- Slicer BSpline Transform": none
- Slicer Linear Transform: create new transform, rename to "Xf1_T2-T1"
- Output Image Volume: create new volume, rename to "T2_Xf1"
- Registration Phases: check boxes for Rigid and Affine
- Main Parameters:
- Number Of Samples: 200,000
- Leave all other settings at default
- click: Apply; runtime < 10 sec (MacPro QuadCore 2.4GHz)
- Phase IV: Register DTI (masked)
- open the General Registration (BRAINS) module
- Fixed Image Volume: FLAIR_Xf1
- Moving Image Volume: DWI_iso_baseline
- Output Settings:
- Slicer BSpline Transform": create new transform, rename to "Xf2_DTI-T1"
- Slicer Linear Transform: none
- Output Image Volume: create new volume, rename to DWI_baseline_Xf2
- Regstration Phases: check boxes for Rigid, Affine and BSpline
- Main Parameters:
- Number Of Samples: 300,000
- B-Spline Grid Size: 7,7,5
- Mask Option: select ROIAUTO button
- (ROIAUTO) Output fixed mask: create new volume
- (ROIAUTO) Output moving mask: create new volume
- Leave all other settings at default
- click: Apply; runtime 1-2 min (MacPro QuadCore 2.4GHz)
- Phase V: Resample DTI
- Open the Resample DTI Volume module (under All Modules menu; note this is distinct from the ResampleScalarVectorDWIVolume used above)
- Input Volume: DTI
- Output Volume: create new DTI Volume, rename to DTI_Xf2
- Reference Volume: T2_Xf1
- Transform Node: select "Xf2_DTI-T1 created above
- check box: displacement
- leave all other settings at defaults
- Click Apply; runtime ~ 3 min.
- set T1 or FLAIR as background and the new DTI_Xf2 volume as foreground
- Move fade slider to see DTI overlay onto the structural image