1. An image processing apparatus comprising: setting means for setting a composition pattern corresponding to an input image, on the basis of the number of salient regions to which attention is directed in the input image, and a scene of the input image; and determining means for determining a crop region in the input image which is optimal for an image to be cropped in the composition pattern from the input image, on the basis of the composition pattern set by the setting means.