1. A method of processing image data, the method comprising: a processor performing the steps: assigning an image element to one of a plurality of categories based on a ratio between an unoccluded perimeter of the image element and an occluded perimeter of the image element; and processing the image element based on the assignment to one of the plurality of categories.