Patent attributes
An image processing apparatus comprises an input unit configured to input a plurality of image data shot with a plurality of different exposures; a determination unit configured to determine whether each of the plurality of image data includes an exposure defect; a generation unit configured to generate a plurality of panoramic images respectively corresponding to the plurality of exposures by panoramically composing a plurality of image data shot with the same exposure based on a result of the determination; an alignment unit configured to perform alignment between the plurality of panoramic images using image data determined not to include the exposure defect and image data obtained by performing luminance correction for image data determined to include the exposure defect; and a composition unit configured to perform high dynamic range composition for the plurality of aligned panoramic images.