The present invention relates to a method of processing digital images
comprising pixel blocks, said method comprising a step of detecting
blocking artifacts (41) between two adjacent blocks (Bj,bk), and a step
of filtering (43) the pair of adjacent blocks. The method according to
the invention further comprises a filter decision step (42) based on a
comparison between luminance values of the pixels of the two adjacent
blocks and a reference function representing a difference of minimum
luminance values that can be seen by an observer as a function of an
average luminance area of the image in order to determine whether a
difference of luminance between the blocks is either or not visible to an
observer.