1. An image processing method for pattern detection, the method comprising the steps of: detecting a start point and an end point of a pattern on the basis of image data of at least a portion of a captured image, estimating a point spread function from the image data or a modified image data on the basis of the detected start point and end point, and restoring the image data or the modified image data using the estimated point spread function.