Difference between revisions of "Projects:RegistrationLibrary:RegLib C39"
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/") |
||
(3 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
− | = <small>v3.6. | + | = <small>v3.6.3</small> [[Image:Slicer3-6Announcement-v1.png|150px]] Slicer Registration Library Case 39: In Vitro cerebral body CT (thoracic spine) = |
=== Input === | === Input === | ||
{| style="color:#bbbbbb; " cellpadding="10" cellspacing="0" border="0" | {| style="color:#bbbbbb; " cellpadding="10" cellspacing="0" border="0" | ||
Line 17: | Line 17: | ||
=== Modules === | === Modules === | ||
− | *'''Slicer 3.6. | + | *'''Slicer 3.6.3 recommended modules: [https://www.slicer.org/wiki/Modules:BRAINSFit BRAINSFit] |
===Objective / Background === | ===Objective / Background === | ||
Line 29: | Line 29: | ||
*the baseline container contains the vertebra upside down (as apparent from orientation of the pedicle/roots of the vertibral arches coming out of the body, visible in sagittal or coronal view). Hence this image needs to have its z-axis (IS) reversed before registration | *the baseline container contains the vertebra upside down (as apparent from orientation of the pedicle/roots of the vertibral arches coming out of the body, visible in sagittal or coronal view). Hence this image needs to have its z-axis (IS) reversed before registration | ||
*the containers walls and lid contain dominant image content that would prevent a successful automated registration; cropping is required | *the containers walls and lid contain dominant image content that would prevent a successful automated registration; cropping is required | ||
− | + | ||
===Input Data=== | ===Input Data=== | ||
− | *fixed: CT , 0. | + | *fixed: CT , 0.6 x 0.6 x 0.40 mm voxel size, axial; 292 x 292 x 91 unsigned short image |
− | *moving: CT , 0. | + | *moving: CT , 0.6 x 0.6 x 0.40 mm voxel size, axial; 512 x 512 x 107 unsigned short image |
=== Procedure / Pipeline === | === Procedure / Pipeline === | ||
#Open case scene file or import image data: RegLib_C28_SlicerScene1.mrml | #Open case scene file or import image data: RegLib_C28_SlicerScene1.mrml | ||
− | #Place | + | #Place T10intact and T10defect in back- and foreground respectively. |
#Scroll through sagittal view and note the inverted axis orientation | #Scroll through sagittal view and note the inverted axis orientation | ||
#Flip axis | #Flip axis | ||
− | ##Go to the [ | + | ##Go to the [https://www.slicer.org/wiki/Modules:Data-Documentation-3.6 Data module] |
###right-click on the ''Scene'' node and select "Insert Transform Node" from the menu | ###right-click on the ''Scene'' node and select "Insert Transform Node" from the menu | ||
###select the newly created transform node, then in the ''MRML Node Inspector'' below, rename it to "Xf0_AxialFlip" | ###select the newly created transform node, then in the ''MRML Node Inspector'' below, rename it to "Xf0_AxialFlip" | ||
− | ###select the " | + | ###select the "T10intact" node and drag it inside/on top of the "Xf0_AxialFlip" node |
− | ###ensure you have | + | ###ensure you have T10intact selected for background and the fade slider set on background (B) so you can see changes happening. |
− | ##Go to the [ | + | ##Go to the [https://www.slicer.org/wiki/Modules:Transforms-Documentation-3.6 Transforms module] |
###Select "Xf0_AxialFlip" from the ''Transform Node'' menu | ###Select "Xf0_AxialFlip" from the ''Transform Node'' menu | ||
###In the 4x4 matrix displayed, click in the field containing the "1.0000" in row 3 and column 3. | ###In the 4x4 matrix displayed, click in the field containing the "1.0000" in row 3 and column 3. | ||
Line 50: | Line 50: | ||
###you should see the image flip in the sagittal and coronal slice views | ###you should see the image flip in the sagittal and coronal slice views | ||
#Crop Volumes | #Crop Volumes | ||
− | ##Go to the [ | + | ##Go to the [https://www.slicer.org/wiki/Modules:CropVolume-Documentation-3.6 Crop Volume module] |
− | ##select " | + | ##select "T10intact" as ''Input Volume''; select "Create new MRML ROI Node" in the ''ROI'' menu, select "create new volume" in the ''Output Volume" menu |
##you should see a small blue rectangle in all 3 views. Click in the views to expand the region to contain only the L4 vertebra (body and processes) | ##you should see a small blue rectangle in all 3 views. Click in the views to expand the region to contain only the L4 vertebra (body and processes) | ||
##when finished, click on ''Do ROI resample'' | ##when finished, click on ''Do ROI resample'' | ||
− | ##go to back to the [ | + | ##go to back to the [https://www.slicer.org/wiki/Modules:Data-Documentation-3.6 Data module] and change the name of the new "SubVolume" to "T10intact_crop" |
##delete the ROI nodes (right click: delete node) | ##delete the ROI nodes (right click: delete node) | ||
− | ##repeat the same for the " | + | ##repeat the same for the "T10defect" image |
− | # | + | #Registration |
− | + | ##Go to the [https://www.slicer.org/wiki/Modules:BRAINSFit BRAINSfit module] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ##Go to the [ | ||
###''''Presets''': select the "BRAINSFit_Affine" from the parameter set menu. See [[Projects:RegistrationDocumentation:ParameterPresetsTutorial|here for a guide]] on how to Load/Save Registration Parameter Presets]] | ###''''Presets''': select the "BRAINSFit_Affine" from the parameter set menu. See [[Projects:RegistrationDocumentation:ParameterPresetsTutorial|here for a guide]] on how to Load/Save Registration Parameter Presets]] | ||
###otherwise select the following parameters: | ###otherwise select the following parameters: | ||
− | ###''Fixed Image Volume'': : | + | ###''Fixed Image Volume'': :T10intact_crop ; ''Moving'': T10defect_crop |
− | + | ###check boxes for "Moments align", ''Include Rigd registr. phase'' , ''Include ScaleVersor3D'', ''include Affine'' | |
− | ###check boxes for ''Include Rigd registr. phase'' , ''Include ScaleVersor3D'', ''include Affine'' | ||
###''Slicer Linear Transform'': select "create new transform", rename to "Xf1_Affine" or similar | ###''Slicer Linear Transform'': select "create new transform", rename to "Xf1_Affine" or similar | ||
###leave rest at defaults. Click ''Apply'' | ###leave rest at defaults. Click ''Apply'' | ||
Line 80: | Line 69: | ||
=== Registration Results=== | === Registration Results=== | ||
− | [[Image: | + | [[Image:RegLib_C39_unreg.gif|400px|original unregistered]] unregistered <br> |
− | [[Image: | + | [[Image:RegLib_C39_reg.gif|400px|registered (after flipping axis and cropping volume)]] registered <br> |
===Download === | ===Download === | ||
*Data | *Data | ||
− | **[[Media: | + | **[[Media:RegLib_C39_Data.zip|'''RegLib_C39_Data''': Example Dataset <small> (CT images, Presets, Solution, zip file 30 MB) </small>]] |
*Presets | *Presets | ||
− | **[[Media: | + | **[[Media:RegLib_C39_Presets.mrml|'''RegLib_C39_Presets.mrml''': registration parameter presets<small> (.mrml text file 12 kB) </small>]] |
=== Acknowledgments === | === Acknowledgments === |
Latest revision as of 17:59, 10 July 2017
Home < Projects:RegistrationLibrary:RegLib C39Back to ARRA main page
Back to Registration main page
Back to Registration Use-case Inventory
Contents
v3.6.3 Slicer Registration Library Case 39: In Vitro cerebral body CT (thoracic spine)
Input
baseline image | follow-up |
Modules
- Slicer 3.6.3 recommended modules: BRAINSFit
Objective / Background
This dataset contains in vitro CT of two human vertibral body segments (T10) before and after regional damage. Goal is to align the two images to study in detail the local changes that occurred.
Keywords
CT, spine cancer, vertebrae
Issues Challenges
- two images have very different spatial origins (as defined in original DICOM header): recenter first
- the baseline container contains the vertebra upside down (as apparent from orientation of the pedicle/roots of the vertibral arches coming out of the body, visible in sagittal or coronal view). Hence this image needs to have its z-axis (IS) reversed before registration
- the containers walls and lid contain dominant image content that would prevent a successful automated registration; cropping is required
Input Data
- fixed: CT , 0.6 x 0.6 x 0.40 mm voxel size, axial; 292 x 292 x 91 unsigned short image
- moving: CT , 0.6 x 0.6 x 0.40 mm voxel size, axial; 512 x 512 x 107 unsigned short image
Procedure / Pipeline
- Open case scene file or import image data: RegLib_C28_SlicerScene1.mrml
- Place T10intact and T10defect in back- and foreground respectively.
- Scroll through sagittal view and note the inverted axis orientation
- Flip axis
- Go to the Data module
- right-click on the Scene node and select "Insert Transform Node" from the menu
- select the newly created transform node, then in the MRML Node Inspector below, rename it to "Xf0_AxialFlip"
- select the "T10intact" node and drag it inside/on top of the "Xf0_AxialFlip" node
- ensure you have T10intact selected for background and the fade slider set on background (B) so you can see changes happening.
- Go to the Transforms module
- Select "Xf0_AxialFlip" from the Transform Node menu
- In the 4x4 matrix displayed, click in the field containing the "1.0000" in row 3 and column 3.
- hit Return key to activate editing
- change the number to -1. Hit Enter.
- you should see the image flip in the sagittal and coronal slice views
- Go to the Data module
- Crop Volumes
- Go to the Crop Volume module
- select "T10intact" as Input Volume; select "Create new MRML ROI Node" in the ROI menu, select "create new volume" in the Output Volume" menu
- you should see a small blue rectangle in all 3 views. Click in the views to expand the region to contain only the L4 vertebra (body and processes)
- when finished, click on Do ROI resample
- go to back to the Data module and change the name of the new "SubVolume" to "T10intact_crop"
- delete the ROI nodes (right click: delete node)
- repeat the same for the "T10defect" image
- Registration
- Go to the BRAINSfit module
- 'Presets: select the "BRAINSFit_Affine" from the parameter set menu. See here for a guide on how to Load/Save Registration Parameter Presets]]
- otherwise select the following parameters:
- Fixed Image Volume: :T10intact_crop ; Moving: T10defect_crop
- check boxes for "Moments align", Include Rigd registr. phase , Include ScaleVersor3D, include Affine
- Slicer Linear Transform: select "create new transform", rename to "Xf1_Affine" or similar
- leave rest at defaults. Click Apply
- registration should take ~ 10 secs.
- use fade slider to verify alignment; compare with result snapshots shown below.
- Go to the BRAINSfit module
Registration Results
Download
- Data
- Presets