1. A method for detecting degradation in an electronic image, the method comprising: calculating by a processor a plurality of second-order derivatives for the electronic image; detecting one or more object edges in the electronic image; calculating a profile of second-order derivative for each of one or more gradient directions for a plurality of edge points; calculating one or more statistics about one or more parameters for each of said profiles; and based at least in part on said one or more statistics about the one or more parameters, making a determination whether blur or defocus is present in the electronic image.