Examples#

Runnable, image-rich examples grouped by topic. Every page can be downloaded as a .py script or a Jupyter notebook from the links at the bottom.

Reading & writing images#

Loading optical photographs, DICOM stacks, NumPy arrays and simulation output into physical Image objects.

<no title>

Example demonstrating the I/O capabilities of DarSIA, and in particular the reading

Reading a NumPy array

Reading a NumPy array

Reading a sequence of optical images

Reading a sequence of optical images

A first DarSIA image

A first DarSIA image

<no title>

Example of reading and resampling vtu images corresponding

Corrections#

Calibrating colour and correcting geometric distortion (curvature, perspective, drift) of recorded images.

Colour correction with a colour checker

Colour correction with a colour checker

Curvature correction of a photograph

Curvature correction of a photograph

Restoration#

Denoising and regularising image data with total-variation and H1 methods.

Total-variation and H1 regularization

Total-variation and H1 regularization

Segmentation#

Partitioning images of multi-layered porous media into labelled regions with watershed segmentation.

Geometry segmentation of a layered medium

Geometry segmentation of a layered medium

Image registration#

Recovering the displacement or deformation between two images, e.g. sand settling or compaction over the course of an experiment.

<no title>

Determine deformation of FluidFlower by comparing two different images.

Concentration analysis#

Turning image sequences into physical concentration, tracer and CO2 maps, and calibrating the underlying models.

<no title>

Example script for simple image analysis. By comparison of images

<no title>

Test phase segmentation, taken from FluidFlower analysis conducted in the work

Tracer concentration from two images

Tracer concentration from two images

Kernel interpolation for concentration

Kernel interpolation for concentration

Distances#

Transport-aware image-to-image distances: the Earth Mover’s and Wasserstein distances and the Beckmann solvers behind them.

Earth Mover’s / Wasserstein distance

Earth Mover's / Wasserstein distance

Wasserstein: splitting a square

Wasserstein: splitting a square

Wasserstein distance: solver development script

Wasserstein distance: solver development script

Paper reproductions#

Scripts reproducing figures from DarSIA publications. These are shown for reference and are not executed during the documentation build.

<no title>

Comparisons of block b closed for dicom and vtu images.

Gallery generated by Sphinx-Gallery