# Load segmentation with surfacenet smoothing

**URL:** <https://discourse.slicer.org/t/load-segmentation-with-surfacenet-smoothing/36518>\
**Category:** Support\
**Tags:** segmentation, python\
**Created:** [May 31, 2024, 10:01am UTC](https://discourse.slicer.org/t/load-segmentation-with-surfacenet-smoothing/36518 "2024-05-31T10:01:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Djanbo](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@Djanbo](https://discourse.slicer.org/u/Djanbo)\
**Post date:** [May 31, 2024, 10:01am UTC](https://discourse.slicer.org/t/load-segmentation-with-surfacenet-smoothing/36518/1 "2024-05-31T10:01:13Z")

</div>

Hi, i am new, can we load the segmentation surface net smoothed directly progamatically ? I think i have to modify the header of each .seg.nrrd file before loading? (If yes how we modify the particular key for that i think it’s `['Segmentation_ConversionParameters']`  
The goal is to reduce the loading time of the sample, i mean when creating the closed surface representation.

Thanks in advance and have a good day !

---

<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:** [May 31, 2024, 3:36pm UTC](https://discourse.slicer.org/t/load-segmentation-with-surfacenet-smoothing/36518/2 "2024-05-31T15:36:44Z")

</div>

Slicer will use the binary labelmap to closed surface conversion algorithm that is specified in the conversion parameters in the .seg.nrrd file header. You can conveniently modify the header of a segmentation file using slicerio or pynrrd Python packages.
