data loading & and visualization sonia pujol, ph.d. surgical planning laboratory harvard medical...

107
Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage Analysis Center Leonardo da Vinci (1452-1519), Virgin and Child Alte Pinakothek, München

Upload: natalie-palmer

Post on 27-Mar-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Data Loading &and

VisualizationSonia Pujol, Ph.D.

Surgical Planning LaboratoryHarvard Medical School

National Alliance for Medical Image ComputingNeuroimage Analysis Center

Leonardo da Vinci (1452-1519), Virgin and Child Alte Pinakothek, München

Page 2: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer3

• An end-user application for image analysis

• An open-source environment for software development

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

A software platform that is both easy to use for clinical researchers and easy to extend for programmers

Page 3: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer3

Slicer3 is a multi-platform software that is developed and maintained on:

• Windows XP• Linux x86_64• Linux x86_32• Mac OSX – Darwin x86-Intel• Mac OSX – Darwin Power PC

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 4: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Download Slicer 3.6

• Download and install the Slicer3.6 software from the Slicer web site

http://www.slicer.org/pages/Special:SlicerDownloads

Disclaimer

It is the responsibility of the user of 3DSlicer to comply with both the terms of the license and with the applicable laws,

regulations and rules.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 5: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Download Slicer3.6

Slicer3 is under active development by the medical research community. Frequent releases incorporating cutting-edge medical image analysis capabilities. This tutorial uses the current stable Slicer3.6 release version.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 6: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Download Slicer3.6

Select the Type of download Stable Releases.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 7: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Download Slicer3.6

Select the Operating System appropriate for your computer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 8: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Download Slicer3.6

Select the corresponding latest Slicer3.6 release in File to download and click on Download.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 9: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Download the training dataset

• This course is built upon three datasets of a singlehealthy subject brain:

• Download and unzip the training dataset Slicer3VisualizationDataset.zip

http://www.slicer.org/slicerWiki/index.php/Slicer 3.6:Training

MR DICOM GRASS

MR Nrrd SPGR

Pre-computed Label Map

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 10: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Learning objective

Following this tutorial, you’ll be able to load and visualize volumes within Slicer3, and to interact in 3D with structural images and models.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 11: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Start Slicer3

Linux/Mac usersLaunch the Slicer3

executable located in

the Slicer3.6 directory

Windows usersSelect

Start All Programs Slicer3-3.6-2010-08-05Slicer3

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 12: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer Welcome

The SlicerWelcome module is the module displayed by default.

This module gives an overview of the GUI of Slicer3, and data loading & saving functionalities.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 13: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer3 GUIThe Graphical User Interface (GUI) of Slicer3.6 integrates 8 main components:

•the File Menu

•the Menu Toolbar

•the Module GUI Panel

•the 3D Viewer

•the Slice Viewer

•the Slice Controller

•the 3D View Controller

Slice Viewer

3DViewerModule GUI Panel

2D Slice Controllers

Modules Menu

Menu Toolbar

Progress and Error Log

3DView Controllers

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 14: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Overview

Part 4. The lightbox viewer

Part 2. Loading and visualizing segmented structures overlaid on grayscale images

Part 1. Loading and visualizing multiple volumes simultaneously

Part 3. Visualizing 3D reconstructions of anatomical surfaces

Part 5. Saving data

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 15: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Part 1: Loading and visualizing

multiple volumes simultaneously

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 16: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select File Add Volume from the file menu.

Loading Volumes

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 17: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Loading Volumes

Browse to the location of the SlicerVisualizationDataset directory.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 18: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the 001.dcm file in the /dicom directory.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 19: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer displays the Dicom header information of the images. Browse through the Dicom information panel to display the dimensions of the images.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 20: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Image dimensions: Rows = 256, Columns = 256

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 21: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on Apply to load the Dicom volume in Slicer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 22: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The Dicom images appear in the Background display of the 2DViewer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 23: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Left click on the Modules menu and click on All Modules to display the list of over 100 modules available for image analysis and 3D visualization.

Select the Volumes module.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 24: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Loading VolumesThe panel of the Volumes module appears in the interface.

