1. Method for recording image data, wherein in front of an image sensor ( 4 ) for recording an image an optical device ( 8 ) is provided for producing a compound image ( 1 ′) on the sensor ( 4 ), the compound image comprising two or more superimposed, simultaneously taken, images of a same object, wherein the spatial distance (d) between corresponding objects on the common image sensor in the compound image is dependent on the distance (O) of the said imaged object from the lens, and wherein the compound image is analysed ( 9 ) to determine the spatial distance (d) between corresponding objects in the compound image on the sensor.