An ophthalmic apparatus configured to measure a shape of a subjected eye, the apparatus comprising: a processor; and a memory storing computer-readable instructions therein, the computer-readable instructions, when executed by the processor, causing the ophthalmic apparatus to perform: acquiring a preoperative two-dimensional tomographic image of a preoperative subjected eye; acquiring a postoperative two-dimensional tomographic image of a postoperative subjected eye; calculating a preoperative shape of the subjected eye based on the preoperative two-dimensional tomographic image of the preoperative subjected eye acquired by the acquiring of the preoperative two-dimensional tomographic image; calculating a postoperative shape of the subjected eye based on the postoperative two-dimensional tomographic image of the postoperative subjected eye acquired by the acquiring of the postoperative two-dimensional tomographic image; and calculating a displacement amount between a first reference axis obtained from the preoperative two-dimensional tomographic image of the preoperative subjected eye and a second reference axis obtained from the postoperative two-dimensional tomographic image of the postoperative subjected eye, based on the calculated preoperative shape and the calculated postoperative shape, wherein each of the first and second reference axes is a normal vector of an approximate circle calculated from the shape of each of the preoperative subjected eye and the postoperative subjected eye. a processor; and a memory storing computer-readable instructions therein, the computer-readable instructions, when executed by the processor, causing the ophthalmic apparatus to perform: acquiring a preoperative two-dimensional tomographic image of a preoperative subjected eye; acquiring a postoperative two-dimensional tomographic image of a postoperative subjected eye; calculating a preoperative shape of the subjected eye based on the preoperative two-dimensional tomographic image of the preoperative subjected eye acquired by the acquiring of the preoperative two-dimensional tomographic image; calculating a postoperative shape of the subjected eye based on the postoperative two-dimensional tomographic image of the postoperative subjected eye acquired by the acquiring of the postoperative two-dimensional tomographic image; and calculating a displacement amount between a first reference axis obtained from the preoperative two-dimensional tomographic image of the preoperative subjected eye and a second reference axis obtained from the postoperative two-dimensional tomographic image of the postoperative subjected eye, based on the calculated preoperative shape and the calculated postoperative shape, acquiring a preoperative two-dimensional tomographic image of a preoperative subjected eye; acquiring a postoperative two-dimensional tomographic image of a postoperative subjected eye; calculating a preoperative shape of the subjected eye based on the preoperative two-dimensional tomographic image of the preoperative subjected eye acquired by the acquiring of the preoperative two-dimensional tomographic image; calculating a postoperative shape of the subjected eye based on the postoperative two-dimensional tomographic image of the postoperative subjected eye acquired by the acquiring of the postoperative two-dimensional tomographic image; and calculating a displacement amount between a first reference axis obtained from the preoperative two-dimensional tomographic image of the preoperative subjected eye and a second reference axis obtained from the postoperative two-dimensional tomographic image of the postoperative subjected eye, based on the calculated preoperative shape and the calculated postoperative shape, wherein each of the first and second reference axes is a normal vector of an approximate circle calculated from the shape of each of the preoperative subjected eye and the postoperative subjected eye.