An image processing apparatus includes an acquisition unit configured to acquire a tomographic image of at least a retina and a vitreous body of a subjects eye, and a detection unit configured to detect, based on an intensity value of the tomographic image, an outer edge of the vitreous body in a region located on a vitreous body side of a region regarding the retina in the tomographic image.