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.

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.2

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.2
File Size Uploaded
bone_microarchitecture-0.2.2.tar.gz 35.0 kB Details

Built distribution (wheel)

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

Total release size: 62.6 kB

Release files / bone_microarchitecture-0.2.2.tar.gz

Download URL bone_microarchitecture-0.2.2.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
57f70a19cc34b4fc1d307e5ea87cbbece7c8ee6228f53d771fb85b24cc37c40b
BLAKE2b-256 checksum
How to use checksums
2d2316015f955ab3ac430d77187615b038693dfb213cf9673a74057b21951ca9
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 Sep 1, 2026.

Transparency log

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

Download URL bone_microarchitecture-0.2.2-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a7fe0a8e4cd7bbfe5dae13e811b8311521a5fee41a9dec582959fea963648e1
BLAKE2b-256 checksum
How to use checksums
6bf98f0d3408554974ef5a924b7f41fb154a024b82da8530db2f1ba13485303d
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 Sep 1, 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

0.2.4

2 release files

0.2.3

2 release files

This release

0.2.2 This release

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