Representing and Processing Scientific Data with Teem: Applications to CT and DT-MRI Gordon Kindlmann Representing and Processing Scientific Data with.

Slides:



Advertisements
Similar presentations
Surgical Planning Laboratory -1- Brigham and Womens Hospital Converting DTI data into Nrrd file format Sonia Pujol, Ph.D. Gordon.
Advertisements

National Alliance for Medical Image Computing Slicer3 plugins Common architecture for interactive and batch processing.
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.
Acknowledgments Contributors: Martin Styner Susumu Mori Andy Alexander
1 Detecting Subtle Changes in Structure Chris Rorden –Diffusion Tensor Imaging Measuring white matter integrity Tractography and analysis.
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.
Data Manipulation Overview and Applications. Agenda Overview of LabVIEW data types Manipulating LabVIEW data types –Changing data types –Byte level manipulation.
NAMIC: UNC – PNL collaboration- 1 - October 7, 2005 Fiber tract-oriented quantitative analysis of Diffusion Tensor MRI data Postdoctoral fellow, Dept of.
New Progresses of DTI-Map, a Program for DTI Computation and Fiber Tracking Hangyi Jiang, Peter van Zijl, Susumu Mori Dept. of Radiology Johns Hopkins.
Tensor Data Visualization Mengxia Zhu. Tensor data A tensor is a multivariate quantity  Scalar is a tensor of rank zero s = s(x,y,z)  Vector is a tensor.
/mhj 1212 Introduction Diffusion Tensor Imaging (DTI) is a fairly new Magnetic Resonance Imaging technique. It shows the diffusion (i.e. random motion)
Scientific Visualization Data Modelling for Scientific Visualization CS 5630 / 6630 August 28, 2007.
Diffusion Tensor Imaging (DTI) is becoming a routine technique to study white matter properties and alterations of fiber integrity due to pathology. The.
Multimodal Visualization for neurosurgical planning CMPS 261 June 8 th 2010 Uliana Popov.
NAMIC: UNC – PNL collaboration- 1 - October 7, 2005 Quantitative Analysis of Diffusion Tensor Measurements along White Matter Tracts Postdoctoral fellow,
Computational Tools for Image Processing Lecture 1, Jan 22nd, 2007 Part 2 (8:10-9:20pm) by Lexing Xie EE4830 Digital Image Processing
Diffusion Tensor Processing and Visualization Ross Whitaker University of Utah National Alliance for Medical Image Computing.
Visualization Services Group Steve Cutchin – Manager Amit Chourasia – Visualization Scientist Alex DeCastro – Visualization.
Trajectory Physics Based Fibertracking in Diffusion Tensor Magnetic Resonance Imaging Garrett Jenkinson, Advisor: José Moura, Graduate Student: Hsun-Hsien.
System Overview CIBC SCIRun / BioPSE System Overview.
GMT: The Generic Mapping Tools Paul Wessel, Walter H.F. Smith and the GMT team.
An Introduction to MINC John G. Sled. What is MINC? A medical image file format based on NetCDF A core set tools and libraries for image processing A.
MINC meeting 2003 A Short Tour of the MINC Toolset Steve Robbins.
Marching Cubes: A High Resolution 3D Surface Construction Algorithm William E. Lorenson Harvey E. Cline General Electric Company Corporate Research and.
Visualizing Fiber Tracts in the Brain Using Diffusion Tensor Data Masters Project Presentation Yoshihito Yagi Thursday, July 28 th, 10:00 a.m. 499 Dirac.
SCIRun and SPA integration status Steven G. Parker Ayla Khan Oscar Barney.
Visualization of Anatomic Covariance Tensor Fields Gordon L. Kindlmann, David M. Weinstein, Agatha D. Lee, Arthur W. Toga, and Paul M. Thompson Presented.
NA-MIC National Alliance for Medical Image Computing National Alliance for Medical Image Computing: NAMIC Ron Kikinis, M.D.
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
Fiber Demixing with the Tensor Distribution Function avoids errors in Fractional Anisotropy maps Liang Zhan 1,Alex D. Leow 2,3, Neda Jahanshad 1, Arthur.
Graphics and Images Graphics and images are both non-textual information, that can be displayed and printed. These images may appear on screen as well.
Quiz # 1 Chapters 1,2, & 3.
Python Mini-Course University of Oklahoma Department of Psychology Lesson 21 NumPy 6/11/09 Python Mini-Course: Lesson 21 1.
NA-MIC National Alliance for Medical Image Computing Adding Orientation to itkImage.
Surgical Planning Laboratory -1- Brigham and Women’s Hospital Converting DTI data into Nrrd file format Sonia Pujol, Ph.D. Gordon.
Biomedical Informatics Research Network Pipelines & Processing: Tools & Toolkits David Rex, John Moreland October 9, nd Annual All Hands Meeting.
NA-MIC National Alliance for Medical Image Computing Diffusion Tensor Imaging tutorial Sonia Pujol, PhD Surgical Planning Laboratory.
Cleaver A tetrahedral meshing tool. Jonathan Bronson SCI Institute.
Strategies for Direct Volume Rendering of Diffusion Tensor Fields Gordon Kindlmann, David Weinstein, and David Hart Presented by Chris Kuck.
Exploring Connectivity of the Brain’s White Matter with Dynamic Queries Presented by: Eugene (Austin) Stoudenmire 14 Feb 2007 Anthony Sherbondy, David.
NA-MIC National Alliance for Medical Image Computing A DW-MRI processing and visualization pipeline for NA-MIC Gordon Kindlmann Laboratory.
BioPSE Examples NCRR BioPSE Examples: Networks, Datasets, Tutorials, and PowerApps.
Top Secret CIBC Sneak Preview of Next Generation SCIRun Features and Directions.
Diffusion Tensor Analysis in Slicer3
Drilling Visualisation API. Application / API One main desktop application Possibility to switch to VR mode (wand + head tracking + stereo) Possibility.
Sonia Pujol, PhD -1- National Alliance for Medical Image Computing Neuroimage Analysis Center Diffusion Tensor Imaging tutorial Sonia Pujol, Ph.D. Surgical.
IP / DVR CIBC Image Processing Direct Volume Rendering.
Subjects are registered to a template using affine transformations. These affine transformations are used to align the tracts passing through the splenium.
Makeig-Worrell NCRR Project Overview Scott Makeig, Ph.D. is the Director of the Swartz Center for Computational Neuroscience Institute for Neural Computation.
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.
Einstein on Brownian Motion 1905 five important papers DTI Basics – Water Diffusion.
67 x 89 = ? 67 x
Advanced fMRI Methods John VanMeter, Ph.D. Center for Functional and Molecular Imaging Georgetown University Medical Center.
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
Diffusion Tensor MRI From Deterministic to Probabilistic Modelling
Python Scripting for Computational Science CPS 5401 Fall 2014 Shirley Moore, Instructor October 6,
CS-565 Computer Vision Nazar Khan Lecture 2.
f3d Format for Storage of 3D Grids
Introduction to diffusion MRI
Core 3-1 Schizophrenia NA-MIC
The cf-python software library
Outline Image formats and basic operations Image representation
Lecture 5 Image Characterization ch. 4 of Machine Vision by Wesley E
Tensor Visualization Chap. 7 October 21, 2008 Jie Zhang Copyright ©
Introduction to diffusion MRI
Introduction to diffusion MRI
Presentation transcript:

