The present invention relates to a method of processing digital images comprising data blocks, said method including a step of determining a homogeneous region which contains two adjacent blocks whose continuous components differ by a value lower than a predetermined threshold, and a step of determining a segment to be corrected comprising a set of initial data on either side of a border separating the adjacent blocks.
The invention also relates to a processing device implementing such an image processing method.
The invention notably finds its application in the domain of low-rate video coding. The coding technique is based, for example, on the H.26L standard or an equivalent standard, thanks to which a sequence of digital images is previously coded and then decoded in the form of data blocks, the present invention permitting the correction of the decoded data blocks in order to attenuate the visual artefacts caused by the block-based coding technique. Thus, the invention could advantageously be integrated in portable appliances such as mobile telephones or personal digital assistants.
With the booming of the Internet and portable appliances it has turned out to be necessary to transmit video data over mobile networks for low-rate and real-time applications. Coding techniques have been implemented for this type of applications such as, for example, the MPEG-4 or H.26L standards, these techniques being based on a discrete block transformation. Techniques for correcting blocking effects have been developed in parallel, more specifically dedicated to low rates so as to correct the blocking artefacts due to these block-based coding techniques.
Conventional correction methods do not always turn out to be effective, more particularly in uniform and moderately contrasted areas. This finding is based on
International patent application WO 2001/58169 (internal reference PHFR000011) discloses an image processing method intended to reduce such visual defects. To this end it comprises the steps of:
The addition of a random binary number, which is equivalent to a variable noise, permits to reduce the visibility of blocking artefacts, notably because the added noise is generally different from a current segment to be corrected relative to the segment to be corrected that immediately follows. However, the prior-art method may sometimes turn out to be ineffective because of the totally random character of the noise generation.
It is an object of the present invention to propose a digital image processing method which is more effective.
Actually, many noise configurations are generated at random by the prior-art method, for example 16 in the case of a segment to be corrected that comprises 4 initial data and an added binary number of 1 bit. Certain configurations are not suitable of necessity, not to say turn out to be ineffective.
Therefore, the digital image processing method according to the invention is characterized in that it further comprises a step of replacing the set of initial data of the segment to be corrected by a set of corrected data, said set being chosen at random from various corrected sets of data, an average value of a set of corrected data being substantially equal to an average value of continuous components of the two adjacent blocks.
Thus, only the configurations are retained that correspond to an average value of a set of corrected data substantially equal to an average value of the continuous components of the two adjacent blocks. In the case of the segment to be corrected comprising 4 initial data with a difference of 1 luminance unit between the adjacent blocks, only 5 configurations are then retained from the possible 16. The fact of replacing the initial data of the segment to be corrected with such a configuration permits to not artificially add additional defects to the image content, contrary to the prior-art technique where a random binary number could give the value of a data of the corrected segment that is higher than the difference of the continuous components of the two blocks and where, in consequence, the average value of the set of corrected data was rarely equal to the average value of the continuous components of the two adjacent blocks.
Such a measure renders the method particularly simple and efficient, where the various configurations corresponding to the various sets of corrected data may be stored in the memory in advance or generated at random while taking into account the criterion relating to the average value of the corrected data of a set.
The present invention also relates to a decoding method comprising such a method of processing digital images and the video decoder implementing said decoding method.
The present invention also relates to a coding method comprising such a method of processing digital images and the video coder implementing said coding method.
The present invention finally relates to a computer program product implementing the invented method of processing digital images.
These and other aspects of the invention are apparent from and will be elucidated, by way of non-limitative example, with reference to the embodiment(s) described hereinafter.
In the drawings:
The present invention relates to a method of processing a sequence of digital images coded and decoded according to a block-based coding technique, notably for low-rate and real-time applications. The coding technique used is in our example the H.26L standard, but may also be the MPEG-4 standard or any other equivalent standard. It is to be observed that this method could also be applied to a fixed image coded, for example, according to JPEG standard.
Such a block-based coding technique breaks down a digital image into blocks. In the case of the H.26L standard said blocks are 4 rows of 4 pixels. During the coding said blocks are then subjected to a frequency transformation. In the case of the H.26L standard and of most of the conventional techniques this is the Discrete Cosine Transform (DCT). During the decoding, blocking effects may appear along the borders of the blocks. A blocking effect resembles an edge but it does not really exist in the contents of the image proper. It is notably an object of the invention to eliminate these “false” edges situated along the borders of the blocks when they correspond to very low values of luminance difference but which are nevertheless visible under certain observation conditions, for example, on a screen that has high definition, after certain manipulations of the digital image format or also depending on the luminance levels of said image.
Let us suppose that a pair of adjacent blocks Bj and Bk of pixels p have a predetermined average luminance value Lj and Lk respectively, and a luminance difference value ΔL as represented in
Preferably the corrected data L′1 to L′4 continue to be situated between the luminance values Lj and Lk.
The replacing step is intended to be applied to various segments to be corrected overlapping the two adjacent blocks, that is here 4 segments in the case of the H.26L standard. A corrected segment S′jk, is chosen at random from various possible configurations. The probability of each corrected segment to be different from the segment that follows or immediately precedes is high, which leads to the fact that the initially present blocking artefact is smoothed out a little more.
The image processing method according to the invention is applied for horizontally and vertically adjacent blocks. It generally follows a low-pass filter step, for example a linear filtering, which has turned out to be ineffective for correcting a luminance difference of 1 or 2 luminance units between the adjacent blocks. The following of the description discusses a complete image processing method including the image processing method according to the invention and a particularly simple and effective filter method. However, it will be obvious to persons skilled in the art that the present invention is not limited to this type of filtering.
The processing method described above may thus be integrated with a complete image processing method as illustrated in
A decoded digital image Im is first presented to the input of a degradation evaluation step DEGR (51) which delivers a degradation measure DM of the digital image Im. The degradation measure DM corresponds, for example, to the value of an image quantization step or also to a substantially modified value of said quantization step as a function of characteristic features known from the coding technique used.
A filter decision step DEC (52) based on the degradation measure DM then follows. Said step decides for a pair of adjacent blocks (Bj,Bk) of the image Im and for the degradation measure DM whether a filter step is needed or not. The decision to filter is made, for example, according to the following criterion:
In parallel with the degradation evaluation step DEGR (51) and filter decision step DEC (52), the image Im is presented block by block to a classification step CLASS (53). The classification step CLASS (53) associates with a block B, a class Cli chosen from a set of predefined classes, 4 classes Cl1 to Cl4 in our example.
Starting from this stage, isolated blocks are no longer considered but horizontally and vertically adjacent pairs of blocks are. A pair of adjacent blocks (Bj,Bk) associated to a pair of classes (Clm, Cln) is then processed by a filter selection step SEL (54). This filter selection step SEL (54) delivers a filter F1 to be applied to the pair of adjacent blocks (Bj,Bk). The selection of the filter F1 is made as a function of the pair of classes (Clm, Cln) and of the degradation measure DM of the digital input image Im, based on predefined models MOD (55) which associate pairs of classes to filters as illustrated in
The pair of adjacent blocks (Bj,Bk) and its associated filter F1 are then presented at the input of a filter step FILT (56) which delivers a pair of adjacent filtered blocks (B′j,B′k). In our example 4 filters F1 to F4 are used. They are low-pass, linear filters and are applied either in the vertical direction or in the horizontal direction. They are represented in
The pair of filtered adjacent blocks (B′j,B′k) is then subjected to a processing step (30) in accordance with that which is described in
The method according to the invention thus delivers a filtered decoded digital image ImF after processing blocks and pairs of blocks of the decoded digital image Im.
The video decoder comprises:
The decompression device further includes a reconstruction step REC (94) of the image data-block-by-data block, thanks to an image memory MEM (95). It finally comprises a processing device COR (96) which utilizes the processing method according to the invention, said device being suitable for processing the blocks of the reconstructed digital image so as to produce processed digital images in view of its display on a screen DIS (97).
The video coder (100) comprises:
It also comprises a prediction unit comprising in a series combination:
It may also be considered that the processing device COR (107) is inserted between the inverse discrete cosine transform device IDCT (105) and the adder, the processing being effected on a difference signal and not on a reconstructed signal.
The processing device utilizing the processing method according to the invention may thus improve the performance of a video coder notably in terms of coding quality, but also in terms of output rate. Furthermore, connecting the video coder of
It is possible to implement the processing method according to the invention in a video decoder circuit or a video coder circuit, said circuit being programmed properly. A computer program contained in a program memory may cause the circuit to carry out the various operations described earlier with reference to
No reference sign in brackets in the present text may be interpreted in a limiting fashion. The verb “to comprise” and its conjugations are also to be interpreted in a broad way, that is to say, not excluding the presence not only of other elements or steps than those listed after said verb, but of a plurality of elements or steps already listed after said verb and preceded by the word “a” or “an”.
Number | Date | Country | Kind |
---|---|---|---|
02/05087 | Apr 2002 | FR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB03/01564 | 4/16/2003 | WO | 10/19/2004 |