# How to create binary image from CT image.

**URL:** https://discourse.itk.org/t/how-to-create-binary-image-from-ct-image/3222
**Category:** Algorithms
**Created:** [June 24, 2020, 5:55am UTC](https://discourse.itk.org/t/how-to-create-binary-image-from-ct-image/3222 "2020-06-24T05:55:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![unicorn](https://discourse.itk.org/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@unicorn](https://discourse.itk.org/u/unicorn)
#### Post date: [June 24, 2020, 5:55am UTC](https://discourse.itk.org/t/how-to-create-binary-image-from-ct-image/3222/1 "2020-06-24T05:55:02Z")

</div>

I applied Sobel edge detector and wanted to apply threshold on it. How do I set these threshold?  
What are the values to be given here for CT?

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [June 24, 2020, 4:14pm UTC](https://discourse.itk.org/t/how-to-create-binary-image-from-ct-image/3222/2 "2020-06-24T16:14:05Z")

</div>

You probably want [BinaryThresholdImageFilter](https://itk.org/Doxygen/html/classitk_1_1BinaryThresholdImageFilter.html). It has links to examples. Choice of the threshold depends on the application (what you want to accomplish).
