Efficient computation of topological integral transforms
Vadim Lebovici, Steve Oudot, Hugo Passe
TL;DR
This work tackles the lack of exact, weighted-topology transforms for grayscale data by introducing eucalc, a fast, parallelizable C++ library (with Python binding) that computes the Euler characteristic transform, Radon transform, and hybrid transforms on weighted axis-aligned cubical complexes. Leveraging piecewise linear Morse theory and Euler calculus, the authors reduce computation to a finite set of critical points and precompute across the $2^n$ sign patterns, enabling exact transform representations with per-direction evaluation near linear in the number of vertices. Empirical results on large grayscale datasets show significant speedups over discretized baselines and demonstrate robustness to grayscale inputs, while parallelization further accelerates preprocessing and evaluation. The approach yields practical, exact transforms with potential to enable exact inverse operations and broader extensions to general polytopal complexes in higher dimensions. The work thus provides a scalable, exact toolkit for topological shape analysis of images, with clear implications for computer vision and biomedical imaging applications.
Abstract
Topological integral transforms have found many applications in shape analysis, from prediction of clinical outcomes in brain cancer to analysis of barley seeds. Using Euler characteristic as a measure, these objects record rich geometric information on weighted polytopal complexes. While some implementations exist, they only enable discretized representations of the transforms, and they do not handle weighted complexes (such as for instance images). Moreover, recent hybrid transforms lack an implementation. In this paper, we introduce Eucalc, a novel implementation of three topological integral transforms -- the Euler characteristic transform, the Radon transform, and hybrid transforms -- for weighted cubical complexes. Leveraging piecewise linear Morse theory and Euler calculus, the algorithms significantly reduce computational complexity by focusing on critical points. Our software provides exact representations of transforms, handles both binary and grayscale images, and supports multi-core processing. It is publicly available as a C++ library with a Python wrapper. We present mathematical foundations, implementation details, and experimental evaluations, demonstrating Eucalc's efficiency.
