A system and method for ophthalmic surgery wherein a portion of the light reflected by the eye passes through a lens that inverts the image and a portion of the light reflected by the eye does not pass through the lens. Digital images of both the light that has passed through the lens (lens image) and the light that does not (lens image) are generated using an image sensor. Processing resources to identify the boundary between the lens image and the surrounding image and generate a corrected image in which no part of the image is inverted or only a small part of it is inverted in comparison to the eye Then, at least a part of either the lens image or the peripheral image is inverted.眼によって反射された光の一部分が、画像を反転させるレンズを通過し、且つ眼によって反射された光の一部分がレンズを通過しない、眼科手術のためのシステム及び方法。レンズを通過した光(レンズ画像)と、そうではない光(周辺画像)との両方のデジタル画像が画像センサを使用して生成される。処理リソースが、レンズ画像と周辺画像との間の境界を識別し、且つ眼との比較で画像のいずれの部分も反転されないか又はその小さい部分のみが反転される補正された画像を生成するために、レンズ画像又は周辺画像のいずれかの少なくとも一部分を反転させる。