540 likes | 968 Views
3D Slicer Training Compendium. Using Plastimatch for Deformable Registration. Tutorial Version 1.0, Apr 26, 2010. Gregory C. Sharp Department of Radiation Oncology Massachusetts General Hospital. Learning Objective. This tutorial is a step-by-step guide, and includes:
E N D
3D Slicer Training Compendium Using Plastimatch forDeformable Registration Tutorial Version 1.0, Apr 26, 2010 Gregory C. Sharp Department of Radiation OncologyMassachusetts General Hospital
Learning Objective This tutorial is a step-by-step guide, and includes: 1) Downloading the Plastimatch extension to 3D Slicer 2) Loading the sample images 3) Running deformable registration on the CPU 4) Running deformable registration on the GPU 5) Inspecting registration quality in 3D Slicer The plastimatch web site is: http://plastimatch.org
Prerequisites This tutorial assumes that you have already downloaded the sample data. You can get the data from here: http://forge.abcd.harvard.edu/gf/download/frsrelease/85/1004/rider-lung-images.tar.gz
(This part of the tutorial might not workcorrectly, pending the Slicer 3.6 release)
Start up 3D Slicer Choose “Extension Manager”from the “View” menu
Find the plastimatch plugin,and click “Select” Then, click “Download and Install”
The “Status” should become green Click “Next”
Select (highlight) both example files: fix.nrrd and mov.nrrd Then click “Open”
We want to look at how well the images are aligned before we start 3D Slicer can view a “foreground” (F) and “background” (B) image at the same time. After loading, (F) is set to “None” in all views.
Click, and select “fix” as the foreground image.Repeat for all three views.
Use the “Manipulate Slice Views” slider to blend between foreground and background
We can now see the alignment of the images. To see it better, we need to increase the viewport size. Click on the layout chooser button
Much better! Next we're going to try color blending. Choose the “Volumes module.
We're going to modify the color of the moving volume. Choose “mov”as the active volume.
Choose “B-spline deformableregistration” from the “Plastimatch” section
Set “Fixed Volume” to “fix” Set “Moving Volume” to “mov” Set “Output Volume” to “Create New Volume”
Click “Apply” (You might need to scroll down)
Check the status in the status bar With a Tesla C1060 GPU, the registration takes 6 seconds A laptop might take 1 or 2 minutes
When the registration is complete, the warped image is automatically displayed
You have to set the foreground view again to see the registration quality
Click on “Enable Stage 2” Then click “Apply” This takes 12 seconds on the Tesla C1060. Might be 3-4 minutes on a laptop.
Your results should look like this. Note improvement in the alignment of the mediastinum
By default, plastimatch optimizes Mean-squared error (MSE). But you can choose Mutual Information (MI) instead
By default, plastimatch uses the GPU. But you can choose to use the CPU instead. Plastimatch CPU uses OpenMP to take advantage of modern multi-core systems However, in Plastimatch 1.4, mutual information does not take advantage of the GPU, nor is it multi-threaded.
In our tutorial, the images were sufficiently well aligned that we could use B-spline registration. But if they are not well aligned, you can do a “rough alignment” using translation, rigid, or affine registration. Click “Enable Stage 0” to enable the rough alignment.
For each stage, you can modify the subsampling rate, grid size, and maximum iterations Decreasing the subsampling rate improves accuracy Increasing the subsampling rate improves reliability
Decreasing max iterations improves registration speed Increasing max iterations improves registration accuracy
Decreasing the grid spacing improves accuracy Increasing the grid spacing improves reliability
Conclusion Congratulations! You have completed the tutorial. Please send corrections or suggestions to: Greg Sharpgcsharp@partners.org Or visit the web page at: http://plastimatch.org
Acknowledgements National Alliance for Medical Image Computing NIH U54EB005149 National Institutes of Health NIH / NCI 6-PO1 CA 21239 Federal share of program income earned by MGH on C06CA059267 Progetto Rocca Foundation A collaboration between MIT and Politecnico di Milano