Bioinformatics AdvancesBioinformaticsPeer-reviewed journal article
pykarambola: Minkowski tensor morphometry of 3D structures
Abstract
Three-dimensional biological morphologies encode functional and physiological state, yet the directional, orientational, and topological properties of these shapes are rarely captured by morphometric tools available for bioimage analysis. Minkowski tensors are mathematically rigorous tensor-valued measures that encode surface curvature and directionality for objects of arbitrary topology, with tensor eigensystems that directly quantify elongation axes and anisotropy. A C++ implementation, karambola (1), computes Minkowski tensors for triangulated surfaces but is inaccessible within Python-based bioimage workflows. Here we present pykarambola, a pip installable 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 API converts 3D integer arrays into per-object Minkowski tensors in a single call, making pykarambola directly compatible with the output of widely used segmentation tools. An optional Cython extension accelerates graph-traversal steps of mesh initialization for large-scale analyses. Benchmarked on 1,584 adrenal gland meshes, pykarambola reproduces all 121 C++ karambola output features to near-floating-point agreement and, in the pure-Python build, is 2.8x faster at 283 and 1.5x faster at 643 voxel resolution, with speedups primarily attributable to karambolas sequential per-object file I/O. pykarambola is freely available as an open-source software package.
- assay: imaging
- research focus: software / tool
- research focus: benchmarking
- approach: statistical model
- Citations
- 0
- FWCI
- 0.00
- Field percentile
- top 35%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Minkowski Tensors as a Lightweight and Interpretable Representation for Three-Dimensional Morphology
Yajushi Khurana, Keisuke Ishihara·bioRxiv·Sep 28, 2026
- Interactive 3D visualization and post-processing analysis of vertex-based unstructured polyhedral meshes with ParaView
P. C. Sanematsu·bioRxiv·Oct 15, 2021
- MaSkel and napari-MaSkel: fast morphological skeleton feature extraction from segmentation masks
Simon Wittmann, Dominik Pysch, … Anna Cäcilie Möller·bioRxiv·Sep 21, 2026
- The local and global geometry of trabecular bone
Sebastien J. P. Callens, Duncan C. Tourolle né Betts, … AMIR ABBAS ZADPOOR·Acta BiomaterialiaPeer-reviewed·Jun 12, 2021
- habtools: an R package to calculate 3D metrics for surfaces and objects
Nina M. D. Schiettekatte, Mollie Asbury, … Joshua S. Madin·Methods in Ecology and EvolutionPeer-reviewed·Apr 7, 2025
- Mindboggling morphometry of human brains
Arno Klein, Satrajit Ghosh, … Anisha Keshavan·PLoS Computational BiologyPeer-reviewed·Feb 23, 2017