pykarambola: Minkowski tensor morphometry of 3D structures
Abstract Three-dimensional biological morphologies encode functional and physiological state, yet their directional, orientational, and topological properties are rarely captured by morphometric tools in bioimage analysis. Minkowski tensors encode surface curvature and directionality for arbitrary topologies; their eigensystems directly quantify elongation axes and anisotropy. A C ++ implementation, karambola, computes Minkowski tensors for triangulated surfaces but is inaccessible within Python-based bioimage workflows. We present pykarambola, a Python package that accepts NumPy arrays and standard mesh formats and returns Minkowski tensors, including derived anisotropy and orientation quantities. A high-level label-image interface converts three-dimensional integer arrays into per-object Minkowski tensors in a single call, making pykarambola directly compatible with the output of segmentation tools. An optional Cython extension accelerates graph-traversal steps of mesh initialization for large-scale analyses. Validated on synthetic meshes spanning three topologies and benchmarked on 1,584 adrenal gland meshes, pykarambola reproduces all 121 karambola features to near-floating-point agreement and is 2.8-fold faster, with speedups primarily attributable to per-object file input/output. pykarambola is freely available as an open-source software package. Availability and implementation: pykarambola is distributed under the BSD 3-Clause License and is available on GitHub at https://github.com/Ishihara-SynthMorph/pykarambola. It can be installed via pip.
Authors
- Keisuke Ishihara (ORCID: https://orcid.org/0000-0002-8481-8680)
- Yajushi Khurana (ORCID: https://orcid.org/0009-0001-9064-8008)
Institutions
- University of Pittsburgh (US)
Publication Details
- Journal
- Bioinformatics Advances
- Published
- 2026-09-17
- DOI
- https://doi.org/10.1093/bioadv/vbag273
- Primary Topic
- Cell Image Analysis Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- American Heart Association