# get gray values that are mapped to color LUT

**URL:** <https://discourse.itk.org/t/get-gray-values-that-are-mapped-to-color-lut/558>\
**Category:** Beginner Questions\
**Tags:** dicom\
**Created:** [December 29, 2017, 3:44am UTC](https://discourse.itk.org/t/get-gray-values-that-are-mapped-to-color-lut/558 "2017-12-29T03:44:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swetha.bsharma](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@swetha.bsharma](https://discourse.itk.org/u/swetha.bsharma)\
**Post date:** [December 29, 2017, 3:44am UTC](https://discourse.itk.org/t/get-gray-values-that-are-mapped-to-color-lut/558/1 "2017-12-29T03:44:49Z")

</div>

Hi All,

I have an MRI dicom which I am reading ,it has values from 0-4096 which is mapped to color lut map.I want to get the gray values which are mapped to lut because I want to do some processing over the gray values,Is there a way to get the gray values?  
-swetha

---

<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:** [December 29, 2017, 2:52pm UTC](https://discourse.itk.org/t/get-gray-values-that-are-mapped-to-color-lut/558/2 "2017-12-29T14:52:03Z")

</div>

Have you tried simply declaring you image type as short scalars? Something like `typedef itk::Image<short, 3> ImageType`. What kind of result do you get if you try to read your DICOM series as this `ImageType`?
