tomas wrote: >> BTW maybe the AI people already have a true and tested >> algorithm for this problem? > > I repeat myself. It is a variant of flood fill. AI not needed. > Classical raster computer graphics stuff.
Well, AI or not, I remember the old graphics program (e.g., MacPaint) did this all the time. Filled inner and outer regions. But these regions were uniform, that's the difference... -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal