Module to flip through connected components


I want to make a module where I first input a mask and get the connected components (with Islands for example). I then somehow want to flip through the islands using Previous/Next buttons and give each connected component a score/label.

I was wondering if anyone has some advice on the flipping-through-connected-components part? I see that SegmentationReview has code for scoring, which I could use, but I am unsure how to do the first part.


You can split islands to segments in Segment Editor’s Islands effects, and then write a few-line Python script that adjusts the visibility of segments.

1 Like