A computer-implemented method (100) of and system (60) for measuring a three- dimensional surface are provided. The method (100) includes projecting (102) structured illumination on the surface and acquiring a plurality of sets of images. The sets of images are processed (106) to obtain a plurality of point clouds. A spatial accumulator is defined (104). A first point cloud of the plurality of point clouds is combined (108) with a second point cloud of the plurality of point clouds into the spatial accumulator. Spatial coordinates of the surface are generated (112) based on the contents of the spatial accumulator. |