# STAPLE contour registration

**URL:** <https://discourse.slicer.org/t/staple-contour-registration/13828>\
**Category:** Support\
**Tags:** segmentation, extensions-manager\
**Created:** [October 2, 2020, 8:12pm UTC](https://discourse.slicer.org/t/staple-contour-registration/13828 "2020-10-02T20:12:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterg1t](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/peterg1t/32/8313_2.png) [@peterg1t](https://discourse.slicer.org/u/peterg1t)\
**Post date:** [October 2, 2020, 8:12pm UTC](https://discourse.slicer.org/t/staple-contour-registration/13828/1 "2020-10-02T20:12:13Z")

</div>

Hi all,  
I’m not an experience Slicer user so maybe this has been asked before. I was wondering if something like Majority Vote or Simultaneous truth and Performance Level Estimation (STAPLE) is included in any of the packages available to the community. My problem is that I have several contours (or estimates of the same structure) and I want to obtain a single contour based on the optimal combination of the input contours. Any tips and hints are appreciated.  
Have a great day,

Pedro Martinez

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 2, 2020, 9:00pm UTC](https://discourse.slicer.org/t/staple-contour-registration/13828/2 "2020-10-02T21:00:19Z")

</div>

It should be included in SimpleFilters, but I’m not seeing it in the current builds. Maybe @blowekamp knows?

> **[Documentation/4.10/Modules/SimpleFilters - Slicer Wiki](https://www.slicer.org/wiki/Documentation/4.10/Modules/SimpleFilters)**

---

<div class="post-metadata">

**Author:** ![blowekamp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/blowekamp/32/1386_2.png) [@blowekamp](https://discourse.slicer.org/u/blowekamp)\
**Post date:** [October 5, 2020, 2:00pm UTC](https://discourse.slicer.org/t/staple-contour-registration/13828/3 "2020-10-05T14:00:16Z")

</div>

This filter was removed from this module with in [this](https://github.com/SimpleITK/SlicerSimpleFilters/commit/77eeae334bef866318ed923e786d4af508b994ac) commit. The linked commit message only indicate that the filter had an issue with an “Int” widget. However, this filter operates on “N” images and I don’t believe a GUI element was ever created to work with an arbitrary number of inputs. Also, I thought this might be an import algorithm with additional output statistics that might justify someone writing a custom module just for this filter.

---

<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:** [October 5, 2020, 2:12pm UTC](https://discourse.slicer.org/t/staple-contour-registration/13828/4 "2020-10-05T14:12:40Z")

</div>

> [@blowekamp](#):
>
> I don’t believe a GUI element was ever created to work with an arbitrary number of inputs

We could now use a subject hierarchy tree widget - the user would choose a folder that contains all the input images.
