Discriminating between fixed and moving objects or between objects moving at different speeds