placing the confidence in the middle of the middle of segment of each edge