data loading and visualization-3735

Post on 17-May-2015

1.063 Views

Category:

Health & Medicine

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

http://hdl.handle.net/1926/521

TRANSCRIPT

Surgical Planning Laboratoryhttp://www.slicer.org-1-

Brigham and Women’s Hospital

Slicer Training 1 Loading and Viewing Data

Sonia Pujol, Ph.D.

Randy Gollub, M.D., Ph.D.

Surgical Planning Laboratoryhttp://www.slicer.org-2-

Brigham and Women’s Hospital

Acknowledgments

National Alliance for Medical Image ComputingNIH U54EB005149

Neuroimage Analysis Center NIH P41RR013218

Surgical Planning Laboratoryhttp://www.slicer.org-3-

Brigham and Women’s Hospital

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.

Surgical Planning Laboratoryhttp://www.slicer.org-4-

Brigham and Women’s Hospital

Welcome to 3D Slicer

Surgical Planning Laboratoryhttp://www.slicer.org-5-

Brigham and Women’s Hospital

Goal of the tutorial

Guiding you step by step through the process of Loading and Viewing Data within Slicer

Surgical Planning Laboratoryhttp://www.slicer.org-6-

Brigham and Women’s Hospital

Material

Questions Answers

Exercises

• Slicer 2.6http://www.na-mic.org/Wiki/index.php/Slicer:Slicer2.6_Getting_Started

• Sample Tutorial Data: tutorial-with-dicom.ziphttp://www.na-mic.org/Wiki/index.php/Slicer:Workshops:User_Training_101

Surgical Planning Laboratoryhttp://www.slicer.org-7-

Brigham and Women’s Hospital

Goal of the tutorial

Final result of the series of exercises

Surgical Planning Laboratoryhttp://www.slicer.org-8-

Brigham and Women’s Hospital

Overview

• Part 1: Slicer Interface

• Part 2: Loading Data

• Part 3: Interacting with Data

Surgical Planning Laboratoryhttp://www.slicer.org-9-

Brigham and Women’s Hospital

Slicer Interface

Tk window

Viewer

Menu

Surgical Planning Laboratoryhttp://www.slicer.org-10-

Brigham and Women’s Hospital

Slicer Menu

Select the Volumes Module

Surgical Planning Laboratoryhttp://www.slicer.org-11-

Brigham and Women’s Hospital

Panels and Tabs

The Panel of the Volumes Module

appears

Surgical Planning Laboratoryhttp://www.slicer.org-12-

Brigham and Women’s Hospital

Slicer Menu

Panels

Sliders

Buttons

Control Window

Surgical Planning Laboratoryhttp://www.slicer.org-13-

Brigham and Women’s Hospital

Main MenuObserve the different options of the Main Menu

•ViewSelecting view mode

•ModulesSlicer Modules

•File–Opening files–Saving files–Closing files–Exit

•HelpLinks to Slicer Modules information

Surgical Planning Laboratoryhttp://www.slicer.org-14-

Brigham and Women’s Hospital

Viewer window

• Upper part is

3D Viewer

• Lower part is 2D Viewer3 separate views

Independent controls

Observe the Viewer Window

Surgical Planning Laboratoryhttp://www.slicer.org-15-

Brigham and Women’s Hospital

Slicer Modules

The architecture of Slicer is modular

Select Modules in the SubMenu

Surgical Planning Laboratoryhttp://www.slicer.org-16-

Brigham and Women’s Hospital

Slicer Modules

The list of Slicer Modules categories appears

Settings

IO

Application

Filtering

Segmentation

Registration

Measurement

Visualization

Examples

Unfiled

Alpha

Surgical Planning Laboratoryhttp://www.slicer.org-17-

Brigham and Women’s Hospital

Slicer Modules: tutorialsSettings

IO

Application

Filtering

Segmentation

Registration

Measurement

Visualization

Examples

Unfiled

Alpha

•Editor …………….. SlicerTraining 2

•Level-Sets ……….. SlicerTraining 3

•fMRIEngine ………. SlicerTraining 5

•vtkFreeSurferReaders ... SlicerTraining 6

•DTMRI ……………. SlicerTraining 4

Surgical Planning Laboratoryhttp://www.slicer.org-18-

Brigham and Women’s Hospital

Exercise 1: Slicer GUI

• Launch Slicer.– Observe Main window and Viewer window.

• Click File, View, Help, and Modules– Examine submenus

• Click Main Menu buttons: Data, Volumes, Models, Alignments, Editor, and ModelMaker– Click tabs– Examine panels

