# How to use vtkImageConnectivityFilter

**URL:** https://discourse.vtk.org/t/how-to-use-vtkimageconnectivityfilter/3142
**Category:** Support
**Created:** [April 24, 2020, 9:08am UTC](https://discourse.vtk.org/t/how-to-use-vtkimageconnectivityfilter/3142 "2020-04-24T09:08:57Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [April 24, 2020, 12:36pm UTC](https://discourse.vtk.org/t/how-to-use-vtkimageconnectivityfilter/3142/2 "2020-04-24T12:36:45Z")

</div>

This post should help:

> [@vtk image connectivity filter](https://discourse.vtk.org/t/vtk-image-connectivity-filter/3133/3):
>
> First of all, you need to upgrade to a recent VTK version. It is unreasonable to expect help with using a decade old version. You can find vtkImageConnectivityFilter documentation [here](https://vtk.org/doc/nightly/html/classvtkImageConnectivityFilter.html). All VTK filters have tests, which you can use as examples. See the relevant test [here](https://github.com/Kitware/VTK/blob/master/Imaging/Morphological/Testing/Cxx/TestImageConnectivityFilter.cxx). You can find a Python example in 3D Slicer’s [“Flood filling” Segment Editor effect](https://github.com/lassoan/SlicerSegmentEditorExtraEffects/blob/master/SegmentEditorFloodFilling/SegmentEditorFloodFillingLib/SegmentEditorEffect.py). If you have any specific questions you can ask it here. There is [no example for this filter on VTK examples website](https://lorensen.github.io/VTKExamples/site/Coverage/CSharpVTKClassesNotUsed/). It would be great if yo…

---

_[View the full topic](https://discourse.vtk.org/t/how-to-use-vtkimageconnectivityfilter/3142)._
