Collection of functions for basic visualization of images#

This module contains functions for quickly visualizing 3D images in 2D views.[, h])

Convenience wrapper for matplotlib's bar.

visualization.imshow(*im[, ind, axis])

Convenience wrapper for matplotlib's imshow.

visualization.prep_for_imshow(im[, mask, ...])

Adjusts the range of greyscale values in an image to improve visualization by matplotlib.pyplot.imshow

visualization.satn_to_movie(im, satn[, ...])

Converts a saturation map into an animation that can be saved

visualization.satn_to_panels(satn, im[, ...])

Produces a set of images with each panel containing one saturation

visualization.sem(im[, axis])

Simulates an SEM image looking into the porous material.


Prettifies matplotlib's output by adjusting fonts, markersize etc.


Rotates a 3D image and creates an angled view for rough 2D visualization.


Visualizes the mesh of a region as obtained by get_mesh function in the metrics submodule.

visualization.show_planes(im[, spacing])

Create a quick montage showing a 3D image in all three directions

visualization.xray(im[, axis])

Simulates an X-ray radiograph looking through the porous material.