1. A method for three-dimensional mapping of an object, comprising: projecting with a projector a set of fringes on the object; capturing an image of the object in a camera, wherein the image contains a Moiré pattern associated with the object, and a visibility of the Moiré pattern varies with a distance of the object from the camera, wherein the visibility of the pattern in a region is defined as a relation between a maximum intensity in the region and a minimum intensity in the region; and processing the captured image so as to detect the Moiré pattern associated with the object and so as to extract depth information from the visibility of the Moiré pattern.