Disclosed is a computer-assisted method for analyzing the surroundings of a
display device. At least two different patterns are displayed successively
on a display device connected to a computer. A camera is also connected to
the computer and is directed towards objects in front of the display
device. Each time a pattern is displayed on the display device, at least
one image of the surroundings is captured. The captured images are
combined to create a difference image. The difference image is analyzed to
interpret the objects in the surroundings. For example, calculations may
be performed to segment the foreground from the background of the
surroundings or to estimate the range (distance) of the objects from the
display device. An apparatus for performing this computer-assisted method
is also disclosed.