Surgical Planning Laboratory -1- Brigham and Women’s Hospital Converting DTI data into Nrrd file format Sonia Pujol, Ph.D. Gordon.

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

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 Diffusion Tensor Imaging Sonia Pujol, Ph.D. Randy Gollub, M.D., Ph.D.
Slicer3 for developers – Sonia Pujol, Ph.D. -1- National Alliance for Medical Image Computing Programming into Slicer3 Sonia Pujol, Ph.D. Surgical Planning.
Surgical Planning Laboratory -1- Brigham and Womens Hospital Diffusion Tensor Imaging: from Dicom to Nrrd Sonia Pujol, Ph.D. Randy.
Surgical Planning Laboratory -1- Brigham and Womens Hospital Converting DTI data into Nrrd file format Sonia Pujol, Ph.D. Gordon.
NA-MIC National Alliance for Medical Image Computing © 2010, All Rights Reserved Diffusion Tensor Imaging Tutorial Sonia Pujol, Ph.D.
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 © 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 Slicer3 Tutorial / Registration Library: Case 29 - DTI converting and aligning diffusion.
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial / Registration Library: Case 03 - DTI aligning low-resolution diffusion.
-- CTSA at RSNA 2010 PET/CT Analysis using 3D Slicer Jeffrey Yap PhD Ron Kikinis MD Wendy Plesniak PhD PET/CT Visualization and Analysis.
NA-MIC National Alliance for Medical Image Computing Diffusion Imaging Quality Control with DTIPrep Martin Styner, PhD University of.
Slicer Welcome Tutorial
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 Slicer Tutorial Module: DTMRI Data: Dartmouth DTI May 26-27, 2005.
Diffusion Tensor Imaging (DTI) is becoming a routine technique to study white matter properties and alterations of fiber integrity due to pathology. The.
NA-MIC National Alliance for Medical Image Computing How To Integrate DTIPrep Into Diffusion-Weighted Image Pre- Processing Joy T.
Surgical Planning Laboratory -1- Brigham and Women’s Hospital Slicer Training 1 Loading and Viewing Data Sonia Pujol, Ph.D. Randy.
NA-MIC National Alliance for Medical Image Computing Non-rigid MR-CT Image Registration Atsushi Yamada, Dominik S. Meier and Nobuhiko.
Surgical Planning Laboratory -1- Brigham and Women’s Hospital Slicer Training 1: Loading and Viewing Data.
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 Fiducials Nicole Aucoin Brigham and Women's Hospital
-1- 3D Visualization. Sonia Pujol, Ph.D., Harvard Medical School National Alliance for Medical Image Computing 3D Visualization Sonia Pujol, Ph.D. Surgical.
Jeffrey Yap, PhD Ron Kikinis, MD Wendy Plesniak, PhD -1- CTSA at RSNA 2009 PET/CT Analysis using 3D Slicer Jeffrey Yap PhD Ron Kikinis MD Wendy Plesniak.
Surgical Planning Laboratory -1- Brigham and Women’s Hospital Slicer Training 10 EMAtlasBrainClassifier Sonia Pujol, Ph.D. Randy.
Pujol S., Plesniak, W. -1- National Alliance for Medical Image Computing Neuroimage Analysis Center Harvard CTSC Slicer3 minute tutorial Sonia Pujol, PhD.
NA-MIC National Alliance for Medical Image Computing DTI Atlas Registration via 3D Slicer and DTI-Reg Martin Styner, UNC Clement Vachet,
Image Guided Therapy in Slicer3 Planning for Image Guided Neurosurgery Nobuhiko Hata, PhD Slicer3 Training Compendium Neurosurgery Tutorial, N. Hata.
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 Registering Image Volumes in Slicer Steve Pieper.
Representing and Processing Scientific Data with Teem: Applications to CT and DT-MRI Gordon Kindlmann Representing and Processing Scientific Data with.
NA-MIC National Alliance for Medical Image Computing Hands-on Diffusion Tensor Imaging Training Randy Gollub, M.D, Ph.D. Massachusetts.
Slicer3 for developers – S.Pujol -1- National Alliance for Medical Image Computing Slicer3 Course for developers Sonia Pujol, Ph.D. Surgical Planning Laboratory.
Surgical Planning Laboratory -1- Brigham and Women’s Hospital Slicer Training 1 Loading and Viewing Data Sonia Pujol, Ph.D. Randy.
Exploring Peritumoral White Matter Fibers for Neurosurgical Planning Sonia Pujol, Ph.D. Ron Kikinis, M.D. Surgical Planning Laboratory Harvard University.
NA-MIC National Alliance for Medical Image Computing Shape analysis using spherical harmonics Lucile Bompard, Clement Vachet, Beatriz.
NA-MIC National Alliance for Medical Image Computing Using Annotations in Slicer 4.0 Yong Zhang, Kilian Pohl June 2010.
Programming into Slicer3. Sonia Pujol, Ph.D., Harvard Medical School National Alliance for Medical Image Computing ©
Image Guided Therapy in Slicer3 Planning for Image Guided Neurosurgery Nobuhiko Hata, Ph.D. Slicer3 Training Compendium Neurosurgery Tutorial, N. Hata.
NA-MIC National Alliance for Medical Image Computing Adding Orientation to itkImage.
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 A DW-MRI processing and visualization pipeline for NA-MIC Gordon Kindlmann Laboratory.
Diffusion Tensor Analysis in Slicer3
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 MR-guided prostate interventions using the NA-MIC Kit Danielle Pace, B.CmpH and Sota Oguro, M.D. Surgical.
Pujol S, Gollub R -1- National Alliance for Medical Image Computing Slicer3 Training Tutorial Python Stochastic Tractography Module Doug Terry, Julien.
National Alliance for Medical Image Computing NRRD (“nerd”) format: Nearly Raw Raster Data ASCII header + raw/ascii/gzip datafile(s)
Basic DTI analysis using the pipeline Kristi Clark January, 2008 Update: July, 2008.
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,
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
Dominik Meier, Ron Kikinis Sept. 2010
Core 3-1 Schizophrenia NA-MIC
shapeAnalysisMANCOVA_Wizard
3D Visualization of FreeSurfer Data
Session 1 Loading and Viewing Data
Interactive Editor tutorial
Presentation transcript:

