Visualization of Volumetric Data
Visualization of Volumetric Data
Data
into the final result. Ultimately, the software should be able to
produce publication quality figures for scientific articles.
Introduction The open-source tomviz software package aims to meet
This article is a short tutorial on the principles of visual- each of these criteria, whilst also being free to download and
izing complex 3D volumetric datasets, demonstrated using use. Tomviz, can be run on Windows, Mac OS, or Linux
tomviz. Across a diverse range of scientific disciplines, operating systems and is available for download at www.tomviz.
understanding the 3D internal structure of material and org. Tomviz can be run on a laptop and can leverage powerful
biological specimens is essential for scientific progress. There GPUs for visualizing large, intricate datasets. We use tomviz
are numerous methods for characterizing the 3D internal to illustrate this tutorial, but the principles outlined apply to
structure of objects at different length scales, including X-ray other software packages, including the free non-commercial
computed tomography [1], transmission electron microscopy Chimera (University of California at San Francisco) and
(TEM) tomography [2,3], scanning transmission electron various commercial software packages. In the following
microscopy (STEM) tomography [4], focused ion beam– sections, we describe the format of 3D datasets and several
scanning electron microscopy (FIB-SEM) tomography [5], techniques that can be used to visualize the data.
and atom-probe tomography [6,7]. Whatever the
Definitions and the User Interface
application, or the technique used, the volumetric datasets
3D datasets. A data cube refers to any 3D (or higher)
generated by these methods require visualization. Data
array of values—such as a stack of 2D black-and-white
visualization adds more than just aesthetic value to
images representing a spatial volume. Unlike crystallographic
scientific research. High-quality and interpretable
visualization is essential for extracting meaningful and surface data, data cubes grow rapidly—a 1024 × 1024 ×
information from complex 3D structures. 1024 data cube of 32-bit values occupies 4.29 gigabytes of
Visualizing 3D volumetric datasets requires specialized memory. Each 3D element in the data cube is termed a voxel,
software, distinguishable from the more familiar 3D visual- analogous to a pixel in a 2D image. In tomography, each voxel
ization of wireframes (used in animated cinema) or molecular in a data cube contains a value that represents intensity at a
coordinates (crystallography). This specialized software point (x,y,z) in the volume, which may relate to the
requires interactive volume rendering tools, surface rendering composition or some other characteristic of the object at that
tools, and the ability to display cross sections through the point. For example, in medical X-ray computed tomography
volume—at a minimum. Visualizations should be reproducible (CT), higher intensity represents denser material; a human
and shareable, enabling other scientists to inspect and validate head has brighter values at points where the hard skull is
data as well as understand the steps taken to turn the raw data located than where soft brain matter is located [1,8]. In
nanoscale STEM tomography, high-Z gold nanoparticles
appear brighter than low-Z silica nanopar- ticles [4]. Because
intensity values are provided at all voxels, not just at material
surfaces, tomography reveals the entire 3D internal structure
of an object [1].
3D data cubes are not limited to spatial volumes. In
a hyperspectral map the third dimension is spectroscopic (x-y-
wavelength, or x-y-energy) [9]. In a black-and-white movie,
the third dimension is time (x-y-time). In a tomographic tilt
series, the data cube contains images at different projection
https://doi.org/10.1017/S1551929517001213 Published online by Cambridge University
3D Visulization of Volumetric Data
angles (x-y-angle). Although tomographic volume data is the volume, and a slice in the case of Figure 1—are listed in the
most directly interpretable, tomviz is capable of visualizing upper left-hand Pipelines (Figure 1a). As the user adds new
any type of 3D data cube. visualization modules to a dataset, these will be displayed in
Loading volumetric data into tomviz. In tomviz, users the pipeline for that dataset. Each dataset that is opened in
can load a variety of datatypes stored as a TIFF, PNG, raw tomviz is assigned its own pipeline. This allows the user to
binary data, MRC, or HDF5 under “File > Open” in the top easily keep track of all changes made to every dataset. Further
menubar. For convenience, tomviz comes packaged with an properties for each selected visualization module or dataset are
example dataset, a “Star Nanoparticle (Reconstruction),” so shown in the lower left-hand Properties Panel (Figure 1b).
users can immediately explore different visualization In addition to a suite of visualization tools—the subject of
techniques. The dataset contains the 3D structure of a Co2P this tutorial—3D data processing is also integrated into the
hyperbranched nanoparticle; it can be opened from the tomviz user interface. A Python console (Figure 1c) can be
menubar under “Sample Data.” For further exploration of opened from “Tools > Python” Console under the top
visualization techniques, five high-quality electron tomography menubar. Users can execute pre-written python scripts or create
datasets from the peer-reviewed literature have been made their own code using numpy, scipy, or ITK. The Data
publicly available for researchers to use (Levin et. al., 2016). Transform and Tomography menus contain pre-written
The datasets can be accessed under “Sample Datasets > algorithms for image processing, alignment, and tomographic
Download More Datasets,” or they can be downloaded at reconstruction of raw electron microscopy data. After these
https:// dx.doi.org/10.6084/m9.figshare.c.2185342. scripts are executed in Python, they are sent back to tomviz for
The tomviz user interface. New visualizations can be immediate visualization. Data transforms appear in the
added from the Visualization menu or by clicking an icon pipeline in the order in which they are executed. Double-
from the Toolbar: clicking on a transform listed in the pipeline opens a new
window displaying the Python code used to implement the
transformation, which the user may edit if desired. The tomviz
pipeline uniquely preserves all steps for reproducible workflow.
All tomviz visualizations are interactive 3D objects that
After a dataset is loaded, a histogram panel appears
can be rotated by clicking and dragging in the render
(Figure 1d). Colors in the histogram represent a colormap that
window(s). The dataset and its associated visualizations—
quantitatively correlates colors in a visualization to
an outline, a
corresponding
Figure 1: The tomviz graphical user interface for 3D visualization of tomographic data. Once a dataset has been loaded, the data pipeline is populated (a). A variety of visualization
types are available to be used in combination for analysis—with parameters specified in the module properties panel (b). A Python interface offers advanced scientific processing of data
(c). A histogram of voxel intensities is displayed top center (d). The line across the histogram represents the opacity map and can be altered interactively. Here a reconstruction of porous
PtCu nanoparticles is visualized using a volume render (e), a non-orthogonal slice through one particle (f), and a contour surface (g). Tabs, and divisions within a tab, allow multiple
2018 January • www.microscopy-today.com 13
simultaneous renderings and camera angles.
Figure 4: Volume renderings of a Co2P nanoparticle [10] viewed from different perspectives using Grayscale, Plasma, and Viridis color-opacity maps. In these renderings, the dense
internal core of the nanoparticle is displayed in lighter, more opaque colors, whilst the branches that protrude from the core are displayed as darker and more transparent colors.
The color-opacity maps used in the visualizations are shown below each view of the particle.