Segmentation of Moving Objects in Video Sequences with a Dynamic Background