• Click More– Click modules: click tabs, examine panels

Surgical Planning Laboratoryhttp://www.slicer.org-19-

Brigham and Women’s Hospital

Overview

• Part 1: Slicer Interface

• Part 2: Loading Data

• Part 3: Interacting with Data

Surgical Planning Laboratoryhttp://www.slicer.org-20-

Brigham and Women’s Hospital

Loading Data

Slicer can load

• Volumes …………………..

Surgical Planning Laboratoryhttp://www.slicer.org-21-

Brigham and Women’s Hospital

Loading Data

Slicer can load

• Volumes …………………..

• Models …………………….A model is a 3D reconstruction of the anatomy

Surgical Planning Laboratoryhttp://www.slicer.org-22-

Brigham and Women’s Hospital

Loading Data

Slicer can load

• Volumes …………………..

• Models …………………….A model is a 3D reconstruction of the anatomy

• Scenes …………………….Scene = Volume + Model

Surgical Planning Laboratoryhttp://www.slicer.org-23-

Brigham and Women’s Hospital

Loading Data

Slicer Advantage

Putting together Images and Surface

Surgical Planning Laboratoryhttp://www.slicer.org-24-

Brigham and Women’s Hospital

Data representation

• Volume = collection of image files• Image file = header + raw dataThe header contains the parameters of the image.

Header

Raw Data

Header

Raw Data

Header

Raw Data

Header

Raw Data

Surgical Planning Laboratoryhttp://www.slicer.org-25-

Brigham and Women’s Hospital

Data representation

• Volume = collection of image files• Image file = header + raw dataThe header contains the parameters of the image.

• Representation of an image:

2D Array of pixels containing the intensity values

Header

Raw Data

Header

Raw Data

Header

Raw Data

Header

Raw Data

Pixel (a,b)

Intensity

I (a,b)

a

b

Surgical Planning Laboratoryhttp://www.slicer.org-26-

Brigham and Women’s Hospital

Loading DICOM Volumes

Click on Add Volume in the Slicer Menu

Surgical Planning Laboratoryhttp://www.slicer.org-27-

Brigham and Women’s Hospital

Left-click on the Menu

Properties and change Basicto DICOM

Loading DICOM Volumes

The Panel Propsappears by default.

Surgical Planning Laboratoryhttp://www.slicer.org-28-

Brigham and Women’s Hospital

Click on Select DICOM Volume

Loading DICOM Volumes

The DICOM panel appears

Surgical Planning Laboratoryhttp://www.slicer.org-29-

Brigham and Women’s Hospital

Select the directory dicom in

the Tutorial-with-dicom dataset

Loading DICOM Volumes

Surgical Planning Laboratoryhttp://www.slicer.org-30-

Brigham and Women’s Hospital

Loading DICOM Volumes

The list of DICOM studies appears.

Click OK

Surgical Planning Laboratoryhttp://www.slicer.org-31-

Brigham and Women’s Hospital

Loading DICOM Volumes

Name : The name that the

volume will have within Slicer

Change to something descriptive: Cortex and click on Header

Slicer loads the dicom study

Surgical Planning Laboratoryhttp://www.slicer.org-32-

Brigham and Women’s Hospital

Loading DICOM Volumes

The DICOM Headerinformation panel appears

Click Apply

Surgical Planning Laboratoryhttp://www.slicer.org-33-

Brigham and Women’s Hospital

Loading DICOM Volumes

Slicer loads theDICOM volume ofthe brain

Surgical Planning Laboratoryhttp://www.slicer.org-34-

Brigham and Women’s Hospital

Visualization Support

• Control Window: displays a zoomed view of the position of the mouse on the selected image

Move the mouse inside an anatomical view

Surgical Planning Laboratoryhttp://www.slicer.org-35-

Brigham and Women’s Hospital

Visualization Support

The value of the gray level of the pixel under the cursor appears in the corresponding slice

Surgical Planning Laboratoryhttp://www.slicer.org-36-

Brigham and Women’s Hospital

Viewing VolumesV toggle button controls

whether slice is visible in 3D Viewer

Click on the three V buttons to display the

Axial, Sagittal and Coronal images inside the Viewer

Surgical Planning Laboratoryhttp://www.slicer.org-37-

Brigham and Women’s Hospital

Viewing Volumes

The Axial, Sagittal and Coronal Images appear in the Viewer

Surgical Planning Laboratoryhttp://www.slicer.org-38-

Brigham and Women’s Hospital

