3D Slicer
Data Loading and
Visualization Tutorial
Tutorial dataset
Please download the following two datasets:
https://github.com/Slicer/SlicerDataLoadingAndVisualizationTut
orial/raw/main/VisualizationTutorial_HeadScene.mrb
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -2-
Main user interface
3D view
Slice
views
Module
panel
Data probe
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -3-
Load sample MRI data
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -4-
Load sample MRI data
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -5-
Load sample MRI data
The axial, sagittal, and
coronal views automatically
show the loaded volume
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -6-
Adjust window/level
Switch to window/level
mouse mode
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -7-
Adjust window/level
Adjust window/level
(brightness/contrast)
using the left mouse
button on a slice view
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -8-
Switch back to view/transform mode
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 -9-
Maximize view
Click on the
maximize view
button
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 10 -
Slice view options
Position your mouse cursor over
the pin icon to display the slice
view toolbar
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 11 -
Slice view options
Once the slice
viewer toolbar is
shown, click on the
“>>”
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 12 -
Show ruler
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 13 -
Rotate to volume plane
Often, MRI volumes are not
axis-aligned. To show the true
axial view, click the ‘Rotate to
volume plane’ button.
Note: This image will not be
affected, but many DICOM MR
images need to be aligned.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 14 -
Switch to conventional layout
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 15 -
Link views
After linking views, if any
setting is changed in a 2D
view, all others follow.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 16 -
Show slices in 3D
Now the slice views are
linked. If you click the
‘Toggle slice visibility in
3D view’ button, then all
slices will show up.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 17 -
Show slices in 3D
All three anatomical slices
are shown in the 3D view
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 18 -
Navigating the 3D view
Use the left mouse button to
rotate, and the right mouse
button to zoom in and out
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 19 -
Close the scene
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 20 -
Part 2:
3D visualization of surface models
of the brain
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 21 -
Load tutorial scene
Drag and drop the file
VisualizationTutorial_HeadScene.mrb
into Slicer, then click OK
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 22 -
Center view
Click on the small box
icon to center the
view, in 3D or in 2D
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 23 -
Explore loaded data
You can use the
module list, or the
favorite module
toolbar to switch to
the Data module
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 24 -
Explore loaded data
The Data module shows all the data in the scene.
The data items (“nodes”) can be shown/hidden,
renamed, deleted, cloned, etc.
Hide the ‘skin’ model by clicking the eye icon.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 25 -
Foreground image
Images can be overlaid (“fused”)
by setting the foreground image.
• Select ‘T2 MRI’ as foreground
• Adjust foreground opacity
using the slider
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 26 -
Create folder
Right-click the scene (or the
empty area on the bottom), then
choose ‘Create new folder’.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 27 -
Context menu actions
For list of “subject hierarchy” options for a
certain node, right-click it in the list. Note that
the options are different for each node type.
Right-click the just created folder ‘NewFolder’.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 28 -
Rename folder
Choose the Rename option and
rename the volume to ‘White matter
models’
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 29 -
Select multiple nodes
Click ‘left cerebral white matter’,
hold down Shift, and click ‘left
cerebellar white matter’.
Note: You can use Control/Cmd
button to select individually.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 30 -
Move nodes to folder
Drag&drop models into the folder
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 31 -
Hide all nodes in folder
Click the eye icon of the ‘Models’
folder to hide all non-brain
structures.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 32 -
Volume rendering
Click&drag volume to the 3D view.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 33 -
Display options
Right-click the eye icon to
see display options.
Choose ‘Volume rendering
options…’.
(It switches to the Volume
Rendering module)
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 34 -
Adjust volume rendering
Click on ‘Select a
Preset’ and choose
MR-Default.
Adjust the Shift
slider to optimize
visualization.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 35 -
Show models again
Turn off volume rendering
using the eye icon.
Switch back to the Data
module using the
Modules history.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 36 -
Show models again
Show the folder again
by clicking the closed
eye icon in its row.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 37 -
Change skull model opacity
Right-click the eye
icon of the skull
model, select Opacity,
and adjust the slicer
to around 0.30
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 38 -
Show axial slice in 3D
Hover the push-pin icon and
then the eye icon to show a
slice view in 3D view.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 39 -
Show coronal slice in 3D
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 40 -
Model clipping
Right-click a model node in
the data tree and choose
‘Edit properties…’ to go to
the Models module.
(It can be accessed from the
toolbar or the module list as
well)
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 41 -
Model clipping
Select all brain models using
Shift, then scroll down to the
3D Display section.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 42 -
Model clipping
Turn on Clipping.
Click Configure.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 43 -
Model clipping
Turn off Red Slice Clipping
and turn on Green Slice
Clipping.
The optic chiasm becomes
visible in the 3D view
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 44 -
3D display options
Hide the coronal (green)
plane.
Position your cursor over
the pin icon in the 3D view
to display the 3D display
options. Select the A
(Anterior) view.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 45 -
Save the scene
Click the ‘Save data’ button.
Note: Also accessible from
the File menu
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 46 -
Save the scene
The Save Scene and
Unsaved Data window lists
all elements of the scene.
You can save as MRB
bundle or as list of files.
Double-click the scene and
rename it to
myNewScene.mrb
Click Save.
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 47 -
Close the scene
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 48 -
Load your recently saved scene
Load the new scene using
the Recent data list.
(You can load the scene
using drag&drop or Add
data as well)
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 49 -
Thanks for participating!
Laboratory for Percutaneous Surgery – Copyright © Queen’s University, 2022 - 50 -