Automatic SPHARM Shape Analysis in 3D Slicer

Slides:



Advertisements
Similar presentations
Surgical Planning Laboratory -1- Brigham and Womens Hospital Slicer Tutorial 7 Saving Data Sonia Pujol, Ph.D. Randy Gollub, M.D.,
Advertisements

NA-MIC National Alliance for Medical Image Computing Slicer Tutorial Module: Segmentation May 26, 2005.
Pujol S, Gollub R -1- National Alliance for Medical Image Computing Stochastic Tractography Module Tri Ngo Slicer3 Training Compendium.
Surgical Planning Laboratory -1- Brigham and Womens Hospital Slicer 3 Tutorial The SPL Abdominal Atlas Ion-Florin Talos, M.D.
Slicer3 for developers – Sonia Pujol, Ph.D. -1- National Alliance for Medical Image Computing Programming into Slicer3 Sonia Pujol, Ph.D. Surgical Planning.
-1- iGyne1.0 Tutorial Xiaojun Chen, Ph.D. and iGyne Team Surgical Planning Laboratory, Brigham and Women's Hospital, Harvard Medical School Surgical Planning.
NA-MIC National Alliance for Medical Image Computing © 2010, All Rights Reserved Diffusion Tensor Imaging Tutorial Sonia Pujol, Ph.D.
National Alliance for Medical Image Computing © 2010, All Rights Reserved Sonia Pujol, PhD Slicer3Minute Tutorial Sonia.
National Alliance for Medical Image Computing © 2010, ARR Sonia Pujol, PhD Slicer3Minute Tutorial Slicer3 minute tutorial.
NA-MIC National Alliance for Medical Image Computing © 2010, All Rights Reserved Diffusion Tensor Imaging Tutorial Sonia Pujol, Ph.D.
Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage.
NA-MIC National Alliance for Medical Image Computing Connected Threshold Image Filter Salma Bengali, Alan Morris, Josh Cates, Rob.
NA-MIC National Alliance for Medical Image Computing CARMA Inhomogeneity Correction Filter Alan Morris, Eugene Kholmovski, Josh Cates,
NA-MIC National Alliance for Medical Image Computing [Tutorial Name] [List of authors] [Institution] [ of the first author]
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial / Registration Library: Case 03 - DTI aligning low-resolution diffusion.
NA-MIC National Alliance for Medical Image Computing [Tutorial Name] [List of authors] [Institution] [ of the first author]
Pohl K, Konukoglu E -1- National Alliance for Medical Image Computing Measuring Volume Change in Tumors Kilian M Pohl, PhD Ender Konugolu Slicer3 Training.
NA-MIC National Alliance for Medical Image Computing CMR Toolkit Threshold Model Module Salma Bengali, Alan Morris, Josh Cates, Rob.
NA-MIC National Alliance for Medical Image Computing Non-rigid MR-CT Image Registration Atsushi Yamada, Dominik S. Meier and Nobuhiko.
NA-MIC National Alliance for Medical Image Computing Interactive Editor tutorial Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard.
-1- Pujol S et al. National Alliance for Medical Image Computing 3D Visualization of FreeSurfer Data Sonia Pujol, Ph.D. Silas Mann, B.Sc. Randy Gollub,
-- CTSA at RSNA 2009 PET/CT Analysis using 3D Slicer Jeffrey Yap PhD Ron Kikinis MD Wendy Plesniak PhD Slicer3 Training Compendium.
NA-MIC National Alliance for Medical Image Computing shapeAnalysisMANCOVA_Wizar d Lucile Bompard, Clement Vacher, Beatriz Paniagua, Martin.
NA-MIC National Alliance for Medical Image Computing GAMBIT: Group-wise Automatic Mesh-Based analysis of cortIcal Thickness Clement Vachet,
Slicer3 Training Tutorial IA-FEMesh v1.0
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
NA-MIC National Alliance for Medical Image Computing Fiducials Nicole Aucoin Brigham and Women's Hospital
-1- National Alliance for Medical Image Computing University of North Carolina, Chapel Hill Neuro Image Research and Analysis Lab Cedric Mathieu, Clement.
-1- 3D Visualization. Sonia Pujol, Ph.D., Harvard Medical School National Alliance for Medical Image Computing 3D Visualization Sonia Pujol, Ph.D. Surgical.
NA-MIC National Alliance for Medical Image Computing DTI Atlas Registration via 3D Slicer and DTI-Reg Martin Styner, UNC Clement Vachet,
-1- Massachusetts General Hospital National Alliance for Medical Image Computing Using Plastimatch for Deformable Registration Gregory C. Sharp Department.
DICOM to NRRD Conversion Tutorial Martin Styner 1 University of North Carolina Neuro Image Research and Analysis Lab.
Sonia Pujol, PhD National Alliance for Medical Image Computing © 2010, ARR.
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial: Registration Library Case 14 Intra-subject Brain PET-MRI fusion.
PET/CT Analysis using 3D Slicer Jeffrey Yap PhD Ron Kikinis MD Wendy Plesniak PhD Slicer3 Training Compendium.
NA-MIC National Alliance for Medical Image Computing Non-rigid MR-CT Image Registration Atsushi Yamada, Dominik S. Meier and Nobuhiko.
NA-MIC National Alliance for Medical Image Computing BRAINSCut General Tutorial Eun Young(Regina) Kim University of Iowa
Slicer3 for developers – S.Pujol -1- National Alliance for Medical Image Computing Slicer3 Course for developers Sonia Pujol, Ph.D. Surgical Planning Laboratory.
UNC Shape Analysis Pipeline
NA-MIC National Alliance for Medical Image Computing Shape analysis using spherical harmonics Lucile Bompard, Clement Vachet, Beatriz.
Programming into Slicer3. Sonia Pujol, Ph.D., Harvard Medical School National Alliance for Medical Image Computing ©
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial: Registration Library Case 15 AC-PC Alignment Dominik Meier, Ron.
NA-MIC National Alliance for Medical Image Computing Diffusion Tensor Imaging tutorial Sonia Pujol, PhD Surgical Planning Laboratory.
NA-MIC National Alliance for Medical Image Computing PV Antrum Cut Filter Alan Morris, Salma Bengali, Greg Gardner, Josh Cates, Rob.
NA-MIC National Alliance for Medical Image Computing NA-MIC UNC Guido Gerig, Martin Styner, Isabelle Corouge
Sonia Pujol, PhD -1- National Alliance for Medical Image Computing Neuroimage Analysis Center Diffusion Tensor Imaging tutorial Sonia Pujol, Ph.D. Surgical.
Surgical Planning Laboratory -1- Brigham and Women’s Hospital 3DSlicer Hands-on session Sonia Pujol, Ph.D.
-1- National Alliance for Medical Image Computing Slicer3 Training Tutorial ARCTIC (v1.2) (Automatic Regional Cortical ThICkness) ‏ University of North.
NA-MIC National Alliance for Medical Image Computing A longitudinal study of brain development in autism Heather Cody Hazlett, PhD Neurodevelopmental.
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial Nonrigid Atlas Registration Dominik Meier, Ron Kikinis February.
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial Registration Library Case 06: Breast Cancer Follow-up Dominik Meier,
NA-MIC National Alliance for Medical Image Computing BRAINSCut General Tutorial Eun Young(Regina) Kim University of Iowa
Standard Response Evaluation Criteria in Solid Tumors (RECIST) using 3D Slicer Slicer3 Training Compendium Image here. Jeffrey Yap, PhD Wendy Plesniak,
Department of Psychiatry, Department of Computer Science, 3 Carolina Institute for Developmental Disabilities 1 Department of Psychiatry, 2 Department.
1 Berger Jean-Baptiste
Surgical Planning Laboratory -1- Brigham and Women’s Hospital Slicer Tutorial 4 Module: DTMRI Data: Sample Slicer DTI Sonia Pujol,
3D Visualization Sonia Pujol, Ph.D. Instructor of Radiology
Fiber Bundle Volume Measurement
Cardiac Agatston Scoring
Non-rigid MR-CT Image Registration
DTIAtlasFiberAnalyzer Tutorial
shapeAnalysisMANCOVA_Wizard
Tobias Heimann - DKFZ Ipek Oguz - UNC Ivo Wolf - DKFZ
3D Visualization of FreeSurfer Data
The SPL Abdominal Atlas
Slicer 3 Tutorial The SPL Abdominal Atlas
Tumor Segmentation from DCE-MRI with OpenCAD
Igyne Tutorial Xiaojun Chen, Ph.D.1 Jan Egger, Ph.D., Ph.D.1
[Tutorial Name] [List of authors] [Institution]
Interactive Editor tutorial
Presentation transcript:

Automatic SPHARM Shape Analysis in 3D Slicer 06/11/10 Automatic SPHARM Shape Analysis in 3D Slicer Corentin Hamel, Clement Vachet, Beatriz Paniagua, Nicolas Augier, Martin Styner University of North Carolina, Chapel Hill: Neuro Image Research and Analysis Lab corentin.hamel@cpe.fr NA-MIC Tutorial Contest: Summer 2010

Learning Objective Be able to perform shape analysis studies 06/11/10 Learning Objective Be able to perform shape analysis studies Learn how to: Load input file Run the ShapeAnalysisModule Display output scenes

06/11/10 Pre-requisite This tutorial assumes that you have already completed the tutorial Data Loading and Visualization. Tutorials for Slicer3 are available at the following location: • Slicer3 tutorials http://www.na-mic.org/Wiki/index.php/Slicer3.2:Training

06/11/10 Material This tutorial requires the installation of the Slicer3.6 release, BatchMake, some external applications and the tutorial dataset. They are available at the following locations: Slicer3.6 download page http://www.slicer.org/pages/Downloads/ BatchMake download page (BatchMake 1.0.6) http://www.batchmake.org/batchmake/resources/software.html External applications download page (spharm-pdm v1.9 Linux32.zip or Linux64.zip )‏ http://www.nitrc.org/projects/spharm-pdm Tutorial dataset download page (spharm-pdm v1.9 ShapeAnalysis_Data_Example.zip) Disclaimer: It is the responsibility of the user of Slicer to comply with both the terms of the license and with the applicable laws, regulations, and rules. 4

