pykarambola: Minkowski tensor morphometry of 3D structures.
Yajushi Khurana, Keisuke Ishihara
Department of Computational and Systems Biology, University of Pittsburgh, 3396 Fifth Avenue, Pittsburgh, PA 15213, United States.
Key points
From the paper's conclusion- 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 3D 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 1584 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.
Abstract
MOTIVATION: 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. RESULTS: 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 3D 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 1584 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. 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Minkowski Tensors as a Lightweight and Interpretable Representation for Three-Dimensional MorphologybioRxiv · 2026
- MyMesh: General purpose, implicit, and image-based meshing in PythonThe Journal of Open Source Software · 2026
- MaSkel and napari-MaSkel: fast morphological skeleton feature extraction from segmentation masksbioRxiv · 2026
- PhyMorphS: A Physics-Guided Framework for Mesh-Based Morphological Synthesis of White Matter MicrostructuresbioRxiv · 2026
- NOZOMI: a GPU-accelerated Monte-Carlo numerical approach for microstructure diffusion imaging.Physics in medicine and biology · 2026
- Top-6-Class MetaStudio (Top6Meta): A Python-based framework for the modeling of architected materials and structuresSoftware Impacts · 2026