A method for calculating an image quality metric for evaluating the quality of a digital image including the steps of denoising the data of the image, identifying edges in the denoised data, determining an edge profile of the edges, determining a grayscale angle for each identified edge in the edge profile that is associated with the edge, and calculating the image quality metric based on a weighted average of the grayscale angles for all the edges.