a method of determining a modulation transfer function for an image includes receiving an image captured through the optical system , performing edge detection on columns or rows in the image to calculate a plurality of edge points , calculating a plurality polynomials to fit to the calculated edge points , each of the plurality of polynomials varying in degree , selecting a polynomial from the plurality of polynomials to represent the detected edge , and estimating the mtf based on the selected polynomial .