Skip to content

Tools for bone modeling, evaluation and biomarker development.

License

Notifications You must be signed in to change notification settings

qiancao/BoneBox

Repository files navigation

BoneBox

Tools for bone modeling, evaluation and biomarker development.

alt text

Install Dependencies

Clone the repository.

git clone https://github.com/qiancao/BoneBox.git
cd BoneBox

Create a new conda environment with the needed dependencies.

conda env create -f environment_bonebox.yml
conda activate bonebox

Example: Generating a simple Voronoi-based Trabecular Model

import matplotlib.pyplot as plt
from bonebox.Phantoms.TrabeculaeVoronoi.zoo import RandomDropout

# Parameters for generating phantom mesh

volume_extent = (3,)*3 # in mm
volume_ndim = (120,)*3 # number of pixels in each dimension
mean_TbTh = 0.08 # mean trabecular thickness
std_TbTh = 0.01 # standard deviation of trabecular thickness

# Generate trabecular bone phantom based on random dropout

volume = RandomDropout.generate(volume_extent=volume_extent,
                                volume_ndim=volume_ndim,
                                mean_TbTh=mean_TbTh,
                                std_TbTh=std_TbTh)

# Plot integral through volume
plt.imshow(np.sum(volume,axis=2),cmap="gray");plt.axis("off")

alt text

About

Tools for bone modeling, evaluation and biomarker development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages