API reference#
Every public object listed here is importable directly from the top-level namespace, for example:
import darsia
image = darsia.imread("photo.jpg", width=1.0, height=0.6)
corrected = darsia.ColorCorrection()(image)
d = darsia.wasserstein_distance(mass_a, mass_b)
The reference is organised by topic. Within each page, the most commonly used objects are listed first; deeper machinery is grouped under an Advanced heading.
Physical image containers, coordinate systems, and readers for optical, DICOM and simulation data.
Colour, illumination, curvature, affine and drift corrections.
Total-variation and H1 denoising, resizing, averaging, binary inpainting.
Watershed-based geometry segmentation and label management.
Signal reduction and the model hierarchy mapping signals to concentrations.
Colour paths, ranges, spectra and label-to-colour maps.
Concentration analysis, image registration, calibration and managers.
Earth Mover’s and Wasserstein distances and the Beckmann solvers.
Contour extraction and smoothing.
Matplotlib-interactive helpers for picking ROIs and parameters.
Grids, finite volumes, derivatives, interpolation, kernels, solvers.
The configuration-driven presets.workflows pipeline.
experiment and multiphase – unstable, evolving APIs.