# List of all island sizes?

**URL:** <https://discourse.slicer.org/t/list-of-all-island-sizes/18591>\
**Category:** Development\
**Created:** [July 8, 2021, 8:35pm UTC](https://discourse.slicer.org/t/list-of-all-island-sizes/18591 "2021-07-08T20:35:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [July 8, 2021, 8:35pm UTC](https://discourse.slicer.org/t/list-of-all-island-sizes/18591/1 "2021-07-08T20:35:25Z")

</div>

Is there an incantation in vtk (maybe in vtkIslandMath?) that will give a list of the sizes of all islands?

---

<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:** [July 8, 2021, 9:17pm UTC](https://discourse.slicer.org/t/list-of-all-island-sizes/18591/2 "2021-07-08T21:17:00Z")

</div>

Wouldn’t you just use Segment Statistics for that?

---

<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 9, 2021, 5:58am UTC](https://discourse.slicer.org/t/list-of-all-island-sizes/18591/3 "2021-07-09T05:58:33Z")

</div>

Yes, you can split islands to segments (using Islands effect) and then use Segment Statistics. You may run into performance issues if you have thousands of segments. In this case it may be better to run the filters from a Python script.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [July 9, 2021, 12:04pm UTC](https://discourse.slicer.org/t/list-of-all-island-sizes/18591/4 "2021-07-09T12:04:50Z")

</div>

Yeah, it’s potentially thousands of islands. I’ll look through the code in `SegmentEditorIslandsEffect.py` - thanks for the pointer to Islands effect!

-Hollister
