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.1.0.tar.gz (19.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.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bone_microarchitecture-0.1.0.tar.gz
  • Upload date:
  • Size: 19.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.1.0.tar.gz
Algorithm Hash digest
SHA256 c461137f8029b636230dd6e800cfb17f657bf9b964ec0a7737738b8f446d301f
MD5 12a012ed6f54146f6c23a8072d72b5f5
BLAKE2b-256 975fb885274ff8fc324a5467d7d17a996dd7a62b44db2290f4e7111b627f872f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for bone_microarchitecture-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76be26eb50ba1773f6ecde5079bb891749801d70a7f3cd7fefccecbdc5764e12
MD5 5b166a10f18b72b3ecccf1732241bdda
BLAKE2b-256 b7db0cf6a9b1e27be6dce5a041c267afc616583bcba152a76cce4cc02e82982d

See more details on using hashes here.

Provenance

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

0.2.0

2 files

This release

0.1.0 This release

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