A method for the three-dimensional detection of objects in which - a scene is detected by means of a first image detection device, wherein a first image is produced; - the scene is also detected by means of a second image detection device, wherein a second image is produced; - a correlation window is fixed as a portion of the first image; - a plurality of search windows are fixed as portions of the second image, wherein different search windows reproduce different regions of the second image; - the search window corresponding to the correlation window is determined by means of a correlation process, wherein, - in the correlation process, a binarization scheme is applied to the correlation window and to the search windows in which the respective points of at least one randomly selected point pair within the correlation window and within the search windows are compared with one another, with a respective results vector being formed for the correlation window and for the search windows; and - a correlation of the results vector of the correlation window and of the results vectors of the search windows takes place to determine the search window corresponding to the correlation window, characterized in that - the at least one point pair is selected by means of a plurality of iterations, wherein the at least one point pair is reselected randomly for each iteration and that at least one point pair is used for the correlation process which achieves the best association between the correlation window and the search window corresponding to the correlation window; and - in that the scene is illuminated with a pattern which is non-self similar at least locally. - a scene is detected by means of a first image detection device, wherein a first image is produced; - the scene is also detected by means of a second image detection device, wherein a second image is produced; - a correlation window is fixed as a portion of the first image; - a plurality of search windows are fixed as portions of the second image, wherein different search windows reproduce different regions of the second image; - the search window corresponding to the correlation window is determined by means of a correlation process, - in the correlation process, a binarization scheme is applied to the correlation window and to the search windows in which the respective points of at least one randomly selected point pair within the correlation window and within the search windows are compared with one another, with a respective results vector being formed for the correlation window and for the search windows; and - a correlation of the results vector of the correlation window and of the results vectors of the search windows takes place to determine the search window corresponding to the correlation window, characterized in that - the at least one point pair is selected by means of a plurality of iterations, wherein the at least one point pair is reselected randomly for each iteration and that at least one point pair is used for the correlation process which achieves the best association between the correlation window and the search window corresponding to the correlation window; and - in that the scene is illuminated with a pattern which is non-self similar at least locally.