# Segmentation algorithm used in 3D Slicer

**URL:** <https://discourse.slicer.org/t/segmentation-algorithm-used-in-3d-slicer/7420>\
**Category:** Support\
**Tags:** segmentation, dicom\
**Created:** [July 4, 2019, 6:11pm UTC](https://discourse.slicer.org/t/segmentation-algorithm-used-in-3d-slicer/7420 "2019-07-04T18:11:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [July 4, 2019, 7:53pm UTC](https://discourse.slicer.org/t/segmentation-algorithm-used-in-3d-slicer/7420/3 "2019-07-04T19:53:28Z")

</div>

If you mean which algorithms are used for generating closed surface from binary labelmap representation of the segmentation: see implementation [here](https://github.com/Slicer/Slicer/blob/master/Libs/vtkSegmentationCore/vtkBinaryLabelmapToClosedSurfaceConversionRule.cxx). In short: [vtkDiscreteFlyingEdges3D](https://vtk.org/doc/nightly/html/classvtkDiscreteFlyingEdges3D.html) followed by [vtkWindowedSincPolyDataFilter](https://vtk.org/doc/nightly/html/classvtkWindowedSincPolyDataFilter.html), [vtkDecimatePro](https://www.vtk.org/doc/nightly/html/classvtkDecimatePro.html) (optional), and [vtkPolyDataNormals](https://www.vtk.org/doc/nightly/html/classvtkPolyDataNormals.html).

---

_[View the full topic](https://discourse.slicer.org/t/segmentation-algorithm-used-in-3d-slicer/7420)._
