Difference between revisions of "Projects:RegistrationLibrary:RegLib C10"
From NAMIC Wiki
(Created page with 'Back to ARRA main page <br> Back to Registration main page <br> [[Projects:RegistrationDocumentation:UseCaseInv…') |
m (Text replacement - "http://www.slicer.org/slicerWiki/index.php/" to "https://www.slicer.org/wiki/") |
||
(30 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
[[Projects:RegistrationDocumentation:UseCaseInventory|Back to Registration Use-case Inventory]] <br> | [[Projects:RegistrationDocumentation:UseCaseInventory|Back to Registration Use-case Inventory]] <br> | ||
− | ==Slicer Registration Library | + | == <small>v3.6.1</small> [[Image:Slicer3-6Announcement-v1.png|150px]] Slicer Registration Library Case #10: Co-registration of probabilistic tissue atlas for subsequent EM segmentation == |
− | + | === Input === | |
− | {| style="color:#bbbbbb | + | {| style="color:#bbbbbb; " cellpadding="10" cellspacing="0" border="0" |
− | |[[Image: | + | |[[Image:RegLib_C10_EMAtlas1.png|150px|lleft|this is the fixed T1 reference image.]] |
− | |[[Image: | + | |[[Image:RegArrow_NonRigid.png|100px|lleft]] |
− | |[[Image: | + | |[[Image:RegLib_C10_EMAtlas2.png|150px|left|this is the probabilistic tissue atlas, to be registered to the T1]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |Target Brain |
| | | | ||
− | | | + | |Probabilistic Atlas |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
+ | |||
+ | === Modules === | ||
+ | *'''Slicer 3.6.1 recommended modules: [https://www.slicer.org/wiki/Modules:BRAINSFit BrainsFit]''' | ||
+ | |||
+ | ==Slicer Registration Library Exampe #10: Co-registration of probabilistic tissue atlas for subsequent EM segmentation == | ||
===Objective / Background === | ===Objective / Background === | ||
− | This is | + | This is an example of sparse atlas co-registration. Not all atlases have an associated reference image that can be used for registration. Because the atlas represents a map of a particular tissue class probability, its contrast differs significantly from the target image. |
=== Keywords === | === Keywords === | ||
− | MRI, brain, head, | + | MRI, brain, head, inter-subject, probabilistic atlas, atlas-based segmentation |
===Input Data=== | ===Input Data=== | ||
− | * | + | *fixed : T1w axial, 0.9375 x 0.9375 x 1.5 mm axial, 256 x 256 x 124 |
− | * | + | *moving: Probabilistic Tissue atlas, 0.9375 x 0.9375 x 1.5 mm axial, 256 x 256 x 124 |
− | * | + | |
+ | === Methods === | ||
+ | *'''Version 1: BRAINSfit w/o masking''' | ||
+ | #open BRAINSfit module | ||
+ | ##fixed image: fixed; moving image: moving | ||
+ | ##Registration phases: check: Rigid, ScaleVersor3D, Affine, BSpline | ||
+ | ##Output: under ''Slicer BSpline Transform'', select "create new" and rename to "Xf3_BFit_unmasked" | ||
+ | ##Output: under ''Output Image Volume'', select "create new" and rename to "moving_Xf3" | ||
+ | ##Output Image Pixel Type: check box for "short" | ||
+ | ##Registration Parameters: increase ''Number of Samples'' to 200,000 | ||
+ | ##Number of Grid Subdivisions: 5,5,5 | ||
+ | ##leave rest at defaults | ||
+ | ##click: ''Apply'' | ||
+ | *'''Version 2: Expert Automated + Fast BSpline Modules incl. masking''' | ||
+ | #build brain mask for the fixed image only: | ||
+ | ##open '''Skull Stripping''' module. | ||
+ | ##Settings: 100 iterations, 20 subdivisions. | ||
+ | ##Ouput: create new volum, rename to "fixed_mask" | ||
+ | ##Click: ''Apply'' | ||
+ | ##manually edit brain mask with '''Editor''' module. required manual fix at frontal and occipital lobe | ||
+ | #open ''Expert Automated Registration'' module | ||
+ | ##Settings: Fixed Image: fixed, moving image: moving | ||
+ | ##Save Transform: ''Xf1_Affine_wmsk'' | ||
+ | ##Initialization: Centers of Mass, Registration: PipelineAffine | ||
+ | ##Expected offset: 10 , Expected Rotation: 0.2 | ||
+ | ##Expected Scale: 0.1 , Expected Skew: 0.05 | ||
+ | ##Fixed Image Mask: "fixed_mask" | ||
+ | ##Affine Max Iteration: 80 , Affine Sampling Ratio: 0.05 | ||
+ | #(alternatively automated Affine Registration: '''Register Images Multires''' also produces good results | ||
+ | # run '''Fast Deformable B-spline Registration''' module. Settings: | ||
+ | ##Iterations: 20 , Grid Size: 9 | ||
+ | ##fixed image: fixed; moving image: moving | ||
+ | ##Histogram Bins: 50, Spatial Samples: 50000 | ||
+ | ## initial transform: "Xf1_Affine_wmsk" | ||
+ | ##Output Transform: Xf2_BSpline1 | ||
+ | ##Output Volume: create new, rename to "moving_Xf2" | ||
=== Registration Results=== | === Registration Results=== | ||
− | + | [[Image:RegLib_C10_unreg_AnimGif.gif|300px|unregistered]] unregistered | |
− | + | [[Image:RegLib_C10_BSpline_AnimGif.gif|300px|after BSpline non-rigid registration]] afterAffine+ fast BSpline non-rigid registration<br><br> | |
− | + | [[Image:RegLib_C10_BFit_AGif.gif|400px|after BRAINSfit affine+ non-rigid registration]] after BRAINSfit affine+ non-rigid registration<br> | |
===Download === | ===Download === | ||
− | *'''[[Media: | + | *Data |
+ | **'''[[Media:RegLib_C10_Data.zip|RegLig_C10_Data <small> (Data,Presets, Solutions, zip file 17 MB) </small>]]''' | ||
*Presets | *Presets | ||
− | + | **'''[[Media:RegLib_C10_Presets_BFit.mrml|download registration parameter presets only<small> (Slicer MRML file, 4 kB) </small>]]''' | |
− | + | **'''[[Media:RegLib_C10_RegPresets_v3.5.mrml|download registration parameter presets for Slicer 3.5<small> (Slicer MRML file, 4 kB) </small>]]''' | |
− | + | **[[Projects:RegistrationDocumentation:ParameterPresetsTutorial|Link to User Guide: How to Load/Save Registration Parameter Presets]] | |
− | **[[Media: | + | *Documentation |
− | **[[Media: | + | **'''[[Media:RegLib_C10_Tutorial.ppt|download step-by-step tutorial <small> (PowerPoint, 3 MB) </small>]]''' |
− | **[[ | + | **'''[[Media:RegLib_C10_Tutorial.pdf|download step-by-step tutorial <small> (PDF, 5 MB) </small>]]''' |
− | * | ||
− | **[[Media: | ||
− | |||
− | |||
− | ** | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Discussion: Registration Challenges === | === Discussion: Registration Challenges === | ||
− | * | + | *Because the atlas represents a probabilistic image (i.e. contains blurring from combining multiple subjects), its contrast differs significantly from the target image. |
− | * | + | *The atlas has rotational misalignment that can cause difficulty for automated affine registration. |
− | + | *The two images represent different anatomies, a non-rigid registration is required | |
=== Discussion: Key Strategies === | === Discussion: Key Strategies === | ||
− | * | + | *Because of the strong differences in image contrast, Mutual Information is recommended as the most robust metric. |
− | * | + | *masking (skull stripping) is recommended to obtain good results for the initial affine alignment. For the 2nd stage BSpline use the full image (i.e. do NOT use the masked version) unless high-quality masks are available for '''both''' fixed & moving image. Using the crude mask created for the initial alignment for the BSpline will likely destabilize. |
− | + | *because speed is not that critical, increase the default sampling rate for both affine and BSpline registration | |
− | + | *we also expect larger differences in scale & distortion than with regular structural scans: so we significantly (2x-3x) increase the expected values for scale and skew from the defaults. | |
− | |||
− | |||
− | *because speed is not that critical, | ||
− | *we also expect larger differences in scale & distortion than with regular structural | ||
*a good affine alignment is important before proceeding to non-rigid alignment to further correct for distortions. | *a good affine alignment is important before proceeding to non-rigid alignment to further correct for distortions. | ||
=== Acknowledgments === | === Acknowledgments === | ||
+ | *dataset provided by Killian Pohl, Ph.D. |
Latest revision as of 17:25, 10 July 2017
Home < Projects:RegistrationLibrary:RegLib C10Back to ARRA main page
Back to Registration main page
Back to Registration Use-case Inventory
Contents
v3.6.1 Slicer Registration Library Case #10: Co-registration of probabilistic tissue atlas for subsequent EM segmentation
Input
Target Brain | Probabilistic Atlas |
Modules
- Slicer 3.6.1 recommended modules: BrainsFit
Slicer Registration Library Exampe #10: Co-registration of probabilistic tissue atlas for subsequent EM segmentation
Objective / Background
This is an example of sparse atlas co-registration. Not all atlases have an associated reference image that can be used for registration. Because the atlas represents a map of a particular tissue class probability, its contrast differs significantly from the target image.
Keywords
MRI, brain, head, inter-subject, probabilistic atlas, atlas-based segmentation
Input Data
- fixed : T1w axial, 0.9375 x 0.9375 x 1.5 mm axial, 256 x 256 x 124
- moving: Probabilistic Tissue atlas, 0.9375 x 0.9375 x 1.5 mm axial, 256 x 256 x 124
Methods
- Version 1: BRAINSfit w/o masking
- open BRAINSfit module
- fixed image: fixed; moving image: moving
- Registration phases: check: Rigid, ScaleVersor3D, Affine, BSpline
- Output: under Slicer BSpline Transform, select "create new" and rename to "Xf3_BFit_unmasked"
- Output: under Output Image Volume, select "create new" and rename to "moving_Xf3"
- Output Image Pixel Type: check box for "short"
- Registration Parameters: increase Number of Samples to 200,000
- Number of Grid Subdivisions: 5,5,5
- leave rest at defaults
- click: Apply
- Version 2: Expert Automated + Fast BSpline Modules incl. masking
- build brain mask for the fixed image only:
- open Skull Stripping module.
- Settings: 100 iterations, 20 subdivisions.
- Ouput: create new volum, rename to "fixed_mask"
- Click: Apply
- manually edit brain mask with Editor module. required manual fix at frontal and occipital lobe
- open Expert Automated Registration module
- Settings: Fixed Image: fixed, moving image: moving
- Save Transform: Xf1_Affine_wmsk
- Initialization: Centers of Mass, Registration: PipelineAffine
- Expected offset: 10 , Expected Rotation: 0.2
- Expected Scale: 0.1 , Expected Skew: 0.05
- Fixed Image Mask: "fixed_mask"
- Affine Max Iteration: 80 , Affine Sampling Ratio: 0.05
- (alternatively automated Affine Registration: Register Images Multires also produces good results
- run Fast Deformable B-spline Registration module. Settings:
- Iterations: 20 , Grid Size: 9
- fixed image: fixed; moving image: moving
- Histogram Bins: 50, Spatial Samples: 50000
- initial transform: "Xf1_Affine_wmsk"
- Output Transform: Xf2_BSpline1
- Output Volume: create new, rename to "moving_Xf2"
Registration Results
unregistered
afterAffine+ fast BSpline non-rigid registration
after BRAINSfit affine+ non-rigid registration
Download
- Data
- Presets
- Documentation
Discussion: Registration Challenges
- Because the atlas represents a probabilistic image (i.e. contains blurring from combining multiple subjects), its contrast differs significantly from the target image.
- The atlas has rotational misalignment that can cause difficulty for automated affine registration.
- The two images represent different anatomies, a non-rigid registration is required
Discussion: Key Strategies
- Because of the strong differences in image contrast, Mutual Information is recommended as the most robust metric.
- masking (skull stripping) is recommended to obtain good results for the initial affine alignment. For the 2nd stage BSpline use the full image (i.e. do NOT use the masked version) unless high-quality masks are available for both fixed & moving image. Using the crude mask created for the initial alignment for the BSpline will likely destabilize.
- because speed is not that critical, increase the default sampling rate for both affine and BSpline registration
- we also expect larger differences in scale & distortion than with regular structural scans: so we significantly (2x-3x) increase the expected values for scale and skew from the defaults.
- a good affine alignment is important before proceeding to non-rigid alignment to further correct for distortions.
Acknowledgments
- dataset provided by Killian Pohl, Ph.D.