NiftiImageIO class in python simpleitk ?

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 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?

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.

1 Like