1. A method for obtaining a point spread function for deblurring image data captured by an imaging device comprising a motion sensor, the method comprising the steps of acquiring motion path values indicating the motion of the imaging device during the exposure time, projecting the motion path values of the imaging device onto the sensor plane, and integrating for each sensor pixel the projected motion path values over time, said integrated value for each sensor pixel representing an initial estimate of the point spread function.