Yes, but in this case we can probably use the labeled image to get the components we want as masks.  As discussed on the mailing list today, it does look like a good and fast floodfill algorithm will be useful.