Manipulating the images

Position the mouse on the images inside the Viewer

Left-click and move the mouse to the left

• Rotation

The images move to the left

Surgical Planning Laboratoryhttp://www.slicer.org-39-

Brigham and Women’s Hospital

Manipulating the images

Position the mouse on the images inside the Viewer

Right-click and move the mouse down

The viewer gets closer to the model

• Zoom

Surgical Planning Laboratoryhttp://www.slicer.org-40-

Brigham and Women’s Hospital

Manipulating the images

Position the mouse on the images inside the Viewer

Right-click and move the mouse up

The viewer moves away from the model

• Zoom

Surgical Planning Laboratoryhttp://www.slicer.org-41-

Brigham and Women’s Hospital

Viewing Volumes

Select the 3D View

The View Menu contains

different options to visualize the data

Surgical Planning Laboratoryhttp://www.slicer.org-42-

Brigham and Women’s Hospital

Viewing Volumes

3D Viewfocuses on 3D

Surgical Planning Laboratoryhttp://www.slicer.org-43-

Brigham and Women’s Hospital

Viewing Volumes

Select 4x512

The View Menu contains

different options to visualize the data

Surgical Planning Laboratoryhttp://www.slicer.org-44-

Brigham and Women’s Hospital

Viewing Volumes

4x512 view: larger image views to see details

Surgical Planning Laboratoryhttp://www.slicer.org-45-

Brigham and Women’s Hospital

Viewing Volumes

Select 1x512

The View Menu contains

different options to visualize the data

Surgical Planning Laboratoryhttp://www.slicer.org-46-

Brigham and Women’s Hospital

Viewing Volumes

1x512: one large TRANSVERSEview and three smallimages

1x512 COR: one large CORONAL viewand three small images1x512 SAG: one large SAGITTAL viewand three small images

Surgical Planning Laboratoryhttp://www.slicer.org-47-

Brigham and Women’s Hospital

Viewing Volumes

The View Menu containsdifferent options to visualizethe data

Select 4x256

Surgical Planning Laboratoryhttp://www.slicer.org-48-

Brigham and Women’s Hospital

Viewing Volumes

4x256 view: smaller equal-sized images

Come back to Normal View

Surgical Planning Laboratoryhttp://www.slicer.org-49-

Brigham and Women’s Hospital

2D Viewer

• Three 2D windows (red, yellow, and green)• Slider selects which slice of volume to display • Field shows the slice number

1

2

1

2

3

3

Surgical Planning Laboratoryhttp://www.slicer.org-50-

Brigham and Women’s Hospital

2D Viewer

• Bg (Background): displays volume in background layer • Fg (Foreground): displays volume in foreground layer

Superimposed over the background layer

4

5

4

5

Surgical Planning Laboratoryhttp://www.slicer.org-51-

Brigham and Women’s Hospital

Volumes without Header

Motivations:• The DICOM file format incorporates all

the parameters that Slicer requires to render the data

• Other images files types may not

Surgical Planning Laboratoryhttp://www.slicer.org-52-

Brigham and Women’s Hospital

Volumes without Header

Motivations:• The DICOM file format incorporates all

the parameters that Slicer requires to render the data

• Other images files types may not

Slicer has a simple protocol for

loading volumes without header

Surgical Planning Laboratoryhttp://www.slicer.org-53-

Brigham and Women’s Hospital

Volumes without Header1. Main Data

2. Add Volume

3. Browse to find the first image of the Volume spgr in the directory tutorial

4. Select first image I.001 of volume to load, and click Open

5. Click on Manual

6. Click on Apply

Surgical Planning Laboratoryhttp://www.slicer.org-54-

Brigham and Women’s Hospital

File Pattern: Pattern of file names, in C syntax.

Example: a file named skin.001 has a pattern of %s.%03d.

Image Size: Number of

pixels of image in x and y

directions.

Volumes without Header

2

1

The Header section of the Props tab appears.

Surgical Planning Laboratoryhttp://www.slicer.org-55-

Brigham and Women’s Hospital

Volumes without Header

Pixel Size in the x and y directions. Slice Thickness z dimension of the voxel. Scan Order:

• LR = left to right • IS = inferior to superior • PA = posterior to anterior

Scalar Type: Data format of the pixel. Generally, it is Short (16 bit integer). Slice Tilt: The tilt of the gantry during an MRI.

34

56

7

3

4

5

6

7

Surgical Planning Laboratoryhttp://www.slicer.org-56-

Brigham and Women’s Hospital

Num Scalars:

