An ophthalmic apparatus which photographs an endothelial cell and measures a coat thickness of a cornea of an eye to be examined in a non-contact manner comprising an image pickup unit (19) for photographing a corneal endothelium of the eye to be examined, a control unit (49) for detecting a cell wall of the endothelial cell from a corneal endothelial image photographed by the image pickup unit and for performing an image processing of hatching the cell wall with a boundary line, a display unit (54) for displaying an analytical image in which the cell wall hatched with the boundary line, and an operation unit (55), wherein the control unit changes the shading of the boundary line based on an input from the operation unit.