# Replace voxel values with probabilities

**URL:** <https://discourse.slicer.org/t/replace-voxel-values-with-probabilities/21442>\
**Category:** Support\
**Created:** [January 13, 2022, 12:35pm UTC](https://discourse.slicer.org/t/replace-voxel-values-with-probabilities/21442 "2022-01-13T12:35:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smcch](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smcch/32/11763_2.png) [@smcch](https://discourse.slicer.org/u/smcch)\
**Post date:** [January 13, 2022, 12:35pm UTC](https://discourse.slicer.org/t/replace-voxel-values-with-probabilities/21442/1 "2022-01-13T12:35:59Z")

</div>

Hi !  
I would like to know how to replace the intensity values from the voxels of an image (nifti) by probability values (0-1) to generate a plot in colors. I have two files, the original image in nifti and the probabilities in a csv (rows = voxels, column = probabilities).

Thanks.
