Patent ID: 8289434

Claim:
An image processing apparatus for editing layout positions of a plurality of image data and laying out the plurality of image data, comprising: an image data obtaining unit configured to obtain a plurality of image data captured by an image capturing apparatus; a designation unit configured to designate an image group as an editing target in the plurality of image data obtained by said image data obtaining unit; a determination unit configured to determine a main object in each image data of the image group; a first positional relationship determination unit configured to calculate a size of the main object, determined by said determination unit, in each image data of the image group, and determine a depth-direction relative positional relationship between the main object in each image data of the image group and the image capturing apparatus by comparing the calculated sizes of the main objects of the image group; and a layout determination unit configured to determine, based on the depth-direction positional relationship determined by said first positional relationship determination unit, a layout order and image sizes or an image overlay order of the image data of the image group on the layout plane and lay out the image data of the image group on the layout plane.