1. A computer program product, tangibly embodied in a machine-readable medium, the computer program product comprising instructions that, when read by a machine, operate to cause data processing apparatus to: detect first and second stripes projected onto an object, in both of first and second images; extract, for a raster profile and from the first or second images, an intensity profile of first and second segments of the raster line associated with the first and second stripes, respectively; determine a local minimum in the intensity profile amongst the first and second segments; designate the first or second stripe as a reference stripe based on the determined local minimum; match the reference stripe in the first and second images; and construct a three dimensional surface based on matching the reference stripe in the first and second images.