Skip to main content

bone-microarchitecture icon

Bone Microarchitecture

Lightweight microarchitecture measurements from binary masks and optional calibrated grayscale arrays.

Author: Matthias Walle.

This package intentionally has no Slicer dependency and no image I/O dependency. Callers are responsible for loading images, calibration, and putting masks on a common grid.

Batch discovery accepts canonical segmentation, periosteal, trabecular, and cortical roles from shared contour derivatives and their sidecars. See CHANGELOG.md for release notes.

GPU Backends

Exact Hildebrand sphere fitting supports three diameter-accumulation backends:

  • cpu: NumPy/SciPy fallback.
  • mps: native Apple Metal backend for macOS.
  • opencl: OpenCL backend for Windows/Linux systems with pyopencl and a working GPU OpenCL runtime.

Use thickness_backend="auto" to select Metal on macOS when available, OpenCL on Windows/Linux when available, and CPU otherwise.

Optional installs:

pip install "bone-microarchitecture[mps]"
pip install "bone-microarchitecture[opencl]"
pip install "bone-microarchitecture[gpu]"

Parameter Definitions

  • Tb.BMD: mean calibrated grayscale value inside the trabecular compartment.
  • Tb.BV/TV: trabecular bone volume divided by trabecular total volume.
  • Tb.Th: maximal-sphere local thickness of trabecular bone.
  • Tb.Sp: maximal-sphere local thickness of non-bone space in the trabecular compartment.
  • Tb.N: inverse ridge-to-ridge spacing estimate in the trabecular compartment.
  • Tb.1/N.SD: standard deviation of ridge-to-ridge spacing.
  • Tb.BV: trabecular bone volume.
  • Tb.TV: trabecular compartment volume.
  • Ct.BMD: mean calibrated grayscale value inside the cortical compartment.
  • Ct.Th: maximal-sphere local thickness of cortical bone.
  • Ct.Po: cortical pore volume divided by cortical total volume.
  • Ct.Po.V: cortical pore volume.
  • Ct.Po.Dm: maximal-sphere local diameter of cortical pore space.
  • Ct.BV: cortical bone volume.
  • Ct.TV: cortical compartment volume.

Metadata

Release files for bone-microarchitecture 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bone-microarchitecture 0.2.4
File Size Uploaded
bone_microarchitecture-0.2.4.tar.gz 39.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bone-microarchitecture 0.2.4
File Interpreter ABI Platform
bone_microarchitecture-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 70.1 kB

Release files / bone_microarchitecture-0.2.4.tar.gz

Download URL bone_microarchitecture-0.2.4.tar.gz
Size 39.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b91b59e4cdbc49d8fdf33a6f4b05217748de5236029d5aefe08c7332e746af9
BLAKE2b-256 checksum
How to use checksums
86e9149e3d781bb133ade3d065ec7d78a19adf899d64d274edcebba5c8c031d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / bone_microarchitecture-0.2.4-py3-none-any.whl

Download URL bone_microarchitecture-0.2.4-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8d484ce41ac8d5cb0cc5168ffa1c25a8b8bf63d56daf4364252a072c5cfd422
BLAKE2b-256 checksum
How to use checksums
82d6b68f22692f82b1eca30addf43e06f7b414cb6b317852ca4d53c206617f50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page