Skip to main content

Bone Microarchitecture

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

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bone_microarchitecture-0.2.0.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bone_microarchitecture-0.2.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file bone_microarchitecture-0.2.0.tar.gz.

File metadata

  • Download URL: bone_microarchitecture-0.2.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bone_microarchitecture-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cc6accb09ae4db14ca28786160984d0739dc747acf098383483e21eaf545e301
MD5 b670acadd429dd78d1131e038b82d047
BLAKE2b-256 10878276a0f80da71378ba0d5117f4fd59d2bacddb46832709f9ce0c808099cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for bone_microarchitecture-0.2.0.tar.gz:

Publisher: publish-pypi.yml on wallematthias/bone-microarchitecture

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bone_microarchitecture-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bone_microarchitecture-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a78aa1143b6e9f7028fcf638619671c18110dbeb100c59c811a98b7f42c0e868
MD5 9a6cf366f2048a7a9156f305c0c03886
BLAKE2b-256 e4f1d0f8d447a8cb830b6dc00413d765209201ff892cedabce70bcbb97af1bdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for bone_microarchitecture-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on wallematthias/bone-microarchitecture

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.0

2 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