# Add SFORM\_Permissive mode for nifti files

**URL:** <https://discourse.slicer.org/t/add-sform-permissive-mode-for-nifti-files/29049>\
**Category:** Feature requests\
**Created:** [April 21, 2023, 2:20pm UTC](https://discourse.slicer.org/t/add-sform-permissive-mode-for-nifti-files/29049 "2023-04-21T14:20:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Kagan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alexander_kagan/32/65695_2.png) [@Alexander\_Kagan](https://discourse.slicer.org/u/Alexander_Kagan)\
**Post date:** [April 21, 2023, 2:20pm UTC](https://discourse.slicer.org/t/add-sform-permissive-mode-for-nifti-files/29049/1 "2023-04-21T14:20:46Z")

</div>

I currently have an issue with opening a large number of nifti ct scans from the dataset i’m working on (totalsegmentator dataset). it throws an error: “itk only supports orthonormal direction cosines. no orthonormal definition found”. its because more restrictive checks on the input file thay’ve added in the last itk versions: [Nifti files with non-orthonormal directional cosines should be read and the error changed to a warning. · Issue #3994 · InsightSoftwareConsortium/ITK · GitHub](https://github.com/InsightSoftwareConsortium/ITK/issues/3994)  
Recently they have pushed a permissive mode to their code: [ENH: Added permissive mode to NIFTI reader by vfonov · Pull Request #4009 · InsightSoftwareConsortium/ITK · GitHub](https://github.com/InsightSoftwareConsortium/ITK/pull/4009)

Please, add the permissive\_mode to the itk version sdslicer works with  
Is there any way i could update it manualy on my local installation of the 3d slicer?

thanks 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:** [April 21, 2023, 6:21pm UTC](https://discourse.slicer.org/t/add-sform-permissive-mode-for-nifti-files/29049/2 "2023-04-21T18:21:16Z")

</div>

Hi - did you try with the latest preview version of Slicer? I believe we resolved all these issues.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 21, 2023, 6:47pm UTC](https://discourse.slicer.org/t/add-sform-permissive-mode-for-nifti-files/29049/3 "2023-04-21T18:47:42Z")

</div>

The linked ITK PR that was recently merged would need to have the commits ba knotted to the Slicer ITK fork branch [Commits · Slicer/ITK · GitHub](https://github.com/Slicer/ITK/commits/slicer-v5.3rc04-2022-09-19-62eb5ca) or we move forward to use latest ITK code.

@jcfr Do you know how you plan to proceed with finalizing the work associated with [COMP: Add support for customizing ITK namespace (draft) · Slicer/ITK@69e52f0 · GitHub](https://github.com/Slicer/ITK/commit/69e52f05c482012b95228c3fe46f299b1735ca99). Would we keep carrying over these type of changes when we update Slicer’s ITK and SimpleITK versions?
