# Resample segmentation to higher resolution

**URL:** <https://discourse.slicer.org/t/resample-segmentation-to-higher-resolution/37425>\
**Category:** Development\
**Tags:** segmentation, segmentations, segment-editor\
**Created:** [July 17, 2024, 11:00am UTC](https://discourse.slicer.org/t/resample-segmentation-to-higher-resolution/37425 "2024-07-17T11:00:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Barrie](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Barrie](https://discourse.slicer.org/u/Barrie)\
**Post date:** [August 27, 2025, 1:08pm UTC](https://discourse.slicer.org/t/resample-segmentation-to-higher-resolution/37425/3 "2025-08-27T13:08:19Z")

</div>

Found this, which might be helpful. Haven’t tried it yet, YMMV:

> [@Change segmentation oversampling factor](https://discourse.slicer.org/t/change-segmentation-oversampling-factor/19025/5):
>
> @lassoan Thanks for your help again! The source code of vtkSlicerSegmentationGeometryLogic::ResampleLabelmapsInSegmentationNode is really helpful, and I finally completed this function correctly based on the source code. The issues aren’t technical issues, and since it works right now, there’s no needs to worry about upgrading. For those who are interested, here is my code. segmentIDs = vtk.vtkStringArray() segmentationNode.GetSegmentation().GetSegmentIDs(segmentIDs) #Create desired geometry…

---

_[View the full topic](https://discourse.slicer.org/t/resample-segmentation-to-higher-resolution/37425)._
