# New external module: ITKTopologyControl

**URL:** https://discourse.itk.org/t/new-external-module-itktopologycontrol/5393
**Category:** Algorithms
**Created:** [October 6, 2022, 9:05pm UTC](https://discourse.itk.org/t/new-external-module-itktopologycontrol/5393 "2022-10-06T21:05:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dyoll](https://discourse.itk.org/user_avatar/discourse.itk.org/dyoll/32/2311_2.png) [@dyoll](https://discourse.itk.org/u/dyoll)
#### Post date: [October 6, 2022, 9:05pm UTC](https://discourse.itk.org/t/new-external-module-itktopologycontrol/5393/1 "2022-10-06T21:05:12Z")

</div>

Feel free to try out this new external module: [GitHub - dyollb/ITKTopologyControl: ITK external module to control topology of binary mask regions](https://github.com/dyollb/ITKTopologyControl)

It kind of works like morphological closing, but in the erode phase it preserves the topology of the dilated region. This allows it to close holes in **thin** layers.

A custom mask can be used, which could be used to close user-defined holes.

[](https://raw.githubusercontent.com/dyollb/ITKTopologyControl/main/doc/close_holes_skull.gif)

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [January 6, 2023, 4:24am UTC](https://discourse.itk.org/t/new-external-module-itktopologycontrol/5393/2 "2023-01-06T04:24:03Z")

</div>

@dyoll this is a nice module, with a extremely useful filter for cleaning up segmentation, etc! 👏 🥇

Would you consider contributing it to the [main repository Remote module list](https://github.com/InsightSoftwareConsortium/ITK/tree/master/Modules/Remote) to improve exposure to the community?

---

<div class="post-metadata">

### Author: ![dyoll](https://discourse.itk.org/user_avatar/discourse.itk.org/dyoll/32/2311_2.png) [@dyoll](https://discourse.itk.org/u/dyoll)
#### Post date: [February 24, 2023, 9:06pm UTC](https://discourse.itk.org/t/new-external-module-itktopologycontrol/5393/3 "2023-02-24T21:06:03Z")

</div>

Hi @matt.mccormick

Sorry I missed your message. Yes, sure. I will add it when I have some time soon.
