Methods and apparatus for removing blocking effect in a motion picture decoder

Abstract: Methods and apparatus for removing blocking effect in a motion picture decoder. Boundary pixel values of a current block and corresponding adjacent block are extracted. A mean value for the resulting difference values between the extracted pixel values of the current and adjacent blocks is calculated. The calculated mean value is limited between - 1 / 2 and 1 / 2 quantization step size. The limited mean value is added to the each pixel values of the current block to generate a resulting output. In another aspect absolute values for the resulting difference values between extracted pixel values of the current and adjacent block is calculated. The calculated absolute values are compared with the respective difference values and threshold level to determine whether the current block contains an edge. The current block without the edge is selected, filtered, and outputted, in which the blocking effect due to a quantization error is removed without having distortion to the original data.

Description: The present invention relates to a method and apparatus for removing blocking effect caused by quantization error in a motion picture decoder. In general, the amount of data associated with visual information is so large that its storage would require enormous storage capacity. Although the capacities of utilizing several storage media are substantial, the access speeds are usually inversely proportional to the capacity. Storage and transmission of such data require large capacity and bandwidth. To eliminate the need for large storage capacity, there is an image data compression technique, which reduces the number of bits required to store or transmit image without any appreciable loss of data. The image data compression removes redundancies contained in image signals. The redundancies comprises a spectral redundancy among colors, a temporal redundancy between successive screens, a spatial redundancy between adjacent pixels within the screen, and a statistical redundancy. Here, a method of image coding for removing the spatial redundancy is transform coding, which divides original input images into small size blocks and processes them individually. In the transmitter, each blocks of original image is converted by the transform coding and transform coefficients are generated. The transform coefficients are quantized and transmitted to the receiver. In the receiver, the transforn, coefficients are inverse quantized and converted so that each blocks of original image is regenerated. Fig. 1 shows a block diagram of a conventional digital motion picture coder/decoder, which is widely used in image processing system such as a High Definition Television (HDTV). In Fig. 1, the motion picture coder comprises a differential image generator (DIG), a discrete cosine transform unit (DCT unit), a quantizer (Q), a variable length coding unit (VLC unit), an inverse quantizer (IQ), an inverse discrete cosine transform unit (IDCT unit), an adder (ADD), a frame memory, a motion estimator, and a motion compensator. In DIG, a current image and a predicted image are inputted, and a differential image is generated. The generated differential image is outputted to the DCT unit to be divided into blocks. The DCT unit processes every block into DCT coefficients. The DCT coefficients are then quantized according to a quantization step size in the quantizer. The quantized coefficients are coded according to the Huffman Table in the VLC unit. The quantized coded coefficients are then transmitted to the channel. The predicted image inputted to the DIG is obtained as following. First, quantized DCT coefficients from the quantizer are quantized inversely in the inverse quantizer. The inverse quantized DCT coefficients are converted to image data in the IDCT. The converted image data are inputted to the adder. In the adder, original images are regenerated by using the transformed image data and previous image data from the motion compensator. The regenerated images from the adder are stored in the frame memory. From the frame memory, the previous images are outputted by delaying them in frame units. In the motion estimator, the previous image signals from the frame memory and the current image signals are compared for difference between the two frames, and a motion vector is generated. In the motion compensator, the predicted image having a pixel value similar to the current frame is outputted by shifting the previous image signal outputted from the frame memory as much as the motion vector. In the motion picture coder like the above, intra-mode frames are coded and transmitted. However, in the case of inter-mode frames, differential signals obtained through the motion estimation and the motion compensation should be coded and transmitted in order to decrease the transmission rate. To solve the above problem, a switch is disposed between the DIG and the motion compensator. Accordingly, the switch is opened when the intra-frames are inputted, and the switch is closed when the inter-frames are inputted. The motion picture decoder comprises a variable length decoding unit (VLD unit), an inverse quantizer, an inverse discrete cosine transform unit (IDCT unit), an adder, a frame memory, and a motion compensator. In the motion picture decoder, the input image signals are decoded by the VLD unit. The decoded signals are then quantized inversely by the inverse quantizer. The inverse quantized image data are converted inversely by the IDCT unit to be outputted to the adder. The image data from the adder are stored and delayed in the frame memory. The consequent stored delayed data from the frame memory are outputted to the motion compensator in order to be compensated with reference to the previous images. The compensated signals are then outputted to the adder. The intra-mode frames and inter-mode frames are regenerated according to the switch disposed between the adder and motion compensator. Namely, in case of the intra-mode frames, the output data from the IDCT unit are directly outputted to the adder. However, in case of the inter-mode frames, the output data from the IDCT are added to the previous image data from the motion compensator and the resulting data are transmitted to the adder to regenerate a current image signal. In the decoded digital images like the above, blocking effect occurs near to discontinuous boundary between blocks. The occurrence of this blocking effect is generated during the transform coding process of the divided blocks of digital images. Further, when the quantization step size is expanded during quantization, the quantization error increases and the blocking effect in the discontinuous boundary between blocks becomes even more apparent. US-A-5,367,385 discloses a method and apparatus for processing block coded image data to reduce boundary artifacts between adjacent image blocks. In view of the foregoing, it is an object of the present invention to provide methods and apparatuses for removing blocking effect due to a quantization error in a motion picture decoder having loss to the original image data. In order to achieve the above object, the present invention provides a method for removing blocking effect in a motion picture decoder comprising the steps of: a) extracting boundary pixel values of a current block and each adjacent block to said current block, which exist between boundaries of said current block and said each adjacent block; b) extracting difference values between boundary pixel values of said current block and boundary pixel values of said adjacent block, and calculating the mean value for the difference values; and c) limiting the mean value between -1/2 quantization step size and 1/2 quantization step size; characterised by comprising a step d) of adding the limited mean value to said each pixel value of said current block, and outputting corrected images, the step d) being carried out after the step c). According to a second aspect of the present invention there is provided an apparatus for removing blocking effect in a motion picture decoder comprising: a) a frame memory for receiving and storing decoded image signals in frame units and a corrected feedback current block; b) a current block boundary pixel extracting means for extracting sequentially boundary pixel values of said current block stored in the frame memory; c) an adjacent block boundary extracting means for extracting sequentially boundary pixel values of adjacent blocks to said current block stored in the frame memory; d) a mean value calculating means for calculating a mean value for difference values between boundary pixel values of said current block and of said adjacent blocks, and outputting a mean value; and e) a mean value limiting means for limiting the mean value between -1/2 quantization step size and 1/2 quantization step size, and outputting the limited mean value; characterised by comprising: f) a current block extracting means for extracting a current block stored in the frame memory so as to output pixel values of said current block; and g) an adding means for adding the mean value from said mean value limiting means to each pixel value of said current block from said current block extracting means so as to output the corrected current block before feeding back said corrected current block to said frame memory. The above and other objects, features, and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments of the invention in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram illustrating a conventional motion picture coder and decoder; Figs. 2A to 2D are views illustrating loss of an information due to a quantization error; Fig. 3 is a block diagram illustrating a motion picture decoder comprising an apparatus for removing blocking effect in accordance with the present invention; Fig. 4 is a block diagram illustrating an apparatus for removing blocking effect in accordance with a first preferred embodiment of the present invention; Fig. 5 is a view illustrating transformed 8 x 8 pixels of current block and upper, lower, left, right adjacent blocks; Reference will now be made in detail to the present invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts. Figs. 2A to 2D show a process of an information loss due to a quantization error. When a DCT coefficient is quantized according to a quantization step size, the quantized DCT coefficient is expressed by QF= [ F / step + 1 / 2 ] ( [ ] : Gaussian symbol ). For example, in Fig. 2B, the quantized DCT coefficient value is QF=1, if the range of the DCT coefficient F is 1 / 2 X step ≤ F < 3 / 2 X step. As shown in Fig.2D, the inversely quantized coefficient value F' is determined by expression F'=1 X step when the above quantized coefficient value QF=1 is quantized inversely. Accordingly, the difference (| F-F' |) between the original DCT coefficient value F and the inversely quantized DCT coefficient F' may be 1 / 2 X step at its maximum. Namely, the quantization error that which cause the blocking effect in the digital image falls within 0 ≤| F-F' | ≤ 1 / 2 X step. Fig. 3 shows a motion picture decoder comprising an apparatus for removing blocking effect 36 of the present invention, which is connected to an end portion of the decoder in Fig. 1. Decoded image signals and a quantized step size information are inputted into the apparatus for removing blocking effect 36 such that blocking effects in the image signals are removed and the corrected image signals are outputted. Fig. 4 shows a first embodiment of the apparatus for removing blocking effect 36 . The apparatus for removing blocking effect 36 comprises a frame memory 40 ; a current block boundary pixel extractor 41 ; a adjacent block boundary pixel extractor 42 ; a mean value calculator 43 ; a mean value limiter 44 ; a current block extractor 45 ; and an adder 46 . The mean value limiter 44 comprises a multiply 44-1 for multiplying quantized step size by 1 / 2; a selector 44-2 for selecting and outputting a minimum MIN ; a multiply 44-3 for multiplying the quantized step size by - 1 / 2 ; and a selector 44-4 for selecting and outputting a maximum MAX . Fig. 5 shows 8 × 8 pixel current block, adjacent upper, lower, left, and right blocks and boundary pixels between each block. Here, the current block for removal of blocking effect is illustrated. The boundary pixels a 0 -a 7 of the current block correspond to the boundary pixels A 0 -A 7 of the upper adjacent block A. The boundary pixels b 0 -b 7 of the current block correspond to the boundary pixels B 0 -B 7 of the left adjacent block B. The boundary pixels c 0 -c 7 of the current block correspond to the boundary pixels C 0 -C 7 of the lower adjacent block C . The boundary pixels d 0 -d 7 of the current block correspond to the boundary pixels D 0 -D 7 of the right adjacent block D. In Fig. 4, the decoded image signals are inputted and stored in the frame memory 40 in frame units. In the current block boundary pixel extractor 41 , boundary pixels values ℓ of the current block, which lies between the current block and the adjacent blocks are extracted from the frame memory 40. Namely, 32 boundary pixel values a 0 -a 7 , b 0 -b 7 , c 0 -c 7 , d 0 -d 7 are outputted sequentially from the current block boundary pixel extractor 41. In addition, by the adjacent block boundary pixel extractor 42 , boundary pixels values m of the adjacent blocks, which lies between the current block and the adjacent blocks are extracted from the frame memory 40. Namely, 32 boundary pixel values A 0 -A 7 , B 0 -B 7 , C 0 -C 7 , D 0 -D 7 are outputted sequentially from the adjacent block boundary pixel extractor 42. In the mean value calculator 43, the pixel values ℓ of the current block and the pixel values m of the adjacent blocks are sequentially inputted. Each difference value ℓ- m between the inputted pixel values is calculated by the mean value calculator 43 . Further, a mean value for each difference value is calculated and ouputted from the mean value calculator 43 . The mean value is obtained by the following expression. The above equation 1 is applied when there are 4 adjacent blocks. However. when there are 2 or 3 adjacent blocks, the mean value is obtained by dividing all the added boundary pixel values by 24 or 16 respectively. In the mean value limiter 44 , the mean value and a quantization step size are inputted. The inputted mean value is limited between the minimum - 1 / 2 × step and maximum 1 / 2 × step by the mean value limiter 44 , and the limited mean value LIM is outputted. Namely, in the minimum selector 44-2 , the mean value is compared to maximum 1 / 2 × step to select a smaller value. In the maximum selector 44-4, the smaller value obtained from the minimum selector 44-2 is compared to the minimum - 1 / 2 × step to select a bigger value. The limited mean value LIM from the maximum selector 44-4 is outputted to the adder 46. In the current block extractor 45, the current block is extracted from the frame memory 40 . 64 pixel values of the extracted current block are sequentially outputted to the adder 46 . In the adder 46 , the limited mean value LIM from the mean value limiter 44 is added to each pixel value of the current block outputted from the current block extractor 45 . The added and corrected current block is inputted into a display processor (not shown). In addition, the corrected current block is fed back to the frame memory 40 . In the frame memory 40 , the stored current block is replaced with the corrected currect block from the adder 46 . This corrected current block is used for removal of blocking effect in the next block. Another method for calculating the mean value utilizes a threshold level TH . TH prevents a damage in edges of original image during the removal process of blocking effect. To obtain the mean value M , the threshold level is determined and an absolute value from the difference value between boundary pixels smaller than the threshold value is selected. For example, when a 256 level image is coded/decoded, the threshold value is obtained as the following. A range of quantization error falls within -4 to 4 when the quantization step size 8 is utilized, and a range of the absolute difference between boundaries of blocks can be predicted to be 0 to 8. Further, a mean absolute difference between the block boundary is determined to be 4 if the quantization error is an uniform distribution. Accordingly, the threshold level greater than 4 is selected since the threshold value must be greater than the differences of the boundary pixel values. Namely, when the determined threshold level is 4 and the absolute value |ℓi - m i | of differences between the boundary pixel values of less than or equal to 4 is selected to yield a mean value M , At this time, the mean value M is obtained by the following expression. Equation 2. if (|ℓ i - m i | ≤ TH) {S = S + ( ℓ i - m i ) C = C + 1} M = S C (S and C are initialized to 0 at each block) The obtained mean value is inputted into the mean value limiter 44 for limiting the mean value within the range of quantization error. While this invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiment, but, on the contrary, it is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims.

Claims: A method for removing blocking effect in a motion picture decoder comprising the steps of: a) extracting boundary pixel values (1) of a current block and each adjacent block (m) to said current block, which exist between boundaries of said current block and said each adjacent block; b) extracting difference values (li-mi) between boundary pixel values of said current block and boundary pixel values of said adjacent block, and calculating the mean value (M) for the difference values; and c) limiting the mean value (M) between -1/2 quantization step size and 1/2 quantization step size; characterised by comprising a step d) of adding the limited mean value (LIM) to said each pixel value of said current block, and outputting corrected images, the step d) being carrid out after the step c). The method for removing blocking effect in a motion picture decoder of claim 1, wherein said step of calculating the mean value (M) comprises the steps of: calculating difference values (li-mi) between boundary pixel values of said current block and of said adjacent blocks; and calculating a mean value (M) for the difference values. The method for removing blocking effect in a motion picture decoder of claim 1, wherein the step of calculating the mean value (M) comprises the steps of: extracting difference values (li-mi) between the boundary pixel values of said current block and of said adjacent blocks; selecting and accumulating boundary pixel difference values when absolute values (|l i -m i |) are less than a threshold level (TH) after comparing said absolute values (|l i -m i |) to said difference values (l i -m i ) to said threshold level (TH) respectively; and calculating a mean value (M) for said accumulated difference values. An apparatus (36) for removing blocking effect in a motion picture decoder comprising: a) a frame memory (40) for receiving and storing decoded image signals in frame units and a corrected feedback current block; b) a current block boundary pixel extracting means (41) for extracting sequentially boundary pixel values of said current block stored in the frame memory (40); c) an adjacent block boundary extracting means (42) for extracting sequentially boundary pixel values of adjacent blocks to said current block stored in the frame memory (40); d) a mean value calculating means (43) for calculating a mean value for difference values between boundary pixel values of said current block and of said adjacent blocks, and outputting a mean value; and e) a mean value limiting means (44) for limiting the mean value between -1/2 quantization step size and 1/2 quantization step size, and outputting the limited mean value; characterised by comprising: f) a current block extracting means (45) for extracting a current block stored in the frame memory (40) so as to output pixel values of said current block; and g) an adding means (46) for adding the mean value from said mean value limiting means (44) to each pixel value of said current block from said current block extracting means (45) so as to output the corrected current block before feeding back said corrected current block to said frame memory (40). The apparatus for removing blocking effect in a motion picture decoder of claim 4, wherein the mean value limiting means (44) comprises: a multiplying means (44-1) for multiplying the quantized step size by ½; a selecting means (44-2) for selecting and outputting a minimum; a multiplying means (44-3) for multiplying the quantized step size -½; and a selecting means (44-4) for selecting an outputting a maximum.

Inventors: KIM SANG-HO, KIM, SANG-HO
Applicants: DAEWOO ELECTRONICS CORP, DAEWOO ELECTRONICS CORPORATION
Application year: 1997
Main classification: H04N7
IPC codes: H04N7, G06T5