Surgical Planning Laboratory Brigham and Women’s Hospital Converting DTI data into Nrrd file format Sonia Pujol, Ph.D. Gordon Kindlmann, Ph.D. Randy Gollub, M.D, Ph.D.

Surgical Planning Laboratory Brigham and Women’s Hospital Acknowledgments National Alliance for Medical Image Computing NIH U54EB Neuroimage Analysis Center NIH P41RR Laboratory of Mathematics in Imaging, Brigham and Women’s Hospital Thanks to Gordon Kindlmann

Surgical Planning Laboratory Brigham and Women’s Hospital Goal of the Tutorial Training on how to generate NRRD headers DTI data and validate the orientation information within Slicer.

Surgical Planning Laboratory Brigham and Women’s Hospital Which image is correct ?

Surgical Planning Laboratory Brigham and Women’s Hospital The right one is correct

Surgical Planning Laboratory Brigham and Women’s Hospital Overview Part 1: NRRD description Part 2: NRRD requirements Part 3: Generating NRRD Files Part 4: NRRD training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Women’s Hospital Background Challenge: Concise and standardized description of the information contained in DWI and DTI data. Current situation: –DICOM (Supplement 49) contains information on how to represent b-values and gradient directions of DWI –However no-one uses it: every vendor has their own unique way of archiving the relevant image acquisition parameters –The definition of the coordinate frame of the diffusion gradients (or the resulting estimated tensor) is not explicitly recorded in the header. –DICOM has no standard for tensors Proposed Solution: Nrrd format

Surgical Planning Laboratory Brigham and Women’s Hospital Nearly Raw Raster Data Image files that include a NRRD header to accurately represent N-dimensional raster data for scientific visualization and medical image processing. NA-MIC has developed a way of using the NRRD format to represent Diffusion Weighted Images (DWI) volumes and Diffusion Tensor Images (DTI) NRRD DWI and NRRD DTI data can be read into 3D Slicer: the software provides you a visual tool to confirm that the orientation of the tensors is consistent with expected neuroanatomy

Surgical Planning Laboratory Brigham and Women’s Hospital DTI Pipeline DWI images Diffusion Sensitizing Gradients Dxx Dxy Dxz Dyy Dyz Dzz DTI images

Surgical Planning Laboratory Brigham and Women’s Hospital Coordinate frames DWI and DTI Image Orientation (I,J,K) Diffusion Sensitizing Gradients (X,Y,Z) (I,J,K) Patient Space (R,A,S)

Surgical Planning Laboratory Brigham and Women’s Hospital Transformation matrices (X,Y,Z) (I,J,K) (R,A,S) T: XYZ  RAST: IJK  RAS

Surgical Planning Laboratory Brigham and Women’s Hospital NRRD Terminology (X,Y,Z)(I,J,K) (R,A,S) T: XYZ  RAS T: IJK  RAS

Surgical Planning Laboratory Brigham and Women’s Hospital Overview Part 1: NRRD description Part 2: NRRD requirements Part 3: Generating NRRD Files Part 4: NRRD training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Women’s Hospital DTI Requirements To generate a NRRD header for DTI data, you’ll need to know about the data representation and acquisition: DTI Volume characteristics Data Type Endianess Dimensions Disk Storage Axis Ordering Coordinate Frames DTI Image Orientation Gradient Measurement Frame Tensor coefficients Order of the tensor coefficients

