cuda::connectedComponents random label numbers?

Thank you for the response.

That appears to be the background, which in my use case is indeed the largest area, but of no interest.

I’ll look at NPP: It would be really sweet if connectedComponents could be made to produce sequential labels starting at 0…