1. A method comprising: identifying a first image element of an image as a background and a second image element of the image as a foreground; and processing the image based on a relative occlusion between the background and the foreground, wherein the relative occlusion is determined using a perimeter ratio between the first image element and the second image element.