This tutorial has been developed and performed on Linux. 06/11/10 Platform This tutorial has been developed and performed on Linux.

Material: External Applications 06/11/10 Material: External Applications Executables are in spharm-pdm_Linux32or64.zip Donwload and unzip this file somewhere in your computer. A “spharm-pdm_linux32or64” folder will be created, containing executables needed to perform the shape analysis. Executables are: ShapeAnalysisModule, SegPostProcessCLP, GenParaMeshCLP, ParaToSPHARMMeshCLP and MeshMath.

Materials: Data Example 06/11/10 Materials: Data Example Download the data locates in ShapeAnalysis_Data_Example.zip Unzip this file somewhere in your computer. A “ShapeAnalysis_Data_Example/origData” folder will be created containing two set of binary segmentation of hippocampus. Modify the CSV file, replace the path of the data by your path e.g: /.../ShapeAnalysis_Data_Example/origData/groupA_01_hippo.gipl.gz The first line of the CSV file, needs to be the headers of the columns.

Prerequisites Add the external applications in your PATH 06/11/10 Prerequisites Add the external applications in your PATH tcsh usage : setenv PATH /../spharm-pdm_linux32or64/:${PATH} bash usage : export PATH=/../spharm-pdm_linux32or64/:${PATH} Add the BatchMake Applications (two different ways): Add the folder BatchMake_Applications in the same folder as the ShapeAnalysisModule executable Set the environnement variable BatchMake_Applications tcsh usage : setenv BatchMake_Application /../spharm-pdm_linux32or64/BatchMake_Applications bash usage : export BatchMake_Application=/../sphar-pdm_linux32or64/BatchMake_Applications -

Prerequisites Add ShapeAnalysisModule as Slicer3 external module 06/11/10 Prerequisites Add ShapeAnalysisModule as Slicer3 external module - Open Slicer3 - Go to View → Application Settings →Module Settings - Click on the “add a preset” button - Select the “spharm-pdm_Linux32or64” folder and confirm - Close Slicer3

Overview 1- Input file 2- Pipeline description 06/11/10 Overview 1- Input file 2- Pipeline description 3- Output images and organisation 4- Execution within Slicer 5- Command line execution

Overview 1- Input file 2- Pipeline description 06/11/10 Overview 1- Input file 2- Pipeline description 3- Output images and organisation 4- Execution within Slicer 5- Command line execution

