# Slope and intercept for pixel intensity MRI

**URL:** https://discourse.slicer.org/t/slope-and-intercept-for-pixel-intensity-mri/37400
**Category:** Support
**Tags:** mri
**Created:** [July 16, 2024, 2:05pm UTC](https://discourse.slicer.org/t/slope-and-intercept-for-pixel-intensity-mri/37400 "2024-07-16T14:05:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![IrisM](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@IrisM](https://discourse.slicer.org/u/IrisM)
#### Post date: [July 16, 2024, 2:05pm UTC](https://discourse.slicer.org/t/slope-and-intercept-for-pixel-intensity-mri/37400/1 "2024-07-16T14:05:26Z")

</div>

I want to use 3D slicer to extract first order features with the radiomics module from RTstructs of MRI images. However, I want all the pixel intensities from my MR image to be adapted first by a certain slope and intercept before I extract the features. If this is possible in 3D slicer, how would I be able to do this?  
Thank you in advance!

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [July 17, 2024, 3:42pm UTC](https://discourse.slicer.org/t/slope-and-intercept-for-pixel-intensity-mri/37400/2 "2024-07-17T15:42:13Z")

</div>

You can just access the pixels as a numpy array and manipulate them as you see fit before running radiomics.