Representing and Processing Scientific Data with Teem: Applications to CT and DT-MRI Gordon Kindlmann Representing and Processing Scientific Data with Teem: Applications to CT and DT-MRI Gordon Kindlmann Scientific Computing and Imaging Institute, School of Computing, University of Utah

The software: teem includes nrrd and ten Application 1: Inspecting CT data Application 2: Estimating and inspecting diffusion tensors Outline

Teem overview Software I write to do research Data processing, scientific visualization Open-source: Get pre-compiled binaries, reproduce resultsreproduce results Collection of ANSI C libraries Function calls do what you need Pseudo-object-oriented: nrrdNew(), nrrdCopy(), nrrdSlice(), nrrdNuke() Uncommon library names Multiple interfaces Command-line: Repeatability, reproducability API  BioTensor  GUI

Teem libraries Basic utility functions + macros Command-line parsing Nearly Raw Raster Data: representing (in memory, on disk) and manipulating N- dimensional arrays Filtered point sampling: interpolating scalar, vector, tensor fields; used for fiber tracking in Bio-Tensor All things diffusion tensor

Two libraries, two utilities Underlying library nrrd ten Command-line utility unu tend also BioPSE module name prefix

nrrd : what it is Nearly Raw Raster Data No abstractions, no cleverness Representation and manipulation of N- dimensional raster data: File format Data structure Large set of operations Used by SCIRun, ITK, others Format and API are stable

nrrd : why it is Information in scientific computation and visualization often N-dimensional array: 1D: histograms, time-varying scalar 2D: gray-scale images, scatterplots, collection of signals 3D: color images, CT/MRI volumes 4D: vector/tensor volumes, time- varying scalar fields 5D: time-varying vector/tensor fields Common format and tools for all of these

nrrd : capabilities Subset, superset Cropping, slicing, padding, joining Arithmetic Adding, multiplying Converting Quantization, changing type Rearranging Permute axes, flipping+shuffling slices, bricking (w/out overlap) Filtering Up+downsampling, blurring, median Measuring: projection along an axis Min, max, mean, L2, variance, etc. Histograms of all sorts dimension generality

Getting data in: NRRD file format NRRD0001 content: a dozen images type: float dimension: 4 sizes: encoding: raw endian: big Detached headers possible: “ data file ”, “ line skip ”, “ byte skip ” Different encodings possible: Raw, ASCII, gzip-compressed, hex Can be generated by hand … ASCII header for array description Blank line Data

Getting data in: “ unu make ” unu make -i \ -s t float \ -e raw -en big -o images.nrrd NRRD0001 type: float dimension: 4 sizes: encoding: raw endian: big … unu make -h -i \ -s t float \ -e raw -en big -o images.nhdr Pretty? No. Effective? Yes.

Concept: raster ordering N-D raster data has “raster ordering” (0, 0, 0) (1, 0, 0) (2, 0, 0) (0, 1, 0) (1, 1, 0) (2, 1, 0) … (0, 539, 0) (1, 539, 0) (2, 539, 0) (0, 0, 1) … (0, 0, 2) … (0, 539, 379) (1, 539, 379) (2, 539, 379) linear ordering in memory 2-D color image  3-D array color:X:Y Each coordinate is an axis Axes ordered: fast to slow; contiguous to distant Fast: color Medium: X Slow: Y color X Y

The software: teem includes nrrd and ten Application 1: Inspecting CT data Application 2: Estimating and inspecting diffusion tensors Outline

To inspect one slice: zcat c_vf1700.fre.Z \ | unu make -t ushort -e raw \ -en big -s bs 3416 \ | unu quantize -b 8 \ | unu save -f pnm | xv - (demo of this, and command list) cp data/c_vf16{4,5,6,7,8,9}?.fre.Z. cp data/c_vf17??.fre.Z. cp data/c_vf18{0,1,2}?.fre.Z. uncompress *.Z unu make -i *.fre -t ushort -e raw -en big \ -s bs 3416 \ -sp \ | unu crop -min max M \ -o vfrhand.nhdr rm -rf *.fre Unu application: Visible human CT (link)

Unu application: Visible human CT

The software: teem includes nrrd and ten Application 1: Inspecting CT data Application 2: Estimating and inspecting diffusion tensors Outline

Diffusion in Biological Tissue Motion of water through tissue Faster in some directions than others Kleenexnewspaper Anisotropy: diffusion rate depends on direction isotropicanisotropic

Diffusion in 3D isotropic anisotropic linear planar spherical Diffusion Tensor: 3x3 semi-positive definite symmetric matrix Ellipsoids represent variety of possible diffusion patterns Ellipsoid is image of unit sphere under diffusion tensor matrix

Diffusion MRI of brain Anisotropy high along white matter fiber tracts Dxx Dxy Dxz DxyDxz DyzDyy DzzDyz

Inspecting DWI slices unu make -i 02728/003/I.050 -t ushort \ -e raw -en big -s bs -1 \ | unu quantize -b 8 -o slice.png

Inspecting multiple DWI slices unu make -i 003/I.0{5,6,7}? -t ushort \ -e raw -en big -s bs -1 \ | unu axsplit -a 2 -s 5 4 \ | unu permute -p \ | unu axmerge -a 0 | unu axmerge -a 1 \ | unu quantize -b 8 -o mosaic.png

Making DWI volumes foreach IMG ( \ \ \ ) unu make -i 02728/$IMG/I.* -bs -1 \ -t ushort -e raw -en big \ -s sp \ -o dwi/$IMG.nrrd unu resample -I dwi/$IMG.nrrd \ -s = -k hann:8 \ -o dwi/$IMG-small.nrrd end

Meddling with B-matrix list Brr Brp Brs Bpp Bps Bss unu shuffle -i B-orig.txt \ -a 0 -p o B.txt 

Estimating diffusion tensors tend estim -i dwi/0??.nrrd -knownB0 false \ -B B.txt -t 48 -o ten.nrrd confidence DxxDxyDxz Dyz Dzz Dyy

Inspecting diffusion tensors R = | v 1.x | G = | v 1.y | B = | v 1.z | v1v1 x y z foreach SLC ( ) tend slice -i ten.nrrd -a 2 -p $SLC \ | tend evecrgb -c 0 -a fa \ | unu axdelete -a -1 \ | unu quantize -b 8 \ -min 0 -max 1 -o $SLC-rgb.png end

1 = 2 = = T Space of tensor shape v1v1 v2v2 v3v3 linear planar spherical 1 >= 2 >= 3

Glyph shapes

1 glyph = 1 mm 3 Backdrop: FA Color: RGB(v 1 )