Input File The input file: The data are: 06/11/10 Input File The input file: Is a CSV file (Comma Separated Value)‏ Contains all the information concerning the subject e.g: Age, Group, MRI... Contains the path of all the data e.g: /devel/linux/ShapeTools/hippocampi/GroupA_01.gipl.gz The first line of the CSV file, needs to be the headers of the columns. The data are: A set of binary segmentation of a single brain structure Fig: a CSV file

Overview 1- Input file 2- Pipeline description 06/11/10 Overview 1- Input file 2- Pipeline description 3- Output file and organisation 4- Execution within Slicer 5- Command line execution

Pipeline Description 06/11/10 Input file: CSV file Output file: CSV file + MRML scenes

Pipeline Description •Post Process Segmentation •GenParaMesh 06/11/10 Pipeline Description •Post Process Segmentation Fills interior holes Performs minimal smoothing operation and ensures spherical topology •GenParaMesh Processed binary segmentations are converted to raw surfaces meshes A spherical parametrization is computed •ParaToSPHARMMesh The SPHARM description with inherent correspondence is then computed from the mesh and its spherical parametrization Triangulated surfaces with correspondences are computed next (SPHARM-PDM) via icosahedron of the spherical parametrization

Overview 1- Input file 2- Pipeline description 06/11/10 Overview 1- Input file 2- Pipeline description 3- Output files and organisation 4- Execution within Slicer 5- Command line execution

Output files and organisation 06/11/10 Output files and organisation A CSV file: Contains all the information from the input file Contains the path of the output images Three MRML scenes: Scene display within Slicer3 Allow the user to visualize all the data in the same scene Images Binary 3D Images Surfaces Meshes Aligned surface meshes

Output files and organisation 06/11/10 Output files and organisation BatchMake_Scripts/ -ShapeAnalysisModule.bms -ShapeAnalysisModuleMRML.bms PostProcess/ - data.gipl.gz Mesh/ SPHARM/ -data_para.vtk -data_surf_paraPhi.txt -data_surf_paraTheta.txt -data_surf_para.vtk -data_surfSPHARM.coef -data_surfSPHARM_ellalign.coef -data_surfSPHARM_ellalign.vtk -data_surfSPHARM_procalign.vtk -data_surfSPHARM.vtk Input file directory/ Output/ - ShapeAnalysisModule_OutputFile.csv Template/ - same files as SPHARM/ MRML/ - ShapeAnalysisModuleMRMLScene.mrml - ShapeAnalysisModuleMRMLScene_ellalign.mrml - ShapeAnalysisModuleMRMLScene_procalign.mrml

Overview 1- Input file 2- Pipeline description 06/11/10 Overview 1- Input file 2- Pipeline description 3- Output files and images 4- Execution within Slicer 5- Command line execution

Execution within Slicer 06/11/10 Execution within Slicer 1- Select the “ShapeAnalysisModule” in Modules ->Shape Analysis. 2- Click on Input File

Execution within Slicer 06/11/10 Execution within Slicer 2.1- Select the input file (CSV file)‏ 2.2- Click on the “Open” button

Execution within Slicer 06/11/10 Execution within Slicer 1- Select the “ShapeAnalysisModule” in Modules ->Shape Analysis. 2- Click on Input File. 3- Click on the Output Directory.

Execution within Slicer 06/11/10 Execution within Slicer 3.1- Select the output directory. 3.2- Click on the “Save” button.

Execution within Slicer 06/11/10 Execution within Slicer 1- Select the “ShapeAnalysisModule” in Modules ->Shape Analysis. 2- Click on Input File. 3- Click on the Output Directory. 4- Set the enforced spacing in x,y and z direction before any processing.

Execution within Slicer 06/11/10 Execution within Slicer 1- Select the “ShapeAnalysisModule” in Modules ->Shape Analysis. 2- Click on Input File. 3- Click on the Output Directory. 4- Set the the enforced spacing in x,y and z direction before any processing. 5- (optionnal) Check the box the “Label Number” and set the “Value” to first extract this label before processing.

Execution within Slicer 06/11/10 Execution within Slicer 1- Select the “ShapeAnalysisModule” in Modules ->Shape Analysis. 2- Click on Input File. 3- Click on the Output Directory. 4- Set the the the enforced spacing in x,y and z direction before any processing. 5- (optionnal) Check the box the “Label Number” and set the “Value” to first extract this label before processing. 6- Set the “Number of Iterations”

