This is a detail, but we have to think about what happens when two regions overlap or at least overlap a common pixel.