Click on the Display panel.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 25: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Use the Window/Level slider to adjust the display of the MR images.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 26: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select File Add Volume from the File menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 27: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Browse to find the header file of the spgr volume (spgr.nhdr) located in the SlicerSampleVisualization/nrrd directory and click on Apply.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 28: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select Centered in the Volume Options panel and click on Apply to load the spgr.nhdr volume.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

v

Page 29: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The spgr volume appears in the Background display of the 2D Viewer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading Volumes

Page 30: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Left lick on the Choose layout icon.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Exploring the data

Page 31: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the Red slice only layout from the menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Exploring the data

Page 32: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The axial slices of the spgr volume appear in the 3D viewer.

Click on the icon fits image data to the window icon to adjust the dimensions of the image to the size of the window.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Exploring the data

Page 33: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

To simultaneously view the dicom and the nrrd volumes, left click on the drop-down menu to the right of the Foreground icon and select the 001.dcm image.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Exploring the data

Page 34: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on the Background or on the Foreground icon to display the spgr or the DICOM volumes in the Viewer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Exploring the data

Page 35: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Browse the images using the slider to display the ventricles (~slice# 38).

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Exploring the data

Page 36: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Exploring the data

Click on the Conventional layout icon to come back to the standard view.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 37: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on the fits image data to the window icon to adjust the dimensions of the image to the size of the window.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading VolumesLoading Volumes

Page 38: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Part 2: Loading and visualizing segmented structures overlaid on

grayscale images

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 39: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Label map• Image segmentation is the

extraction of structural information of particular interest from surrounding image.

• Each pixel is assigned a specific label value which corresponds to the anatomical structure that it belongs to.

• The three-dimensional result of the segmentation is a binary array called label map.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 40: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Loading a label map

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Select File Add Volume from the File menu

Page 41: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Browse to find the header file (all.nhdr) of the label map dataset located in the SlicerSampleVisualization/nrrd directory set Valume options to Label Map and click on Apply. National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading a label map

Page 42: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Visualizing a label mapSlicer displays the all.nhdr label map in the Label layer

Click on the Links icon.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 43: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Label Viewer

Left click the drop-down menu to the right of the icon and select None

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing Multiple Volumes

Page 44: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Foreground Viewer

Left click on the drop-down menu to the right of the icon and select the all.nhdr volume

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing Multiple Volumes

Page 45: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Visualizing Multiple VolumesExpand the Manipulate Slice Views panel.

Use the slider to fade between the labelmap all.nhdr (Foreground) and the spgr volume (Background).

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 46: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

3D Visualization

Select the Data module in the Modules menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 47: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The Data module displays the volumes loaded in the current Slicer Scene.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Page 48: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The Load & Add Scene tab displays the different data types that can be added to the scene.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D. National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Page 49: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on the Slice Visibility icon to display the slices in the 3D Viewer.

Click on the Links icon.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D. National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Page 50: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer displays 2D anatomical slices in the 3D viewer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D. National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Page 51: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Position the mouse in the 3D Viewer, hold down the left mouse button and drag to rotate the volumes.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Page 52: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Part 3: Loading and visualizing 3D models

of the anatomy

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 53: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on the left icon in Add data or a data directory

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Page 54: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

A small window displays information on how to use the Add data or data directory function.

Click on the icon

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Page 55: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on Add from Current Directory and select the Slicer3VisualizationDataset directory.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

3D Visualization

Click on the icon.

Page 56: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Loading 3D models

Select the Slicer3VisualizationDataset/models directory and click on OK

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 57: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Loading 3D models

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

The list of elements present in the models directory appears in the Add Data window.

Click on Apply to load all 3D models.

Page 58: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer loads the 3D models in the 3D Viewer. The models have been added to the MRML scene.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading 3D models

Page 59: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on the Hierarchy & Display panel to access the components

Select the Models module

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading 3D models

Page 60: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Visualizing a 3D modelSelect the Skin.vtk model Click on the Set Color icon and choose a new color.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 61: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Change the opacity of the skin model from 1.0 to 0.5 using the Opacity slider.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 62: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The 3D models of the brain and vessels are visible through the skin.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 63: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Turn off the visibility of the skin model.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 64: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the Brain model and change its color to white.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 65: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select Green slice only layout from the Viewer menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 66: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on the icon to fit image data to the window in the Slice Viewer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 67: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select Slice Intersection Visible to display the model intersection on the slice plane.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 68: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The intersection of the 3D model of the brain with the 2D image plane appears in the viewer.

Go back to Conventional layout.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 69: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the Vessels model and change its color to red

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 70: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the Brain model and select the Clipping option.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 71: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Set Yellow Slice Clipping to Positive Space.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 72: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on the letter S in the Control Window to display a superior view of the 3D models.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 73: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Use the yellow slice slider to expose the 3D model of the vasculature.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 74: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Turn off the Clipping option for the Brain model and set the Yellow Slice Clipping to Off

Turn on the visibility of the Skin model

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 75: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer displays the 3D models of the Skin, Vessels and Brain.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 76: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Part 4: Lightbox viewer

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 77: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the Compare Layout option in the Viewer menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 78: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Set the Number of compare viewers to 1 and the number of lightbox rows and columns to 2.

Click on Apply.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Visualizing a 3D model

Page 79: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Lightbox viewer

Slicer displays a lightbox view of the Background dataset.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 80: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Browse through the spgr volume using the lightbox slider.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Lightbox viewer

Page 81: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer displays four adjacent axial slices of the spgr volume simultaneously.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Lightbox viewer

Page 82: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Left click on the Slice Viewer menu of the Compare Layout viewer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Lightbox viewer

Page 83: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the lightbox view option

Set the configuration of the Lightbox view to 6x6 view.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Lightbox viewer

Page 84: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer displays a matrix of 36 adjacent axial slices of the spgr volume.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Lightbox viewer

Page 85: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select the Conventional Layout option in the Viewer menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Lightbox viewer

Page 86: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Part 5: Loading and saving a Scene

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 87: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Saving Data

Select File Save from the file menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 88: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The list of elements currently loaded into Slicer3 appears.

Make sure only the first check box is selected.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 89: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on Change Destination for All Selected and browse to the location where the scene will be saved.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 90: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Browse to the directory where you would like to save your scene and click OK.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 91: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Double click on the file name SlicerScene1 and change it to Slicer3DScene.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 92: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click on Save Selected.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 93: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Creating Scene Snapshots

Choose a 3D view of the scene and click on the Capture screenshot of the 3D view icon.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 94: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Enter the Snapshot Name MySceneSnapshot1 and click on OK.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Creating Scene Snapshots

Page 95: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select a Superior view of the dataset, and click on the Capture screenshot of the 3D view icon.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Creating Scene Snapshots

Page 96: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Enter the Snapshot Name MySceneSnapshot2 and click on OK.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Creating Scene Snapshots

Page 97: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select FileSave and click on Save Selected to include the two scene snapshots in the saved scene.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Creating Scene Snapshots

Page 98: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Click Yes to overwrite the file with a new file that contains the scene snapshots.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Creating Scene Snapshots

Page 99: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Saving Data

Select FileClose Scene in the main menu and click on OK.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 100: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

The elements of the previous scene disappear from the Viewer.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 101: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Select FileLoad Scene from the main menu.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 102: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Browse to find the Slicer3DScene.mrml file and click on Open.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Saving Data

Page 103: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Loading a Scene

Slicer loads the elements from the Slicer3DScene.mrml scene.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 104: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Left-click on the Restore or delete saved scene snapshots icon.

Select MySceneSnapshot2 and click on Restore.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading a Scene

Page 105: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Slicer restores the MySceneSnapshot2scene snapshot.

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Loading a Scene

Page 106: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Conclusion

• 3D visualization of anatomical surface reconstructions

• 3D interaction with volumes and models

• Open-source platform

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.

Page 107: Data Loading & and Visualization Sonia Pujol, Ph.D. Surgical Planning Laboratory Harvard Medical School National Alliance for Medical Image Computing Neuroimage

Acknowledgments

National Alliance for Medical

Image Computing

NIH U54EB005149

Neuroimage Analysis Center

NIH P41RR013218

National Alliance for Medical Image Computing

http://na-mic.org © 2010, All Rights Reserved

Sonia Pujol, Ph.D.