# I want to create a closed contour from hdr/img data

**URL:** <https://discourse.slicer.org/t/i-want-to-create-a-closed-contour-from-hdr-img-data/46860>\
**Category:** Support\
**Created:** [April 28, 2026, 3:33pm UTC](https://discourse.slicer.org/t/i-want-to-create-a-closed-contour-from-hdr-img-data/46860 "2026-04-28T15:33:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/petrkryslucsd/32/82208_2.png) [@PetrKryslUCSD](https://discourse.slicer.org/u/PetrKryslUCSD)\
**Post date:** [April 28, 2026, 3:33pm UTC](https://discourse.slicer.org/t/i-want-to-create-a-closed-contour-from-hdr-img-data/46860/1 "2026-04-28T15:33:19Z")

</div>

Right now the contour runs into the boundary of the box, and it is then open. One thing that I could think of was to either surround the current volume with a layer of zero voxels (which would close the contour), or modify the volume itself by setting the voxels close to the boundary to zero.

Is this a good approach, hopefully supported by slicer. Or is there something better?

---

<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:** [April 28, 2026, 4:08pm UTC](https://discourse.slicer.org/t/i-want-to-create-a-closed-contour-from-hdr-img-data/46860/2 "2026-04-28T16:08:42Z")

</div>

If you load the image as segmentation then this boundary is automatically added for you.

However, for this first you need to convert the legacy hdr/img format to nrrd or nifti. You can do that by loading the hdr/img file into Slicer as a Volume and then saving it in the new format.
