Patent ID: 8315473

Claim:
A computer-implemented method for filtering of digital images, comprising: applying a filter window to a first portion of an image, wherein said applying operates on a first plurality of pixels comprised in the first portion of the image, wherein the filter window comprises an interior region comprising a second plurality of pixels and a border region comprising a third plurality of pixels; generating a plurality of histograms, wherein the plurality of histograms describe pixel values corresponding to the first plurality of pixels; generating a plurality of spatial weight coefficients for the third plurality of pixels to generate a spatial weight coefficient for each pixel of the third plurality of pixels, wherein spatial weight coefficients for each of the second plurality of pixels have a uniform value; generating a plurality of color weight coefficients for the first plurality of pixels to generate a color weight coefficient for each pixel of the first plurality of pixels; and performing a filtering operation on the first plurality of pixels, wherein said performing comprises applying a respective spatial weight coefficient and a respective color weight coefficient to the corresponding pixel values described in the plurality of histograms for each respective pixel of the first plurality of pixels.