# Python script for threshold based Bone segmentation

**URL:** <https://discourse.slicer.org/t/python-script-for-threshold-based-bone-segmentation/23752>\
**Category:** Support\
**Created:** [June 7, 2022, 11:22am UTC](https://discourse.slicer.org/t/python-script-for-threshold-based-bone-segmentation/23752 "2022-06-07T11:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzt036](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gzt036/32/15418_2.png) [@gzt036](https://discourse.slicer.org/u/gzt036)\
**Post date:** [June 7, 2022, 11:22am UTC](https://discourse.slicer.org/t/python-script-for-threshold-based-bone-segmentation/23752/1 "2022-06-07T11:22:17Z")

</div>

Is there a python script or function to run threshold based segmentation for Bones after the DICOM file is loaded into slicer? Thanks.

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [June 7, 2022, 12:03pm UTC](https://discourse.slicer.org/t/python-script-for-threshold-based-bone-segmentation/23752/2 "2022-06-07T12:03:49Z")

</div>

I think you can make it yourself with some python scripting
