Refining the edge angle detection.