Merging polygons with uncertain boundaries