Cubical Ripser: Software for computing persistent homology of image and volume data
Shizuo Kaji, Takeki Sudo, Kazushi Ahara
TL;DR
Cubical Ripser extends persistent homology computations to weighted cubical complexes derived from images and volumes, addressing a gap where traditional Ripser targets point-cloud data. It provides a cohomology-based reduction algorithm tailored to cubical cells, enabling fast, memory-efficient computation of PH in 1D–3D data and offers Python bindings for easy integration with machine learning workflows. The paper benchmarks Cubical Ripser against DIPHA, demonstrates practical preprocessing and localised PH features (e.g., lifetime-enhanced images, persistent histogram images), and shows that PH features can modestly aid CNN-based classification in 2D while enabling a pipeline for combining global topological information with deep learning. The tool is open-source and designed to facilitate rapid access for practitioners, with a discussion of limitations and comparisons to other software.
Abstract
We introduce Cubical Ripser for computing persistent homology of image and volume data (more precisely, weighted cubical complexes). To our best knowledge, Cubical Ripser is currently the fastest and the most memory-efficient program for computing persistent homology of weighted cubical complexes. We demonstrate our software with an example of image analysis in which persistent homology and convolutional neural networks are successfully combined. Our open-source implementation is available online.
