Is there an incantation in vtk (maybe in vtkIslandMath?) that will give a list of the sizes of all islands?
Wouldn’t you just use Segment Statistics for that?
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.
Yeah, it’s potentially thousands of islands. I’ll look through the code in
SegmentEditorIslandsEffect.py - thanks for the pointer to Islands effect!