# How to print and stretch CT data value(the gray value)?

**URL:** https://discourse.itk.org/t/how-to-print-and-stretch-ct-data-value-the-gray-value/3488
**Category:** Uncategorized
**Tags:** dicom
**Created:** [September 28, 2020, 2:50am UTC](https://discourse.itk.org/t/how-to-print-and-stretch-ct-data-value-the-gray-value/3488 "2020-09-28T02:50:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.itk.org/user_avatar/discourse.itk.org/wulicheng/32/1390_2.png) [@wulicheng](https://discourse.itk.org/u/wulicheng)
#### Post date: [September 28, 2020, 2:50am UTC](https://discourse.itk.org/t/how-to-print-and-stretch-ct-data-value-the-gray-value/3488/1 "2020-09-28T02:50:21Z")

</div>

How to print and stretch CT data value(the gray value)?

---

<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: [September 28, 2020, 3:01pm UTC](https://discourse.itk.org/t/how-to-print-and-stretch-ct-data-value-the-gray-value/3488/2 "2020-09-28T15:01:32Z")

</div>

Your question isn’t completely clear. For “stretching” you might use [RescaleIntensityImageFilter](https://itk.org/Doxygen/html/classitk_1_1RescaleIntensityImageFilter.html). For printing you could be inspired by [this example](https://itk.org/ITKExamples/src/Core/Common/IterateOverSpecificRegion/Documentation.html).

---

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.itk.org/user_avatar/discourse.itk.org/wulicheng/32/1390_2.png) [@wulicheng](https://discourse.itk.org/u/wulicheng)
#### Post date: [September 28, 2020, 8:29pm UTC](https://discourse.itk.org/t/how-to-print-and-stretch-ct-data-value-the-gray-value/3488/3 "2020-09-28T20:29:36Z")

</div>

yes,i have got it. but thank you too!
