# NiftiImageIO class in python simpleitk ?

**URL:** https://discourse.itk.org/t/niftiimageio-class-in-python-simpleitk/4201
**Category:** Beginner Questions
**Tags:** simpleitk, python
**Created:** [June 10, 2021, 5:10pm UTC](https://discourse.itk.org/t/niftiimageio-class-in-python-simpleitk/4201 "2021-06-10T17:10:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cbhushan](https://discourse.itk.org/letter_avatar_proxy/v4/letter/c/d9b06d/32.png) [@cbhushan](https://discourse.itk.org/u/cbhushan)
#### Post date: [June 10, 2021, 5:10pm UTC](https://discourse.itk.org/t/niftiimageio-class-in-python-simpleitk/4201/1 "2021-06-10T17:10:37Z")

</div>

I am trying to write a nifti file with custom RescaleSlope, RescaleIntercept and was hoping to use NiftiImageIO’s `SetRescaleSlope()` and `SetRescaleIntercept()`. Is it possible to access functionality of [NiftiImageIO](https://itk.org/Doxygen/html/classitk_1_1NiftiImageIO.html) class from python SimpleITK? I am unable to find a reference/hint about it.

Or is there any other way, preferably simpleitk way, to write nifti file with custom RescaleSlope, RescaleIntercept?

---

<div class="post-metadata">

### Author: ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)
#### Post date: [June 10, 2021, 5:53pm UTC](https://discourse.itk.org/t/niftiimageio-class-in-python-simpleitk/4201/2 "2021-06-10T17:53:32Z")

</div>

Hello @cbhushan,

Unfortunately, there is no way to access this functionality in SimpleITK. As part of the simplification, this level of control (IO type specific functionality) is not exposed. It is available in ITK, so possibly a case for using ITK.
