1. An image processing apparatus comprising: one or more processors; and at least one memory coupled to the one or more processors, the at least one memory having instructions stored thereon which, when executed by the one or more processors cause the image processing apparatus to: obtain a first image generated by imaging an object using a first imaging apparatus, a second image generated by imaging the object using a second imaging apparatus, and a third image generated by imaging the object using a third imaging apparatus whose position is associated with the second imaging apparatus, and align at least one of the first image or the third image so that the first image and the third image are aligned and align, based on an alignment result between the first image and the third image, at least one of the first image or the second image so that the first image and the second image are aligned.