The present invention relates to a method of processing data contained in a digital
input image. The data processing method comprises a gradient filter step (GF) of
values (Y) of the pixels, which permits to detect (THR) a natural contour area
(NC) inside the digital input image. The invention also comprises a step (BAD)
of detecting blocking artifacts originating from a block-based coding technique,
from a calculation (CT) of a discontinuity value based on values (Y) of a current
pixel and of pixels adjacent to said current pixel. The method finally comprises
a low-pass filter step (LPF) of the values (Y) of the pixels coming from the artifact
blocking detection step (BAD) with the exception of the pixels contained in the
natural contour areas (NC) determined by the gradient filter step.