An image processing apparatus according to the present invention includes an acquisition unit configured to acquire a tomography image of a target to be captured, a detection unit configured to detect layer boundaries of a plurality of layers sequentially positioned in the depth direction from the acquired tomography image, and a determination unit configured to determine a structure of the target to be captured according to the number of the detected layer boundaries.