# Smoothen NIFTI file

**URL:** <https://discourse.slicer.org/t/smoothen-nifti-file/40281>\
**Category:** Development\
**Tags:** segmentation, python, nifti, 3d-model, segmentations, segment-editor\
**Created:** [November 19, 2024, 10:13pm UTC](https://discourse.slicer.org/t/smoothen-nifti-file/40281 "2024-11-19T22:13:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amine\_MK](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amine_mk/32/78576_2.png) [@Amine\_MK](https://discourse.slicer.org/u/Amine_MK)\
**Post date:** [November 19, 2024, 10:13pm UTC](https://discourse.slicer.org/t/smoothen-nifti-file/40281/1 "2024-11-19T22:13:45Z")

</div>

Hello

I noticed that when we open a NIFTI file in Slicer, it automatically applies a transformation to the mesh and make it smooth. I would like to know if we can access this feature through Python code? And what is the algorithm used behind?

Thank you in advance for your response  
Bests

---

<div class="post-metadata">

**Author:** ![ebrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ebrahim/32/13403_2.png) [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Post date:** [November 20, 2024, 9:52pm UTC](https://discourse.slicer.org/t/smoothen-nifti-file/40281/2 "2024-11-20T21:52:22Z")

</div>

Maybe you are talking about loading a binary mask that was saved as NIFTI, and loading it as a segmentation? Then the answers to your questions are here: [How does create closed surface representation work ? - #2 by cpinter](https://discourse.slicer.org/t/how-does-create-closed-surface-representation-work/40185/2)
