Color Filler Algorithm Is there an algorithm that fills the area outside the edges?

e.g.:

From this



to this
Assuming for simplicity that the edges don't touch the image boundary (you can always guarantee that by adding a pixel-wide "frame"), you can simply run flood fill from an arbitrary point on the image boundary.