Number of scalar components for each voxel. Gray-scale data: 1. Color data: 3.

Little Endian:

In little-endian architectures, the rightmost bytes are most significant. In big-endian architectures (Slicer default), the leftmost bytes (those with a lower address) are most significant.

DTI data, Swap, No Swap: Placeholders for future.

8

9

10

8

9

10

Click Apply to load the volume.

Volumes without Header

Surgical Planning Laboratoryhttp://www.slicer.org-57-

Brigham and Women’s Hospital

Volumes without Header

The spgr volume appears in the

Viewer

Surgical Planning Laboratoryhttp://www.slicer.org-58-

Brigham and Women’s Hospital

Loading Data

Slicer can load

• Volumes …………………..

• Models …………………….A model is a 3D reconstruction of the anatomy

• Scenes …………………….Scene = Volume + Model

Surgical Planning Laboratoryhttp://www.slicer.org-59-

Brigham and Women’s Hospital

Loading Models

In the main Menu select the

module Data and Click on

Add Model.

Surgical Planning Laboratoryhttp://www.slicer.org-60-

Brigham and Women’s Hospital

Loading Models

The Props tab of the module

Models appears

Select the model named Vessels in the directory tutorial/models

Click on Apply

Surgical Planning Laboratoryhttp://www.slicer.org-61-

Brigham and Women’s Hospital

Loading Models

The model of the vessels appears in

the Viewer.

Surgical Planning Laboratoryhttp://www.slicer.org-62-

Brigham and Women’s Hospital

Loading Data

Slicer can load

• Volumes …………………..

• Models …………………….A model is a 3D reconstruction of the anatomy

• Scenes …………………….Scene = Volume + Model

Surgical Planning Laboratoryhttp://www.slicer.org-63-

Brigham and Women’s Hospital

Loading a Scene

•Select File Open Scene

in the Main Menu•Select the file tutorial.xml in the directory Tutorial-with-dicom/tutorial.

A Scene is represented as an Xml file.

Surgical Planning Laboratoryhttp://www.slicer.org-64-

Brigham and Women’s Hospital

Loading a Scene

The viewer displays the

tutorial Scene

Surgical Planning Laboratoryhttp://www.slicer.org-65-

Brigham and Women’s Hospital

Loading a Scene

The elements of the Scene are listed in the Menu Window

Surgical Planning Laboratoryhttp://www.slicer.org-66-

Brigham and Women’s Hospital

Overview

• Part 1: Slicer Interface

• Part 2: Loading Data

• Part 3: Interacting with Data

Surgical Planning Laboratoryhttp://www.slicer.org-67-

Brigham and Women’s Hospital

Manipulating a Model

The model appears in the

3D Viewer.

•Rotate the model: with left mouse button •Zoom the model: with right mouse button

Surgical Planning Laboratoryhttp://www.slicer.org-68-

Brigham and Women’s Hospital

Manipulating a Model

Put the mouse on the 3D Slicer icon

Surgical Planning Laboratoryhttp://www.slicer.org-69-

Brigham and Women’s Hospital

Manipulating a Model

The Control Window appears

Surgical Planning Laboratoryhttp://www.slicer.org-70-

Brigham and Women’s Hospital

Manipulating a Model

Position the mouse on the R letter

(Right) inside the window

Surgical Planning Laboratoryhttp://www.slicer.org-71-

Brigham and Women’s Hospital

Manipulating a Model

The View Panel shows the model

from the right side of the patient

Surgical Planning Laboratoryhttp://www.slicer.org-72-

Brigham and Women’s Hospital

Manipulating a Model

Click on the Spin button

Surgical Planning Laboratoryhttp://www.slicer.org-73-

Brigham and Women’s Hospital

Manipulating a Model

The model starts spinning inside the

Viewer Panel.

Surgical Planning Laboratoryhttp://www.slicer.org-74-

Brigham and Women’s Hospital

Manipulating a Model

Click on the Rock button

Surgical Planning Laboratoryhttp://www.slicer.org-75-

Brigham and Women’s Hospital

Manipulating a Model

The model starts rocking inside the

Viewer Panel.

Surgical Planning Laboratoryhttp://www.slicer.org-76-

Brigham and Women’s Hospital

Manipulating a Model

Come back to initial orientation of the Viewer Panel by clicking on the A letter (Anterior) inside the window.

Surgical Planning Laboratoryhttp://www.slicer.org-77-

Brigham and Women’s Hospital

Models representation

A model is a 3D representation

of the anatomy.

Type W (Wireframe) in the Main Window

Surgical Planning Laboratoryhttp://www.slicer.org-78-

Brigham and Women’s Hospital

Models representation

The triangles of the Model become visible in the Viewer.

Type S (Surface) to come back to Surface Mode rendering

Surgical Planning Laboratoryhttp://www.slicer.org-79-

Brigham and Women’s Hospital

Model Opacity1. Click on Models in the

Main Menu

2. Select the Display Tab

The properties Panel of the model appears

3. OpacitySet the opacity of the Skin model to 0.5

Surgical Planning Laboratoryhttp://www.slicer.org-80-

Brigham and Women’s Hospital

Model Opacity

Skin model

Opacity = 0.5

Surgical Planning Laboratoryhttp://www.slicer.org-81-

Brigham and Women’s Hospital

Model VisibilityVisibility on and off by

left clicking on the name of model in the list

Left Click on the Vessels button in the list of models

Surgical Planning Laboratoryhttp://www.slicer.org-82-

Brigham and Women’s Hospital

Model Visibility

Vessels model Visibility 0ff

Surgical Planning Laboratoryhttp://www.slicer.org-83-

Brigham and Women’s Hospital

Global Visibility

Show All to display all

models in the 3D Viewer.

Click Show None to display none of the models in the 3D Viewer

Surgical Planning Laboratoryhttp://www.slicer.org-84-

Brigham and Women’s Hospital

Viewing 3D Models

Show None: the models have disappeared

Surgical Planning Laboratoryhttp://www.slicer.org-85-

Brigham and Women’s Hospital

2D Viewer

Lb: displays label map

Displays results of a segmentation

Left click on Lb in the Axial View and select the Label Map named None

Surgical Planning Laboratoryhttp://www.slicer.org-86-

Brigham and Women’s Hospital

2D Viewer

The segmented volume named all disappears from the 2D Viewer.

Lb: displays label map

Displays results of a segmentation

Surgical Planning Laboratoryhttp://www.slicer.org-87-

Brigham and Women’s Hospital

2D Viewer

Left click on Lb in the Axial View and select the Label Map named all.

Lb: displays label map

Displays results of a segmentation

Surgical Planning Laboratoryhttp://www.slicer.org-88-

Brigham and Women’s Hospital

2D Viewer

The segmented volume named all appears in the 2D Viewer.

Lb: displays label map

Displays results of a segmentation

Surgical Planning Laboratoryhttp://www.slicer.org-89-

Brigham and Women’s Hospital

2D Viewer

Images in the label map layer appear as outlines around the structures that were segmented.

Surgical Planning Laboratoryhttp://www.slicer.org-90-

Brigham and Women’s Hospital

2D Viewer

Left Click on Fg in the Axial View and select the Volume named all in the Axial, Sagittal and Coronal slices.

Surgical Planning Laboratoryhttp://www.slicer.org-91-

Brigham and Women’s Hospital

Image Fusion

•Fade slider:

fades between foreground

and background.

Set the Fade slider to 0.5

Surgical Planning Laboratoryhttp://www.slicer.org-92-

Brigham and Women’s Hospital

2D Viewer

The volume all is superimposed on the images

Surgical Planning Laboratoryhttp://www.slicer.org-93-

Brigham and Women’s Hospital

Clipping Models• Clipping: cutting away sections of a

model at one or more selected slices.

• The model is removed from one side of each selected slice, revealing the image of each selected slice and the rest of the visible model.

Select the Models Display tab

Surgical Planning Laboratoryhttp://www.slicer.org-94-

Brigham and Women’s Hospital

1. Click on Show all to make all the models visible 2. Right-click the Skin model in the list

A drop-down menu appears.3. Check that the Clipping option is selected.4. Set the opacity of the Skin model to 1.0.5. Select the Clip tab of the Models panel.

Clipping Models

Surgical Planning Laboratoryhttp://www.slicer.org-95-

Brigham and Women’s Hospital

Clipping Models

Click + or - to select which side of each slice to clip on.

Set the sides to: Red Slice +Yellow Slice -Green Slice -

Surgical Planning Laboratoryhttp://www.slicer.org-96-

Brigham and Women’s Hospital

Clipping Models

Clipping Model Result

Surgical Planning Laboratoryhttp://www.slicer.org-97-

Brigham and Women’s Hospital

Conclusion

• Intuitive Interface for Loading and Visualizing Data

• Slicer Outcome = fusion of Volumes and Surface

• Open-source tool for developing your own module

top related