A method of removing ringing and blocking artifacts from a decompressed
digital image. In one method, a background value of the digital image a
background region and foreground regions is determined, and a threshold
value is computed. A mapping of the digital image is then generated by
thresholding the digital image based on the threshold value to produce a
thresholded image, and enlarging the foreground regions of the
thresholded image to form a map image. The mapping includes the
background pixels of the map image. The background region of the
decompressed digital image is then cleansed based on the mapping. In an
alternate method, ringing artifacts are removed from a decompressed
digital image based on a signal-to-noise ratio of the image. In yet
another alternate embodiment, ringing artifacts are from a decompressed
digital color image that includes a chrominance channel and a luminance
channel. An alternate embodiment removes ringing and blocking artifacts.