1. A method of controlling a digital photographing apparatus, the method comprising: continuously capturing a short-exposure image and a long-exposure image having different exposure times in response to one shutter-release button input; and estimating a point spread function (PSF) from the short-exposure image and the long-exposure image, wherein the short-exposure image has a shorter exposure time than the long-exposure image, wherein a gain value of an imaging unit with respect to the short-exposure image is greater than a gain value of the imaging unit with respect to the long-exposure image, and wherein a sum of the exposure times of the short-exposure image and the long-exposure image is determined depending on an exposure time set when the shutter-release button is input.