Execution within Slicer 06/11/10 Execution within Slicer 1- Select the “ShapeAnalysisModule” in Modules ->Shape Analysis. 2- Click on Input File. 3- Click on the Output Directory. 4- Set the the the enforced spacing in x,y and z direction before any processing. 5- (optionnal) Check the box the “Label Number” and set the “Value” to first extract this label before processing. 6- Set the “Number of Iterations”. 7- Set the subdivision level for the icosahedron subdivision. 8- Set the maximal degree for the SPHARM computation.

Execution within Slicer 06/11/10 Execution within Slicer 1- Select the “ShapeAnalysisModule” in Modules ->Shape Analysis. 2- Click on Input File. 3- Click on the Output Directory. 4. Set the the the enforced spacing in x,y and z direction before any processing. 5- (optionnal) Check the box the “Label Number” and set the “Value” to first extract this label before processing. 6- Set the “Number of Iterations”. 7- Set the subdivision level for the icosahedron subdivision. 8- Set the the maximal degree for the SPHARM computation. 9- Click on the  “Apply” button to process the data.

Execution within Slicer 06/11/10 Execution within Slicer Load the MRML scenes: 1- Click on File -> Load Scene.

Execution within Slicer 06/11/10 Execution within Slicer 2- Go in ShapeAnalysis_Results/MRML/ 3- Select one of the three MRML scene 4- Click on the “Open” button

Execution within Slicer 06/11/10 Execution within Slicer

Execution within Slicer 06/11/10 Execution within Slicer All the data are displayed with their name

Execution within Slicer 06/11/10 Execution within Slicer Display the color map: 1. Click on the ”Snapshots” button 2. Select Color Map Phi or Color Map Theta 3. Click on Restore

Execution within Slicer 06/11/10 Execution within Slicer

Execution within Slicer 06/11/10 Execution within Slicer You can recompute the modules of the ShapeAnalysisModule pipeline. Check one (or more) box Click on the “Apply” button to recompute

Execution within Slicer 06/11/10 Execution within Slicer Input file By default the first column containing a volume file (.vtk, .meta etc..) is computed. But if you have multiple file in your CSV file you can choose the column of the input data files. Check the box and enter the column. Post Process Segmentation You can apply a Gaussian filter. Check the box and set the value of the variance

Execution within Slicer 06/11/10 Execution within Slicer Parameters to SPHARM Mesh 1. You can choose to set the template (by default the template is the first data computed)‏ - Flip template is used to test all possible flips of the parametrization along the first order ellipsoid axis and select the one whose reconstruction has minimal distance to the flip-template - Reg template - Mean Template: a mean file is computed and use as a template. -ParaOut is use to write The spherical icosahedron subdivision, as well as local phi and theta attribute files for the quality control visualization. 2. Youn can choose to flip of the parametrization along different axis.

Overview 1- Input file 2- Pipeline description 06/11/10 Overview 1- Input file 2- Pipeline description 3- Output files and images 4- Execution within Slicer 5- Command line execution

Command line execution 06/11/10 Command line execution The module can also be use as a command line tool: ShapeAnalysisModule --sx 0.5 --sy 0.5 --sz 0.5 --label 1 --NumberofIterations 1000 -- SubdivLevelValue 10 --SPHARMDegreeValue 15 --columVolumeFile 0 --varX 10 -- varY 10 --varZ 10 --flipTemplate None --regTemplate None --paraOutTemplate -- noFlip /home/hamelc/ShapeAnalysisModule/InputFile_ShapeAnalaysis.csv /home/hamelc/ShapeAnalysisModule/ShapeAnalysisTest/ShapeAnalysis_Results

06/11/10 Conclusion The ShapeAnalysisModule is a 3D Slicer module that allows efficient computation of structural shape analysis via the SPHARM-PDM UNC pipeline including intuitive quality control visualizations. Thanks to this tutorial your are now able to perform shape analysis on your own dataset. 40

Acknowledgments National Alliance for Medical Image Computing 06/11/10 Acknowledgments National Alliance for Medical Image Computing NIH U54EB005149 UNC Chapel Hill Neuro Image Research Analysis Laboratories 41