1. A method of updating a scene model for a foreground segmentation of an input image captured from a camera, the method comprising: determining one or more visual elements of the input image; determining a spatial relationship between at least one of the visual elements and the scene model for a foreground segmentation of the input image; and updating the scene model for determining the foreground segmentation of the input image based on the determined spatial relationship.