1. A method for removing artifacts in a digital image that has been decoded from a compressed representation of the image, where the digital image is represented by a plurality of pixels, comprising the steps of: segmenting the pixels of the digital image into low detail pixels, high detail pixels, and boundary pixels; and applying a single filtering method to each pixel in the digital image, wherein separate filter parameters are selected for the filtering method for the low detail, high detail, and boundary pixels.