1. An image processing apparatus comprising: generating means for generating, on the basis of an input image, subject specification information for specifying a region of a subject on the input image; and detecting means for detecting a blur extent of the subject in a region including the subject in the input image, the region being used as a target of processing, using the subject specification information and the input image.