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 withpyopencland 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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bone_microarchitecture-0.2.3.tar.gz | 39.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bone_microarchitecture-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.4 kB
Release files / bone_microarchitecture-0.2.3.tar.gz
| Download URL | bone_microarchitecture-0.2.3.tar.gz |
|---|---|
| Size | 39.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deb97bb4ef3bca8e159acdaad26414f90ac6ac27e1d7170862d5d36c4ec2d6dc
|
|
BLAKE2b-256 checksum How to use checksums |
815e4db5487f7b4fee3061b08f6a4e2a9ff625e2f2e7601c424c9bc45446ad45
|
| 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 3, 2026.
Transparency logRelease files / bone_microarchitecture-0.2.3-py3-none-any.whl
| Download URL | bone_microarchitecture-0.2.3-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5e7e477f88f32ebe151eed5fc72d1c18ff6835d38877ac6f3f7b441f5e2b4af
|
|
BLAKE2b-256 checksum How to use checksums |
1aecb5b35ef7fe3ce9d372d5dbc74a7d74123c953d38e124205ff089508fd9a3
|
| 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 3, 2026.
Transparency log