Surgical Planning Laboratory Brigham and Women’s Hospital Overview Part 1: NRRD description Part 2: NRRD requirements Part 3: Generating NRRD Files Part 4: NRRD training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Women’s Hospital Generating NRRD Files Nrrd files can be generated from the Tk console of Slicer using the “unu” command line tool unu is part of set of libraries called “Teem” compiled into Slicer 2.6 ( Slicer includes NRRD reader to load DTI volumes in Nrrd format

Surgical Planning Laboratory Brigham and Women’s Hospital Unu syntax General Syntax: unu cmd -i input -o output Tips: “unu”  list of unu commands “unu cmd”  help on cmd

Surgical Planning Laboratory Brigham and Women’s Hospital Unu syntax: ‘make’ command ‘make’ syntax: unu make -i input -o output ‘make’ documentation: unu make  help on make

Surgical Planning Laboratory Brigham and Women’s Hospital Overview Part 1: NRRD description Part 2: NRRD requirements Part 3: Generating NRRD Files Part 4: NRRD training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Women’s Hospital Creating NRRD header for the DTI Training Data From the Analyze header, extract the: DTI Volume characteristics Data Type: Float  “--type float” Endianess: Big Endian  “--endian big” Dimensions:  “--size ” Disk Storage Axis Ordering: columns, rows, slices, tensor elements  “--kinds space space space 3d-symmetric-matrix” Tensor coefficients Order of the tensor coefficients: Dxx, Dyy, Dzz, Dxy,Dxz, Dyz

Surgical Planning Laboratory Brigham and Women’s Hospital DTI Training Data Coordinate Frames DTI Image Orientation: Right-Anterior-Superior  “--space ras” Tensors Measurement Frame T: XYZ  RAS  “--measurement frame (1,0,0) (0,1,0) (0,0,1)” Space Direction and SpaceOrigin T: IJK  RAS  --directions "( ,0.0,0.0) (0.0, ,0.0) (0.0,0.0,2.0) --origin "(0,0,0)"

Surgical Planning Laboratory Brigham and Women’s Hospital Complete unu Command unu make -h -i Tensors.img --size type float --encoding raw --endian big --space ras --spaceunit mm mm mm --measurementframe "(1,0,0)(0,1,0)(0,0,1)“ --directions "( ,0.0,0.0) (0.0, ,0.0) (0.0,0.0,2.0) none" --origin "(0,0,0)" | unu shuffle -a 3 -p o myTensors.nhdr

Surgical Planning Laboratory Brigham and Women’s Hospital Reordering the Tensor Coefficients Initial tutorial dataset 0:Dxx 1:Dyy 2:Dzz 3:Dxy 4:Dxz 5:Dyz Final tutorial dataset 0:Dxx 3:Dxy 4:Dxz 1:Dyy 5:Dyz 2:Dzz unu shuffle –a 3 –p

Surgical Planning Laboratory Brigham and Women’s Hospital Step1: Unu Command into Slicer Type the unu command directly in the Tk console of Slicer

Surgical Planning Laboratory Brigham and Women’s Hospital Step 2: Adding axis description You need to add an additionnal kinds field to the generated NRRD header to specify how the data is stored to disk (This is analogous to the “Intent” field in NIfTI file format)

Surgical Planning Laboratory Brigham and Women’s Hospital Step 2: Adding axis description Type the following Tcl commands: set file [open myTensors.nhdr a] puts $file “kinds: space space space 3d-symmetric-matrix” close $file

Surgical Planning Laboratory Brigham and Women’s Hospital Step 2: Axis description In this example kinds states that the data is stored with the tensors coefficients in the slowest axis.

Surgical Planning Laboratory Brigham and Women’s Hospital Step 3: Viewing the NRRD Header Type more MyNrrdFile.nhdr in the Tk console to display the content of the NRRD header you just made

Surgical Planning Laboratory Brigham and Women’s Hospital Step 3: Viewing the Nrrd Header Slicer displays the content of the Nrrd header

Surgical Planning Laboratory Brigham and Women’s Hospital Overview Part 1: NRRD description Part 2: NRRD requirements Part 3: Generating NRRD Files Part 4: NRRD training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Women’s Hospital Loading a NRRD Volume Click on Add Volume in the Main Panel of Slicer

Surgical Planning Laboratory Brigham and Women’s Hospital Loading a NRRD Volume Select Nrrd Reader in the Properties field Click on Browse and load the file myTensors.nhdr Click on Apply The Props Panel of the module Volumes appears.

Surgical Planning Laboratory Brigham and Women’s Hospital Loading a NRRD Volume Slicer loads the Nrrd Tensor

Surgical Planning Laboratory Brigham and Women’s Hospital Fractional Anisotropy Compute the Fractional Anisotropy from the Nrrd Tensor Volume using the DT-MRI module (Slicer Training 4)

Surgical Planning Laboratory Brigham and Women’s Hospital Corpus Callosum Tracts Seed tracts in the Corpus Callosum using the tractography tools from the DT-MRI module (Slicer Training 4)

Surgical Planning Laboratory Brigham and Women’s Hospital Corpus Callosum Tracts The orientation of the tracts within the Corpus Callosum confirms that the orientation information contained in the Nrrd file is correct.

Surgical Planning Laboratory Brigham and Women’s Hospital The right one is correct

Surgical Planning Laboratory Brigham and Women’s Hospital Conclusion Standardized description of the information contained in DWI and DTI data. Rapid, intuitive visual assessment of orientation results within Slicer Open-Source: