Surgical Planning Laboratory -1- Brigham and Womens Hospital Diffusion Tensor Imaging: from Dicom to Nrrd Sonia Pujol, Ph.D. Randy.

Slides:



Advertisements
Similar presentations
EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
Advertisements

Números.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
PDAs Accept Context-Free Languages
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala
EuroCondens SGB E.
Worksheets.
Slide 1Fig 26-CO, p.795. Slide 2Fig 26-1, p.796 Slide 3Fig 26-2, p.797.
Sequential Logic Design
Copyright © 2013 Elsevier Inc. All rights reserved.
Addition and Subtraction Equations
Pujol S, Gollub R -1- National Alliance for Medical Image Computing Data Loading and Visualization Sonia Pujol, PhD Randy Gollub, MD, PhD Slicer3 Training.
Surgical Planning Laboratory -1- Brigham and Womens Hospital Slicer Tutorial 7 Saving Data Sonia Pujol, Ph.D. Randy Gollub, M.D.,
Pujol S, Gollub R -1- National Alliance for Medical Image Computing Data Loading and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard.
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.
David Burdett May 11, 2004 Package Binding for WS CDL.
Create an Application Title 1Y - Youth Chapter 5.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
CHAPTER 18 The Ankle and Lower Leg
ASCII stands for American Standard Code for Information Interchange
The 5S numbers game..
突破信息检索壁垒 -SciFinder Scholar 介绍
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Break Time Remaining 10:00.
The basics for simulations
PP Test Review Sections 6-1 to 6-6
1 IMDS Tutorial Integrated Microarray Database System.
1 Prediction of electrical energy by photovoltaic devices in urban situations By. R.C. Ott July 2011.
Dynamic Access Control the file server, reimagined Presented by Mark on twitter 1 contents copyright 2013 Mark Minasi.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Progressive Aerobic Cardiovascular Endurance Run
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
TCCI Barometer September “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
When you see… Find the zeros You think….
2011 WINNISQUAM COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=1021.
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
1 GIS Maps and Tax Roll Submission. 2 Exporting A New Shapefile.
Subtraction: Adding UP
Numeracy Resources for KS2
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Figure 10–1 A 64-cell memory array organized in three different ways.
Static Equilibrium; Elasticity and Fracture
Converting a Fraction to %
Resistência dos Materiais, 5ª ed.
Clock will move after 1 minute
& dding ubtracting ractions.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Select a time to count down from the clock above
1.step PMIT start + initial project data input Concept Concept.
WARNING This CD is protected by Copyright Laws. FOR HOME USE ONLY. Unauthorised copying, adaptation, rental, lending, distribution, extraction, charging.
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
Chart Deception Main Source: How to Lie with Charts, by Gerald E. Jones Dr. Michael R. Hyman, NMSU.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Introduction Embedded Universal Tools and Online Features 2.
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
Surgical Planning Laboratory -1- Brigham and Women’s Hospital Converting DTI data into Nrrd file format Sonia Pujol, Ph.D. Gordon.
Presentation transcript:

Surgical Planning Laboratory Brigham and Womens Hospital Diffusion Tensor Imaging: from Dicom to Nrrd Sonia Pujol, Ph.D. Randy Gollub, M.D., Ph.D. National Alliance for Medical Image Computing

Surgical Planning Laboratory Brigham and Womens Hospital Acknowledgments National Alliance for Medical Image Computing NIH U54EB Neuroimage Analysis Center NIH P41RR Laboratory of Mathematics in Imaging, Brigham and Womens Hospital Thanks to Dr. Gordon Kindlmann Dartmouth Hitchcock Medical Center Thanks to Dr. Andy Saykin

Surgical Planning Laboratory Brigham and Womens Hospital Raw Data Goal of the Tutorial Training on how to convert DICOM DWI data to the Nrrd File format, compatible with Slicer visualization and analysis Raw Data Nrrd Header Dicom Header Raw Data

Surgical Planning Laboratory Brigham and Womens Hospital Overview Part 1: DWI data specificity Part 2: Nrrd description Part 3: Generating Nrrd Files Part 4: Working with DICOM DWI training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Womens Hospital Diffusion Weighted Imaging The signal is dimmer when the direction of the applied gradient is parallel to the principal direction of diffusion. Diffusion Sensitizing Gradients Diffusion Weighted Images

Surgical Planning Laboratory Brigham and Womens Hospital Diffusion Weighted Imaging (DWI) Example: Correlation between the orientation of the 11 th gradient and the signal intensity in the Splenium of the Corpus Callosum

Surgical Planning Laboratory Brigham and Womens Hospital Diffusion Weighted Imaging (Stejskal and Tanner 1965, Basser 1994 ) {Si} represent the signal intensities in presence of the diffusion sensitizing gradients gi b is the diffusion weighted parameter Diffusion Weighted Images

Surgical Planning Laboratory Brigham and Womens Hospital Background Challenge: Concise and standardized description of the information contained in DWI data. Current situation: –DICOM (Supplement 49) contains information on how to represent b-value and gradient directions of DWI –However every MR Scanner manufacturer has their own unique way of archiving the relevant image acquisition parameters –The definition of the coordinate frame of the diffusion gradients is not explicitly recorded in the header Proposed Solution: Nrrd format

Surgical Planning Laboratory Brigham and Womens Hospital Which image is correct ?

Surgical Planning Laboratory Brigham and Womens Hospital Which image is correct ?

Surgical Planning Laboratory Brigham and Womens Hospital The left one is correct

Surgical Planning Laboratory Brigham and Womens Hospital Overview Part 1: DWI data specificity Part 2: Nrrd description Part 3: Generating Nrrd Files Part 4: Working with DICOM DWI training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Womens Hospital Nearly Raw Raster Data (Nrrd) The flexible Nrrd format includes a single header file and image file(s) that can be separate or combined. A Nrrd header accurately represents N-dimensional raster information for scientific visualization and medical image processing. Raw Data Nrrd Header +

Surgical Planning Laboratory Brigham and Womens Hospital Nrrd file format NA-MIC has developed a robust way of using the Nrrd format to represent DWI volumes

Surgical Planning Laboratory Brigham and Womens Hospital Nrrd file format DWI data written into Nrrd format with appropriate parameters can be read into 3D Slicer

Surgical Planning Laboratory Brigham and Womens Hospital Coordinate Frames Diffusion Weighted Images Diffusion Sensitizing Gradients (X,Y,Z)(I,J,K) Courtesy G.Kindlmann

Surgical Planning Laboratory Brigham and Womens Hospital Coordinate Frames DWI Image Orientation (I,J,K) Diffusion Sensitizing Gradients (X,Y,Z) (I,J,K) Patient Space Courtesy G.Kindlmann

Surgical Planning Laboratory Brigham and Womens Hospital Transformation matrices T: IJK RAS (X,Y,Z) (I,J,K) T: XYZ RAS (R,A,S) Courtesy G.Kindlmann

Surgical Planning Laboratory Brigham and Womens Hospital Nrrd Terminology T: XYZ RAS (X,Y,Z)(I,J,K) (R,A,S) T: IJK RAS Courtesy G.Kindlmann

Surgical Planning Laboratory Brigham and Womens Hospital Nrrd requirements for DWI data To generate a Nrrd header for DWI data, youll need to know information about data representation: DWI Volume characteristics –Data Type –Endianess –Dimensions Disk Storage –Axis Ordering

Surgical Planning Laboratory Brigham and Womens Hospital Nrrd requirements for DWI data To generate a Nrrd header for DWI data, youll need to know the acquisition parameters: Coordinate Frames –DWI Image Orientation –Gradient Measurement Frame

Surgical Planning Laboratory Brigham and Womens Hospital Overview Part 1: DWI data specificity Part 2: Nrrd description Part 3: Generating Nrrd Files Part 4: Working with DICOM DWI training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Womens 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 Slicer includes a Nrrd reader to load DWI volumes in Nrrd format

Surgical Planning Laboratory Brigham and Womens 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 Womens 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 Womens Hospital Running unu on Windows To run the unu command from the Tk console, type unu. On Windows, you do not need to be in the directory win32/bin/teem-build/bin the unu commands run from any location.

Surgical Planning Laboratory Brigham and Womens Hospital Running unu on Mac/Linux/Solaris To run the unu command from the Tk console, you need to enter the whole path to the /bin directory Ex: Mac../slicer2.6-opt-darwin-ppc /Lib/darwin-ppc/teem-build/bin

Surgical Planning Laboratory Brigham and Womens Hospital Overview Part 1: DWI data specificity Part 2: Nrrd description Part 3: Generating Nrrd Files Part 4: Working with DICOM DWI training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Womens Hospital DICOM DWI Training Data 2 Baselines and 12 Gradients 504 DICOM images named S4.xxx where xxx is the image number

Surgical Planning Laboratory Brigham and Womens Hospital DWI Training Data Type the command cd and enter the path to your data in the Tk Console. Type ls to list all the data files.

Surgical Planning Laboratory Brigham and Womens Hospital DWI Training Data The dataset is composed of 504 images named S4.xxx

Surgical Planning Laboratory Brigham and Womens Hospital unu make -h --input S4.%03d encoding raw --byteskip -1 Unu command (Windows) Type the unu command with the input, encoding and byteskip fields Min index Max index Increment 2D Image Read backwards from end of file Do not hit Enter

Surgical Planning Laboratory Brigham and Womens Hospital unu make -h --input S4.%03d encoding raw --byteskip -1 Unu command (Mac/Linux) Type the unu command with the input, encoding and byteskip fields Min index Max index Increment 2D Image Read backwards from end of file slicer2.6-opt-darwin-ppc /Lib/darwin- ppc/teem-build/bin

Surgical Planning Laboratory Brigham and Womens Hospital Numbers as file naming convention (*) % is a special character to be replaced by the specific file number (cf C/C++ printf command) %03d means a 3 digit number with zero padding: Padding means there will be zeros instead of spaces at the beginning of the number Ex: %03d S4.001 for file number 1 %03d S4.024 for file number 24 This is a compact way to refer to the whole image sequence (*) Background information unu make -h --input S4.%03d encoding raw --byteskip -1

Surgical Planning Laboratory Brigham and Womens Hospital Read the DICOM Header Click on AddVolume

Surgical Planning Laboratory Brigham and Womens Hospital Select the Properties Dicom The Props panel appears. Read the DICOM Header

Surgical Planning Laboratory Brigham and Womens Hospital Click on Select Dicom Volume and browse to load the dataset located in the directory dwi-dicom The Dicom Props panel appears. Read the DICOM Header

Surgical Planning Laboratory Brigham and Womens Hospital Slicer displays the list of Dicom files in the directory. Click on OK Read the Dicom Header

Surgical Planning Laboratory Brigham and Womens Hospital Click on Extract Header to display the content of the Dicom Header. Read the Dicom Header

Surgical Planning Laboratory Brigham and Womens Hospital Slicer displays the content of the Dicom Header. This information will be used to generate the Nrrd header. Read the Dicom Header

Surgical Planning Laboratory Brigham and Womens Hospital Extract the values corresponding to the following information: - Data Type - Endianess - Image Dimensions Extracting the volume characteristics

Surgical Planning Laboratory Brigham and Womens Hospital - Data Type: Short - Endianess: Little Extracting the volume characteristics

Surgical Planning Laboratory Brigham and Womens Hospital Unu Command Add the fields endian and type to the unu command --endian little --type short

Surgical Planning Laboratory Brigham and Womens Hospital The dataset was acquired with Nb=2 Baselines and Ng=12 Gradients Extracting the volume characteristics Image Dimensions: 256 pixels x 256 pixels

Surgical Planning Laboratory Brigham and Womens Hospital DICOM DWI Training Data 2 Baselines and 12 Gradients 504 DICOM images named S4.xxx where xxx is the image number

Surgical Planning Laboratory Brigham and Womens Hospital The dataset was acquired with Nb=2 Baselines and Ng=12 Gradients n=NbxNg = = 14 intensity values/voxel N Slices = N dicomImages /n = 504/14 = 36 slices Extracting the volume characteristics Image Dimensions: 256 pixels x 256 pixels

Surgical Planning Laboratory Brigham and Womens Hospital Unu Command --size centering cell cell cell none Medical images are cell-centered samples Add the fields size and centering to the unu command

Surgical Planning Laboratory Brigham and Womens Hospital Slice Thickness Extract the slice thickness from the Dicom header

Surgical Planning Laboratory Brigham and Womens Hospital Slice Thickness slice thickness = 3.00 mm

Surgical Planning Laboratory Brigham and Womens Hospital Slice Thickness --thickness nan nan 3.0 nan Add the field thickness to the unu command

Surgical Planning Laboratory Brigham and Womens Hospital Building the transformation matrices We specifically change orientation from the DICOM default of Left Posterior-Superior (LPS) to Right-Anterior-Superior (RAS) so that the data can be viewed in Slicer coordinate space DICOM: LPSSLICER: RAS

Surgical Planning Laboratory Brigham and Womens Hospital Space Directions Add the field space to the unu command --space right-anterior-superior

Surgical Planning Laboratory Brigham and Womens Hospital Space Directions Extract the pixel size from the Dicom Header.

Surgical Planning Laboratory Brigham and Womens Hospital Space Directions Pixel size = mm x mm The dataset was acquired with Superior-Inferior slice ordering

Surgical Planning Laboratory Brigham and Womens Hospital Space Directions --directions ( ,0,0) (0, ,0) (0,0,-3) none Add the fields directions and unit to the unu command DICOM: LPSSLICER: RAS

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Courtesy G.Kindlmann The space origin is the position of the first pixel in the first image. This information is contained in the Dicom Header of the first slice.

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin The space origin information is located in the Dicom header [ 0020,0032, Image Position Patient ] Courtesy G.Kindlmann

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Click on Cancel to come back to the Main menu Create a directory called FirstSlice and copy the first file S4.001 of the Dicom-dwi dataset

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Click Add Volume select the tab Props, and the format DICOM

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Click on Select DICOM Volume Select the directory / FirstSlice containing the first slice

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Click on List Headers to display the content of the header of the first image.

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Slicer displays the content of the header of the first image.

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Scroll down to display the value of the tag [0020,0032, Image Position Patient ]

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin [0020,0032, Image Position Patient ] = , , 79.30

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin Click on OK to close the Dicom Header Window

Surgical Planning Laboratory Brigham and Womens Hospital Space Origin --origin "(+125.0, ,79.30)" Add the field origin to the unu command DICOM: LPSSLICER: RAS

Surgical Planning Laboratory Brigham and Womens Hospital Measurement Frame

Surgical Planning Laboratory Brigham and Womens Hospital Measurement Frame

Surgical Planning Laboratory Brigham and Womens Hospital Measurement Frame --measurementframe (0,-1,0) (1,0,0) (0,0,-1)" Add the field measurement frame to the unu command

Surgical Planning Laboratory Brigham and Womens Hospital Axis Ordering Courtesy G.Kindlmann

Surgical Planning Laboratory Brigham and Womens Hospital Axis Ordering --kind space space space list Add the field kinds to the unu command Axis Ordering: columns, rows, slices, intensity values

Surgical Planning Laboratory Brigham and Womens Hospital Output File Add the field output to the unu command --output myNrrdDWI.nhdr

Surgical Planning Laboratory Brigham and Womens Hospital Output File Type ls in the Tk Console The file myNrrdDWI.nhdr is listed in the directory

Surgical Planning Laboratory Brigham and Womens Hospital Acquisition parameters Open the file MyNrrdDWI.nhdr with a text Editor

Surgical Planning Laboratory Brigham and Womens Hospital Acquisition parameters Open a web browser at the location

Surgical Planning Laboratory Brigham and Womens Hospital Acquisition parameters Copy the acquisition parameters from this wiki page to the end of the file MyNrrdDWI.nhdr, hit Enter and save the resulting file

Surgical Planning Laboratory Brigham and Womens Hospital Result Final result of the tutorial: Nrrd header for the DWI training dataset

Surgical Planning Laboratory Brigham and Womens Hospital Overview Part 1: DWI data specificity Part 2: Nrrd description Part 3: Generating Nrrd Files Part 4: Working with DICOM DWI training data Part 5: Orientation validation within Slicer

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume Click on Cancel to come back to the Main Menu

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume Click on Add Volume to load the DWI training dataset using the Nrrd header

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume Select Nrrd Reader in the Properties field The Props Panel of the module Volumes appears.

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume Click on Apply Check that the path to the file myNrrdDWI.nhdr is correct. If needed, manually enter it Browse to load the file myNrrdDWI.nhdr

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume Slicer loads the Nrrd DWI dataset Left-click on Or and change the orientation to Slices

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume Change the FOV to 2000

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume The sagittal and coronal viewers display the 14 DWI volumes: 2 baselines and 12 gradients

Surgical Planning Laboratory Brigham and Womens Hospital Loading the Nrrd Volume Display the axial and sagittal slices inside the viewer. Use the axial slider to observe the baselines and gradient volumes.

Surgical Planning Laboratory Brigham and Womens Hospital Converting the DWI data to tensors Select the module DTMRI and click on the tab Conv Select the Input volume myNrrdDWI.nhdr and click on ConvertVolume

Surgical Planning Laboratory Brigham and Womens Hospital Converting the DWI data to tensors Slicer displays the anatomical views of the Average Gradient volume.

Surgical Planning Laboratory Brigham and Womens Hospital Glyphs Select the panel Glyphs in the DTMRI module Select the Active DTMRI volume myNrrdDWI-nhdr_Tensor Select Glyphs on Slice for the axial (red) view Set Display Glyphs On

Surgical Planning Laboratory Brigham and Womens Hospital Glyphs Orientation of the glyphs in the Corpus Callosum

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