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.1.tar.gz (27.8 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.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bone_microarchitecture-0.2.1.tar.gz
  • Upload date:
  • Size: 27.8 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.1.tar.gz
Algorithm Hash digest
SHA256 438d88de7effc33727e6a501bec038e4c02af866b275ea917c2375b8aa8c2f03
MD5 8328079d62962cf3b5930b2186096757
BLAKE2b-256 57fbfefd538ee5ad5f605637c049875c022bbe0e5eb45f80455fbe56022fe093

See more details on using hashes here.

Provenance

The following attestation bundles were made for bone_microarchitecture-0.2.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bone_microarchitecture-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9af54c144772d180380455705b74d44b7ad8c56430892588f650ca8c37521ef0
MD5 4cc92d3177bb81c4822b9174dae23471
BLAKE2b-256 150a3fdc437b7e6cb74e9f8edaeb71aa66157573cd5a73091aea12ce10d553dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for bone_microarchitecture-0.2.1-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

This release

0.2.1 This release

2 files

0.2.0

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