1. An image processing apparatus comprising: an image acquisition unit that acquires data of a plurality of captured images that are imaged at a plurality of focus positions; a sequence determination unit that determines a sequence that is different from a progressive sequence of focus distances to be a sequence of combination of the data of a plurality of captured images; and a combination unit that combines the data of the plurality of captured images in the sequence determined by the sequence determination unit and creates data of an omnifocal image.