Various aspects of a systems and method for reconstructing a surface of a three-dimensional (3D) target are disclosed herein. The method may comprise projecting a sequence of patterns to the surface of the target; capturing a first stereo endoscopic image and a second stereo endoscopic image from the patterns reflected from the surface; performing a coarse matching for the captured first and second stereo endoscopic images to acquire a set of matching candidates; and performing a precise matching for the acquired set of matching candidates to acquire reconstruction pixels for reconstructing the surface.