# Is it possible in pyradiomics to normalize only the ROI and not the entire image?

**URL:** <https://discourse.slicer.org/t/is-it-possible-in-pyradiomics-to-normalize-only-the-roi-and-not-the-entire-image/43721>\
**Category:** Radiomics\
**Tags:** normalisation, roi\
**Created:** [July 15, 2025, 4:26am UTC](https://discourse.slicer.org/t/is-it-possible-in-pyradiomics-to-normalize-only-the-roi-and-not-the-entire-image/43721 "2025-07-15T04:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessandro\_Ghilardi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alessandro_ghilardi/32/80632_2.png) [@Alessandro\_Ghilardi](https://discourse.slicer.org/u/Alessandro_Ghilardi)\
**Post date:** [July 15, 2025, 4:26am UTC](https://discourse.slicer.org/t/is-it-possible-in-pyradiomics-to-normalize-only-the-roi-and-not-the-entire-image/43721/1 "2025-07-15T04:26:26Z")

</div>

I need to know if there’s a standard way to normalize only the ROI. I tried to create a function to do so but in this case filtered versions of the image would be calculated only after the ROI normalization (which means generate filtered version of the image processing the result of image\*mask, the one with black pixels out of the ROI)

I think PyRadiomics follows this logic:  
Image → Normalization of the entire image (optional) → Apply filters → Calculate features in the ROI

But I need this:  
Apply filters → Normalize only the ROI → Calculate features in the ROI
