An ophthalmic apparatus includes a generation unit configured to generate 3D blood vessel data indicating a blood vessel in a fundus based on a plurality of tomographic image data indicating cross sections of the fundus, a boundary obtaining unit configured to obtain layer boundary data indicating at least one layer boundary based on 3D tomographic image data including the plurality of tomographic image data indicating the cross sections of the fundus, and a determination unit configured to determine a blood vessel intersecting with the layer boundary by comparing the 3D blood vessel data with the layer boundary data.