# How to apply RescaleIntensityImageFilter automatically by a python script

**URL:** <https://discourse.slicer.org/t/how-to-apply-rescaleintensityimagefilter-automatically-by-a-python-script/39575>\
**Category:** Development\
**Created:** [October 7, 2024, 10:06pm UTC](https://discourse.slicer.org/t/how-to-apply-rescaleintensityimagefilter-automatically-by-a-python-script/39575 "2024-10-07T22:06:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscampo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/oscampo/32/78160_2.png) [@oscampo](https://discourse.slicer.org/u/oscampo)\
**Post date:** [October 7, 2024, 10:06pm UTC](https://discourse.slicer.org/t/how-to-apply-rescaleintensityimagefilter-automatically-by-a-python-script/39575/1 "2024-10-07T22:06:56Z")

</div>

Hi.  
I’m developing a very simple script to load MR and automatically rescale Intensity range for furter analisys. I need access to the filter module and I’m using:  
slicer.modules.simplefilters

but how I can access to RescaleIntensityImageFilter() ?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 7, 2024, 10:11pm UTC](https://discourse.slicer.org/t/how-to-apply-rescaleintensityimagefilter-automatically-by-a-python-script/39575/2 "2024-10-07T22:11:38Z")

</div>

See a [complete example in the script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#running-an-itk-filter-in-python-using-simpleitk).
