Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Trabecular Segmentation Example

  • By: Michael T. Kuczynski, 2024

  • License: CC-BY

  • How to cite: Cite the ORMIR_XCT publication: Kuczynski et al., (2024). ORMIR_XCT: A Python package for high resolution peripheral quantitative computed tomography image processing. Journal of Open Source Software, 9(97), 6084, Kuczynski et al. (2024)


Aims


Step 1: Imports

Import modules/packages and set the input image path.


Step 2: Trabecular Segmentation

Run the ORMIR_XCT trabecular segmentation script on the input grayscale joint image.

We also need the lower and upper threshold limits. These are constant values defined in the IPL segmentation workflow and a re provided in threshold_dict in the ipl_seg.py file. Depending on your image units, these thresholds will change. In this example, we will use HU units since our image is in HU.


Step 3: Display Results

Now display the ORMIR_XCT and IPL segmentations together.

<Figure size 5000x3000 with 9 Axes>

Step 4: Compare IPL to ORMIR_XCT

Now compare segmentations using metrics.

To compute the metrics, we need to make sure our images are the same size. Use the SimpleITK resample procedural interface to ensure image sizes match.

DICE:  0.9169765300789231
Jaccard:  0.8466820484931374
Mean Hausdorff Distance:  0.052157967935281165
Maximum Hausdorff Distance:  3.9416047257362727

Notebook created using the template of the ORMIR community (version 1.0, 2023)

References
  1. Kuczynski, M. T., Neeteson, N. J., Stok, K. S., Burghardt, A. J., Hernandez, M. A. E., Vicory, J., Tse, J. J., Durongbhan, P., Bonaretti, S., Wong, A. K. O., Boyd, S. K., & Manske, S. L. (2024). ORMIR_XCT: A Python package for high resolution peripheral quantitative computed tomography image processing. Journal of Open Source Software, 9(97), 6084. 10.21105/joss.06084