I'm using opencv and I need to obtain a single region of white pixels starting from many regions, like in the image:
what I want to get is a single region of white pixels. can be that some regions have to be discarded, but is another point. now I'd like to know if there is a way to unite all the regions, even in a not convex poly, because it can be done later.