# Changing the range of the voxel values

**URL:** https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436
**Category:** Engineering
**Created:** [November 23, 2019, 7:00am UTC](https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436 "2019-11-23T07:00:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Felippe\_Trigueiro\_An](https://discourse.itk.org/user_avatar/discourse.itk.org/felippe_trigueiro_an/32/1015_2.png) [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)
#### Post date: [November 23, 2019, 7:00am UTC](https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436/1 "2019-11-23T07:00:07Z")

</div>

I have an image that has their values in a range of 0 and 0.4, but I’d like to rescale its intensities to the range 0 - 1. Then I used the function RescaleIntensity(image, 0, 1), but the function returns me a black image. So, what am I doing wrong?

Thanks.

---

<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: [November 25, 2019, 2:06pm UTC](https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436/2 "2019-11-25T14:06:12Z")

</div>

How are you visualizing the resulting image? The values might be OK, and only visualization expecting values 0-255, so both 0 and 1 are essentially black.
