visualization

Collection of functions for basic visualization of images

This module contains functions for quickly visualizing 3D images in 2D views.

visualization.bar(results[, 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.

visualization.set_mpl_style()

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

visualization.show_3D(im)

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

visualization.show_mesh(mesh)

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.