Abstract: A method for straightening the edges of a work piece. The method includes the steps of determining the average edge position of each edge of the work piece, calculating an average edge line for each edge of the work piece, determining an actual corner point for each corner of the work piece, calculating a determined edge line through each of the actual corner points of the work piece, determining a number of actual edge points, determining if actual edge points are within the determined edge lines, and adjusting the determined edge lines inward until the actual edge points are within the determined edge lines.