A method for acquiring three-dimensional images of objects uses two cameras having acquisition areas that overlap each other. In the course of a calibration method, a group of epipolar lines associated with each other is determined for each of the cameras. A specified random image is projected onto the object to be imaged. For each pixel of the camera, a first environment is determined, an associated first epipolar line is determined, and for the first epipolar line an associated second epipolar line of the second camera is determined. For all pixels of the image of the second camera that are located on the second epipolar line, a second environment congruent to the first environment is determined. The intensity values of the first and the second environments are compared with each other and a measure of agreement is calculated. A spatial position is determined by use of the previously determined transformation.