Skip to content

Changelog

All notable changes to digitopo are listed in this file. The format follows Keep a Changelog, and the version numbers follow Semantic Versioning.

Unreleased

0.1.1 - 2026-12-03

Added

  • CITATION.cff and .zenodo.json: how to cite digitopo, and the metadata of its archive on Zenodo (one DOI per release).
  • benches/timings.py and the Timings workflow: times of pink26 and digitopo on a machine, written to a JSON file.

0.1.0 - 2026-12-01

First public release. The changes made during the development, before this release, are in the git history.

Added

  • digitopo.topology: topological_numbers, simple_points (2D, 3D and 4D), point_types, point_classes_3d, end_points, curve_points, junction_points, with the API and the codes of pink26; additions: euler_characteristic and topology (objects, holes or tunnels, cavities, Euler characteristic).
  • digitopo.skeleton: ultimate_skeleton and curvilinear_skeleton, with priority and inhibit, in Pink's order (red-black tree included), so that equal priorities are resolved as in Pink; priorities outside Pink's safe range (including the default squared distance of a very large object) are replaced by their dense rank, which keeps the order.
  • digitopo.skeleton.parallel_skeleton: critical kernels, shapes "ultimate", "curvilinear" and "surface" (3D), symmetric or not, with max_steps and inhibit (Pink's lskelMK2, lskelNK2b, lskelCK2 in 2D; pink26's corrected lskelMK3, lskelAMK3, lskelCK3a, lskelACK3a, lskelSK3 in 3D).
  • digitopo.skeleton.zhang_wang_thinning and guo_hall_thinning (variants 1 to 3): Pink's classic 2D parallel thinnings, for comparison.
  • digitopo.watershed: topological_watershed and watershed_lines (Pink's lwshedtopo with pink26's second pass), connectivity 4 or 8 in 2D, 6, 18 or 26 in 3D; watershed_labels (no equivalent in pink26): labelled markers and labelled basins, 0 on the lines, as skimage.segmentation.watershed(..., watershed_line=True), with the lines of the topological watershed.
  • digitopo.grayscale: homotopic_thinning, homotopic_thickening, homotopic_kernel and lambda_kernel, identical to pink26 point by point.
  • digitopo.distance.distance_map: squared Euclidean, 5-7 chamfer, d4, d8, d6, d18 and d26 distances.
  • digitopo.io.read and write: Pink's PGM format, 2D and 3D, uint8, int32, float32 and float64, parsed in Rust; write writes the bytes of pink26.
  • digitopo.evaluation (no equivalent in pink26): topology_errors (signed differences of objects, holes, cavities and Euler characteristic) and cl_dice (Shit et al., 2021).
  • digitopo.measure (no equivalent in pink26): branches cuts a skeleton into branches (kinds, paths, labels) and measures their lengths in the units of spacing; a hole surrounded by junction points only gives a loop, so the branches keep one cycle per hole; prune removes the terminal branches (spurs) shorter than a given length, without changing the topology of the skeleton.
  • digitopo.interop (no equivalent in pink26): connectivity(ndim, c) and skimage_connectivity(ndim, n) convert between the connectivity of scikit-image (1 to ndim) and the number of neighbours, also at the top level; as_uint8 converts a float image in [0, 1], a bool or an integer image, and refuses what it would clip. convert=True (keyword-only) in the grey-level operators and the watersheds applies it.
  • Errors as in pink26: TypeError for a wrong dtype, ValueError for an invalid value, and digitopo.DigitopoError (a subclass of ValueError, pink26's Pink26Error) for an input that digitopo cannot process although it is valid in principle. The Rust API returns Result everywhere: no input makes the crate panic.
  • Images up to about 4.29 x 10^9 points, frame included (pink26's limits of 2^24 to 2^31 points are lifted). The extension copies its inputs before releasing the GIL, so other Python threads run during a call.
  • Parallel execution with rayon for the point-by-point functions, the Euler characteristic, the distance map and the order-independent passes of the parallel thinnings (RAYON_NUM_THREADS limits the threads); the results do not depend on the number of threads.
  • Typed Python API (py.typed, _core.pyi, precise return types), checked by mypy --strict.
  • Tests: Rust tests, including all 2D configurations and all 2^26 3D configurations of the simplicity test; robustness tests (proptest) and fuzz targets (cargo-fuzz); a test that every parallel operator gives the same result with 1, 3 and 7 threads; verify/, which compares Pink's C topology functions with digitopo on every configuration; Python tests against independent references and point-by-point comparisons with pink26 when it is installed.
  • Continuous integration (Rust and Python tests on Linux, macOS and Windows with Python 3.11 and 3.14, ruff and mypy, comparison with pink26), abi3 wheels for Python 3.11 and later, and PyPI releases on v* tags (docs/RELEASING.md).
  • Online documentation with MkDocs: concepts, illustrated examples, reference of every module, built with mkdocs build --strict and published on GitHub Pages by .github/workflows/docs.yml.