WO2008007717A1 - Dynamic image decoding device and dynamic image encoding device - Google Patents
Dynamic image decoding device and dynamic image encoding device Download PDFInfo
- Publication number
- WO2008007717A1 WO2008007717A1 PCT/JP2007/063860 JP2007063860W WO2008007717A1 WO 2008007717 A1 WO2008007717 A1 WO 2008007717A1 JP 2007063860 W JP2007063860 W JP 2007063860W WO 2008007717 A1 WO2008007717 A1 WO 2008007717A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- block
- pixel value
- image
- correction
- average pixel
- Prior art date
Links
- 238000012937 correction Methods 0.000 claims abstract description 362
- 238000013139 quantization Methods 0.000 claims abstract description 348
- 238000012545 processing Methods 0.000 claims abstract description 308
- 238000000034 method Methods 0.000 claims abstract description 212
- 230000008569 process Effects 0.000 claims abstract description 143
- 238000001914 filtration Methods 0.000 claims description 65
- 238000004364 calculation method Methods 0.000 claims description 43
- 230000000875 corresponding effect Effects 0.000 claims description 29
- 238000011156 evaluation Methods 0.000 claims description 13
- 238000003702 image correction Methods 0.000 claims description 9
- 238000012935 Averaging Methods 0.000 claims description 5
- 230000002596 correlated effect Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 12
- 238000006243 chemical reaction Methods 0.000 abstract description 6
- 230000002411 adverse Effects 0.000 abstract description 2
- 238000009795 derivation Methods 0.000 description 42
- 238000010586 diagram Methods 0.000 description 24
- 230000006870 function Effects 0.000 description 13
- 230000009466 transformation Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000009499 grossing Methods 0.000 description 4
- 230000002730 additional effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 230000002441 reversible effect Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000005184 irreversible process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 102100029469 WD repeat and HMG-box DNA-binding protein 1 Human genes 0.000 description 1
- 101710097421 WD repeat and HMG-box DNA-binding protein 1 Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
- H04N19/86—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/117—Filters, e.g. for pre-processing or post-processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/80—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
Definitions
- the present invention relates to a moving picture coding apparatus that divides and encodes a quantization target picture into a plurality of blocks, and a moving picture decoding apparatus corresponding to such a moving picture coding apparatus.
- FIG. 18 is a functional block diagram showing a schematic configuration of a moving picture encoding apparatus 100 that encodes a moving picture by the H.264 / AVC moving picture encoding method.
- the moving image coding apparatus 100 includes a DCT unit 1, a quantization unit 2, a variable length coding unit 3, an inverse quantization unit 4, an I DCT unit 5, a deblocking filter processing unit 6, A frame memory 7, a predicted image derivation unit 8, and an encoding control unit 10 that controls each of the above units are provided.
- the DCT unit 1 divides a difference image obtained by subtracting a prediction image, which will be described later, from an original image into blocks each consisting of 4 ⁇ 4 pixels or 8 ⁇ 8 pixels, and orthogonally transforms the image signal of each block ( Integer precision DCT).
- the transform coefficient obtained by the orthogonal transform (corresponding to the DCT coefficient in the discrete cosine transform) is sent to the quantization unit 2.
- the quantization unit 2 quantizes the transform coefficient of each block according to the quantization parameter supplied from the encoding control unit 10. amount
- the quantized representative value obtained as a result of the child quantization is sent to the variable length coding unit 3 and the inverse quantization unit 4.
- variable length encoding unit 3 is based on the various encoding parameters supplied from the encoding control unit 10 and the quantization parameters (quantization representative values supplied from the quantization unit 3). The conversion coefficient of each block) is subjected to variable length coding. The encoded data obtained as a result of encoding by the variable length encoding unit 3 is sent to the moving picture decoding apparatus 200 described later.
- the inverse quantization unit 4 inverts the quantization representative value (transform coefficient of each quantized block) supplied from the quantization unit 3 according to the quantization parameter supplied from the encoding control unit 10. Quantify. That is, the inverse quantization unit 4 restores the transform coefficient of each block from the quantized representative value by the reverse operation of the quantization operation by the quantization unit 2. The transform coefficient of each block restored by inverse quantization is sent to the IDCT unit 5.
- the IDCT unit 5 converts the transform coefficient of each block obtained by inverse quantization into an image signal in the spatial domain, and restores the difference image.
- the inverse orthogonal transform applied to the transform coefficient by the IDCT unit 5 is the inverse transform (integer precision IDCT) of the orthogonal transform applied by the DCT unit 1.
- the local decoded image obtained by adding the difference image restored by the IDCT unit 5 and the predicted image is sent to the deblocking filter processing unit 6.
- the deblocking filter processing unit 6 performs adaptive filtering on the local decoded image in order to remove block distortion in the local decoded image obtained by adding the prediction image and the difference image. Details of adaptive filter processing by the deblocking filter processing unit 6 will be described in detail later.
- the locally decoded image from which block distortion has been removed by the deblocking filter processing unit 6 is temporarily stored in the frame memory 7.
- the frame memory 7 can store a plurality of locally decoded images.
- the locally decoded image stored in the frame memory 7 is referred to by the predicted image deriving unit 8 as a reference image.
- the predicted image deriving unit 8 generates a predicted image from the reference image recorded in the frame memory 7 by performing intra prediction or inter prediction.
- Intra prediction is a process for generating a predicted image by performing intra-frame prediction.
- the predicted image derivation unit 8 is defined in the H.264 / AVC video coding standard. Intraframe prediction can be performed in multiple prediction modes (prediction algorithms). When intra prediction is performed, intraframe prediction is performed using the prediction mode specified by the encoding control unit 10.
- Inter prediction is a process of generating a prediction image by inter-frame prediction (motion compensation prediction) based on the motion vector determined by the encoding control unit 10 and the reference image stored in the frame memory 7. is there.
- the predicted image derivation unit 8 uses the block of the size specified by the encoding control unit 10 and also uses inter-frame prediction using a plurality of reference images specified by the encoding control unit 10. I do.
- the encoding control unit 10 determines which prediction method is used to generate a prediction image among intra prediction and inter prediction, and designates the prediction method to the prediction image deriving unit 8. At this time, the encoding control unit 10 determines various encoding parameters according to the prediction method.
- the coding parameters for performing intra prediction include information for specifying a prediction mode in intra prediction.
- the coding parameters for performing inter prediction include information specifying a motion vector, a block size, and a reference image.
- the encoding control unit 10 designates quantization parameters for the quantization unit 2 and the inverse quantization unit 4.
- the moving image encoding apparatus 100 performs encoding of a moving image by repeating the following steps;!
- Step 1 The encoding control unit 10 determines whether intra prediction or inter prediction is performed, and determines an encoding parameter and a quantization parameter necessary for encoding.
- Step 2 According to the determination result in step 1, the predicted image generation unit 8 uses the prediction method specified by the encoding control unit 10 to predict the predicted image based on the reference image stored in the frame memory 7. Is generated.
- Step 3 A difference image between the predicted image generated in Step 2 and the input original image is generated and supplied to the DCT unit 1.
- Step 4 DCT unit 1, quantization unit 2 and force
- the image signal of the difference image obtained in step 3 is orthogonally transformed for each block, and the obtained transform coefficient is quantized.
- the obtained quantization representative value is variable-length encoded by the variable-length encoding unit 3 and output as encoded data.
- the inverse quantization unit 4, the IDCT unit 5, the force S, and the quantized representative value obtained in step 4 are inversely quantized to restore the difference image.
- Step 5 The difference image restored in Step 4 and the predicted image generated in Step 2 are added, and the obtained locally decoded image is supplied to the deblocking filter processing unit 6.
- Step 6 The deblocking filter processing unit 6 removes block distortion from the local decoded image obtained in step 5, and the local decoded image with reduced block distortion is stored in the frame memory 7 as a reference image. Accumulated.
- FIG. 19 is a functional block diagram showing a schematic configuration of a moving picture decoding apparatus 200 that decodes a moving picture by the H.264 / AVC moving picture coding method.
- the moving picture decoding apparatus 200 includes an inverse quantization unit 4, an IDCT unit 5, a deblocking filter processing unit 6, a frame memory 7, a predicted image derivation unit 8, and a variable length decoding unit 20. It has.
- variable length decoding unit 20 has a function of variable length decoding the encoding parameter and the quantized representative value (quantized transform coefficient).
- the moving picture decoding apparatus 200 shown in FIG. 19 decodes encoded data by repeating the following steps;! To 6.
- Step 1 From the encoded data acquired by the variable length decoding unit 20, the encoding parameter and the quantized representative value (quantized transform coefficient) are variable length decoded.
- Step 2 The predicted image derivation unit 8 generates a predicted image based on the reference image stored in the frame memory 7 according to the decoded encoding parameter.
- Step 3 Inverse quantization unit 4, IDCT unit 5, force S, quantization representative value obtained in step 1 Is dequantized to restore the difference image.
- Step 4 The difference image restored in Step 3 and the predicted image generated in Step 2 are added, and the obtained decoded image is supplied to the deblocking filter processing unit 6.
- Step 5 The deblocking filter processing unit 6 removes block distortion from the decoded image obtained in step 4, and stores the decoded image with reduced block distortion in the frame memory 7.
- the decoded image stored in the frame memory 7 can be read at an arbitrary timing and used as a reference image or a display image.
- Step 6 The decoded image stored in the frame memory is output to an image projection means such as a display at an appropriate timing as a display image.
- both the moving picture coding apparatus 100 and the moving picture decoding apparatus 200 use the common deblocking filter processing unit 6! Block distortion that occurs during the quantization / inverse quantization process of moving images is reduced.
- the deblocking filter processing unit 6 will be described in a little more detail with reference to FIGS.
- FIG. 20 is an explanatory diagram showing a block division pattern of a quantization target image (difference image between an original image and a predicted image) in a moving image encoding process using the H.264 / AVC moving image encoding method. is there.
- the quantization target image is divided into W X H rectangular blocks.
- WX H blocks include B ⁇ in order from the upper left corner of the image to be quantized.
- FIG. 21 is a diagram showing two adjacent blocks, block B and block B, in the quantization target image shown in FIG. As shown in FIG. 21, each of block B and block B is composed of a total of 16 pixels arranged in 4 rows and 4 columns. As with block B, all blocks B to B making up the quantization target image in Fig. 20 are arranged in 4 rows and 4 mm.
- Each pixel constituting the quantization target image is a combination of a variable n that specifies a block including the pixel and variables u and V that specify the position of the pixel in the block B (n, u, v) Can be specified. That is, the pixel (n, u, v) is a pixel in the u-th column and the v-th row of the block B n .
- the attribute value of the pixel (n, u, v) is expressed as X (n, u, v).
- the pixel value of the pixel (n, u, v) in the quantization target image is expressed as P (n, u, v).
- Transformation 'Quantization' Dequantization 'Inverse orthogonal transformation is a processing unit of a series of processing.
- the image data of the quantization target image is converted into a conversion coefficient for each of the blocks B to B, and the amount is converted.
- the deblocking filter processing unit 6 used in the H.264 / AVC moving image coding system includes a filter process between blocks (B, B) adjacent in the horizontal direction and a block (B , B) are performed independently of each other. Deblocky n n + W
- the filter strength of the filter processing performed by the filtering filter processing unit 6 is adaptively set according to conditions such as the prediction mode applied to each block.
- P (n, u, v) is a pixel in the processing target image (local decoded image in the moving image encoding device 100 or decoded image in the moving image decoding device 200) of the deblocking filter processing.
- the pixel value (n, u, v) and P ′ (n, u, v) represent the pixel value of the pixel (n, u, v) in the filter output image output from the deblocking filter 6.
- ⁇ '( ⁇ , 3, ⁇ ) _ ( ⁇ ( ⁇ , 1, ⁇ ) + 2 ⁇ ( ⁇ , 2, ⁇ ) + 2 0,3, ⁇ ) + 2 ⁇ ( ⁇ + 1,0, ⁇ ) + ⁇ ( ⁇ + 1,1, ⁇ )
- ⁇ '0 + 1,0, upper [ ⁇ ( ⁇ , 2, ⁇ ) + 2 ⁇ ( ⁇ , 3, ⁇ ) + 2 ⁇ ( ⁇ + 1,0, ⁇ ) + 2 ⁇ ( ⁇ + 1,1, ⁇ ) + ⁇ ( ⁇ + 1,2, ⁇
- ⁇ '( ⁇ + 1,1, ⁇ ) _ ( ⁇ ⁇ , ⁇ ⁇ ) + ⁇ ( ⁇ + 1,0, ⁇ ) + ⁇ ( ⁇ + 1,1,) + ("+ 1, 2, ⁇
- ⁇ '( ⁇ + 1,2, ⁇ ) -(P (w, 3, ⁇ ) + ⁇ ⁇ + 1,0, ⁇ ) + Pin + 1,1, ⁇ ) + 3 ⁇ ( ⁇ + 1,2 , ⁇ ) + 2 ⁇ ( ⁇ + 1,3, ⁇ )
- FIG. 22 is a graph showing pixel direct p (n, u, v) of the original image in block B and block B.
- FIG. 22 (b) is a graph showing the pixel values P (n, u, v) of the decoded image to be processed by the deblocking filter processing unit 6 in block B and block B. As shown in (b) of FIG. 22, in the decoded image, discontinuous changes in pixel values at block boundaries, that is, block distortion occurs.
- (c) of FIG. 22 is a graph showing pixel values (n, u, v) in block B and block B of the image after filtering the decoded image by the deblocking filter 6 Therefore, discontinuous changes in pixel values in the restored image to be encoded are smoothed, and block distortion is reduced.
- Non-Patent Literature iTU_r Recommendation H.2D4: Advanced Video and oding for generic audiovisual services "(2003)
- the average pixel value in each block is different before and after the filter processing. Therefore, when the conventional deblocking filter is used, the average pixel value in each block is not saved before and after the filter processing! /, So the average pixel value between the encoding target image and the decoded image is obtained by the filter processing. The difference can be enlarged.
- the prediction image is generated in the moving image encoding apparatus using the local decoded image having a difference in average pixel values as compared to the encoding target image as a reference image.
- a decoded image having an average pixel value difference with respect to the encoding target image is generated as a reference image or a display image. For this reason, blurring or flickering of the image in the moving image occurs.
- the applicant applies a filtering process in Japanese Patent Application "Japanese Patent Application No. 2006-0756 85" to remove frequency components that generate block distortion from an encoding target image.
- a moving picture encoding apparatus provided with filter processing means and a moving picture decoding apparatus provided with inverse filter processing means corresponding to the inverse transformation of the filter processing have been proposed.
- the frequency component that generates block distortion is removed from the encoding target image by the filter processing unit, and the frequency component removed by the inverse filter processing unit is restored in the decoded image.
- the filter processing means can be configured to keep the average value of the pixel values unchanged before and after the filter processing. Accordingly, it is possible to provide a moving image encoding apparatus and a moving image decoding apparatus that can reduce block distortion in a decoded moving image and that do not cause side effects such as blurring and flickering of the image.
- the quantization process is an irreversible process
- the output image of the filter processing means and the input image of the inverse filter processing means have a discrepancy at least for the quantization error. Therefore, the frequency component restored by the inverse filter processing unit cannot accurately reproduce the frequency component removed from the encoding target image by the filter processing unit.
- the present invention has been made in view of the above-described problems, and an object of the present invention is to reduce block distortion in a decoded moving image and to prevent side effects such as image blur and flicker. It is a moving image encoding device and a moving image decoding device, and is to realize a moving image encoding device and a moving image decoding device that can restore more accurately the frequency components that generate the removed block distortion. .
- the moving image encoding apparatus of the present invention quantizes a quantization target image subjected to a filter process for removing a frequency component that generates block distortion for each block.
- a video decoding device that inverse-quantizes the quantized representative value obtained by the above, and for at least one block, the restoration value restored by the inverse quantization
- the pixel value of each pixel of the quantization target image A restored quantization target image correcting means for performing correction by adding an approximate average pixel value approximating the average pixel value of the quantization target image in the block to which the pixel belongs, and the restored quantization target image subjected to the correction
- an inverse filter processing means for performing an inverse filter process corresponding to an inverse transformation of the filter process.
- a moving image encoding apparatus that divides a quantization target image subjected to filter processing to remove a frequency component that generates block distortion into a plurality of blocks, and quantizes the quantization target image for each block.
- the average pixel value of each block of the quantization target image is preferably as small as possible. This is because by reducing the average pixel value of the quantization target image, the quantization level interval in the quantization can be set small, and the quantization error caused by the quantization can be reduced. is there.
- the approximate average pixel value that approximates the average value of the quantization target image in the block to which the pixel belongs is subtracted from the pixel value of each pixel of the quantization target image. It is preferable to perform correction. This is because the average pixel value of each block of the corrected quantization target image can be reduced by performing the above correction. By using the approximate average pixel value that better approximates the average pixel value of the quantization target image, the average pixel value of each block of the corrected quantization target image is further reduced by the force S.
- the same approximate average pixel value that is subtracted from the quantization target image by the moving image encoding device is used as the restored quantization target image by the moving image decoding device. Can be added. For this reason, the difference between the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process is determined as only the quantization error that occurs during the quantization process. It becomes possible to do.
- the average pixel value of each block of the quantization target image is gradually reduced by the correction performed on the moving image encoding device side, so that it is generated in the quantization process.
- the amount of quantization error to be made is smaller than when the above correction is not performed.
- the quantization target image may be the encoding target image itself encoded by the moving image encoding device, or a difference obtained by subtracting a predicted image from the encoding target image. It may be an image.
- examples of the predicted image include a predicted image generated by using an intra-frame prediction process, an inter-frame prediction process, or the like using a locally decoded image as a reference image.
- the inverse filter processing performed by the inverse filter processing means may correspond to a strict inverse transformation or an approximate inverse transformation with respect to the filter processing of the filter processing means. It may be what you do. In other words, the inverse filtering process is sufficient if it approximates a strict inverse transform within a range that does not adversely affect the quality of the final moving image. For example, the calculation accuracy of the filtering process (for example, integer precision) A degree of error is acceptable.
- correction block designation information acquisition means for acquiring correction block designation information for designating a block to be corrected from the moving picture encoding apparatus for performing the quantization.
- the restored quantization target image correcting unit performs the above correction on a block specified by the correction block specifying information.
- the video decoding device acquires the correction block designation information from the video coding device, and performs the correction on the block designated by the correction block designation information.
- the moving picture coding apparatus designates the corrected block designation information as a block that has been corrected to subtract the approximate average pixel value from the quantization target image, so that the moving picture decoding apparatus It is possible to perform correction by adding the approximate average value to the same block of the image to be converted.
- correction block designation information may be encoded and provided from the moving picture coding apparatus, for example.
- the correction block designation information acquisition procedure The stage can be configured to decode the encoded data and obtain the correction block designation information.
- the moving picture decoding apparatus includes an average pixel value before correction obtained by averaging pixel values of each block of the restored quantization target image, and the approximate average pixel of the block from the average pixel value before correction.
- a comparison estimation unit that estimates a magnitude relationship with a corrected average pixel value obtained by subtracting a value, and the restored quantization target image correction unit uses the comparison estimation unit to change the corrected average pixel value to the average pixel before correction. It is preferable that the correction is performed for blocks estimated to be smaller than the value.
- the comparative estimation means estimates the magnitude relationship between the magnitude of the average pixel value before correction and the magnitude of the average pixel value after correction, and determines the magnitude of the average pixel value after correction. For the block estimated to be smaller, the correction is performed by the restored quantization target image correcting means. Therefore, the moving picture coding apparatus that performs the quantization performs correction for subtracting the approximate average pixel value for a block in which the size of the average pixel value after correction is smaller than the size of the average pixel value before correction. As the accuracy of the estimation increases, the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process can be matched more accurately. Become possible
- the comparison estimation means estimates, for example, that the average pixel value before correction matches the average pixel value after correction for a block in which the value of the approximate average pixel value is zero.
- the approximate average pixel value is larger than a predetermined threshold value, it can be estimated that the corrected average pixel value is larger than the pre-correction average pixel value.
- the approximate average pixel value is derived from the restored quantization target image! /.
- the approximate average pixel value is derived from the restoration quantization target. Therefore, the moving image decoding apparatus performs the approximation without referring to the quantization target image. An average pixel value can be derived.
- the moving image coding apparatus that performs the quantization also performs the inverse quantization on the quantization representative value obtained by the quantization so that the same image as the restored quantization target image is stored in the local apparatus. And the approximate average pixel value can be derived. Therefore, the moving picture decoding apparatus and the moving picture encoding apparatus can share the same approximate average pixel value. For this reason, there is an additional effect that the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process can be matched more accurately. .
- the video decoding device converts the approximate average pixel value of each block to the pixel value of the restored quantization target image in the adjacent block for which the approximate average pixel value is derived adjacent to the block.
- the average pixel value of the quantization target image is the approximate average pixel value of the block and the correction is performed for the adjacent block
- the average pixel value of the restored quantization target image in the adjacent block and the adjacent pixel It is preferable that the difference value from the approximate average pixel value of the block is the approximate average pixel value of the block.
- the approximate average pixel value that closely approximates the quantization target image can be obtained based on the restored quantization target image. For this reason, it is possible to more accurately match the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process. Play.
- the video decoding device may derive the approximate average pixel value based on the pixel value of the restored quantization target image in one adjacent block! /, The approximate average pixel value may be derived based on the pixel values of the restored quantization target image in a plurality of adjacent blocks.
- the average pixel value in a certain block of the restored quantization target image is obtained by, for example, inverse quantization of the restored quantization target image in the frequency domain in the block (the quantization representative value). It is possible to calculate from the DC component (corresponding to the DCT coefficient).
- the moving picture decoding apparatus provides an approximation that correlates the approximate average pixel value of each block with the block selected by referring to a quantization parameter that specifies the quantization method.
- Approximate average pixel value deriving means for deriving based on the pixel value of the restored quantization target image in the correlation block for which the average pixel value has already been derived, wherein the approximate average pixel value deriving means performs the correction for the correlation block.
- the restoration in the correlation block is performed.
- the difference value between the average pixel value of the quantization target image and the approximate average pixel value of the correlation block is used as the approximate average pixel value of the block. Arbitrariness is preferred.
- the moving image decoding apparatus can accurately derive the approximate average pixel value of each block with reference to, for example, a prediction mode used for intra prediction. More specifically, a block whose prediction mode matches the prediction mode in the block is selected from among the blocks close to each block, and approximated as the average pixel value of the restored quantization target image in the selected block. An average pixel value can be derived.
- a video encoding device is a video encoding device that divides a quantization target image into a plurality of blocks and quantizes each block.
- Filter processing means for performing a filtering process on the quantization target image to remove a frequency component that generates block distortion, and each of the quantization target images on which at least one block has been subjected to the finer processing.
- Quantization target image correction means for performing correction by subtracting an approximate average pixel value that approximates the average pixel value of the quantization target image in the block to which the pixel belongs from the pixel value of the pixel; It is characterized by.
- the filter processing means removes a frequency component that generates block distortion from the encoding target image before quantization. Therefore, the quantization target image to be quantized above The frequency components that generate block distortion are removed in advance. Therefore, the restored quantization target image obtained by quantizing and dequantizing the quantization target image subjected to the filtering process by the filter processing means has reduced block distortion. Moreover, the frequency component previously removed by the filter processing means can be restored by inverse filter processing corresponding to the inverse transformation of the filter processing of the filter processing means. In other words, the moving picture coding apparatus having the above-described configuration can generate coded data that can restore a decoded image with reduced block distortion without losing a specific frequency component. And! /, Has the effect.
- the average power of the quantization target image in the block to which the pixel belongs is calculated from the pixel value of each pixel of the quantization target image for at least one block. Since correction for subtracting the approximate average pixel value that approximates the value is performed, it is possible to reduce the average pixel value of each block of the quantization target image below the original average pixel value of the block. Therefore, the quantization level interval in the quantization can be set small, and the quantization error caused by the quantization can be reduced. For this reason, the quantization error generated in the quantization process can be further reduced. Therefore, the quantization target image after the filtering process can be more accurately matched with the restored quantization target image before the inverse filtering process.
- the moving image encoding apparatus includes, for each block of the quantization target image, an average pixel value before correction obtained by averaging pixel values of the quantization target image in the block, and the average pixel before correction.
- Average pixel value calculating means for calculating a corrected average pixel value obtained by subtracting the approximate average pixel value of the block from the value, and the average pixel value before correction for each block of the quantization target image!
- a correction evaluation unit that compares the average pixel value after correction with the magnitude of the average pixel value after correction.
- the quantization target image correction unit includes a correction evaluation unit that causes the average pixel value after correction to be greater than the average pixel value before correction.
- the block determined to be small It is preferable that the above correction is performed for the lock.
- the average pixel value before correction and the average pixel value after correction are compared in magnitude, and the block for which the average pixel value after correction is smaller than the average pixel value before correction Correction is performed. For this reason, the average pixel value of each block of the quantization target image can be reliably made equal to or less than the original average pixel value of the block. Therefore, the quantization level interval in the above quantization can be set smaller, and the quantization error generated by the quantization can be reduced. For this reason, it is possible to more accurately match the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process. That is, there is an additional effect that encoded data that can restore a decoded image that more faithfully reproduces the encoding target image can be generated.
- the quantization target image correcting unit corrects the moving image decoding device that inversely quantizes the quantized representative value obtained by the quantization. It is preferable that a correction block designation information providing unit for providing correction block designation information for designating a block is further provided.
- the moving picture decoding apparatus with corrected block designation information for designating the block subjected to the correction in the moving picture encoding apparatus.
- the video decoding device can perform correction complementary to the correction on the same block as the block on which the video encoding device has performed the correction based on the correction block designation information.
- the moving picture decoding apparatus quantizes a quantization target image subjected to a filter process for removing a frequency component that generates block distortion for each block.
- a video decoding device that inversely quantizes the obtained quantized representative value, wherein at least one block is restored by the above inverse quantization
- a restored quantization target image correction unit that performs correction by subtracting an approximate quantization error that approximates a quantization error in a block to which the pixel belongs from the pixel value of each pixel of the quantization target image;
- an inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process on the restored quantization target image.
- the moving picture decoding apparatus quantizes the quantization target image that has been subjected to the filter processing for removing the frequency component that generates block distortion.
- the quantization target image is obtained by removing the frequency component that generates the block distortion in advance, the block distortion in the restored quantization target image restored by inverse quantization is suppressed.
- the restored quantized image is restored by the inverse filter processing means with the frequency component removed during the encoding process. Therefore, the restored quantization target image that has been subjected to the above inverse filter processing is an image that has a reduced block distortion and does not lack a specific frequency component, that is, closely approximates the quantization target image. It becomes an image.
- the moving picture decoding apparatus includes a decoded image correcting unit that subtracts an approximate quantization error that approximates a quantification error from the restored quantization target image, and is restored to the inverse filter processing means.
- the quantization error in the quantization target image is reduced.
- the restored quantization target image that is the processing target of the above inverse filtering process is a better approximation of the quantization target image that has been subjected to the filtering process. Therefore, the inverse filter processing means can more accurately restore the frequency component removed during the encoding process. That is, according to the above configuration, it is possible to obtain a decoded image in which the encoding target image is reproduced more faithfully.
- the moving picture decoding apparatus obtains correction block designation information acquisition means for acquiring correction block designation information for designating a block to be corrected from the moving picture encoding apparatus that performs the quantization. It is preferable that the restored quantization target image correcting unit performs the correction on the block specified by the correction block specifying information.
- the moving picture decoding apparatus acquires the correction block designation information from the moving picture encoding apparatus, and assigns the corrected block designation information to the block designated by the correction block designation information.
- the above correction is performed.
- the moving picture encoding apparatus can designate the block to be corrected to the moving picture encoding apparatus.
- correction block designation information may be encoded and provided from the moving picture coding apparatus, for example.
- the correction block designation information acquisition means can be configured to decode the encoded data and acquire the correction block designation information.
- the approximate quantization error in each block is a weighted average value obtained by weighted average of the average pixel values of the restored quantization target image in each of the blocks in the vicinity of the block. And the difference value from the average pixel value of the restored quantization target image in the block!
- the weighted average value is a good approximation of the restored quantization target image having no quantization error in each block. That is, the approximate quantization error obtained by subtracting the weighted average value from the average pixel value of the restored quantization target image is a good approximation of the true quantization error. Therefore, according to the above configuration, there is a further effect that it is possible to effectively reduce the quantization error in the restored quantization target image passed to the inverse filter processing means.
- the moving picture encoding apparatus provides a plurality of encoding target images to which a filtering process for removing a frequency component that generates block distortion is performed by a filtering process.
- a moving picture coding apparatus that divides into blocks and codes each block, local decoding means for decoding the coded data obtained by the above coding to obtain local decoded images, and for each block, Any one of the weighted average value obtained by weighted averaging the average pixel value of the local decoded image in each block adjacent to the block and the average pixel value of the local decoded image in the block is the value in the block.
- Correction block instruction information that provides correction block instruction information for indicating a block that is determined to have a value that is closer to the average pixel value of the image to be encoded! / As a block that should be corrected.
- the moving picture decoding apparatus performs, for example, correction for subtracting the approximate quantization error in the block to which the pixel belongs from the pixel value of each pixel of the decoded image for at least one or more blocks. If the approximate quantization error in each block is, for example, a value obtained by subtracting the weighted average value from the average pixel value of the decoded image in the block, the video decoding device The quantization error can be effectively reduced by the correction based on the correction block instruction information.
- FIG. 1 is a functional block diagram showing a configuration of a video decoding device according to a first embodiment of the present invention.
- FIG. 2 is a functional block diagram showing a basic form of a moving picture coding apparatus according to an embodiment of the present invention.
- FIG. 3 is a functional block diagram showing a basic form of a video decoding apparatus according to an embodiment of the present invention.
- FIG. 4 is a flowchart showing an outline of filter processing by a filter processing unit included in the video encoding device according to the embodiment of the present invention.
- FIG. 5 is a graph showing the effect of the filter processing shown in FIG. (A) is a graph showing pixel values of the processing target image to be filtered, (b) is a graph showing average pixel values for each block of the processing target image, and (c) is a graph. Lines using average pixel values shown in (b) (D) is the pixel value of the filter output image.
- FIG. 6 is a flowchart showing an overview of inverse filter processing by an inverse filter processing unit included in a video encoding device and video decoding device according to an embodiment of the present invention.
- FIG. 7 is a graph showing the operation of the inverse filter processing shown in FIG.
- A is a graph showing the pixel value of the processing target image to be subjected to the inverse filter processing
- (b) is a graph showing the average pixel value for each block of the processing target image
- (c) is a graph.
- (B) is a graph showing the predicted value obtained by linear interpolation using the average pixel value shown in (b)
- (d) is a graph showing the pixel value of the inverse filter output image.
- FIG. 8 is a functional block diagram showing a configuration of a video encoding device according to the first embodiment of the present invention.
- FIG. 9 shows an embodiment of the present invention, and is a functional block diagram showing a configuration of a correction determination unit in the moving picture encoding apparatus shown in FIG.
- FIG. 10 An embodiment of the present invention, showing a configuration of a moving image encoding device shown in FIG. 8 and a corrected image candidate deriving unit in the moving image decoding device shown in FIG. FIG.
- FIG. 11 A flowchart showing an embodiment of the present invention, and showing a flow of a corrected image candidate derivation process in the moving picture encoding apparatus shown in FIG. 8 and the moving picture decoding apparatus shown in FIG. It is.
- FIG. 12 is a functional block diagram showing a configuration of a video encoding device according to a second embodiment of the present invention.
- FIG. 13 is a functional block diagram showing a configuration of a video decoding device according to a second embodiment of the present invention.
- FIG. 14 is a flowchart showing a flow of correction method determination processing in the video encoding apparatus shown in FIG. 12.
- FIG. 15 is a graph showing the operation of the moving picture encoding apparatus and moving picture decoding apparatus according to the second embodiment of the present invention, and showing the pixel value of each pixel.
- FIG. 14 is a flowchart showing a flow of inverse filter input correction processing in the video decoding apparatus shown in FIG.
- FIG. 17 is a graph for explaining distortion in a decoded image caused by a quantization error in the video encoding device shown in FIG. 2 and the video decoding device shown in FIG. 3.
- FIG. 18 is a functional block diagram showing a conventional technique and showing a configuration of a moving image encoding device including a deblocking filter.
- Fig. 19 is a functional block diagram showing a conventional technique and showing a configuration of a video decoding device corresponding to the video encoding device shown in Fig. 18.
- FIG. 20 is an explanatory diagram showing an image division pattern in a quantization target image to be quantized or a processing target image to be filtered.
- the basic configuration of the video encoding device and the video decoding device will be described with reference to FIGS. Then, after pointing out the problems in the basic configuration, the video encoding device and the video decoding device according to the present embodiment realized by modifying the basic configuration will be described. .
- FIG. 2 is a functional block diagram showing a main configuration of the moving picture coding apparatus 300.
- the moving picture coding apparatus 300 includes a DCT unit 1, a quantization unit 2, a variable length coding unit 3, an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, and a predicted image derivation unit. 8, an encoding control unit 21, a filter processing unit 11, and an inverse filter processing unit 12 are provided.
- FIG. 2 Main Phases of the Video Encoding Device 300 in Fig. 2 and the Conventional Video Encoding Device 100 (Fig. 18)
- the moving picture coding apparatus 300 includes a filter processing unit 11 and an inverse filter processing unit 12 instead of the conventional deblocking filter 6, and instead of the conventional coding control unit 10.
- the encoding control unit 21 is provided.
- blocks having the same functions as those of the conventional moving image encoding apparatus 100 are denoted by the same names and reference numerals as those in FIG. 18, and description thereof is omitted.
- the encoding control unit 21 instructs the inverse filter processing unit 12 to execute the inverse filter processing.
- the control signal is transmitted every predetermined encoding processing unit (for example, every block or every frame).
- the filter processing unit 11 performs filter processing to remove a specific frequency component FL that generates block distortion from the processing target image.
- the processing target image to be processed by the filter processing unit 11 is an encoding target image.
- a differential image obtained by subtracting the prediction image generated by the prediction image deriving unit 8 from the encoding target image (filter output image) subjected to the filter processing by the filter processing unit 11 is quantized. Supplied as a target image.
- the inverse filter processing unit 12 acquires a locally decoded image recorded in the frame memory 7 at the timing indicated by the control signal supplied from the encoding control unit 21.
- the inverse filter processing unit 12 uses the locally decoded image as a processing target image, and performs an inverse filtering process corresponding to the inverse transformation of the filter processing performed by the filter processing unit 11 on the processing target image.
- the locally decoded image (inverse filter output image) that has been subjected to the inverse filter processing by the inverse filter processing unit 12 is stored in the frame memory 7 as a reference image, and is used by the predicted image deriving unit 8 to generate the next predicted image. .
- the DCT unit 1 and the quantization unit 2 divide the quantization target image into a plurality of blocks and quantize the image data of each block. Accordingly, block distortion may be included in a decoded image or a local decoded image obtained by adding a predicted image to a restored quantization target image restored by inverse quantization of the quantization representative value obtained by the quantization. That is, a locally decoded image generated inside the video encoding device 300 to generate a predicted image, and a video to be described later.
- the decoded image generated by the image decoding device 400 may include block distortion.
- the quantization target image supplied to the DCT unit 1 is a difference image between the filter output image subjected to the filter processing by the filter processing unit 11 and the predicted image.
- the filter processing unit 11 acts on the processing target image so as to remove the frequency component FL that generates block distortion, it is possible to effectively reduce block distortion generated in the process of quantization and dequantization. .
- the spatial frequency component lost in the quantization process in the conventional video encoding device 100 is temporarily removed by the filter processing unit 11 in the video encoding device 300, and the inverse filter is used.
- the processing unit 12 By restoring by the processing unit 12, it is possible to avoid the influence of the quantization process and suppress the occurrence of block distortion.
- the filter processing unit 11 and the inverse filter processing unit 12 are provided with a conventional moving picture encoding device.
- the deblocking filter processing unit 6 in 100 can be configured to maintain the average pixel value (for example, average luminance level) before and after processing in each block. Therefore, it is possible to avoid problems such as image blurring and flickering during moving image playback caused by the deblocking filter processing.
- the average pixel value for example, average luminance level
- FIG. 3 is a functional block diagram showing a schematic configuration of a moving picture decoding apparatus 400 corresponding to the moving picture encoding apparatus 300 shown in FIG.
- the video decoding device 400 includes an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, a predicted image derivation unit 8, a variable length decoding unit 20, and an inverse filter processing unit 12. ing.
- the encoded data decoded by the video decoding device 400 is generated by the video encoding device 300 based on the image from which the frequency component FL that generates block distortion is removed! /. is there.
- the variable length decoding unit 20 of the video decoding device 400 decodes this encoded data. To do.
- the inverse quantization unit 4 and the IDCT unit 5 perform inverse quantization on the value obtained by the decoding.
- the restored quantization target image restored by inverse quantization corresponds to a difference image obtained by subtracting the predicted image from the original image.
- the moving picture decoding apparatus 400 generates a decoded image by adding the predicted image generated by the predicted image deriving unit 8 to the restored difference image.
- the inverse filter processing unit 12 included in the video decoding device 400 performs the same inverse filter processing as the inverse filter processing unit 12 included in the video encoding device 300. That is, the inverse filter processing unit 12 acts on the decoded image lacking the frequency component FL that generates block distortion to restore the frequency component FL removed by the filter processing.
- the inverse filter output image that has been subjected to the inverse filter processing by the inverse filter processing unit 12 is referred to by the prediction image deriving unit 8 as a reference image for generating a prediction image, and is output to a display or the like as a reproduction image.
- the frequency component FL removed from the encoding target image by the operation of the inverse filter processing unit 12 is restored in the reproduced image or the reference image. That is, the moving picture decoding apparatus 400 can output a reproduced picture in which a specific frequency component is not lost at the same time that the block distortion is reduced.
- the predicted image can be generated by the predicted image deriving unit 8 based on a reference image in which specific frequency components are not lost at the same time that block distortion is reduced.
- the filter processing unit 11 performs horizontal filter processing and vertical filter processing by dividing a processing target image to be filtered into a plurality of blocks.
- the division pattern in which the filter processing unit 11 divides the processing target image is as shown in FIGS. 20 and 21, and the DCT unit 1 and the quantization unit 2 perform the quantization target image for quantization. This is the same as the division pattern for dividing.
- the filter processing unit 11 uses the image data of the block B in the filter output image output from the filter processing unit 11 as the image data of the block B in the processing target image. It is calculated from the image data of the block adjacent to the block. In horizontal finisher processing, the image data of block B is calculated with reference to the image data of block B adjacent to the right side of the block B. In vertical filtering, the image data of block B is calculated. Is the image data n n + W of block B adjacent to the lower side of the block.
- the force filter processing unit 11 for describing the filter processing calculation for calculating the pixel value (for example, the luminance level) of one block B performs the filter processing calculation described below for all adjacent two blocks. Repeating the lock completes the horizontal filtering process. Note that the above repetitions are the odd and odd numbers adjacent to each other, such as (B, B), (B, B), (B, B)
- a pair of several blocks may be paired, and the above filtering processing may be executed for all of these pairs. (B, B), (B, B), (B, B) So that all the blocks
- the above filtering processing calculation may be executed with reference to the next block.
- a pair of non-adjacent blocks for example, block B (k is an integer) at the right end of the image and the next program k XW-1 located at the lower left end of the block
- the above filter processing is not performed for the pair consisting of ACK B.
- FIG. 4 is a flowchart for schematically explaining the filter processing calculation executed by the filter processing unit 11.
- the filter processing calculation by the filter processing unit 11 includes step S1 for calculating the average pixel value, step S2 for calculating the predicted value, and step S3 for calculating the filter output image. It is out.
- Steps S1 to S3 will be described in more detail as follows.
- the filter processing operation for calculating the pixel value of the 4 pixels arranged in the Vth row out of the 16 pixels arranged in 4 rows and 4 columns belonging to the block B will be described as! / .
- the filter processing unit 1 1 performs the filtering processing described below on the first row force of block B and the fourth row in order or in parallel, so that all the pixels belonging to block B are processed. Calculate the value.
- Step S1 The filter processing unit 11 performs processing on the Vth row of the block B in the processing target image.
- the average pixel value p> of the four pixels arranged in the self-sequence and the average pixel value p> of the four pixels arranged in the Vth row of the block B + ⁇ in the processing target image are calculated.
- the calculation formula for calculating the force s and the average pixel value is as follows.
- p (n, u, v) is a pixel value in the pixel (n, u, v) of the processing target image.
- A) of FIG. 5 is a graph showing pixel values of the processing target image.
- B) of FIG. 5 is a graph showing the average pixel value obtained by! / In step S1.
- Step S2 The filter processing unit 11 determines that the average pixel value obtained in Step S 1 ⁇ p
- the filter processing unit 11 calculates the predicted values p (1, 11,) and (n + l, u, v) pred pred
- the calculation formula for calculating is as follows.
- (c) of FIG. 5 is a graph showing the predicted value obtained in step S2.
- Step S3 The filter processing unit 11 calculates the predicted value p (n, u, v pred obtained in Step S2
- FIG. 5 is a graph showing pixel values of the filter output image obtained in step S3.
- the average pixel value of block B in the filter output image matches the average pixel value of block B in the processing target image, that is, the filter processing unit 11 processes the average pixel value of each block. Please note that it is something that remains unchanged before and after. For this reason, it is possible to prevent blurring and flickering of moving images due to the filter processing.
- the filter processing unit 11 performs the filtering process in the vertical direction after performing the filtering process in the horizontal direction as described above.
- the vertical filter processing operation is a force that calculates the image data of block B with reference to block B adjacent to the lower side of block Bn.
- the calculation method is the same as the horizontal filtering process, so the explanation is omitted.
- the inverse filter processing performed by the inverse filter processing unit 12 included in the moving image encoding device 300 and the moving image decoding device 400 will be described.
- the inverse filter process is executed every time encoding or decoding process is performed for one screen. That is, when the inverse filter process is executed, a decoded image obtained as the sum of the difference image restored by the IDCT unit 5 and the predicted image is recorded in the frame memory 7 for one screen.
- the inverse filter processing unit 12 executes the horizontal direction reverse filter processing and the vertical direction reverse filter processing by dividing the processing target image into a plurality of blocks.
- the division pattern in which the inverse filter processing unit 12 divides the processing target image is the same as the division pattern in which the filter processing unit 11 divides the processing target image.
- the inverse filter processing unit 12 calculates the image data of the block B from the image data of the block B in the processing target image and the image data of the block adjacent to the block B. Specifically, in horizontal filtering, the image data of block B Is calculated by referring to the block + 1 image data adjacent to the right side of the block and the image data of block B in the vertical filter processing. Calculated by referring to the image data of block B adjacent below B n n + W
- FIG. 6 the inverse filter processing calculation executed by the inverse filter processing unit 12 in the horizontal inverse filter processing will be described with reference to FIGS. 6 and 7.
- FIG. 6 the inverse filter processing calculation for calculating the pixel value (for example, the luminance level) of one block B will be described.
- the inverse filter processing unit 12 performs all the filtering processing operations described below. Repeat for two adjacent blocks to complete horizontal filtering
- FIG. 6 is a flowchart for schematically explaining the inverse filter processing calculation executed by the inverse filter processing unit 12.
- the filtering process by the inverse filter processing unit 12 includes a step T1 for calculating an average pixel value, a step T2 for calculating a predicted value, and a step T3 for calculating an inverse filter output image. Is included.
- Steps T1 to T3 will be described in more detail as follows.
- the inverse filter processing unit 12 performs the inverse filter processing operation described below on the first row of the block ⁇ , the fourth row, in sequence or in parallel, so that all the pixels belonging to the block ⁇ are processed.
- the pixel value is calculated.
- Step T1 The inverse filter processing unit 12 calculates the average pixel value ⁇ > of the four pixels arranged in the V row of the block ⁇ ⁇ ⁇ ⁇ in the processing target image and the V row of the block ⁇ ⁇ ⁇ ⁇ in the processing target image. Calculate the average pixel value ⁇ > of the arranged four pixels.
- Part 12 displays the average pixel values ⁇ > and ⁇ ?
- the following formula is used to calculate ⁇ and ⁇ + 1,
- P (n, u, v) is a pixel value in the pixel (n, u, v) of the processing target image.
- (A) in FIG. 7 is a graph showing the pixel values of the image to be processed, and (b) in FIG. 7 is a graph showing the average pixel values obtained by! / In step T1 above. .
- Step T2 The inverse filter processor 12 determines that the average pixel value obtained in Step T1 ⁇ P
- pred n + 1 1 pred l, u, v) is calculated.
- the inverse filter processing unit 12 predicts the predicted value P (n, u, v P (n + l, u
- (c) of FIG. 7 is a graph showing the predicted value obtained in step T2.
- the inverse filter processing unit 12 calculates the predicted value P (n, u, v) obtained in step T2 and the step pred
- the difference from the average pixel value ⁇ P> of block B obtained in T1 is set as an additional component to be added to the processing target image, and the additional component is added to the pixel value P (n, u, v) of the processing target image.
- the pixel value P ′ (n, u, V) of the filter output image is calculated.
- the calculation formula used by the inverse filter processing unit 12 to calculate the pixel value P ′ (n, u, v) of the inverse filter output image is as follows.
- FIG. 7 is a graph showing pixel values of the inverse filter output image obtained in step T3. Note that the average pixel value of block B in the inverse filter output image matches the average pixel value of block B in the processing target image. This Therefore, occurrence of blurring and flickering of moving images is effectively prevented.
- the inverse filter processing unit 12 performs the inverse filter processing in the horizontal direction as described above, and then performs the inverse filter processing in the vertical direction.
- the vertical inverse filtering calculation is to calculate the image data of block B with reference to block B adjacent to the lower side of block B n n + W
- the average pixel value of the prediction value and the average pixel value of the input image are used as the filter output. It is preferable to make a correction so that the average pixel value of the filter input and filter output is maintained.
- the moving picture coding apparatus 300 removes the specific frequency component FL that causes block distortion by performing the filtering process on the coding target image by the filter processing unit 11. Then, the video decoding device 400 restores the removed frequency component FL by the inverse filter processing unit 12. Thereby, block distortion in the inverse filter output image in the moving picture decoding apparatus 400 is reduced.
- the filter output image in moving picture coding apparatus 300 and the decoded picture in moving picture decoding apparatus 400 are different from each other by a quantization error.
- This is achieved by quantization in the video encoding device 300 by the DCT unit 1 and the quantization unit 2 and inverse quantization in the video decoding device 400 by the inverse quantization unit 4 and the IDCT unit 5.
- This is because a quantization error occurs between the quantization target image and the restored quantization target image. For this reason, the restoration of the frequency component FL by the inverse filter processing unit 12 is approximate. Further, the same can be said for the inverse filter processing performed for generating the reference image inside the moving image coding apparatus 300.
- FIG. 17 is a graph showing the pixel values of the decoded image and the inverse filter output image output from the inverse filter processing unit 12.
- FIG. 17D is a graph of the inverse filter output image in FIG. 17D, which is the result of applying the inverse filter process to the decoded image including the quantization error.
- the inverse filter output image does not accurately reproduce the encoding target image. That is, the frequency component reconstructed by the inverse finisher processing unit 12 has an error with respect to the frequency component FL removed by the filter processing unit 11.
- FIG. 8 is a functional block diagram showing a schematic configuration of the moving picture coding apparatus 300a according to the present embodiment.
- the moving picture coding apparatus 300a includes a DCT unit 1 and a quantization unit. 2, variable length encoding unit 3, inverse quantization unit 4, IDCT unit 5, frame memory 7, prediction image derivation unit 8, encoding control unit 21, filter processing unit 11, inverse filter processing unit 12, correction determination unit 13 A corrected image candidate derivation unit 14 and a corrected image determination unit 15 are provided.
- blocks having the same functions as those in the moving picture coding apparatus in FIG. 2 are denoted by the same names and symbols as in FIG.
- a feature of the moving image coding apparatus 300a is that it includes a correction determination unit 13, a corrected image candidate derivation unit 14, and a corrected image determination unit 15.
- the corrected image determination unit 15 performs correction for subtracting the corrected image from the quantization target image for at least one block. As shown in FIG. 8, the corrected image determining unit 15 may subtract the corrected image from the quantization target image by adding the corrected image to the predicted image.
- the correction determination unit 13 determines a block on which the correction image determination unit 15 should perform the correction. Specifically, a block in which the average pixel value of the quantization target image after the correction is performed is smaller than the average pixel value of the quantization target image before the correction is performed should be corrected. Judge as a block. The corrected image determination unit 15 performs the above correction on the blocks that are determined to be corrected by the correction determination unit 13.
- the corrected image candidate derivation unit 14 derives correction image candidates used by the corrected image determination unit 15 for the correction. More specifically, a corrected image candidate having an approximate average pixel value that approximates the average pixel value of the quantization target image in each block as a pixel value is derived as a corrected image candidate.
- the corrected image determination unit 15 makes the average pixel value of the quantization target image after the correction is smaller than the average pixel value of the quantization target image before the correction is performed.
- correction is performed by subtracting the approximate average pixel value that approximates the average pixel value of the quantization target image in the block to which the pixel belongs from the pixel value of each pixel of the quantization target image.
- the average pixel size of each block of the quantization target image can be reduced to be equal to or less than the original average pixel value of the block. Therefore, the quantization level interval in the above quantization can be set small, and is generated by quantization. Quantization error can be reduced. For this reason, it is possible to reduce the quantization error generated in the quantization process. Therefore, the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process can be matched more accurately. For this reason, the frequency component removed by the filtering process can be restored more accurately during the inverse quantization.
- FIG. 1 is a functional block diagram illustrating a schematic configuration of a video decoding device 400a corresponding to the video encoding device 300a shown in FIG.
- the video decoding device 400a includes an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, a predicted image derivation unit 8, an inverse filter processing unit 12, a variable length decoding unit 20a, and a corrected image candidate.
- a derivation unit 14 and a corrected image determination unit 15 are provided.
- the moving picture decoding apparatus 400a includes a corrected image candidate deriving unit 14 and a corrected image determining unit 15. is there.
- the variable-length decoding unit 2 Oa provided instead of the variable-length decoding unit 20 of the video decoding device 400 provides information on whether or not to correct the predicted image. That is, the correction determination result is decoded and supplied to the corrected image candidate deriving unit 14 and the corrected image determining unit 15.
- the corrected image candidate derivation unit 14 and the corrected image determination unit 15 in the moving image decoding device 400a have the same functions as those indicated by attaching the same reference numerals to the moving image encoding device 300a, respectively. .
- the moving picture decoding apparatus 400a can decode the encoded data encoded by the moving picture encoding apparatus 300a. Since the above-described correction is used at the time of encoding in the moving image encoding device 300a, the quantization error in the input image to the inverse filter in the moving image decoding device 400a is reduced. Therefore, since the removed frequency component FL can be accurately restored by the inverse filter processing, the block distortion in the inverse filter output image of the inverse filter processing, which is also the output image of the video decoding device 400a, is reduced. That's the power S.
- the correction determination process is executed in the correction determination unit 13. First, the correction determination unit 13 that can be suitably used for the moving image encoding device 30 Oa will be described.
- the correction determination unit 13 includes a filter output image output from the filter processing unit 11, a predicted image output from the predicted image derivation unit 8, and a corrected image candidate output from the correction image candidate derivation unit 14. And are supplied. Based on these, the correction determination unit 13 executes a correction determination process described later. The determination result is sent as a correction determination result to the corrected image candidate deriving unit 14, the corrected image determining unit 15, and the variable length encoding unit 3. The variable length encoding unit 3 encodes the correction determination result and sends it to the moving image encoding apparatus 400a.
- FIG. 9 is a functional block diagram showing a schematic configuration of the correction determination unit 13. As shown in FIG. 9, the correction determination unit 13 includes an average pixel value calculation unit 50 and a corrected image candidate evaluation unit 51.
- the average pixel value calculation unit 50 a difference image between each pixel of the encoding target image (filter output image) subjected to the filter process and the prediction image supplied from the prediction image derivation unit 8 is stored. Entered.
- the average pixel value calculation unit 50 calculates an average pixel value for each block of the input difference image.
- the difference image corresponds to the quantization target image when the correction is not performed on the currently focused block. Therefore, the calculated average pixel value is obtained when the correction is not performed. Note that this corresponds to the average pixel value of the quantization target image.
- the average pixel value of the difference image calculated by the average pixel value calculation unit 50 is sent to the corrected image candidate evaluation unit 51.
- the corrected image candidate evaluation unit 51 subtracts the average pixel value of the difference image supplied from the average pixel value calculation unit 50 and the correction image candidate supplied from the correction image candidate derivation unit 14 from the difference image.
- the average pixel value of the obtained image is compared, and it is determined whether or not correction is to be performed in the block. Specifically, when the average pixel value of the image obtained by subtracting the corrected image candidate from the difference image is smaller, correction is performed on the block B currently being processed. Judge that.
- the image obtained by subtracting the corrected image candidate supplied from the corrected image candidate deriving unit 14 from the difference image corresponds to the quantization target image when correction is performed.
- the corrected image candidate evaluation unit 51 determines that a block that can reduce the average pixel value of the quantization target image as a block to be corrected by performing the correction.
- the determination result in the corrected image candidate evaluation unit 51 is supplied to the corrected image determination unit 15 and the variable length coding unit 3 as a correction determination result.
- the procedure of the correction determination process includes two steps: a step of calculating an average pixel value of a difference image that is a difference between the encoding target image and the predicted image, and a step of determining whether or not to perform correction.
- Step 1 The average pixel value calculation unit 50 calculates the pixel value P (n, u) of the predicted image from the pixel value p (n, u, v) of the encoding target image after the filtering process. , v) subtraction image est
- Step 2 The corrected image candidate evaluation unit 51 adds sub to the average pixel value ⁇ P> calculated in Step 1 and the average pixel value of the corrected image candidate supplied from the corrected image candidate derivation unit 14. n
- a comparison is made with the corresponding correction amount a ′ to determine whether or not the correction is performed in the block B. Specifically, the determination is made by comparing a and 0 represented by the following mathematical formula.
- ⁇ is smaller than / 3, it is determined to perform correction. In other cases (when ⁇ is greater than / 3, or when ⁇ and / 3 are equal), it is determined that correction is not performed.
- ⁇ is an amount corresponding to the average pixel value of the quantization target image when correction is performed
- ⁇ is an amount corresponding to the average pixel value when correction is not performed. Therefore, by comparing the magnitudes of ⁇ and / 3, it is possible to determine whether or not the average pixel value of the quantization target image can be reduced when correction is performed.
- the corrected image candidate derivation unit 14 is based on the correction determination result and the conversion coefficient supplied from the inverse quantization unit 4, and is a corrected image candidate that is a correction image candidate used for correcting the block. Is derived.
- the derived corrected image candidates are sent to the correction determination unit 13 and the corrected image determination unit 15.
- the correction image determination unit 15 determines and transmits a correction image in the block.
- FIG. 10 is a functional block diagram showing a schematic configuration of the corrected image candidate derivation unit 14.
- Figure 1
- the corrected image candidate derivation unit 14 includes a prediction error amount storage memory 52, a correction amount derivation unit 53, a corrected image candidate generation unit 54, and a prediction error amount derivation unit 55.
- the prediction error amount storage memory 52 stores the prediction error amount corresponding to the quantized / inverse quantized block (for example, block B) processed before the block B currently being processed. .
- the correction amount deriving unit 53 refers to the prediction error amount recorded in the prediction error amount storage memory 52 and derives the correction amount in the block.
- the derived correction amount is sent to the corrected image candidate generation unit 54.
- the corrected image candidate generating unit 54 generates and sends a corrected image candidate based on the correction amount supplied from the correction amount deriving unit 53.
- the prediction error amount deriving unit 55 is based on the correction determination result supplied from the correction determining unit 13, the correction amount supplied from the correction amount deriving unit 53, and the transform coefficient supplied from the inverse quantization unit 4. ! The prediction error amount in the block currently being processed is calculated and recorded in the prediction error amount storage memory 52.
- FIG. 11 is a flowchart showing the flow of the corrected image derivation process.
- the corrected image derivation process includes a step U 1 for deriving a correction amount applicable to the block B, a step U 2 for generating a corrected image candidate based on the derived correction amount value, and a correction determination.
- Step U3 for making a determination based on the result
- Step U4 for sending a corrected image candidate as a correction amount
- Step U5 for sending an image with all pixel values being zero as a correction amount.
- Step U1 The correction amount deriving unit 53 sets the prediction error amount d corresponding to the block B ⁇ adjacent to the left side of the block B currently being processed as the correction amount of the block B. However, if the block B is located at the left edge of the image, the value zero is set as the correction amount for the block.
- the reason for setting the prediction error amount d of block B to the correction amount of the block B is that the prediction image is corrected by using the correlation of the prediction error amount between adjacent blocks. This is because the accuracy of the image can be increased.
- the corrected image candidate generation unit 54 generates a corrected image candidate based on the correction amount a ′ derived in Step U1. Specifically, an image in which the pixel values of all the pixels are a ′ is generated, and the image is set as a corrected image candidate.
- Step U3 The corrected image determination unit 15 is based on the correction determination result supplied from the outside (the correction determination unit 13 in FIG. 8 or the variable length decoding unit 20a in FIG. 1)! /, Determine the corrected image
- step U4 If the determination result indicates that correction is performed in the block, the process proceeds to step U4.
- the correction determination result used for the determination in this step is the same as that in the encoding process. Is supplied from the correction determination unit 13 and is supplied from the variable length decoding unit 20a during the decoding process.
- Step U4 This step is executed when it is determined that correction is performed on the block currently being processed as a result of the prediction determination in step U3.
- the corrected image candidate generation unit 54 sends out the corrected image candidate derived in step U2 as a corrected image of the block.
- Step U5 This step is executed when it is determined that correction is not performed as a result of the prediction determination in step U3.
- the corrected image candidate generation unit 54 generates an image in which the pixel values of all the pixels are zero, and sends the image as a corrected image candidate.
- a corrected image candidate necessary for performing correction in the block currently being processed can be derived.
- correction is performed by adding the derived corrected image to the predicted image transmitted from the predicted image deriving unit 8.
- the prediction error amount d of block B- is referred to in deriving the correction amount of block B currently being processed. Therefore, the prediction error amount d of the block B may also be used for derivation of a correction amount in a block to be processed later (for example, block B). Therefore, the prediction error amount d is derived and recorded in the prediction error amount recording memory 52. It is necessary to keep it.
- the procedure for deriving the prediction error amount d is as follows.
- the prediction error amount deriving unit 55 includes the correction amount value derived in step U1 of the corrected image deriving process, the correction determination result supplied from the correction determination unit 13, and the inverse quantization unit 4
- the prediction error amount d is calculated on the basis of the transform coefficient after inverse quantization supplied from the above.
- the calculation formula used for calculation is as follows.
- r is a DC component in the transform coefficient after inverse quantization
- r X ⁇ corresponds to the average pixel of the quantization target image in block ⁇ .
- ⁇ is a constant for converting the unit of the conversion coefficient r after inverse quantization to the unit of the pixel value.
- the quantization before correction is performed until r X y + a This corresponds to the average pixel value of the target image (difference image obtained by subtracting the predicted image from the target image to be encoded). That is, the prediction error amount d corresponds to the average pixel value of the quantization target image regardless of whether correction is performed in block B or correction is performed.
- Step V2 The prediction error amount deriving unit 55 records the prediction error amount d derived in step VI in the prediction error amount recording memory 52. At this time, a prediction error amount that is not used in a block processed after the block may be deleted from the prediction error amount storage memory 52.
- the correction determination result for all blocks is not necessarily required on the decoding side.
- encoding of the correction determination result is omitted.
- a configuration is also possible. By omitting the encoding of the correction determination result for the block on which the correction determination result can be estimated on the decoding side, the code amount of the encoded data can be reduced.
- correction is not always performed for a block in which the derived correction amount compensation value is zero. Therefore, it is possible to estimate (determine) the correction determination result on the decoding side by referring to the correction amount. Also, for example, correction tends to be difficult to apply to blocks that have a certain amount of correction value. Therefore, when the value of the correction amount is larger than a predetermined threshold value, it can be estimated that correction is not performed. Therefore, the encoding side can be configured to omit encoding for such blocks.
- Correction amount deriving section 53 A power that explains the configuration that uses the prediction error amount d corresponding to block B- adjacent to the left side of block B to derive the correction amount.
- Akira is not limited to this. Specifically, for example, a prediction error amount corresponding to another processed block existing in the vicinity of the block may be used together.
- the prediction error amount d corresponding to the block B adjacent above the block B and the block B The correction amount can be derived by using the prediction error d corresponding to block B- adjacent on the left side.
- the prediction error amount can be reduced by one. As a result, more appropriate correction can be made.
- this example will be described in more detail.
- step U1 in the correction image derivation process described above may be replaced with the next step ur.
- Step UD correction amount deriving unit 53 determines, based on prediction error amount d corresponding to block ⁇ adjacent to the left side of block ⁇ and prediction error amount d corresponding to block B adjacent to the upper side, Calculate the correction amount, which is determined by the following equation.
- the correction amount a 'can be calculated using the following formula: n-2W n
- the correction amount is derived based only on the prediction error amount.
- the correction amount may be derived using a coding parameter correlated with the prediction error amount.
- the ability to seek S Predictive images are often similar in blocks with the same prediction mode, so the amount of prediction error is often near and low. Therefore, a more preferable correction amount can be obtained by using the prediction error amount of the block having the same prediction mode.
- Coding parameters correlated with the prediction error amount include, in addition to the prediction mode, a block size for intra prediction, a motion vector in inter prediction, a reference image, and the like.
- a preferable correction amount can be obtained by selecting a block having the encoding parameter closest to the block from the neighboring blocks of the block and obtaining the value of the correction amount a ′ from the prediction error amount of the selected block. Can be sought.
- FIG. 12 is a functional block diagram showing a schematic configuration of the moving picture coding apparatus 300b according to the present embodiment.
- the moving picture coding apparatus 300b includes a DCT unit 1, a quantization unit 2, a variable length coding unit 3, an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, and a prediction Image deriving unit 8, coding control unit 21, filter processing unit 1 1, inverse filter processing unit 12, inverse filter input correction unit 16, And a correction method determination unit 17.
- the difference between the moving picture coding apparatus 300b and the moving picture coding apparatus 300 is that the moving picture coding apparatus 300b uses an inverse filter that corrects a local decoded image to be subjected to inverse filter processing. This is the point that a correction unit 16 is provided.
- the moving picture coding apparatus 300b includes a correction method determination unit 17 that determines a correction method to be applied in the inverse filter input correction unit 16.
- the inverse filter input correction unit 16 acquires the local decoded image recorded in the frame memory 7, and corrects the local decoded image according to the correction method supplied from the correction method determination unit 17.
- the corrected local decoded image is sent to the inverse filter processing unit 12.
- the correction method determination unit 17 is applied by the inverse filter input correction unit 16 based on the input image data that is an input image to the video encoding device 300a and the local decoded image acquired from the frame memory 7. Determine how to fix. The determined correction method is sent to the inverse filter input correction unit 16 and the variable length coding unit 3 as a correction method determination result.
- the local decoded image has a reduced quantization error by correcting the local decoded image (Fig. 15 (b)) including the quantization error.
- (c) Find When inverse filtering is applied to a locally decoded image that includes quantization errors, the frequency component FL that has been removed! / Cannot be accurately restored, so the image obtained as a result of inverse filtering contains block distortion (see Fig. 2). 15 (d)).
- the inverse filter process is applied to a locally decoded image with a reduced quantization error, the frequency component FL can be restored more accurately, so that the block distortion is reduced in the image obtained as a result of the inverse filter process. / !, ru (Fig. 15 (e)).
- the correction method determination unit 17 determines the power that can reduce the quantization error in the locally decoded image by a predetermined correction method, and encodes the determination result. .
- the quantization error of the local decoded image can be reduced by correcting the local decoded image according to the determination result. Therefore, the video encoding device 300b can generate encoded data that can be used to decode an image with reduced block distortion.
- FIG. 13 is a functional block diagram showing a schematic configuration of a video decoding device 400b corresponding to the video encoding device 300b shown in FIG.
- the video decoding device 400b includes an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, a predicted image derivation unit 8, an inverse filter processing unit 12, an inverse filter input correction unit 16, and A variable length decoding unit 20b is provided.
- the difference between the moving image decoding apparatus 400b and the moving image decoding apparatus 400 is that the moving image decoding apparatus 400b has a function of decoding the correction method determination result applied by the inverse filter input correction unit.
- the variable length decoding unit 20b is provided.
- the moving picture decoding apparatus 400b includes an inverse filter input correction unit 16 that reduces a prediction error by correcting a local decoded picture based on the correction method determination result.
- the moving picture decoding apparatus 400b includes the inverse filter input correction unit 16, it is possible to reduce the quantization error occurring in the local decoded picture. Therefore, in the inverse filter process, the specific frequency component FL that causes the block distortion removed by the filter process at the time of encoding can be reproduced more accurately than the moving picture decoding apparatus 400b. An image with reduced block distortion can be decoded.
- the correction method determination process which is a characteristic process in the video encoding device 300b
- the inverse filter input correction process which is a characteristic process in the moving picture coding apparatus 300b and the moving picture decoding apparatus 400b
- correction method determination processing and inverse filter input are performed with a local decoded image equivalent to one screen of input image data recorded in the frame memory 7. It is assumed that the correction process is activated.
- Steps W;! To W6 represent processing for determining a correction method for the block of interest B in the locally decoded image.
- Step Wl The correction method determination unit 17 calculates the average pixel value P> of the encoding target image in the block of interest Bn.
- FIG. 15 (a) is a diagram schematically showing the average pixel value P> of the encoding target image obtained by this step.
- Step W2 A locally decoded image is acquired from the frame memory 7, and an average pixel value P> of the locally decoded image in the target block B is calculated.
- (B) of Fig. 15 is a diagram schematically representing the average pixel value P> of the locally decoded image obtained in step W2.
- Step W3 In order to correct the pixel value of the locally decoded image in the target block B, a corrected value ⁇ P> is calculated from the pixel value of the locally decoded image. First, the left of the attention block
- Step W4 The average pixel value ⁇ p> of the encoding target image, the average pixel value ⁇ P> of the local decoded image, and the step W3, respectively, derived in Step W1 and Step W2, respectively. Based on the corrected value ⁇ '>, it is determined whether or not to correct the pixel value in the target block ⁇ . If the value of the modified value ⁇ ′> is closer to the value of ⁇ > of the encoding target image than the average pixel value ⁇ > of the local decoded image, the process proceeds to step W5. Otherwise go to step W6.
- Step W5 It is determined that the target block ⁇ is to be corrected, and this determination result is sent as a correction method determination result to the inverse filter input correction unit 16 and the image encoding unit 3 to be corrected. The decision process is terminated.
- Step W6 the target block ⁇ is determined not to be corrected! /, And the determination result is sent to the inverse filter input correction unit 16 and the image encoding unit 3 as a correction method determination result. Then, the correction method determination process ends.
- the correction method to be applied to the block ⁇ ⁇ by the inverse filter input correction unit 16 is determined, and the correction method is transmitted as the correction method determination result.
- correction can be made only when the quantization error of the block of interest can be reduced according to the determination result.
- Steps X;! To X7 represent processing for calculating the pixel value of the target block Bn in the input image to the inverse filter.
- Step XI A locally decoded image is acquired from the frame memory 7.
- Step X2 The correction method determination result derived in the correction method determination process and supplied from the correction method determination unit 17 or the variable length decoding unit 20b is the! If you indicate that you want to make corrections, go to step X3. The judgment result is Proceed to Step X7 to indicate that the local block image is to be corrected for eye block Bn! /.
- Step X3 The average pixel value ⁇ P> of the locally decoded image in the target block Bn obtained in Step XI is calculated.
- Step X5 Using the average pixel value P> obtained in Step X3 and the modified value ⁇ P> obtained in Step X4, the pixel value P ( n, u, V)
- the correction corresponds to a process of removing the approximate quantization error from the pixel value of each pixel of the locally decoded image.
- the average pixel value Pn of the locally decoded image in block B is replaced with the modified average pixel value ⁇ P> niod, n obtained in step X2.
- Step X6 The corrected local decoded image obtained in Step X5 is sent to the inverse filter processing unit 12, and the inverse filter input correction process is terminated.
- Step X7 The local decoded image acquired in Step XI is sent as it is to the inverse filter processing unit 12, and the inverse filter input correction process is terminated.
- the locally decoded image can be corrected and the quantization error can be reduced.
- the inverse filter process By applying the inverse filter process to the locally decoded image that has been modified and the quantization error is reduced, it is corrected and removed by filtering as compared to the case of inputting the locally decoded image.
- the force S can be restored more accurately to restore the frequency component.
- the correction method determination unit 17 is assumed to send the correction method determination result to the variable length encoding unit 3. However, it is not always necessary to encode the correction method determination results for all the blocks. If the correction method determination results can be estimated at the time of decoding, the encoding may be omitted.
- the inverse filter input correction unit 16 does not perform correction.
- the determination result can be easily estimated at the time of decoding, it is not necessary to encode the determination result! /. Therefore, the code amount of encoded data can be reduced.
- the threshold T1 for example, a value represented by the following formula can be used.
- the step width, ⁇ is used to convert the value of r from frequency domain units to spatial domain units.
- the threshold T1 is determined as described above due to the fact that the difference between the average pixel value P> and the average pixel value P> of the input image data is basically less than r X ⁇ .
- quantization representative value To determine whether or not the target block is a flat region. If it is determined that the target block is a flat region, the correction method determination result is not encoded and the correction method determination result is not encoded. The amount can be reduced.
- the left and right sides of the target block are used to derive the average pixel value ⁇ P> in the corrected local decoded image.
- n may be derived.
- the average pixel value ⁇ P> can be derived by smoothing using four blocks adjacent to each of the top, bottom, left, and right of the block of interest.
- the present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and the technical means disclosed in the different embodiments are applied appropriately. Embodiments obtained by appropriate combinations are also included in the technical scope of the present invention.
- the present invention can be configured as follows.
- the video decoding device is a video decoding device that decodes encoded data obtained by encoding image data from which frequency components that generate block distortion have been removed.
- Variable length decoding means for decoding the encoded data
- An inverse filter processing means for performing an inverse filter process for restoring the removed frequency component on the image data obtained by decoding
- Prediction image generation means for generating a prediction image based on pixel values of a reference image
- prediction error amount derivation means for deriving a prediction error amount approximating the difference between the image data from which the frequency component has been removed and the prediction image
- Correction means for correcting the predicted image based on the prediction error amount
- variable length decoding means decodes the correction judgment result indicating whether or not to correct the correction means!
- the correction means switches whether to correct the predicted image based on the prediction error amount according to the correction determination result.
- the correction means estimates whether or not the predicted image can be corrected based on the prediction error amount! /, Based on the prediction error amount in the processing target block, and when the estimation is possible, Depending on the result of the estimation, based on the prediction error amount! /, It is switched whether to correct the predicted image.
- the correction means corrects the prediction image based on the prediction error amount corresponding to at least one decoded block! It may be configured as follows.
- the decoded block includes at least one block adjacent to the processing target block,
- the correction means corrects the prediction image based on the prediction error amount and an encoding parameter correlated with the prediction error amount.
- the moving image decoding apparatus divides an image into a plurality of blocks, quantizes the image data of each block, and encodes a quantized representative value obtained by the quantization.
- Encoding device
- Filter processing means for performing filter processing for removing frequency components that generate block distortion on the image data before quantization
- a predicted image generating unit that generates a predicted image based on a pixel value of a reference image; a prediction error amount deriving unit that derives a prediction error amount that approximates a difference between the image data subjected to the filtering process and the predicted image;
- Correction means for correcting the predicted image based on the prediction error amount
- a video decoding device is a video decoding device that decodes encoded data obtained by encoding image data from which frequency components that generate block distortion have been removed.
- Variable length decoding means for decoding the encoded data
- Inverse filter processing means for performing inverse filter processing to restore the removed frequency component
- An inverse filter input correcting means for reducing a quantization error occurring in the local decoded image input to the inverse filter processing means
- variable length decoding means decodes a correction method determination result for controlling the correction process of the local decoded image in the inverse filter processing means
- the inverse filter input correction means switches whether to correct the processing target block according to the correction method determination result
- the inverse filter input correction means calculates a correction value based on an average pixel value of each of at least one block adjacent to the processing target block, and calculates the correction value and the average pixel value of the processing target block. Switch whether to modify the processing target block according to the comparison result of
- the inverse filter input correction means calculates a correction value based on an average pixel value of each of at least one block adjacent to the processing target block so that the average pixel value of the processing target block matches the correction value.
- the processing target block may be corrected.
- the video encoding apparatus divides an image into a plurality of blocks, quantizes the image data of each block, and encodes the quantized representative value obtained by the quantization. Device.
- variable-length encoding unit that encodes information necessary for decoding image data
- filter processing unit that performs filter processing for removing frequency components that generate block distortion on the image data before quantization.
- variable length encoding means encodes a correction method determination result which is a determination result in the correction method determination means
- the above-described blocks of the moving image encoding devices 300a and 300b of the present invention and the moving image decoding devices 400a and 400b of the present invention may be configured by hardware logic. It may be realized by software using a CPU as follows.
- the moving picture encoding apparatus and moving picture decoding apparatus include a CPU (central processing unit) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, and the above It is equipped with RAM (random access memory) for expanding the program, and storage devices (recording media) such as memory for storing the program and various data.
- An object of the present invention is to compile program codes (execution format program, intermediate code program, source program) of the control program for the video encoding device and the video decoding device, which are software that realizes the above-described functions.
- a recording medium recorded so as to be readable by a computer is supplied to the moving picture encoding apparatus and the moving picture decoding apparatus, and the computer or CPU or MPU) reads out and executes the program code recorded on the recording medium. This is also achievable.
- Examples of the recording medium include magnetic tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, and CD-ROM / MO / MD / DVD / CD-R.
- the moving image encoding device and the moving image decoding device may be configured to be connectable to a communication network, and the program code may be supplied via the communication network.
- the communication network is not particularly limited.
- the Internet intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network (virtual private network), telephone line network, mobile communication network Satellite communication networks can be used.
- the transmission medium constituting the communication network is not particularly limited.
- infrared rays such as IrDA remote control, Bluetooth (registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network, etc.
- the present invention is not limited to the above. It can also be realized in the form of a converter data signal embedded in a carrier wave, in which the program code is embodied by electronic transmission.
- the moving picture decoding apparatus divides a quantization target image subjected to filter processing for removing a frequency component that generates block distortion into a plurality of blocks, and the quantization target image is divided into blocks.
- a video decoding device that inversely quantizes a quantized representative value obtained by quantization, wherein each pixel of a restored quantization target image restored by the above inverse quantization for at least one block
- a restored quantization target image correcting unit that performs correction by adding an approximate average pixel value that approximates the average pixel value of the quantization target image in the block to which the pixel belongs, and the correction is performed.
- an inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process on the restored quantization target image.
- the moving picture decoding apparatus divides a quantization target image, which has been subjected to filter processing for removing frequency components that generate block distortion, into a plurality of blocks, and quantizes each block for quantization.
- the image decoding apparatus includes a pixel value of each pixel of the restored quantization target image restored by dequantizing the quantization representative value obtained by the quantization for at least one block.
- an inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process and restoring the removed frequency component.
- the block distortion in the decoded moving image can be reduced, and the moving image decoding apparatus does not cause side effects such as blurring of the image, and further generates the removed block distortion.
- the present invention is suitable as a moving image storage device that encodes and stores moving images, a moving image transmission device that encodes and transmits moving images, or a moving image reproducing device that decodes and reproduces moving images.
- a moving image storage device that encodes and stores moving images
- a moving image transmission device that encodes and transmits moving images
- a moving image reproducing device that decodes and reproduces moving images.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
A dynamic image decoding device (400a) includes a correction image deciding unit (15) and an inverse filter processing unit (12). For at least one block, the correction image deciding unit (15) performs correction as follows. A pixel value of each of pixels of restoration quantization object image restored by inverse quantization is added by an approximating average pixel value for approximating an average pixel value of a quantization object image in a block to which the pixel belongs. The inverse filter processing unit (12) performs an inverse filter processing equivalent to an inverse conversion of a filter process for removing a frequency component for generating a block distortion. Thus, the dynamic image decoding device (400a) can reduce the block distortion in a decoded dynamic image without causing adverse effect such as blur or flickering of an image. The dynamic image decoding device (400a) can accurately restore a frequency component generating a block distortion removed.
Description
明 細 書 Specification
動画像復号装置および動画像符号化装置 Moving picture decoding apparatus and moving picture encoding apparatus
技術分野 Technical field
[0001] 本発明は、量子化対象画像を複数のブロックに分割して符号化する動画像符号化 装置、及び、そのような動画像符号化装置に対応する動画像復号装置に関するもの である。 The present invention relates to a moving picture coding apparatus that divides and encodes a quantization target picture into a plurality of blocks, and a moving picture decoding apparatus corresponding to such a moving picture coding apparatus.
背景技術 Background art
[0002] 膨大な情報量をもつ動画像を効率的に伝送したり記録したりするために、画像デー タを複数のブロックに分割してブロック毎に量子化'符号化する技術が広く用いられ ている。ブロック毎に量子化 ·符号化された動画像においては、各ブロックの境界に ぉレ、て輝度レベル等の画素値が不連続に変化するブロック歪(ブロックノイズ)が発 生する。このブロック歪を低減する技術として、非特許文献 1に記載の H. 264/AV C動画像符号化方式におけるデブロッキングフィルタが知られている。 [0002] In order to efficiently transmit and record a moving image having an enormous amount of information, a technique of dividing image data into a plurality of blocks and quantizing and encoding each block is widely used. ing. In a moving image quantized and encoded for each block, block distortion (block noise) in which pixel values such as luminance levels discontinuously change occurs at the boundary of each block. As a technique for reducing the block distortion, a deblocking filter in the H.264 / AVC moving image encoding system described in Non-Patent Document 1 is known.
[0003] 以下、 H. 264/AVC動画像符号化方式により動画像を符号化する動画像符号 化装置 100、および、同方式により符号化された動画像を復号する動画像復号装置 200について、図 18〜図 20を参照しながら説明する。 [0003] Hereinafter, a moving picture encoding apparatus 100 that encodes a moving picture using the H.264 / AVC moving picture encoding scheme and a moving picture decoding apparatus 200 that decodes a moving picture encoded using the same scheme will be described. This will be described with reference to FIGS.
[0004] (従来の動画像符号化装置の構成) [0004] (Configuration of Conventional Video Encoding Device)
図 18は、 H. 264/AVC動画像符号化方式により動画像を符号化する動画像符 号化装置 100の概略構成を示す機能ブロック図である。図 18に示したように、動画 像符号化装置 100は、 DCT部 1、量子化部 2、可変長符号化部 3、逆量子化部 4、 I DCT部 5、デブロッキングフィルタ処理部 6、フレームメモリ 7、予測画像導出部 8、及 び、上記各部を制御する符号化制御部 10を備えて!/、る。 FIG. 18 is a functional block diagram showing a schematic configuration of a moving picture encoding apparatus 100 that encodes a moving picture by the H.264 / AVC moving picture encoding method. As shown in FIG. 18, the moving image coding apparatus 100 includes a DCT unit 1, a quantization unit 2, a variable length coding unit 3, an inverse quantization unit 4, an I DCT unit 5, a deblocking filter processing unit 6, A frame memory 7, a predicted image derivation unit 8, and an encoding control unit 10 that controls each of the above units are provided.
[0005] DCT部 1は、原画像から後述する予測画像を減算して得られる差分画像を 4 X 4画 素あるいは 8 X 8画素からなるブロックに分割し、各ブロックの画像信号を直交変換( 整数精度 DCT)する。当該直交変換により得られた変換係数 (離散コサイン変換に おける DCT係数に相当)は、量子化部 2に送られる。量子化部 2は、符号化制御部 1 0から供給される量子化パラメータに従って、各ブロックの変換係数を量子化する。量
子化の結果得られた量子化代表値は、可変長符号化部 3と逆量子化部 4とに送られ [0005] The DCT unit 1 divides a difference image obtained by subtracting a prediction image, which will be described later, from an original image into blocks each consisting of 4 × 4 pixels or 8 × 8 pixels, and orthogonally transforms the image signal of each block ( Integer precision DCT). The transform coefficient obtained by the orthogonal transform (corresponding to the DCT coefficient in the discrete cosine transform) is sent to the quantization unit 2. The quantization unit 2 quantizes the transform coefficient of each block according to the quantization parameter supplied from the encoding control unit 10. amount The quantized representative value obtained as a result of the child quantization is sent to the variable length coding unit 3 and the inverse quantization unit 4.
[0006] 可変長符号化部 3は、符号化制御部 10から供給される各種符号化パラメータに基 づいて、該符号化パラーメータと、量子化部 3から供給される量子化代表値(量子化 された各ブロックの変換係数)とを可変長符号化する。可変長符号化部 3による符号 化の結果得られた符号化データは、後述する動画像復号装置 200に送出される。 [0006] The variable length encoding unit 3 is based on the various encoding parameters supplied from the encoding control unit 10 and the quantization parameters (quantization representative values supplied from the quantization unit 3). The conversion coefficient of each block) is subjected to variable length coding. The encoded data obtained as a result of encoding by the variable length encoding unit 3 is sent to the moving picture decoding apparatus 200 described later.
[0007] 逆量子化部 4は、符号化制御部 10から供給される量子化パラメータに従って、量 子化部 3から供給される量子化代表値(量子化された各ブロックの変換係数)を逆量 子化する。すなわち、逆量子化部 4は、量子化部 2による上記量子化操作の逆の操 作により、量子化代表値から各ブロックの変換係数を復元する。逆量子化により復元 された各ブロックの変換係数は、 IDCT部 5に送られる。 IDCT部 5は、逆量子化によ り得られた各ブロックの変換係数を空間領域の画像信号に変換し、差分画像を復元 する。ここで、 IDCT部 5が変換係数に適用する逆直交変換は、 DCT部 1が適用する 直交変換の逆変換 (整数精度 IDCT)である。 IDCT部 5により復元された差分画像と 予測画像とを加算して得られる局所復号画像は、デブロッキングフィルタ処理部 6に 送られる。 [0007] The inverse quantization unit 4 inverts the quantization representative value (transform coefficient of each quantized block) supplied from the quantization unit 3 according to the quantization parameter supplied from the encoding control unit 10. Quantify. That is, the inverse quantization unit 4 restores the transform coefficient of each block from the quantized representative value by the reverse operation of the quantization operation by the quantization unit 2. The transform coefficient of each block restored by inverse quantization is sent to the IDCT unit 5. The IDCT unit 5 converts the transform coefficient of each block obtained by inverse quantization into an image signal in the spatial domain, and restores the difference image. Here, the inverse orthogonal transform applied to the transform coefficient by the IDCT unit 5 is the inverse transform (integer precision IDCT) of the orthogonal transform applied by the DCT unit 1. The local decoded image obtained by adding the difference image restored by the IDCT unit 5 and the predicted image is sent to the deblocking filter processing unit 6.
[0008] デブロッキングフィルタ処理部 6は、予測画像と差分画像とが加算された局所復号 画像におけるブロック歪を除去するために、該局所復号画像に対して適応的なフィ ルタ処理を行う。デブロッキングフィルタ処理部 6による適応的なフィルタ処理の詳細 については、後に詳しく説明する。 [0008] The deblocking filter processing unit 6 performs adaptive filtering on the local decoded image in order to remove block distortion in the local decoded image obtained by adding the prediction image and the difference image. Details of adaptive filter processing by the deblocking filter processing unit 6 will be described in detail later.
[0009] デブロッキングフィルタ処理部 6によりブロック歪が除去された局所復号画像は、フ レームメモリ 7に一時的に記憶される。フレームメモリ 7は、複数の局所復号画像を記 憶することが可能である。フレームメモリ 7に記憶されている局所復号画像は、参照画 像として予測画像導出部 8によって参照される。 The locally decoded image from which block distortion has been removed by the deblocking filter processing unit 6 is temporarily stored in the frame memory 7. The frame memory 7 can store a plurality of locally decoded images. The locally decoded image stored in the frame memory 7 is referred to by the predicted image deriving unit 8 as a reference image.
[0010] 予測画像導出部 8は、イントラ予測もしくはインター予測を行うことにより、フレームメ モリ 7に記録された参照画像から予測画像を生成する。 The predicted image deriving unit 8 generates a predicted image from the reference image recorded in the frame memory 7 by performing intra prediction or inter prediction.
[0011] イントラ予測とは、フレーム内予測を行うことにより予測画像を生成する処理である。 [0011] Intra prediction is a process for generating a predicted image by performing intra-frame prediction.
予測画像導出部 8は、 H. 264/AVC動画像符号化標準において定義されている
複数の予測モード(予測アルゴリズム)によるフレーム内予測を行うことが可能であり、 イントラ予測を行う場合、符号化制御部 10により指定された予測モードによるフレー ム内予測を実行する。 The predicted image derivation unit 8 is defined in the H.264 / AVC video coding standard. Intraframe prediction can be performed in multiple prediction modes (prediction algorithms). When intra prediction is performed, intraframe prediction is performed using the prediction mode specified by the encoding control unit 10.
[0012] インター予測とは、符号化制御部 10により決定された動きベクトルとフレームメモリ 7 に記憶された参照画像とに基づいて、フレーム間予測 (動き補償予測)によって予測 画像を生成する処理である。インター予測を行う場合、予測画像導出部 8は、符号化 制御部 10により指定されたサイズのブロックを用いて、また、符号化制御部 10により 指定された複数の参照画像を用いてフレーム間予測を行う。 Inter prediction is a process of generating a prediction image by inter-frame prediction (motion compensation prediction) based on the motion vector determined by the encoding control unit 10 and the reference image stored in the frame memory 7. is there. When performing inter prediction, the predicted image derivation unit 8 uses the block of the size specified by the encoding control unit 10 and also uses inter-frame prediction using a plurality of reference images specified by the encoding control unit 10. I do.
[0013] 符号化制御部 10は、イントラ予測とインター予測とのうち何れの予測方法により予 測画像を生成するかを判定し、予測画像導出部 8に対して予測方法を指定する。こ の際、符号化制御部 10は、予測方法に応じた各種符号化パラメータを決定する。ィ ントラ予測を行う場合の符号化パラメータには、イントラ予測における予測モードを指 定する情報が含まれる。また、インター予測を行う場合の符号化パラメータには、動き ベクトル、ブロックサイズ、および、参照画像を指定する情報が含まれる。さらに、符号 化制御部 10は、量子化部 2と逆量子化部 4とに対して量子化パラメータを指定する。 [0013] The encoding control unit 10 determines which prediction method is used to generate a prediction image among intra prediction and inter prediction, and designates the prediction method to the prediction image deriving unit 8. At this time, the encoding control unit 10 determines various encoding parameters according to the prediction method. The coding parameters for performing intra prediction include information for specifying a prediction mode in intra prediction. In addition, the coding parameters for performing inter prediction include information specifying a motion vector, a block size, and a reference image. Furthermore, the encoding control unit 10 designates quantization parameters for the quantization unit 2 and the inverse quantization unit 4.
[0014] 次に、図 15に示した動画像符号化装置 100の符号化動作について説明する。概 略的に言えば、動画像符号化装置 100は、以下のステップ;!〜 6を繰り返すことにより 、動画像の符号化を行う。 Next, the encoding operation of moving picture encoding apparatus 100 shown in FIG. 15 will be described. Generally speaking, the moving image encoding apparatus 100 performs encoding of a moving image by repeating the following steps;!
[0015] (ステップ 1) 符号化制御部 10が、イントラ予測を行うかインター予測を行うかを判 定し、符号化に必要な符号化パラメータおよび量子化パラメータを決定する。 (Step 1) The encoding control unit 10 determines whether intra prediction or inter prediction is performed, and determines an encoding parameter and a quantization parameter necessary for encoding.
[0016] (ステップ 2) ステップ 1における判定結果に応じて、予測画像生成部 8が、符号化 制御部 10により指定された予測方法で、フレームメモリ 7に蓄積された参照画像を基 に予測画像を生成する。 (Step 2) According to the determination result in step 1, the predicted image generation unit 8 uses the prediction method specified by the encoding control unit 10 to predict the predicted image based on the reference image stored in the frame memory 7. Is generated.
[0017] (ステップ 3) ステップ 2にて生成された予測画像と入力された原画像との差分画像 が生成され、 DCT部 1に供給される。 (Step 3) A difference image between the predicted image generated in Step 2 and the input original image is generated and supplied to the DCT unit 1.
[0018] (ステップ 4) DCT部 1と量子化部 2と力 ステップ 3にて得られた差分画像の画像信 号をブロック毎に直交変換し、得られた変換係数を量子化する。得られた量子化代 表値は、可変長符号化部 3により可変長符号化されて、符号化データとして出力され
[0019] (ステップ 4) 逆量子化部 4と IDCT部 5と力 S、ステップ 4にて得られた量子化代表値 を逆量子化して差分画像を復元する。 [0018] (Step 4) DCT unit 1, quantization unit 2 and force The image signal of the difference image obtained in step 3 is orthogonally transformed for each block, and the obtained transform coefficient is quantized. The obtained quantization representative value is variable-length encoded by the variable-length encoding unit 3 and output as encoded data. (Step 4) The inverse quantization unit 4, the IDCT unit 5, the force S, and the quantized representative value obtained in step 4 are inversely quantized to restore the difference image.
[0020] (ステップ 5) ステップ 4にて復元された差分画像とステップ 2にて生成された予測 画像とが加算され、得られた局所復号画像がデブロッキングフィルタ処理部 6に供給 される。 (Step 5) The difference image restored in Step 4 and the predicted image generated in Step 2 are added, and the obtained locally decoded image is supplied to the deblocking filter processing unit 6.
[0021] (ステップ 6) デブロッキングフィルタ処理部 6により、ステップ 5にて得られた局所復 号画像からブロック歪が除去され、ブロック歪が低減された局所復号画像がフレーム メモリ 7に参照画像として蓄積される。 (Step 6) The deblocking filter processing unit 6 removes block distortion from the local decoded image obtained in step 5, and the local decoded image with reduced block distortion is stored in the frame memory 7 as a reference image. Accumulated.
[0022] (従来の動画像復号装置の構成) [0022] (Configuration of Conventional Video Decoding Device)
次に、 H. 264/AVC動画像符号化方式により動画像を復号する動画像復号装 置 200について、図 19に基づいて説明する。 Next, a moving picture decoding apparatus 200 that decodes a moving picture using the H.264 / AVC moving picture encoding method will be described with reference to FIG.
[0023] 図 19は、 H. 264/AVC動画像符号化方式により動画像を復号する動画像復号 装置 200の概略構成を示す機能ブロック図である。図 19に示したように、動画像復 号装置 200は、逆量子化部 4、 IDCT部 5、デブロッキングフィルタ処理部 6、フレーム メモリ 7、予測画像導出部 8、および、可変長復号部 20を備えている。 FIG. 19 is a functional block diagram showing a schematic configuration of a moving picture decoding apparatus 200 that decodes a moving picture by the H.264 / AVC moving picture coding method. As shown in FIG. 19, the moving picture decoding apparatus 200 includes an inverse quantization unit 4, an IDCT unit 5, a deblocking filter processing unit 6, a frame memory 7, a predicted image derivation unit 8, and a variable length decoding unit 20. It has.
[0024] ここで、動画像復号装置 200を構成する機能ブロックのうち、上述した動画像符号 化装置 100 (図 18)にない機能ブロックは、可変長復号部 20のみである。動画像符 号化装置 100と同一機能を有するブロックについては、名称および符号を同一とし 説明を省略する。可変長復号部 20は、符号化パラメータおよび量子化代表値 (量子 化された変換係数)を可変長復号する機能を有して!/、る。 Here, among the functional blocks constituting the moving picture decoding apparatus 200, the only functional block not included in the above-described moving picture encoding apparatus 100 (FIG. 18) is the variable length decoding unit 20. Blocks having the same functions as those of the moving picture encoding apparatus 100 have the same names and reference numerals and description thereof is omitted. The variable length decoding unit 20 has a function of variable length decoding the encoding parameter and the quantized representative value (quantized transform coefficient).
[0025] 図 19に示した動画像復号装置 200は、概略的に言えば、以下のステップ;!〜 6を 繰り返すことにより、符号化データを復号する。 In general, the moving picture decoding apparatus 200 shown in FIG. 19 decodes encoded data by repeating the following steps;! To 6.
[0026] (ステップ 1) 可変長復号部 20が取得した符号化データから、符号化パラメータお よび量子化代表値 (量子化された変換係数)を可変長復号する。 (Step 1) From the encoded data acquired by the variable length decoding unit 20, the encoding parameter and the quantized representative value (quantized transform coefficient) are variable length decoded.
[0027] (ステップ 2) 復号された符号化パラメータに従い、予測画像導出部 8が、フレーム メモリ 7に蓄積された参照画像を基に予測画像を生成する。 (Step 2) The predicted image derivation unit 8 generates a predicted image based on the reference image stored in the frame memory 7 according to the decoded encoding parameter.
[0028] (ステップ 3) 逆量子化部 4と IDCT部 5と力 S、ステップ 1にて得られた量子化代表値
を逆量子化して差分画像を復元する。 [0028] (Step 3) Inverse quantization unit 4, IDCT unit 5, force S, quantization representative value obtained in step 1 Is dequantized to restore the difference image.
[0029] (ステップ 4) ステップ 3にて復元された差分画像とステップ 2にて生成された予測 画像とが加算され、得られた復号画像がデブロッキングフィルタ処理部 6に供給され (Step 4) The difference image restored in Step 3 and the predicted image generated in Step 2 are added, and the obtained decoded image is supplied to the deblocking filter processing unit 6.
[0030] (ステップ 5) デブロッキングフィルタ処理部 6により、ステップ 4にて得られた復号画 像からブロック歪が除去され、ブロック歪が低減された復号画像がフレームメモリ 7に 蓄積される。フレームメモリ 7に蓄積された復号画像は、任意のタイミングで読み出し て参照画像あるいは表示用画像として利用され得る。 (Step 5) The deblocking filter processing unit 6 removes block distortion from the decoded image obtained in step 4, and stores the decoded image with reduced block distortion in the frame memory 7. The decoded image stored in the frame memory 7 can be read at an arbitrary timing and used as a reference image or a display image.
[0031] (ステップ 6) フレームメモリに蓄積された復号画像が表示用画像として適切なタイ ミングでディスプレイ等の画像映出手段に出力される。 [0031] (Step 6) The decoded image stored in the frame memory is output to an image projection means such as a display at an appropriate timing as a display image.
[0032] (従来のデブロッキングフィルタ) [0032] (Conventional deblocking filter)
上述した通り、 H. 264/AVC動画像符号化方式では、動画像符号化装置 100お よび動画像復号装置 200の双方にお!/、て、共通のデブロッキングフィルタ処理部 6を 用いることにより、動画像の量子化 ·逆量子化過程で発生するブロック歪を低減して いる。以下、このデブロッキングフィルタ処理部 6について、図 20〜図 22を参照しな がら、もう少し詳しく説明する。 As described above, in the H.264 / AVC moving picture coding system, both the moving picture coding apparatus 100 and the moving picture decoding apparatus 200 use the common deblocking filter processing unit 6! Block distortion that occurs during the quantization / inverse quantization process of moving images is reduced. Hereinafter, the deblocking filter processing unit 6 will be described in a little more detail with reference to FIGS.
[0033] 図 20は、 H. 264/AVC動画像符号化方式による動画像の符号化処理における 、量子化対象画像 (原画像と予測画像との差分画像)のブロック分割パターンを示す 説明図である。図 20に示したように、量子化対象画像は、 W X H個の矩形状のブロ ックに分割される。 WX H個のブロックには、量子化対象画像の左上端から順に B〜 [0033] FIG. 20 is an explanatory diagram showing a block division pattern of a quantization target image (difference image between an original image and a predicted image) in a moving image encoding process using the H.264 / AVC moving image encoding method. is there. As shown in FIG. 20, the quantization target image is divided into W X H rectangular blocks. WX H blocks include B ~ in order from the upper left corner of the image to be quantized.
0 0
B の符号を付している。 B is attached.
W X H- 1 W X H- 1
[0034] 図 21は、図 20に示した量子化対象画像中の隣接する 2つのブロック、ブロック Bと ブロック B とを示す図である。図 21に示したように、ブロック Bおよびブロック B は、それぞれ 4行 4列に配列された計 16個の画素から構成されている。図 20の量子 化対象画像を構成する全てのブロック B〜B は、ブロック Bと同様、 4行 4歹に FIG. 21 is a diagram showing two adjacent blocks, block B and block B, in the quantization target image shown in FIG. As shown in FIG. 21, each of block B and block B is composed of a total of 16 pixels arranged in 4 rows and 4 columns. As with block B, all blocks B to B making up the quantization target image in Fig. 20 are arranged in 4 rows and 4 mm.
0 W X H- l n 0 W X H- l n
配列された 16画素から構成されている。 It consists of 16 pixels arranged.
[0035] 量子化対象画像を構成する各画素は、その画素を含むブロックを特定する変数 nと 、そのブロック B中でその画素の位置を特定する変数 u、 Vとの組み合わせ(n、 u、 v)
で指定することができる。すなわち、画素(n、 u、 v)は、ブロック Bnの u列目 v行目の画 素である。また、以下の説明において、画素(n、 u、 v)の属性値を X (n、 u、 v)のよう に表記する。例えば、量子化対象画像における画素(n、 u、 v)の画素値は P (n、 u、 v )のように表記する。 Each pixel constituting the quantization target image is a combination of a variable n that specifies a block including the pixel and variables u and V that specify the position of the pixel in the block B (n, u, v) Can be specified. That is, the pixel (n, u, v) is a pixel in the u-th column and the v-th row of the block B n . In the following explanation, the attribute value of the pixel (n, u, v) is expressed as X (n, u, v). For example, the pixel value of the pixel (n, u, v) in the quantization target image is expressed as P (n, u, v).
[0036] 図 20および図 21に示したブロック B〜B 力 動画像の符号化における直交 [0036] Blocks B to B shown in Fig. 20 and Fig. 21 Orthogonalization in video coding
0 WX H- 1 0 WX H- 1
変換 '量子化'逆量子化'逆直交変換の一連の処理の処理単位となる。すなわち、量 子化対象画像の画像データは、ブロック B〜B 毎に変換係数に変換されて量 Transformation 'Quantization' Dequantization 'Inverse orthogonal transformation is a processing unit of a series of processing. In other words, the image data of the quantization target image is converted into a conversion coefficient for each of the blocks B to B, and the amount is converted.
0 WX H- 1 0 WX H- 1
子化される。し力、しながら、量子化は非可逆的な過程であるため、逆量子化 ·逆直交 変換により量子化対象画像を復元したとしても、復元された画像は符号化対象画像 とは一致せず、復元された画像における隣接ブロック間の境界にはブロック歪が発生 する。このブロック歪を低減するのがデブロッキングフィルタ処理部 6である。 It becomes a child. However, since quantization is an irreversible process, even if the image to be quantized is restored by inverse quantization and inverse orthogonal transform, the restored image does not match the image to be encoded. Block distortion occurs at the boundary between adjacent blocks in the restored image. The deblocking filter processing unit 6 reduces this block distortion.
[0037] H. 264/AVC動画像符号化方式で用いられるデブロッキングフィルタ処理部 6は 、水平方向に隣接するブロック(B 、 B )間のフィルタ処理、および、垂直方向に隣 接するブロック(B、 B )間のフィルタ処理をそれぞれ独立に行う。また、デブロッキ n n+W [0037] The deblocking filter processing unit 6 used in the H.264 / AVC moving image coding system includes a filter process between blocks (B, B) adjacent in the horizontal direction and a block (B , B) are performed independently of each other. Deblocky n n + W
ングフィルタ処理部 6が行うフィルタ処理のフィルタ強度は、各ブロックに適用された 予測モード等の条件に応じて、適応的に設定される。 The filter strength of the filter processing performed by the filtering filter processing unit 6 is adaptively set according to conditions such as the prediction mode applied to each block.
[0038] デブロッキングフィルタ処理部 6が行うフィルタ処理の一例として、水平方向に隣接 するブロック Bとブロック B とに対する、最も強いフィルタ強度でのフィルタ処理演 算を以下に示す。なお、以下の各式において、 P (n、 u、 v)はデブロッキングフィルタ 処理の処理対象画像 (動画像符号化装置 100における局所復号画像、あるいは、動 画像復号装置 200における復号画像)における画素(n、 u、 v)の画素値、 P' (n、 u、 v)はデブロッキングフィルタ 6が出力するフィルタ出力画像における画素 (n、 u、 v)の 画素値を表す。 [0038] As an example of the filter processing performed by the deblocking filter processing unit 6, the filter processing calculation with the strongest filter strength is shown below for blocks B and B adjacent in the horizontal direction. In the following equations, P (n, u, v) is a pixel in the processing target image (local decoded image in the moving image encoding device 100 or decoded image in the moving image decoding device 200) of the deblocking filter processing. The pixel value (n, u, v) and P ′ (n, u, v) represent the pixel value of the pixel (n, u, v) in the filter output image output from the deblocking filter 6.
[0039] 國 [0039] country
P' (n,0,v) = P(nfi, v) P '(n, 0, v) = P (nfi, v)
[0040] [数 2] [0040] [Equation 2]
Ρ' (η,Ι, ν) = - {2Ρ(«,0, ν) + 3尸 (",Ι, ) + Ρ(η,2, ν) + Ρ(η,3, ν) + Ρ{η + 1,0, ν)}
[0041] [数 3] η,Ι,ν) + Ρ(η2,ν) + Ρ(η,3,ν) + Ρ(η + 1,0, ν) Ρ '(η, Ι, ν) =-(2Ρ («, 0, ν) + 3 尸 (", Ι,) + Ρ (η, 2, ν) + Ρ (η, 3, ν) + Ρ { η + 1,0, ν)} [0041] [Equation 3] η, Ι, ν) + Ρ (η2, ν) + Ρ (η, 3, ν) + Ρ (η + 1,0, ν)
[0042] [数 4] [0042] [Equation 4]
Ρ' (η,3, ν) = _ {Ρ(η,1, ν) + 2Ρ(η,2, ν) + 2 0,3, ν) + 2Ρ(η + 1,0, ν) + Ρ(η + 1,1, ν) Ρ '(η, 3, ν) = _ (Ρ (η, 1, ν) + 2Ρ (η, 2, ν) + 2 0,3, ν) + 2Ρ (η + 1,0, ν) + Ρ (η + 1,1, ν)
[0043] [数 5] [0043] [Equation 5]
Ρ' 0 + 1,0, =上 [Ρ(η,2, ν) + 2Ρ(η,3, ν) + 2Ρ(η + 1,0, ν) + 2Ρ(η + 1,1, ν) + Ρ(η + 1,2, ι Ρ '0 + 1,0, = upper [Ρ (η, 2, ν) + 2Ρ (η, 3, ν) + 2Ρ (η + 1,0, ν) + 2Ρ (η + 1,1, ν) + Ρ (η + 1,2, ι
[0044] [数 6] [0044] [Equation 6]
Ρ' (η + 1,1, ν) = _ {Ρ{η,Χ ν) + Ρ(η + 1,0, ν) + Ρ(η + 1,1, ) + (" + 1,2, ι Ρ '(η + 1,1, ν) = _ (Ρ {η, Χ ν) + Ρ (η + 1,0, ν) + Ρ (η + 1,1,) + ("+ 1, 2, ι
[0045] [数 7] [0045] [Equation 7]
Ρ' (η + 1,2, ν) = - {P(w,3, ν) + Ρ{η + 1,0, ν) + Pin + 1,1, ν) + 3Ρ(η + 1,2, ν) + 2Ρ(η + 1,3, ν) Ρ '(η + 1,2, ν) =-(P (w, 3, ν) + Ρ {η + 1,0, ν) + Pin + 1,1, ν) + 3Ρ (η + 1,2 , ν) + 2Ρ (η + 1,3, ν)
[0046] [数 8] [0046] [Equation 8]
+ 1,3,ν) = (κ + 1,3,ν) + 1,3, ν) = (κ + 1,3, ν)
[0047] なお詳細な説明は省略するが、同様 C 理が垂直方向の隣接ブロック間 に対しても適用される。 [0047] Although detailed description is omitted, the same C process is also applied to adjacent blocks in the vertical direction.
[0048] 上記フィルタ処理の処理対象画像に対する作用を、図 22の(a)〜(c)に示す。 [0048] The effects of the filter processing on the processing target image are shown in Figs. 22 (a) to 22 (c).
[0049] 図 22の(a)は、ブロック Bとブロック B とにおける、原画像の画素ィ直 p (n、 u、 v)を 表すグラフである。 [0049] (a) of FIG. 22 is a graph showing pixel direct p (n, u, v) of the original image in block B and block B.
[0050] 図 22の(b)は、ブロック Bとブロック B とにおける、デブロッキングフィルタ処理部 6の処理対象となる復号画像の画素値 P (n、 u、 v)を表すグラフである。図 22の(b) に示すように、復号画像においては、ブロック境界における画素値の不連続な変化、 すなわち、ブロック歪が発生している。 FIG. 22 (b) is a graph showing the pixel values P (n, u, v) of the decoded image to be processed by the deblocking filter processing unit 6 in block B and block B. As shown in (b) of FIG. 22, in the decoded image, discontinuous changes in pixel values at block boundaries, that is, block distortion occurs.
[0051] 図 22の(c)は、復号画像にデブロッキングフィルタ 6によるフィルタリング処理を施し た後の画像の、ブロック Bとブロック B とにおける画素値 (n、 u、 v)を表すグラフ
われるため、復元された符号化対象画像における画素値の不連続な変化は平滑化 され、ブロック歪は低減されている。 [0051] (c) of FIG. 22 is a graph showing pixel values (n, u, v) in block B and block B of the image after filtering the decoded image by the deblocking filter 6 Therefore, discontinuous changes in pixel values in the restored image to be encoded are smoothed, and block distortion is reduced.
非特許文献丄:iTU_r Recommendation H.2D4: Advanced Video し oding for generic audiovisual services" (2003) Non-Patent Literature: iTU_r Recommendation H.2D4: Advanced Video and oding for generic audiovisual services "(2003)
発明の開示 Disclosure of the invention
[0052] しかしながら、上記従来の動画像符号化装置においては、デブロッキングフィルタ によってブロック歪を低減した副作用として、画像のボケ、あるいは、動画再生時の画 像のチラツキといった、ブロック歪とは別の画質劣化が発生してしまうという問題があ つた。 [0052] However, in the above-described conventional video encoding device, as a side effect of reducing the block distortion by the deblocking filter, it is different from the block distortion such as image blur or image flicker at the time of moving image reproduction. There was a problem of image quality degradation.
[0053] デブロッキングフィルタの副作用につ!/、て、以下、もう少し詳しく説明する。上述した 式(1)〜(8)から明らカ、なように、フィルタ処理対象画像の画素値を P (n、 u、 v)とする と、フィルタ処理前のブロック Bの平均画素値く P〉と、フィルタ処理後のブロック Bの 平均画素値〈Ρ'〉とは、それぞれ以下の式で与えられる。 [0053] The side effects of the deblocking filter will be described in more detail below. As is clear from the equations (1) to (8) described above, if the pixel value of the image to be filtered is P (n, u, v), the average pixel value of the block B before the filtering process is P> and the average pixel value <Ρ '> of block B after filtering are given by the following equations, respectively.
[0054] [数 9] くヽ η 1〉 = ∑ ∑ Ρ(Η [0054] [Equation 9] ヽη 1 〉 = ∑ ∑ Ρ ( Η
10 ι, = 0 V = 0 1 0 ι, = 0 V = 0
[0056] すなわち、フィルタ処理の前後で、各ブロックにおける平均画素値は異なる。従って 、従来のデブロッキングフィルタを用いた場合、フィルタ処理の前後で各ブロックにお ける平均画素値が保存されな!/、ので、フィルタ処理により符号化対象画像と復号画 像との平均画素値の差が拡大され得る。 That is, the average pixel value in each block is different before and after the filter processing. Therefore, when the conventional deblocking filter is used, the average pixel value in each block is not saved before and after the filter processing! /, So the average pixel value between the encoding target image and the decoded image is obtained by the filter processing. The difference can be enlarged.
[0057] そうすると、動画像符号化装置にお!/、ては、符号化対象画像に対して平均画素値 の差を有する局所復号画像を参照画像として予測画像が生成されることになる。また 、動画像復号装置においては、符号化対象画像に対して平均画素値差を有する復 号画像が参照画像あるいは表示用画像として生成されることになる。このため、動画 像における画像のボケやチラツキが生ずることになる。
[0058] このような問題を解決するために、出願人は、 日本国特許出願「特願 2006— 0756 85」において、符号化対象画像からブロック歪を発生させる周波数成分を除去する フィルタ処理を施すフィルタ処理手段を備えた動画像符号化装置と、上記フィルタ処 理の逆変換に相当する逆フィルタ処理手段を備えた動画像復号装置とを提案した。 これらにより、上記フィルタ処理手段により符号化対象画像からブロック歪を発生させ る周波数成分が除去され、そして、上記逆フィルタ処理手段によりいつたん除去され た上記周波数成分を復号画像おいて復元することができる。しかも、上記フィルタ処 理手段は、画素値の平均値をフィルタ処理の前後で不変に保つよう構成するよう構 成することが可能である。従って、復号された動画像におけるブロック歪を低減でき、 また、かつ画像のボケやチラツキといった副作用を生じることのない動画像符号化装 置および動画像復号装置を提供することができる。 [0057] Then, the prediction image is generated in the moving image encoding apparatus using the local decoded image having a difference in average pixel values as compared to the encoding target image as a reference image. In addition, in the video decoding device, a decoded image having an average pixel value difference with respect to the encoding target image is generated as a reference image or a display image. For this reason, blurring or flickering of the image in the moving image occurs. [0058] In order to solve such a problem, the applicant applies a filtering process in Japanese Patent Application "Japanese Patent Application No. 2006-0756 85" to remove frequency components that generate block distortion from an encoding target image. A moving picture encoding apparatus provided with filter processing means and a moving picture decoding apparatus provided with inverse filter processing means corresponding to the inverse transformation of the filter processing have been proposed. Thus, the frequency component that generates block distortion is removed from the encoding target image by the filter processing unit, and the frequency component removed by the inverse filter processing unit is restored in the decoded image. it can. Moreover, the filter processing means can be configured to keep the average value of the pixel values unchanged before and after the filter processing. Accordingly, it is possible to provide a moving image encoding apparatus and a moving image decoding apparatus that can reduce block distortion in a decoded moving image and that do not cause side effects such as blurring and flickering of the image.
[0059] しかしながら、量子化の過程は不可逆な過程であるため、上記フィルタ処理手段の 出力画像と、上記逆フィルタ処理手段の入力画像とは、少なくとも量子化誤差分の不 一致をもつ。従って、上記逆フィルタ処理手段が復元する周波数成分は、上記フィル タ処理手段が符号化対象画像から除去した周波数成分を、厳密に再現することがで きなくなるという問題があった。 [0059] However, since the quantization process is an irreversible process, the output image of the filter processing means and the input image of the inverse filter processing means have a discrepancy at least for the quantization error. Therefore, the frequency component restored by the inverse filter processing unit cannot accurately reproduce the frequency component removed from the encoding target image by the filter processing unit.
[0060] 本発明は、上記の問題点に鑑みてなされたものであり、その目的は、復号された動 画像におけるブロック歪を低減でき、また、画像のボケやチラツキといった副作用を 生じることのない動画像符号化装置および動画像復号装置であって、さらに除去さ れたブロック歪を発生させる周波数成分を、より正確に復元可能な動画像符号化装 置および動画像復号装置を実現することにある。 [0060] The present invention has been made in view of the above-described problems, and an object of the present invention is to reduce block distortion in a decoded moving image and to prevent side effects such as image blur and flicker. It is a moving image encoding device and a moving image decoding device, and is to realize a moving image encoding device and a moving image decoding device that can restore more accurately the frequency components that generate the removed block distortion. .
[0061] 上記課題を解決するために、本発明の動画像符号化装置は、ブロック歪を発生さ せる周波数成分を除去するフィルタ処理が施された量子化対象画像をブロック毎に 量子化することにより得られた量子化代表値を、逆量子化する動画像復号装置であ つて、少なくとも 1つ以上のブロックについて、上記逆量子化により復元された復元量 子化対象画像の各画素の画素値に、該画素が属するブロックにおける上記量子化 対象画像の平均画素値を近似する近似平均画素値を加算する補正を行う復元量子 化対象画像補正手段と、上記補正が施された復元量子化対象画像に対し、上記フィ
ルタ処理の逆変換に相当する逆フィルタ処理を施す逆フィルタ処理手段と、を備えて いる、ことを特徴としている。 [0061] In order to solve the above-described problem, the moving image encoding apparatus of the present invention quantizes a quantization target image subjected to a filter process for removing a frequency component that generates block distortion for each block. A video decoding device that inverse-quantizes the quantized representative value obtained by the above, and for at least one block, the restoration value restored by the inverse quantization The pixel value of each pixel of the quantization target image A restored quantization target image correcting means for performing correction by adding an approximate average pixel value approximating the average pixel value of the quantization target image in the block to which the pixel belongs, and the restored quantization target image subjected to the correction In contrast to the above And an inverse filter processing means for performing an inverse filter process corresponding to an inverse transformation of the filter process.
[0062] ブロック歪を発生させる周波数成分を除去するフィルタ処理が施された量子化対象 画像を複数のブロックに分割し、該量子化対象画像をブロック毎に量子化する動画 像符号化装置において、上記量子化対象画像の各ブロックの平均画素値は、より小 さいものであるほど好ましい。これは、上記量子化対象画像の平均画素値を低下させ ることにより、上記量子化における量子化レベル間隔を小さく設定することが可能に なり、量子化により発生する量子化誤差を縮小できるためである。 [0062] In a moving image encoding apparatus that divides a quantization target image subjected to filter processing to remove a frequency component that generates block distortion into a plurality of blocks, and quantizes the quantization target image for each block. The average pixel value of each block of the quantization target image is preferably as small as possible. This is because by reducing the average pixel value of the quantization target image, the quantization level interval in the quantization can be set small, and the quantization error caused by the quantization can be reduced. is there.
[0063] このため、上記動画像符号化装置においては、量子化対象画像の各画素の画素 値から、該画素が属するブロックにおける量子化対象画像の平均値を近似する近似 平均画素値を減算する補正を行うことが好ましい。これは、上記補正を行うことにより 、補正後の量子化対象画像の各ブロックの平均画素値を低下させることができるため である。上記量子化対象画像の平均画素値をより良く近似する近似平均画素値を用 いることにより、補正後の量子化対象画像の各ブロックの平均画素値をより一層低下 させること力 Sでさる。 [0063] For this reason, in the moving image encoding apparatus, the approximate average pixel value that approximates the average value of the quantization target image in the block to which the pixel belongs is subtracted from the pixel value of each pixel of the quantization target image. It is preferable to perform correction. This is because the average pixel value of each block of the corrected quantization target image can be reduced by performing the above correction. By using the approximate average pixel value that better approximates the average pixel value of the quantization target image, the average pixel value of each block of the corrected quantization target image is further reduced by the force S.
[0064] 上記の構成によれば、上記動画像符号化装置にて上記量子化対象画像から減算 されたものと同じ上記近似平均画素値を、当該動画像復号装置にて上記復元量子 化対象画像に加算することが可能になる。このため、フィルタ処理が施された後の量 子化対象画像と、逆フィルタ処理が施される前の復元量子化対象画像との差を、量 子化の過程で発生する量子化誤差のみとすることが可能になる。 [0064] According to the above configuration, the same approximate average pixel value that is subtracted from the quantization target image by the moving image encoding device is used as the restored quantization target image by the moving image decoding device. Can be added. For this reason, the difference between the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process is determined as only the quantization error that occurs during the quantization process. It becomes possible to do.
[0065] しかも、上記動画像符号化装置側で行われる上記補正により上記量子化対象画像 の各ブロックの平均画素値をレ、つたん低下させて!/、るので、量子化の過程で発生す る量子化誤差量は、上記補正を行わない場合と比べてより小さくなる。そうすると、上 記動画像符号化装置にてフィルタ処理が施された後の量子化対象画像と、当該動 画像復号装置にて逆フィルタ処理が施される前の復元量子化対象画像との差が、上 記補正を行わない場合より小さくなる。従って、逆フィルタ処理手段は、上記補正を 行わない場合より、上記フィルタ処理手段が除去した周波数成分を、より正確に復元 でさるようになる。
[0066] すなわち、上記構成によれば、動画像符号化装置にて符号化された画像をより忠 実に再現した画像を復号することができるという効果を奏する。 In addition, the average pixel value of each block of the quantization target image is gradually reduced by the correction performed on the moving image encoding device side, so that it is generated in the quantization process. The amount of quantization error to be made is smaller than when the above correction is not performed. Then, there is a difference between the quantization target image after the filtering process is performed by the moving image encoding apparatus and the restored quantization target image before the inverse filtering process is performed by the moving image decoding apparatus. This is smaller than when the above correction is not performed. Therefore, the inverse filter processing means can restore the frequency component removed by the filter processing means more accurately than when the correction is not performed. [0066] That is, according to the above configuration, there is an effect that it is possible to decode an image in which an image encoded by the moving image encoding apparatus is reproduced more loyally.
[0067] なお、上記量子化対象画像は、上記動画像符号化装置により符号化された符号化 対象画像自体であってもよいし、あるいは、上記符号化対象画像から予測画像を減 算した差分画像であってもよい。ここで、上記予測画像としては、局所復号画像を参 照画像として、フレーム内予測処理またはフレーム間予測処理等を用いて生成され る予測画像などを挙げることができる。 [0067] Note that the quantization target image may be the encoding target image itself encoded by the moving image encoding device, or a difference obtained by subtracting a predicted image from the encoding target image. It may be an image. Here, examples of the predicted image include a predicted image generated by using an intra-frame prediction process, an inter-frame prediction process, or the like using a locally decoded image as a reference image.
[0068] また、上記逆フィルタ処理手段が施す逆フィルタ処理は、上記フィルタ処理手段の フィルタ処理に対し、厳密な逆変換に相当するものであっても良いし、近似的な逆変 換に相当するものであっても良い。すなわち、上記逆フィルタ処理は、最終的な動画 像の品質に悪影響を与えない範囲で厳密な逆変換を近似するものであれば十分で あり、例えば、フィルタ処理演算の演算精度 (例えば整数精度)程度の誤差は許容さ れる。 [0068] Further, the inverse filter processing performed by the inverse filter processing means may correspond to a strict inverse transformation or an approximate inverse transformation with respect to the filter processing of the filter processing means. It may be what you do. In other words, the inverse filtering process is sufficient if it approximates a strict inverse transform within a range that does not adversely affect the quality of the final moving image. For example, the calculation accuracy of the filtering process (for example, integer precision) A degree of error is acceptable.
[0069] 本発明に係る動画像復号装置においては、上記補正を行うべきブロックを指定す る補正ブロック指定情報を、上記量子化を行う動画像符号化装置から取得する補正 ブロック指定情報取得手段を更に備え、上記復元量子化対象画像補正手段は、上 記補正ブロック指定情報により指定されたブロックにつ!/、て、上記補正を行うものであ る、ことが好ましい。 [0069] In the moving picture decoding apparatus according to the present invention, correction block designation information acquisition means for acquiring correction block designation information for designating a block to be corrected from the moving picture encoding apparatus for performing the quantization. In addition, it is preferable that the restored quantization target image correcting unit performs the above correction on a block specified by the correction block specifying information.
[0070] 上記構成によれば、当該動画像復号装置は、上記動画像符号化装置から上記補 正ブロック指定情報を取得し、上記補正ブロック指定情報により指定されたブロックに 対して上記補正を行う。これにより、上記動画像符号化装置が、量子化対象画像から 上記近似平均画素値を減算する補正を行ったブロックを上記補正ブロック指定情報 に指定することで、当該動画像復号装置は、復元量子化対象画像の同じブロックに 対し、上記近似平均値を加算する補正を行うことが可能になる。 [0070] According to the above configuration, the video decoding device acquires the correction block designation information from the video coding device, and performs the correction on the block designated by the correction block designation information. . As a result, the moving picture coding apparatus designates the corrected block designation information as a block that has been corrected to subtract the approximate average pixel value from the quantization target image, so that the moving picture decoding apparatus It is possible to perform correction by adding the approximate average value to the same block of the image to be converted.
[0071] このため、フィルタ処理が施された後の量子化対象画像と、逆フィルタ処理が施さ れる前の復元量子化対象画像とをより一層正確に一致させることが可能になる。 [0071] For this reason, it is possible to match the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process more accurately.
[0072] なお、上記補正ブロック指定情報は、例えば、符号化されて上記動画像符号化装 置から提供されるものであってもよい。この場合、上記補正ブロック指定情報取得手
段は、符号化データを復号して上記補正ブロック指定情報を取得する構成とすること ができる。 [0072] Note that the correction block designation information may be encoded and provided from the moving picture coding apparatus, for example. In this case, the correction block designation information acquisition procedure The stage can be configured to decode the encoded data and obtain the correction block designation information.
[0073] 本発明に係る動画像復号装置は、上記復元量子化対象画像の各ブロックの画素 値を平均した補正前平均画素値と、該補正前平均画素値から当該ブロックの上記近 似平均画素値を減算した補正後平均画素値との大小関係を推定する比較推定手段 を更に備え、上記復元量子化対象画像補正手段は、上記比較推定手段により上記 補正後平均画素値が上記補正前平均画素値より小さレ、と推定されたブロックにつレ、 て、上記補正を行うものである、ことが好ましい。 [0073] The moving picture decoding apparatus according to the present invention includes an average pixel value before correction obtained by averaging pixel values of each block of the restored quantization target image, and the approximate average pixel of the block from the average pixel value before correction. A comparison estimation unit that estimates a magnitude relationship with a corrected average pixel value obtained by subtracting a value, and the restored quantization target image correction unit uses the comparison estimation unit to change the corrected average pixel value to the average pixel before correction. It is preferable that the correction is performed for blocks estimated to be smaller than the value.
[0074] 上記構成によれば、上記比較推定手段により、上記補正前平均画素値の大きさと 上記補正後平均画素値の大きさとの大小関係が推定され、補正後平均画素値の大 きさの方が小さくなると推定されたブロックにつ!/、て、上記復元量子化対象画像補正 手段により、上記補正が行われる。従って、上記量子化を行う動画像符号化装置が、 上記補正後平均画素値の大きさの方が上記補正前平均画素値の大きさより小さくな るブロックについて、上記近似平均画素値を減算する補正を行う場合、上記推定の 確度が上がるほど、フィルタ処理が施された後の量子化対象画像と、逆フィルタ処理 が施される前の復元量子化対象画像とをより一層正確に一致させることが可能になる [0074] According to the above configuration, the comparative estimation means estimates the magnitude relationship between the magnitude of the average pixel value before correction and the magnitude of the average pixel value after correction, and determines the magnitude of the average pixel value after correction. For the block estimated to be smaller, the correction is performed by the restored quantization target image correcting means. Therefore, the moving picture coding apparatus that performs the quantization performs correction for subtracting the approximate average pixel value for a block in which the size of the average pixel value after correction is smaller than the size of the average pixel value before correction. As the accuracy of the estimation increases, the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process can be matched more accurately. Become possible
[0075] しかも、上記構成によれば、補正するべきブロックを特定するために、上記量子化を 行う動画像符号化装置から情報の提供を受ける必要がない。従って、符号量を少な くし、復号処理に力、かる負担を軽減することができるという更なる効果を奏する。 [0075] Moreover, according to the above configuration, it is not necessary to receive information from the moving image encoding device that performs the quantization in order to specify the block to be corrected. Therefore, there is a further effect that the amount of code can be reduced, and the power and burden of decoding processing can be reduced.
[0076] なお、上記比較推定手段は、例えば、近似平均画素値の値が 0となるブロックに対 して、上記補正前平均画素値と上記補正後平均画素値が一致することを推定したり 、上記近似平均画素値が予め定められた所定の閾値より大きい場合、上記補正後平 均画素値が上記補正前平均画素値よりも大きくなると推定することができる。 Note that the comparison estimation means estimates, for example, that the average pixel value before correction matches the average pixel value after correction for a block in which the value of the approximate average pixel value is zero. When the approximate average pixel value is larger than a predetermined threshold value, it can be estimated that the corrected average pixel value is larger than the pre-correction average pixel value.
[0077] 本発明に係る動画像復号装置にお!/、て、上記近似平均画素値は、上記復元量子 化対象画像から導出されたものである、ことが好まし!/、。 [0077] In the video decoding apparatus according to the present invention, it is preferable that the approximate average pixel value is derived from the restored quantization target image! /.
[0078] 上記構成によれば、上記近似平均画素値は、上記復元量子化対象から導出される ので、当該動画像復号装置は、上記量子化対象画像を参照することなぐ上記近似
平均画素値を導出することができる。一方、上記量子化を行う動画像符号化装置に おいても、上記量子化により得られた量子化代表値を逆量子化することにより、上記 復元量子化対象画像と同一の画像を自装置内で得ることができ、上記近似平均画 素値を導出することができる。従って、当該動画像復号装置と上記動画像符号化装 置とは、同一の近似平均値画素値を共有することができる。このため、フィルタ処理 が施された後の量子化対象画像と、逆フィルタ処理が施される前の復元量子化対象 画像とをより一層正確に一致させることが可能になるという更なる効果を奏する。 [0078] According to the above configuration, the approximate average pixel value is derived from the restoration quantization target. Therefore, the moving image decoding apparatus performs the approximation without referring to the quantization target image. An average pixel value can be derived. On the other hand, the moving image coding apparatus that performs the quantization also performs the inverse quantization on the quantization representative value obtained by the quantization so that the same image as the restored quantization target image is stored in the local apparatus. And the approximate average pixel value can be derived. Therefore, the moving picture decoding apparatus and the moving picture encoding apparatus can share the same approximate average pixel value. For this reason, there is an additional effect that the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process can be matched more accurately. .
[0079] 本発明に係る動画像復号装置は、各ブロックの上記近似平均画素値を、当該プロ ックに隣接する近似平均画素値導出済みの隣接ブロックにおける上記復元量子化 対象画像の画素値に基づいて導出する近似平均画素値導出手段を更に備え、上記 近似平均画素値導出手段は、上記隣接ブロックにつ!/、て上記補正が行われな!/、場 合、上記隣接ブロックにおける上記復元量子化対象画像の平均画素値を、当該プロ ックの近似平均画素値とし、上記隣接ブロックについて上記補正が行われる場合、上 記隣接ブロックにおける上記復元量子化対象画像の平均画素値と上記隣接ブロック の近似平均画素値との差分値を、当該ブロックの近似平均画素値とする、ことが好ま しい。 [0079] The video decoding device according to the present invention converts the approximate average pixel value of each block to the pixel value of the restored quantization target image in the adjacent block for which the approximate average pixel value is derived adjacent to the block. An approximate average pixel value deriving unit for deriving based on the above, and the approximate average pixel value deriving unit for the adjacent block! /, The correction is not performed! / When the average pixel value of the quantization target image is the approximate average pixel value of the block and the correction is performed for the adjacent block, the average pixel value of the restored quantization target image in the adjacent block and the adjacent pixel It is preferable that the difference value from the approximate average pixel value of the block is the approximate average pixel value of the block.
[0080] 上記構成によれば、上記復元量子化対象画像に基づいて、上記量子化対象画像 を良く近似する上記近似平均画素値を得ることができる。このため、フィルタ処理が 施された後の量子化対象画像と、逆フィルタ処理が施される前の復元量子化対象画 像とをより一層正確に一致させることが可能になるという更なる効果を奏する。 [0080] According to the above configuration, the approximate average pixel value that closely approximates the quantization target image can be obtained based on the restored quantization target image. For this reason, it is possible to more accurately match the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process. Play.
[0081] なお、上記動画像復号装置は、 1つの隣接ブロックにおける上記復元量子化対象 画像の画素値に基づ!/、て上記近似平均画素値を導出するものであってもよ!/、し、複 数の隣接ブロックにおける上記復元量子化対象画像の画素値に基づいて上記近似 平均画素値を導出するものであってもよレ、。 Note that the video decoding device may derive the approximate average pixel value based on the pixel value of the restored quantization target image in one adjacent block! /, The approximate average pixel value may be derived based on the pixel values of the restored quantization target image in a plurality of adjacent blocks.
[0082] また、上記復元量子化対象画像のあるブロックにおける平均画素値は、例えば、そ のブロックにおける周波数領域の復元量子化対象画像(上記量子化代表値を逆量 子化することにより得られる DCT係数に相当)の直流成分から算出する構成とするこ とが可能である。
[0083] 本発明に係る動画像復号装置は、各ブロックの上記近似平均画素値を、上記量子 化の方法を指定する量子化パラメータを参照することにより選択された当該ブロックと 相関のある、近似平均画素値導出済みの相関ブロックにおける上記復元量子化対 象画像の画素値に基づいて導出する近似平均画素値導出手段を更に備え、上記近 似平均画素値導出手段は、上記相関ブロックについて上記補正が行われない場合 、上記相関ブロックにおける上記復元量子化対象画像の平均画素値を、当該ブロッ クの近似平均画素値とし、上記相関ブロックについて上記補正が行われる場合、上 記相関ブロックにおける上記復元量子化対象画像の平均画素値と上記相関ブロック の近似平均画素値との差分値を、当該ブロックの近似平均画素値とする、ことが好ま しい。 Further, the average pixel value in a certain block of the restored quantization target image is obtained by, for example, inverse quantization of the restored quantization target image in the frequency domain in the block (the quantization representative value). It is possible to calculate from the DC component (corresponding to the DCT coefficient). [0083] The moving picture decoding apparatus according to the present invention provides an approximation that correlates the approximate average pixel value of each block with the block selected by referring to a quantization parameter that specifies the quantization method. Approximate average pixel value deriving means for deriving based on the pixel value of the restored quantization target image in the correlation block for which the average pixel value has already been derived, wherein the approximate average pixel value deriving means performs the correction for the correlation block. If the correction is performed on the correlation block when the average pixel value of the restored quantization target image in the correlation block is set as the approximate average pixel value of the block, the restoration in the correlation block is performed. The difference value between the average pixel value of the quantization target image and the approximate average pixel value of the correlation block is used as the approximate average pixel value of the block. Arbitrariness is preferred.
[0084] 上記構成によれば、上記量子化対象画像を良く近似する上記近似平均画素値を 得ること力 Sできる。このため、フィルタ処理が施された後の量子化対象画像と、逆フィ ルタ処理が施される前の復元量子化対象画像とをより一層正確に一致させることが 可能になるという更なる効果を奏する。 [0084] According to the above configuration, it is possible to obtain the approximate average pixel value that closely approximates the quantization target image. For this reason, it is possible to further accurately match the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process. Play.
[0085] なお、上記動画像復号装置においては、例えば、イントラ予測に用いる予測モード を参照し、各ブロックの上記近似平均画素値を精度よく導出することができる。より具 体的には、各ブロックに近接するブロックの中から、予測モードが該ブロックにおける 予測モードと一致するブロックを選択し、選択されたブロックにおける上記復元量子 化対象画像の平均画素値として近似平均画素値を導出することができる。 Note that the moving image decoding apparatus can accurately derive the approximate average pixel value of each block with reference to, for example, a prediction mode used for intra prediction. More specifically, a block whose prediction mode matches the prediction mode in the block is selected from among the blocks close to each block, and approximated as the average pixel value of the restored quantization target image in the selected block. An average pixel value can be derived.
[0086] 上記課題を解決するために、本発明に係る動画像符号化装置は、量子化対象画 像を複数のブロックに分割してブロック毎に量子化する動画像符号化装置であって、 上記量子化対象画像に対し、ブロック歪を発生させる周波数成分を除去するフィルタ 処理を施すフィルタ処理手段と、少なくとも 1つ以上のブロックについて、上記フィノレ タ処理が施された上記量子化対象画像の各画素の画素値から、該画素が属するブ ロックにおける上記量子化対象画像の平均画素値を近似する近似平均画素値を減 算する補正を行う量子化対象画像補正手段と、を備えている、ことを特徴としている。 [0086] In order to solve the above-described problem, a video encoding device according to the present invention is a video encoding device that divides a quantization target image into a plurality of blocks and quantizes each block. Filter processing means for performing a filtering process on the quantization target image to remove a frequency component that generates block distortion, and each of the quantization target images on which at least one block has been subjected to the finer processing. Quantization target image correction means for performing correction by subtracting an approximate average pixel value that approximates the average pixel value of the quantization target image in the block to which the pixel belongs from the pixel value of the pixel; It is characterized by.
[0087] 上記フィルタ処理手段は、上記量子化前の符号化対象画像から、ブロック歪を発生 させる周波数成分を除去する。このため、上記量子化の対象となる量子化対象画像
は、ブロック歪を発生させる周波数成分が予め除去されたものとなる。従って、上記フ ィルタ処理手段によるフィルタ処理が施された量子化対象画像を量子化'逆量子化し て得られる復元量子化対象画像は、ブロック歪が低減されたものとなる。しかも、上記 フィルタ処理手段により予め除去された周波数成分は、上記フィルタ処理手段のフィ ルタ処理の逆変換に相当する逆フィルタ処理により、復元することが可能である。す なわち、上記の構成を有する動画像符号化装置は、ブロック歪が低減された復号画 像を、特定の周波数成分を欠落させることなく復元し得る符号化データを生成するこ と力 Sできると!/、う効果を奏する。 [0087] The filter processing means removes a frequency component that generates block distortion from the encoding target image before quantization. Therefore, the quantization target image to be quantized above The frequency components that generate block distortion are removed in advance. Therefore, the restored quantization target image obtained by quantizing and dequantizing the quantization target image subjected to the filtering process by the filter processing means has reduced block distortion. Moreover, the frequency component previously removed by the filter processing means can be restored by inverse filter processing corresponding to the inverse transformation of the filter processing of the filter processing means. In other words, the moving picture coding apparatus having the above-described configuration can generate coded data that can restore a decoded image with reduced block distortion without losing a specific frequency component. And! /, Has the effect.
[0088] し力、も、上記の構成によれば、少なくとも 1つ以上のブロックについて、上記量子化 対象画像の各画素の画素値から、該画素が属するブロックにおける上記量子化対象 画像の平均画素値を近似する近似平均画素値を減算する補正が行われるので、上 記量子化対象画像の各ブロックの平均画素値を該ブロックの元の平均画素値以下 に低下させること力 Sできる。従って、上記量子化における量子化レベル間隔を小さく 設定することが可能になり、量子化により発生する量子化誤差を縮小できる。このた め、上記量子化の過程で発生する量子化誤差をより小さくすることができる。従って、 フィルタ処理が施された後の量子化対象画像と、逆フィルタ処理が施される前の復元 量子化対象画像とをより正確に一致させることができる。 According to the above configuration, the average power of the quantization target image in the block to which the pixel belongs is calculated from the pixel value of each pixel of the quantization target image for at least one block. Since correction for subtracting the approximate average pixel value that approximates the value is performed, it is possible to reduce the average pixel value of each block of the quantization target image below the original average pixel value of the block. Therefore, the quantization level interval in the quantization can be set small, and the quantization error caused by the quantization can be reduced. For this reason, the quantization error generated in the quantization process can be further reduced. Therefore, the quantization target image after the filtering process can be more accurately matched with the restored quantization target image before the inverse filtering process.
[0089] このため、上記逆量子化に際し、上記フィルタ処理により除去された周波数成分を より正確に復元すること力 Sできるようになる。すなわち、符号化対象画像を忠実に再 現した復号画像を復元し得る符号化データを生成することができるという効果を奏す [0089] For this reason, in the inverse quantization, it is possible to restore the frequency component removed by the filtering process more accurately. In other words, it is possible to generate encoded data that can restore a decoded image that faithfully reproduces the encoding target image.
[0090] 本発明に係る動画像符号化装置は、上記量子化対象画像の各ブロックについて、 当該ブロックにおける上記量子化対象画像の画素値を平均した補正前平均画素値 と、該補正前平均画素値から当該ブロックの上記近似平均画素値を減算した補正後 平均画素値とを算出する平均画素値算出手段と、上記量子化対象画像の各ブロック につ!/、て、上記補正前平均画素値と上記補正後平均画素値とを大小比較する補正 評価手段と、を更に備え、上記量子化対象画像補正手段は、上記補正評価手段に より上記補正後平均画素値が上記補正前平均画素値より小さいことが判定されたブ
ロックについて、上記補正を行うものである、ことが好ましい。 [0090] The moving image encoding apparatus according to the present invention includes, for each block of the quantization target image, an average pixel value before correction obtained by averaging pixel values of the quantization target image in the block, and the average pixel before correction. Average pixel value calculating means for calculating a corrected average pixel value obtained by subtracting the approximate average pixel value of the block from the value, and the average pixel value before correction for each block of the quantization target image! And a correction evaluation unit that compares the average pixel value after correction with the magnitude of the average pixel value after correction. The quantization target image correction unit includes a correction evaluation unit that causes the average pixel value after correction to be greater than the average pixel value before correction. The block determined to be small It is preferable that the above correction is performed for the lock.
[0091] 上記の構成によれば、上記補正前平均画素値と上記補正後平均画素値とが大小 比較され、上記補正後平均画素値が上記補正前平均画素値より小さくなるブロック に対して上記補正が行われる。このため、上記量子化対象画像の各ブロックの平均 画素値を、確実に該ブロックの元の平均画素値以下にすることができる。従って、上 記量子化における量子化レベル間隔をより小さく設定することが可能になり、量子化 により発生する量子化誤差を縮小できる。このため、フィルタ処理が施された後の量 子化対象画像と、逆フィルタ処理が施される前の復元量子化対象画像とをより一層 正確に一致させることが可能になる。すなわち、符号化対象画像をより忠実に再現し た復号画像を復元し得る符号化データを生成することができるという更なる効果を奏 する。 [0091] According to the above configuration, the average pixel value before correction and the average pixel value after correction are compared in magnitude, and the block for which the average pixel value after correction is smaller than the average pixel value before correction Correction is performed. For this reason, the average pixel value of each block of the quantization target image can be reliably made equal to or less than the original average pixel value of the block. Therefore, the quantization level interval in the above quantization can be set smaller, and the quantization error generated by the quantization can be reduced. For this reason, it is possible to more accurately match the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process. That is, there is an additional effect that encoded data that can restore a decoded image that more faithfully reproduces the encoding target image can be generated.
[0092] 本発明に係る動画像符号化装置は、上記量子化により得られた量子化代表値を逆 量子化する動画像復号装置に対し、上記量子化対象画像補正手段によって補正が 行われたブロックを指定するための補正ブロック指定情報を提供する補正ブロック指 定情報提供手段を更に備えている、ことが好ましい。 [0092] In the moving image encoding device according to the present invention, the quantization target image correcting unit corrects the moving image decoding device that inversely quantizes the quantized representative value obtained by the quantization. It is preferable that a correction block designation information providing unit for providing correction block designation information for designating a block is further provided.
[0093] 上記の構成によれば、当該動画像符号化装置において上記補正を行ったブロック を指定するための補正ブロック指定情報を上記動画像復号装置に提供することがで きる。このため、上記動画像復号装置は、該補正ブロック指定情報に基づいて、当該 動画像符号化装置が上記補正を行ったブロックと同じブロックについて、上記補正と 相補的な補正を行うことが可能になる。このため、フィルタ処理が施された後の量子 化対象画像と、逆フィルタ処理が施される前の復元量子化対象画像とをより一層正 確に一致させることが可能になる。すなわち、すなわち、符号化対象画像をより忠実 に再現した復号画像を復元し得る符号化データを生成することができるという更なる 効果を奏する。 [0093] According to the above configuration, it is possible to provide the moving picture decoding apparatus with corrected block designation information for designating the block subjected to the correction in the moving picture encoding apparatus. For this reason, the video decoding device can perform correction complementary to the correction on the same block as the block on which the video encoding device has performed the correction based on the correction block designation information. Become. For this reason, it is possible to match the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process more accurately. That is, there is an additional effect that encoded data that can restore a decoded image that more accurately reproduces the encoding target image can be generated.
[0094] 上記課題を解決するために、本発明に係る動画像復号装置は、ブロック歪を発生 させる周波数成分を除去するフィルタ処理が施された量子化対象画像をブロック毎 に量子化することにより得られた量子化代表値を、逆量子化する動画像復号装置で あって、少なくとも 1つ以上のブロックについて、上記逆量子化により復元された復元
量子化対象画像の各画素の画素値から、該画素が属するブロックにおける量子化誤 差を近似する近似量子化誤差を減算する補正を行う復元量子化対象画像補正手段 と、上記補正が施された復元量子化対象画像に対し、上記フィルタ処理の逆変換に 相当する逆フィルタ処理を施す逆フィルタ処理手段と、を備えている、ことを特徴とし ている。 [0094] In order to solve the above-described problem, the moving picture decoding apparatus according to the present invention quantizes a quantization target image subjected to a filter process for removing a frequency component that generates block distortion for each block. A video decoding device that inversely quantizes the obtained quantized representative value, wherein at least one block is restored by the above inverse quantization A restored quantization target image correction unit that performs correction by subtracting an approximate quantization error that approximates a quantization error in a block to which the pixel belongs from the pixel value of each pixel of the quantization target image; And an inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process on the restored quantization target image.
[0095] 当該動画像復号装置は、ブロック歪を発生させる周波数成分を除去するフィルタ処 理が施された量子化対象画像を量子化する。ここで、量子化対象画像は、予めプロ ック歪を発生させる周波数成分が除去されたものであるので、逆量子化して復元され る復元量子化対象画像におけるブロック歪は抑えられている。そして、復元量子化対 象画像は、上記逆フィルタ処理手段により、符号化の過程で除去された周波数成分 を復元される。従って、上記逆フィルタ処理を施された後の復元量子化対象画像は、 ブロック歪が低減され、かつ、特定の周波数成分が欠落することのない画像、すなわ ち量子化対象画像を良く近似する画像となる。 [0095] The moving picture decoding apparatus quantizes the quantization target image that has been subjected to the filter processing for removing the frequency component that generates block distortion. Here, since the quantization target image is obtained by removing the frequency component that generates the block distortion in advance, the block distortion in the restored quantization target image restored by inverse quantization is suppressed. The restored quantized image is restored by the inverse filter processing means with the frequency component removed during the encoding process. Therefore, the restored quantization target image that has been subjected to the above inverse filter processing is an image that has a reduced block distortion and does not lack a specific frequency component, that is, closely approximates the quantization target image. It becomes an image.
[0096] しかも、当該動画像復号装置は、該復元量子化対象画像から量化誤差を近似する 近似量子化誤差を減算する復号画像補正手段を備えており、上記逆フィルタ処理手 段に渡される復元量子化対象画像における量子化誤差は低減される。このため、上 記逆フィルタ処理の処理対象となる復元量子化対象画像は、上記フィルタ処理が施 された量子化対象画像をさらに良く近似するものとなる。従って、上記逆フィルタ処理 手段は、符号化の過程で除去された周波数成分をより正確に復元することができるよ うになる。すなわち、上記の構成によれば、符号化対象画像をより忠実に再現した復 号画像を得ること力できるとレ、う効果を奏する。 In addition, the moving picture decoding apparatus includes a decoded image correcting unit that subtracts an approximate quantization error that approximates a quantification error from the restored quantization target image, and is restored to the inverse filter processing means. The quantization error in the quantization target image is reduced. For this reason, the restored quantization target image that is the processing target of the above inverse filtering process is a better approximation of the quantization target image that has been subjected to the filtering process. Therefore, the inverse filter processing means can more accurately restore the frequency component removed during the encoding process. That is, according to the above configuration, it is possible to obtain a decoded image in which the encoding target image is reproduced more faithfully.
[0097] 本発明に係る動画像復号装置は、上記補正を行うべきブロックを指定する補正プロ ック指定情報を、上記量子化を行う動画像符号化装置から取得する補正ブロック指 定情報取得手段を更に備え、上記復元量子化対象画像補正手段は、上記補正プロ ック指定情報により指定されたブロックについて上記補正を行うものである、ことが好 ましい。 [0097] The moving picture decoding apparatus according to the present invention obtains correction block designation information acquisition means for acquiring correction block designation information for designating a block to be corrected from the moving picture encoding apparatus that performs the quantization. It is preferable that the restored quantization target image correcting unit performs the correction on the block specified by the correction block specifying information.
[0098] 上記構成によれば、当該動画像復号装置は、上記動画像符号化装置から上記補 正ブロック指定情報を取得し、上記補正ブロック指定情報により指定されたブロックに
対して上記補正を行う。これにより、上記動画像符号化装置は、上記補正を行うべき ブロックを、当該動画像符号化装置に指定することができるようになる。 [0098] According to the above configuration, the moving picture decoding apparatus acquires the correction block designation information from the moving picture encoding apparatus, and assigns the corrected block designation information to the block designated by the correction block designation information. The above correction is performed. As a result, the moving picture encoding apparatus can designate the block to be corrected to the moving picture encoding apparatus.
[0099] なお、上記補正ブロック指定情報は、例えば、符号化されて上記動画像符号化装 置から提供されるものであってもよい。この場合、上記補正ブロック指定情報取得手 段は、符号化データを復号して上記補正ブロック指定情報を取得する構成とすること ができる。 [0099] Note that the correction block designation information may be encoded and provided from the moving picture coding apparatus, for example. In this case, the correction block designation information acquisition means can be configured to decode the encoded data and acquire the correction block designation information.
[0100] 本発明に係る動画像復号装置において、各ブロックにおける上記近似量子化誤差 は、当該ブロックの近傍にあるブロックの各々における上記復元量子化対象画像の 平均画素値を加重平均した加重平均値と、当該ブロックにおける上記復元量子化対 象画像の平均画素値との差分値である、ことが好まし!/、。 [0100] In the video decoding device according to the present invention, the approximate quantization error in each block is a weighted average value obtained by weighted average of the average pixel values of the restored quantization target image in each of the blocks in the vicinity of the block. And the difference value from the average pixel value of the restored quantization target image in the block!
[0101] 上記加重平均値は、各ブロックにおける量子化誤差がない復元量子化対象画像を よく近似するものである。つまり、上記加重平均値を上記復元量子化対象画像の平 均画素値から減算した上記近似量子化誤差は、真の量子化誤差をよく近似したもの になる。従って、上記構成によれば、上記逆フィルタ処理手段に渡される復元量子化 対象画像における量子化誤差を効果的に低減することが可能になるという更なる効 果を奏する。 [0101] The weighted average value is a good approximation of the restored quantization target image having no quantization error in each block. That is, the approximate quantization error obtained by subtracting the weighted average value from the average pixel value of the restored quantization target image is a good approximation of the true quantization error. Therefore, according to the above configuration, there is a further effect that it is possible to effectively reduce the quantization error in the restored quantization target image passed to the inverse filter processing means.
[0102] 上記課題を解決するために、本発明に係る動画像符号化装置は、フィルタ処理手 段によりブロック歪を発生させる周波数成分を除去するフィルタ処理が施された符号 化対象画像を複数のブロックに分割してブロック毎に符号化する動画像符号化装置 であって、上記符号化により得られた符号化データを復号し局所復号画像を得る局 所復号手段と、各ブロックに対し、当該ブロックの近傍にあるブロックの各々おける上 記局所復号画像の平均画素値を加重平均した加重平均値と、当該ブロックにおける 上記局所復号画像の平均画素値とのうち、何れの値が当該ブロックにおける上記符 号化対象画像の平均画素値に近いかを判定する補正方法判定手段と、上記符号化 により得られた符号化データを復号する動画像復号装置に対し、上記加重平均値の 方が符号化対象画像の平均画素値に値が近!/、と判定されたブロックを、補正を行う べきブロックとして指示するための補正ブロック指示情報を提供する補正ブロック指 示情報提供手段と、を備えている、ことを特徴としている。
[0103] 上記構成によれば、各ブロックにつ!/、て、該ブロックの近傍にあるブロックの各々に おける上記局所復号画像の平均画素値を加重平均した加重平均値と、該ブロックに おける上記局所復号画像の平均画素値とのうち、何れの値が該ブロックにおける符 号化対象の平均画素値に値が近いかが判定される。そして、上記符号化により得ら れた符号化データを復号する動画像復号装置に対し、上記加重平均値の方が符号 化対象画像の平均画素値に値が近!/、と判定されたブロックにつ!/、て、復号画像の補 正を行うことを指示するための補正ブロック指示情報が提供される。 [0102] In order to solve the above-described problem, the moving picture encoding apparatus according to the present invention provides a plurality of encoding target images to which a filtering process for removing a frequency component that generates block distortion is performed by a filtering process. A moving picture coding apparatus that divides into blocks and codes each block, local decoding means for decoding the coded data obtained by the above coding to obtain local decoded images, and for each block, Any one of the weighted average value obtained by weighted averaging the average pixel value of the local decoded image in each block adjacent to the block and the average pixel value of the local decoded image in the block is the value in the block. The correction method determining means for determining whether the image is close to the average pixel value of the encoding target image and the moving image decoding apparatus for decoding the encoded data obtained by the encoding described above. Correction block instruction information that provides correction block instruction information for indicating a block that is determined to have a value that is closer to the average pixel value of the image to be encoded! / As a block that should be corrected. Providing means. [0103] According to the above configuration, for each block! /, A weighted average value obtained by weighted average of the average pixel values of the local decoded image in each of the blocks in the vicinity of the block, and in the block It is determined which of the average pixel values of the local decoded image is close to the average pixel value to be encoded in the block. Then, with respect to the moving picture decoding apparatus that decodes the encoded data obtained by the encoding, the weighted average value is determined to be closer to the average pixel value of the encoding target image! / Then, correction block instruction information for instructing to correct the decoded image is provided.
[0104] 一例として、動画像復号装置が、例えば、少なくとも 1つ以上のブロックについて、 復号画像の各画素の画素値から、該画素が属するブロックにおける近似量子化誤差 を減算する補正を行うものであり、また、各ブロックにおける上記近似量子化誤差が、 例えば、上記加重平均値を、該ブロックにおける上記復号画像の平均画素値から減 算した値であるとすると、上記動画像復号装置は、上記補正ブロック指示情報に基づ いた補正により、上記量子化誤差を有効に低減することができる。 [0104] As an example, the moving picture decoding apparatus performs, for example, correction for subtracting the approximate quantization error in the block to which the pixel belongs from the pixel value of each pixel of the decoded image for at least one or more blocks. If the approximate quantization error in each block is, for example, a value obtained by subtracting the weighted average value from the average pixel value of the decoded image in the block, the video decoding device The quantization error can be effectively reduced by the correction based on the correction block instruction information.
[0105] 本発明の他の目的、特徴、および優れた点は、以下に示す記載によって十分分か るであろう。また、本発明の利点は、添付図面を参照した次の説明で明白になるであ ろう。 [0105] Other objects, features, and advantages of the present invention will be sufficiently understood from the following description. The advantages of the present invention will be apparent from the following description with reference to the accompanying drawings.
図面の簡単な説明 Brief Description of Drawings
[0106] [図 1]本発明の第 1の実施形態に係る動画像復号装置の構成を示す機能ブロック図 である。 FIG. 1 is a functional block diagram showing a configuration of a video decoding device according to a first embodiment of the present invention.
[図 2]本発明の実施形態に係る動画像符号化装置の基本形態を示す機能ブロック図 である。 FIG. 2 is a functional block diagram showing a basic form of a moving picture coding apparatus according to an embodiment of the present invention.
[図 3]本発明の実施形態に係る動画像復号装置の基本形態を示す機能ブロック図で ある。 FIG. 3 is a functional block diagram showing a basic form of a video decoding apparatus according to an embodiment of the present invention.
[図 4]本発明の実施形態に係る動画像符号化装置が備えているフィルタ処理部によ るフィルタ処理の概要を示したフローチャートである。 FIG. 4 is a flowchart showing an outline of filter processing by a filter processing unit included in the video encoding device according to the embodiment of the present invention.
[図 5]図 4に示したフィルタ処理の作用を示すグラフである。 (a)は、フィルタ処理の対 象となる処理対象画像の画素値を表すグラフであり、(b)は、処理対象画像のブロッ ク毎の平均画素値を表すグラフであり、(c)は、(b)に示した平均画素値を用いた線
型補間により得られた予測値を表すグラフであり、(d)は、フィルタ出力画像の画素値 FIG. 5 is a graph showing the effect of the filter processing shown in FIG. (A) is a graph showing pixel values of the processing target image to be filtered, (b) is a graph showing average pixel values for each block of the processing target image, and (c) is a graph. Lines using average pixel values shown in (b) (D) is the pixel value of the filter output image.
[図 6]本発明の実施形態に係る動画像符号化装置および動画像復号装置が備えて いる逆フィルタ処理部による、逆フィルタ処理の概要を示したフローチャートである。 FIG. 6 is a flowchart showing an overview of inverse filter processing by an inverse filter processing unit included in a video encoding device and video decoding device according to an embodiment of the present invention.
[図 7]図 6に示した逆フィルタ処理の作用を示すグラフである。 (a)は、逆フィルタ処理 の対象となる処理対象画像の画素値を表すグラフであり、(b)は、処理対象画像のブ ロック毎の平均画素値を表すグラフであり、(c)は、(b)に示した平均画素値を用いた 線型補間により得られた予測値を表すグラフであり、(d)は、逆フィルタ出力画像の画 素値を表すグラフである。 FIG. 7 is a graph showing the operation of the inverse filter processing shown in FIG. (A) is a graph showing the pixel value of the processing target image to be subjected to the inverse filter processing, (b) is a graph showing the average pixel value for each block of the processing target image, and (c) is a graph. (B) is a graph showing the predicted value obtained by linear interpolation using the average pixel value shown in (b), and (d) is a graph showing the pixel value of the inverse filter output image.
[図 8]本発明の第 1の実施形態に係る動画像符号化装置の構成を示す機能ブロック 図である。 FIG. 8 is a functional block diagram showing a configuration of a video encoding device according to the first embodiment of the present invention.
[図 9]本発明の一実施形態を示すものであり、図 8に示した動画像符号化装置におけ る補正判定部の構成を示した機能ブロック図である。 FIG. 9 shows an embodiment of the present invention, and is a functional block diagram showing a configuration of a correction determination unit in the moving picture encoding apparatus shown in FIG.
園 10]本発明の一実施形態を示すものであり、図 8に示した動画像符号化装置、お よび、図 1に示した動画像復号装置における補正画像候補導出部の構成を示した機 能ブロック図である。 10] An embodiment of the present invention, showing a configuration of a moving image encoding device shown in FIG. 8 and a corrected image candidate deriving unit in the moving image decoding device shown in FIG. FIG.
園 11]本発明の一実施形態を示すものであり、図 8に示した動画像符号化装置、お よび、図 1に示した動画像復号装置における補正画像候補導出処理の流れを示した フローチャートである。 11] A flowchart showing an embodiment of the present invention, and showing a flow of a corrected image candidate derivation process in the moving picture encoding apparatus shown in FIG. 8 and the moving picture decoding apparatus shown in FIG. It is.
[図 12]本発明の第 2の実施形態に係る動画像符号化装置の構成を示す機能ブロック 図である。 FIG. 12 is a functional block diagram showing a configuration of a video encoding device according to a second embodiment of the present invention.
[図 13]本発明の第 2の実施形態に係る動画像復号装置の構成を示す機能ブロック図 である。 FIG. 13 is a functional block diagram showing a configuration of a video decoding device according to a second embodiment of the present invention.
[図 14]図 12に示した動画像符号化装置における修正方法決定処理の流れを示すフ ローチャートである。 FIG. 14 is a flowchart showing a flow of correction method determination processing in the video encoding apparatus shown in FIG. 12.
[図 15]本発明の第 2の実施形態に係る動画像符号化装置および動画像復号装置の 作用を示すものであり、各画素の画素値を示すグラフである。 FIG. 15 is a graph showing the operation of the moving picture encoding apparatus and moving picture decoding apparatus according to the second embodiment of the present invention, and showing the pixel value of each pixel.
園 16]本発明の一実施形態を示すものであり、図 12に示した動画像符号化装置、お
よび、図 13に示した動画像復号装置における、逆フィルタ入力修正処理の流れを示 したフローチャートである。 16] An embodiment of the present invention is shown, and the moving picture encoding device shown in FIG. 14 is a flowchart showing a flow of inverse filter input correction processing in the video decoding apparatus shown in FIG.
[図 17]図 2に示した動画像符号化装置、および、図 3に示した動画像復号装置にお ける、量子化誤差に起因する復号画像における歪を説明するためのグラフである。 園 18]従来の技術を示すものであり、デブロッキングフィルタを備えた動画像符号化 装置の構成を示す機能ブロック図である。 FIG. 17 is a graph for explaining distortion in a decoded image caused by a quantization error in the video encoding device shown in FIG. 2 and the video decoding device shown in FIG. 3. FIG. 18 is a functional block diagram showing a conventional technique and showing a configuration of a moving image encoding device including a deblocking filter.
[図 19]従来の技術を示すものであり、図 18に示した動画像符号化装置に対応する動 画像復号装置の構成を示す機能ブロック図である。 [Fig. 19] Fig. 19 is a functional block diagram showing a conventional technique and showing a configuration of a video decoding device corresponding to the video encoding device shown in Fig. 18.
[図 20]量子化の対象となる量子化対象画像、あるいは、フィルタ処理の対象となる処 理対象画像における、画像の分割パターンを示す説明図である。 FIG. 20 is an explanatory diagram showing an image division pattern in a quantization target image to be quantized or a processing target image to be filtered.
園 21]図 20に示した分割パターンにより複数のブロックに分割された画像における、 隣接する 2つのブロックを拡大して示した拡大図である。 21] An enlarged view showing two adjacent blocks in an image divided into a plurality of blocks according to the division pattern shown in FIG.
園 22]従来技術を示すものであり、デブロッキングフィルタの作用を示すグラフである 。(a)は、符号化対象画像の画素値を示すグラフであり、(b)は、ブロック歪を含む局 所復号画像の画素値を示すグラフであり、(c)は、デブロッキングフィルタ出力画像の 画素直を示すグラフである。 Sono 22] This is a graph showing the prior art and showing the action of the deblocking filter. (A) is a graph showing pixel values of an encoding target image, (b) is a graph showing pixel values of a locally decoded image including block distortion, and (c) is a deblocking filter output image. It is a graph which shows a pixel straight.
符号の説明 Explanation of symbols
300、 300a, 300b 動画像符号化装置 300, 300a, 300b video encoding device
400、 400a, 400b 動画像復号装置 400, 400a, 400b video decoding device
1 DCT部 1 DCT section
2 量子化部 2 Quantization part
3 可変長符号化部 (補正ブロック指定情報提供手段) 3 Variable length encoder (Correction block designation information providing means)
4 逆量子化部(逆量子化手段) 4 Inverse quantization section (inverse quantization means)
5 IDCT部 5 IDCT section
6 デブロッキングフィルタ処理部 6 Deblocking filter processor
7 フレームメモリ 7 frame memory
8 予測画像導出部 8 Predictive image deriving unit
10 符号化制御部
11 フィルタ処理部(フィルタ処理手段) 10 Coding control unit 11 Filter processing section (filter processing means)
12 逆フィルタ処理部(逆フィルタ処理手段) 12 Inverse filter processing unit (inverse filter processing means)
13 補正判定部 (平均画素値算出手段、補正評価手段) 13 Correction determination unit (average pixel value calculation means, correction evaluation means)
14 補正画像候補導出部 (近似平均画素値導出手段) 14 Corrected image candidate derivation unit (approximate average pixel value derivation means)
15 補正画像決定部(量子化対象画像補正手段、 15 Correction image determination unit (quantization target image correction means,
復元量子化対象画像補正手段) Restoration quantization target image correction means)
16 逆フィルタ入力修正部(復号画像補正手段) 16 Inverse filter input correction unit (decoded image correction means)
17 修正方法決定部 (補正方法判定手段) 17 Correction method decision unit (Correction method judgment means)
20、 20a, 20b 可変長復号部 (補正ブロック指定情報取得手段) 20, 20a, 20b Variable length decoder (correction block designation information acquisition means)
21 符号化制御部 21 Coding control unit
50 平均画素値算出部 (平均画素値算出手段) 50 Average pixel value calculation unit (mean pixel value calculation means)
51 補正画像候補評価部 (補正評価手段) 51 Corrected image candidate evaluation section (correction evaluation means)
52 予測誤差量記録メモリ 52 Prediction error recording memory
53 補正量導出部 53 Correction amount deriving section
54 補正画像候補生成部 54 Corrected image candidate generator
55 予測誤差量導出部 55 Prediction error derivation unit
発明を実施するための最良の形態 BEST MODE FOR CARRYING OUT THE INVENTION
[0108] 〔基本構成〕 [Basic configuration]
はじめに、動画像符号化装置および動画像復号装置の基本構成について、図 2〜 図 7に基づいて説明する。その後、当該基本構成における問題点を指摘した上で、 上記基本構成を変形することにより実現される、本実施の形態に係る動画像符号化 装置および動画像復号装置につ!/、て説明する。 First, the basic configuration of the video encoding device and the video decoding device will be described with reference to FIGS. Then, after pointing out the problems in the basic configuration, the video encoding device and the video decoding device according to the present embodiment realized by modifying the basic configuration will be described. .
[0109] (動画像符号化装置の基本構成) [0109] (Basic configuration of video encoding device)
図 2は、動画像符号化装置 300の要部構成を示した機能ブロック図である。図 1に 示したように、動画像符号化装置 300は、 DCT部 1、量子化部 2、可変長符号化部 3 、逆量子化部 4、 IDCT部 5、フレームメモリ 7、予測画像導出部 8、符号化制御部 21 、フィルタ処理部 11、及び、逆フィルタ処理部 12を備えている。 FIG. 2 is a functional block diagram showing a main configuration of the moving picture coding apparatus 300. As shown in FIG. 1, the moving picture coding apparatus 300 includes a DCT unit 1, a quantization unit 2, a variable length coding unit 3, an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, and a predicted image derivation unit. 8, an encoding control unit 21, a filter processing unit 11, and an inverse filter processing unit 12 are provided.
[0110] 図 2の動画像符号化装置 300と従来の動画像符号化装置 100 (図 18)との主な相
違点は、動画像符号化装置 300が、従来のデブロッキングフィルタ 6の代わりに、フィ ルタ処理部 11と逆フィルタ処理部 12とを備えており、また、従来の符号化制御部 10 の代わりに、符号化制御部 21を備えている点である。図 2において、従来の動画像 符号化装置 100と同一機能を有するブロックについては、図 18と同一の名称および 符号を用いて示し、その説明を省略する。 [0110] Main Phases of the Video Encoding Device 300 in Fig. 2 and the Conventional Video Encoding Device 100 (Fig. 18) The difference is that the moving picture coding apparatus 300 includes a filter processing unit 11 and an inverse filter processing unit 12 instead of the conventional deblocking filter 6, and instead of the conventional coding control unit 10. In addition, the encoding control unit 21 is provided. In FIG. 2, blocks having the same functions as those of the conventional moving image encoding apparatus 100 are denoted by the same names and reference numerals as those in FIG. 18, and description thereof is omitted.
[0111] 動画像符号化装置 300に特徴的な構成である、符号化制御部 21、フィルタ処理部 11、および、逆フィルタ処理部 12の機能について説明すれば、以下の通りである。 [0111] The functions of the encoding control unit 21, the filter processing unit 11, and the inverse filter processing unit 12, which are characteristic configurations of the moving image encoding device 300, are described as follows.
[0112] 符号化制御部 21は、動画像符号化装置 100 (図 18)における符号化制御部 10の 諸機能に加えて、逆フィルタ処理部 12に対して逆フィルタ処理を実行するタイミング を指示する制御信号を送出する機能を有する。該制御信号は、所定の符号化処理 単位毎(例えばブロック毎、フレーム毎)に送出する。 [0112] In addition to the various functions of the encoding control unit 10 in the moving image encoding device 100 (Fig. 18), the encoding control unit 21 instructs the inverse filter processing unit 12 to execute the inverse filter processing. Has a function of transmitting a control signal. The control signal is transmitted every predetermined encoding processing unit (for example, every block or every frame).
[0113] フィルタ処理部 11は、処理対象画像からブロック歪を発生させる特定の周波数成 分 FLを除去するフィルタ処理を行う。フィルタ処理部 11が処理対象とする処理対象 画像は、符号化対象画像である。 DCT部 1には、フィルタ処理部 11によるフィルタ処 理が施された符号化対象画像 (フィルタ出力画像)から、予測画像導出部 8により生 成された予測画像が減算された差分画像が、量子化対象画像として供給される。 [0113] The filter processing unit 11 performs filter processing to remove a specific frequency component FL that generates block distortion from the processing target image. The processing target image to be processed by the filter processing unit 11 is an encoding target image. In the DCT unit 1, a differential image obtained by subtracting the prediction image generated by the prediction image deriving unit 8 from the encoding target image (filter output image) subjected to the filter processing by the filter processing unit 11 is quantized. Supplied as a target image.
[0114] 一方、逆フィルタ処理部 12は、符号化制御部 21から供給される制御信号により指 示されたタイミングで、フレームメモリ 7に記録されている局所復号画像を取得する。 逆フィルタ処理部 12は、この局所復号画像を処理対象画像とし、該処理対象画像に 対してフィルタ処理部 11が行うフィルタ処理の逆変換に相当する逆フィルタ処理を行 う。逆フィルタ処理部 12による逆フィルタ処理が施された局所復号画像(逆フィルタ 出力画像)は、参照画像としてフレームメモリ 7に蓄積され、予測画像導出部 8による 次の予測画像の生成に利用される。 On the other hand, the inverse filter processing unit 12 acquires a locally decoded image recorded in the frame memory 7 at the timing indicated by the control signal supplied from the encoding control unit 21. The inverse filter processing unit 12 uses the locally decoded image as a processing target image, and performs an inverse filtering process corresponding to the inverse transformation of the filter processing performed by the filter processing unit 11 on the processing target image. The locally decoded image (inverse filter output image) that has been subjected to the inverse filter processing by the inverse filter processing unit 12 is stored in the frame memory 7 as a reference image, and is used by the predicted image deriving unit 8 to generate the next predicted image. .
[0115] DCT部 1と量子化部 2とは、量子化対象画像を複数のブロックに分割して各ブロッ クの画像データを量子化するものである。従って、該量子化により得られた量子化代 表値を逆量子化して復元された復元量子化対象画像に予測画像を加算した復号画 像や局所復号画像にはブロック歪が含まれ得る。すなわち、予測画像を生成するた めに動画像符号化装置 300の内部で生成される局所復号画像、および、後述の動
画像復号装置 400で生成される復号画像にはブロック歪が含まれ得る。しかしながら 、動画像符号化装置 300において、 DCT部 1に供給される量子化対象画像は、フィ ルタ処理部 11よるフィルタ処理が施されたフィルタ出力画像と予測画像の差分画像 である。ここで、フィルタ処理部 11は、ブロック歪を発生させる周波数成分 FLを取り 除くよう処理対象画像に作用するので、量子化'逆量子化の過程で発生するブロック 歪を有効に低減することができる。 [0115] The DCT unit 1 and the quantization unit 2 divide the quantization target image into a plurality of blocks and quantize the image data of each block. Accordingly, block distortion may be included in a decoded image or a local decoded image obtained by adding a predicted image to a restored quantization target image restored by inverse quantization of the quantization representative value obtained by the quantization. That is, a locally decoded image generated inside the video encoding device 300 to generate a predicted image, and a video to be described later. The decoded image generated by the image decoding device 400 may include block distortion. However, in the moving picture coding apparatus 300, the quantization target image supplied to the DCT unit 1 is a difference image between the filter output image subjected to the filter processing by the filter processing unit 11 and the predicted image. Here, since the filter processing unit 11 acts on the processing target image so as to remove the frequency component FL that generates block distortion, it is possible to effectively reduce block distortion generated in the process of quantization and dequantization. .
[0116] 換言すれば、従来の動画像符号化装置 100では量子化処理によって失われてい た空間周波数成分を、動画像符号化装置 300では、フィルタ処理部 11にて一旦除 去し、逆フィルタ処理部 12にて復元することにより、量子化処理の影響を回避して、 ブロック歪の発生を抑えることができる。 In other words, the spatial frequency component lost in the quantization process in the conventional video encoding device 100 is temporarily removed by the filter processing unit 11 in the video encoding device 300, and the inverse filter is used. By restoring by the processing unit 12, it is possible to avoid the influence of the quantization process and suppress the occurrence of block distortion.
[0117] また、フィルタ処理部 11および逆フィルタ処理部 12は、従来の動画像符号化装置 [0117] Also, the filter processing unit 11 and the inverse filter processing unit 12 are provided with a conventional moving picture encoding device.
100におけるデブロッキングフィルタ処理部 6とは異なり、後述するとおり、各ブロック における処理前後の平均画素値 (例えば、平均輝度レベル)を保つよう構成すること ができる。従って、デブロッキングフィルタ処理に起因する、画像のボケや動画再生 時のチラツキなどの問題を回避することができる。 Unlike the deblocking filter processing unit 6 in 100, as described later, it can be configured to maintain the average pixel value (for example, average luminance level) before and after processing in each block. Therefore, it is possible to avoid problems such as image blurring and flickering during moving image playback caused by the deblocking filter processing.
[0118] (動画像復号装置の基本構成) [0118] (Basic configuration of video decoding device)
図 3は、図 2に示した動画像符号化装置 300に対応する動画像復号装置 400の概 略構成を示した機能ブロック図である。図 3に示したように、動画像復号装置 400は、 逆量子化部 4、 IDCT部 5、フレームメモリ 7、予測画像導出部 8、可変長復号部 20、 および、逆フィルタ処理部 12を備えている。 FIG. 3 is a functional block diagram showing a schematic configuration of a moving picture decoding apparatus 400 corresponding to the moving picture encoding apparatus 300 shown in FIG. As shown in FIG. 3, the video decoding device 400 includes an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, a predicted image derivation unit 8, a variable length decoding unit 20, and an inverse filter processing unit 12. ing.
[0119] 図 3の動画像復号装置 400と従来の動画像復号装置 200 (図 19)との相違点は、 動画像復号装置 400が、従来のデブロッキングフィルタ 6の代わりに、逆フィルタ処理 部 12を備えている点である。図 3において、従来の動画像復号装置 200と同一機能 を有するブロックについては、図 19と同一の名称および符号を用いて示し、その説 明を省略する。 [0119] The difference between the moving picture decoding apparatus 400 of Fig. 3 and the conventional moving picture decoding apparatus 200 (Fig. 19) is that the moving picture decoding apparatus 400 uses an inverse filter processing unit instead of the conventional deblocking filter 6. It is a point with 12. In FIG. 3, blocks having the same functions as those of the conventional video decoding device 200 are denoted by the same names and symbols as in FIG. 19, and the description thereof is omitted.
[0120] 動画像復号装置 400が復号する符号化データは、動画像符号化装置 300におい て、ブロック歪を発生させる周波数成分 FLが除去された画像に基づ!/、て生成された ものである。動画像復号装置 400の可変長復号部 20は、この符号化データを復号
する。逆量子化部 4と IDCT部 5とは、該復号により得られた値を逆量子化する。逆量 子化により復元された復元量子化対象画像は、原画像から予測画像を減算して得ら れた差分画像に相当するものである。動画像復号装置 400は、この復元された差分 画像に予測画像導出部 8により生成された予測画像を加算することにより、復号画像 を生成する。 [0120] The encoded data decoded by the video decoding device 400 is generated by the video encoding device 300 based on the image from which the frequency component FL that generates block distortion is removed! /. is there. The variable length decoding unit 20 of the video decoding device 400 decodes this encoded data. To do. The inverse quantization unit 4 and the IDCT unit 5 perform inverse quantization on the value obtained by the decoding. The restored quantization target image restored by inverse quantization corresponds to a difference image obtained by subtracting the predicted image from the original image. The moving picture decoding apparatus 400 generates a decoded image by adding the predicted image generated by the predicted image deriving unit 8 to the restored difference image.
[0121] 動画像復号装置 400が備えている逆フィルタ処理部 12は、動画像符号化装置 30 0が備えている逆フィルタ処理部 12と同一の逆フィルタ処理を行う。すなわち、逆フィ ルタ処理部 12は、ブロック歪を発生させる周波数成分 FLが欠落している復号画像に 対し、フィルタ処理により除去された周波数成分 FLを復元するように作用する。逆フ ィルタ処理部 12による逆フィルタ処理が施された逆フィルタ出力画像は、予測画像を 生成するための参照画像として予測画像導出部 8により参照されるとともに、再生画 像としてディスプレイ等に出力される。 [0121] The inverse filter processing unit 12 included in the video decoding device 400 performs the same inverse filter processing as the inverse filter processing unit 12 included in the video encoding device 300. That is, the inverse filter processing unit 12 acts on the decoded image lacking the frequency component FL that generates block distortion to restore the frequency component FL removed by the filter processing. The inverse filter output image that has been subjected to the inverse filter processing by the inverse filter processing unit 12 is referred to by the prediction image deriving unit 8 as a reference image for generating a prediction image, and is output to a display or the like as a reproduction image. The
[0122] 以上のようにして、逆フィルタ処理部 12の作用により、符号化対象画像から除去さ れた周波数成分 FLが、再生画像あるいは参照画像において復元される。すなわち、 動画像復号装置 400は、ブロック歪が低減されていると同時に、特定の周波数成分 が欠落することのない再生画像を出力することができる。また、ブロック歪が低減され ていると同時に、特定の周波数成分が欠落することのない参照画像に基づいて予測 画像導出部 8により予測画像を生成することができる。 [0122] As described above, the frequency component FL removed from the encoding target image by the operation of the inverse filter processing unit 12 is restored in the reproduced image or the reference image. That is, the moving picture decoding apparatus 400 can output a reproduced picture in which a specific frequency component is not lost at the same time that the block distortion is reduced. In addition, the predicted image can be generated by the predicted image deriving unit 8 based on a reference image in which specific frequency components are not lost at the same time that block distortion is reduced.
[0123] (フィルタ処理の詳細) [0123] (Details of filtering)
次に、動画像符号化装置 300に含まれるフィルタ処理部 11が行うフィルタ処理に ついて詳しく説明する。 Next, filter processing performed by the filter processing unit 11 included in the moving image encoding device 300 will be described in detail.
[0124] フィルタ処理部 11は、水平方向のフィルタ処理と垂直方向のフィルタ処理とを、フィ ルタ処理の対象となる処理対象画像を複数のブロックに分割して実行する。ここで、 フィルタ処理部 11が処理対象画像を分割する分割パターンは、図 20と図 21とに示 したとおりであり、 DCT部 1と量子化部 2とが量子化のために量子化対象画像を分割 する分割パターンと同一である。 [0124] The filter processing unit 11 performs horizontal filter processing and vertical filter processing by dividing a processing target image to be filtered into a plurality of blocks. Here, the division pattern in which the filter processing unit 11 divides the processing target image is as shown in FIGS. 20 and 21, and the DCT unit 1 and the quantization unit 2 perform the quantization target image for quantization. This is the same as the division pattern for dividing.
[0125] フィルタ処理部 11は、当該フィルタ処理部 11が出力するフィルタ出力画像におけ るブロック Bの画像データを、処理対象画像における当該ブロック Bの画像データと
当該ブロック に隣接するブロックの画像データとから算出する。水平方向のフィノレ タ処理においては、ブロック Bの画像データが、当該ブロック Bの右側に隣接するブ ロック B の画像データを参照して算出され、垂直方向のフィルタ処理においては、 ブロック Bの画像データが、当該ブロックの下側に隣接するブロック B の画像デー n n+W [0125] The filter processing unit 11 uses the image data of the block B in the filter output image output from the filter processing unit 11 as the image data of the block B in the processing target image. It is calculated from the image data of the block adjacent to the block. In horizontal finisher processing, the image data of block B is calculated with reference to the image data of block B adjacent to the right side of the block B. In vertical filtering, the image data of block B is calculated. Is the image data n n + W of block B adjacent to the lower side of the block.
タを参照して算出される。 Calculated with reference to the data.
[0126] 以下、水平方向のフィルタ処理においてフィルタ処理部 11が実行するフィルタ処理 演算について、図 4と図 5とを参照しながら説明する。なお、以下では、 1つのブロック Bの画素値 (例えば、輝度レベル)を算出するためのフィルタ処理演算について説明 する力 フィルタ処理部 11は、以下に説明するフィルタ処理演算を、全ての隣接 2ブ ロックについて繰り返すことにより、水平方向のフィルタ処理を完了する。なお、上記 繰り返しは、(B 、B )、 (B 、B )、 (B 、B ) · · ·というように、隣接する偶数番目と奇 Hereinafter, the filter processing calculation executed by the filter processing unit 11 in the horizontal filter processing will be described with reference to FIG. 4 and FIG. In the following description, the force filter processing unit 11 for describing the filter processing calculation for calculating the pixel value (for example, the luminance level) of one block B performs the filter processing calculation described below for all adjacent two blocks. Repeating the lock completes the horizontal filtering process. Note that the above repetitions are the odd and odd numbers adjacent to each other, such as (B, B), (B, B), (B, B)
1 2 3 4 5 6 1 2 3 4 5 6
数番目のブロックを対にし、これら全ての対について上記フィルタ処理演算を実行す るものであってもよいし、(B 、 B )、 (B 、 B )、 (B 、 B ) · · ·というように、全てのブロッ A pair of several blocks may be paired, and the above filtering processing may be executed for all of these pairs. (B, B), (B, B), (B, B) So that all the blocks
1 2 2 3 3 4 1 2 2 3 3 4
クについて、次のブロックを参照しながら、上記フィルタ処理演算を実行するものであ つても良い。ただし、これらの繰り返しにおいて、隣接しないブロック同士の対、例え ば、画像右端のブロック B (kは整数)と該ブロック下段左端に位置する次のプロ k XW- 1 The above filtering processing calculation may be executed with reference to the next block. However, in these repetitions, a pair of non-adjacent blocks, for example, block B (k is an integer) at the right end of the image and the next program k XW-1 located at the lower left end of the block
ック B とからなる対に対しては、上記フィルタ処理を行わないものとする。 The above filter processing is not performed for the pair consisting of ACK B.
k XW k XW
[0127] 図 4は、フィルタ処理部 11が実行するフィルタ処理演算を概略的に説明するフロー チャートである。図 4に示したように、フィルタ処理部 11によるフィルタ処理演算は、平 均画素値を算出するステップ S1と、予測値を算出するステップ S2と、フィルタ出力画 像を算出するステップ S3とを含んでいる。 FIG. 4 is a flowchart for schematically explaining the filter processing calculation executed by the filter processing unit 11. As shown in FIG. 4, the filter processing calculation by the filter processing unit 11 includes step S1 for calculating the average pixel value, step S2 for calculating the predicted value, and step S3 for calculating the filter output image. It is out.
[0128] ステップ S1〜S3について更に詳しく説明すれば以下の通りである。なお、以下の 説明では、ブロック Bに属する 4行 4列に配列された 16画素のうち、 V行目に配列さ れた 4画素の画素値を算出するフィルタ処理演算につ!/、て述べる。フィルタ処理部 1 1は、以下に述べるフィルタ処理演算を、ブロック Bの 1行目力、ら 4行目について、順 次、あるいは、並列的に実行することにより、ブロック Bに属する全ての画素の画素 値を算出する。 [0128] Steps S1 to S3 will be described in more detail as follows. In the following description, the filter processing operation for calculating the pixel value of the 4 pixels arranged in the Vth row out of the 16 pixels arranged in 4 rows and 4 columns belonging to the block B will be described as! / . The filter processing unit 1 1 performs the filtering processing described below on the first row force of block B and the fourth row in order or in parallel, so that all the pixels belonging to block B are processed. Calculate the value.
[0129] (ステップ S1) フィルタ処理部 11は、処理対象画像におけるブロック Bの V行目に
酉己列された 4画素の平均画素値く p 〉と、処理対象画像におけるブロック B + ιの V 行目に配列された 4画素の平均画素値く p 〉とを算出する。フィルタ処理部 11 n+ l、 [0129] (Step S1) The filter processing unit 11 performs processing on the Vth row of the block B in the processing target image. The average pixel value p> of the four pixels arranged in the self-sequence and the average pixel value p> of the four pixels arranged in the Vth row of the block B + ι in the processing target image are calculated. Filter processing unit 11 n + l,
力 s、これらの平均画素値を算出するための算出式は以下の通りである。 The calculation formula for calculating the force s and the average pixel value is as follows.
[0131] ここで、 p (n、u、v)は、処理対象画像の画素(n、u、v)における画素値である。図 5 の(a)は、処理対象画像の画素値を示したグラフである。図 5の(b)は、上記ステップ S 1にお!/、て得られた、平均画素値を表すグラフである。 Here, p (n, u, v) is a pixel value in the pixel (n, u, v) of the processing target image. (A) of FIG. 5 is a graph showing pixel values of the processing target image. (B) of FIG. 5 is a graph showing the average pixel value obtained by! / In step S1.
[0132] (ステップ S2) フィルタ処理部 11は、ステップ S 1にて得られた平均画素値 < p [0132] (Step S2) The filter processing unit 11 determines that the average pixel value obtained in Step S 1 <p
、 ,
〉と< 〉とを用いた線型補間により、ブロック Bの V行目の各画素についての 予測値 P (n、 u、 V)と、ブロック B の V行目の各画素についての予測値 p (n+ 1 pred n+ 1 pred> And <>, the predicted value P (n, u, V) for each pixel in the V row of block B and the predicted value p ( n + 1 pred n + 1 pred
、 u、v)とを算出する。フィルタ処理部 11が予測値 p (1、11、 )と (n+ l、u、v) pred pred , U, v). The filter processing unit 11 calculates the predicted values p (1, 11,) and (n + l, u, v) pred pred
とを算出するための算出式は以下の通りである。 The calculation formula for calculating is as follows.
[0133] [数 12] ppred(n,u, v) = - (〈 〉 - „+1, )" + (11〈/ 〉 - 3 リノ) [0133] [ Equation 12] p pred (n, u, v) =-(〈〉-„ +1 ,) '+ (11 〈/〉-3 Reno)
[0134] [数 13] (" + 1,", = - 《 〉 -〈; 〉)"+ ( ', + 5 ) [0134] [Equation 13] ("+ 1,", =-《〉-〈;〉)) + (', + 5 )
[0135] 図 5の(c)は、上記ステップ S2により得られた、予測値を表したグラフである。 [0135] (c) of FIG. 5 is a graph showing the predicted value obtained in step S2.
[0136] (ステップ S3) フィルタ処理部 11は、ステップ S2にて得られた予測値 p (n、 u、 v pred [0136] (Step S3) The filter processing unit 11 calculates the predicted value p (n, u, v pred obtained in Step S2
)と、ステップ S Iにて得られたブロック Bの平均画素値 < p 〉との差を処理対象画 像から除去すべき除去成分とし、処理対象画像の画素値 p (n、 u、 v)から該除去成 分を減算することにより、フィルタ出力画像の画素値! (n、u、v)を算出する。フィル タ処理部 11のフィルタ出力画像の画素値 p' (n、u、v)を算出するために用いる算出 式は以下の通りである。 ) And the average pixel value <p> of block B obtained in step SI as a removal component to be removed from the processing target image, and from the pixel value p (n, u, v) of the processing target image By subtracting the removed component, the pixel value of the filter output image! Calculate (n, u, v). The calculation formula used to calculate the pixel value p ′ (n, u, v) of the filter output image of the filter processing unit 11 is as follows.
[0137] [数 14]
p n,u,v) = p(n,u,v) - {ppred in, u,v) - (p^)} [0137] [Equation 14] pn, u, v) = p (n, u, v)-{p pred in, u, v)-(p ^)}
[0138] 図 5の(d)は、上記ステップ S3により得られた、フィルタ出力画像の画素値を表した グラフである。 [0138] (d) of FIG. 5 is a graph showing pixel values of the filter output image obtained in step S3.
[0139] ここで、フィルタ出力画像におけるブロック Bの平均画素値は、処理対象画像にお けるブロック Bの平均画素値と一致する、すなわち、フィルタ処理部 11は、各ブロック の平均画素値を処理の前後で不変に保つものである点に注意されたい。このため、 当該フィルタ処理による動画像のボケやチラツキの誘発を防止することが可能になる [0139] Here, the average pixel value of block B in the filter output image matches the average pixel value of block B in the processing target image, that is, the filter processing unit 11 processes the average pixel value of each block. Please note that it is something that remains unchanged before and after. For this reason, it is possible to prevent blurring and flickering of moving images due to the filter processing.
[0140] フィルタ処理部 11は、上述のように水平方向のフィルタ処理を行った後、垂直方向 のフィルタ処理を行う。垂直方向のフィルタ処理演算は、ブロック Bの画像データを、 該ブロック Bnの下側に隣接するブロック B を参照して算出するものである力 その n+W [0140] The filter processing unit 11 performs the filtering process in the vertical direction after performing the filtering process in the horizontal direction as described above. The vertical filter processing operation is a force that calculates the image data of block B with reference to block B adjacent to the lower side of block Bn.
算出方法については水平方向のフィルタ処理と同様であるので、その説明を省略す The calculation method is the same as the horizontal filtering process, so the explanation is omitted.
[0141] (逆フィルタ処理の詳細) [0141] (Details of inverse filtering)
次に、動画像符号化装置 300、および、動画像復号装置 400に含まれる逆フィルタ 処理部 12が行う逆フィルタ処理について説明する。なお、以下の説明においては、 符号化もしくは復号処理を 1画面分行うごとに逆フィルタ処理が実行されるものとする 。すなわち、逆フィルタ処理が実行される際には、 IDCT部 5により復元された差分画 像と予測画像の和として得られる復号画像が 1画面分フレームメモリ 7に記録されて いるものとする。 Next, the inverse filter processing performed by the inverse filter processing unit 12 included in the moving image encoding device 300 and the moving image decoding device 400 will be described. In the following description, it is assumed that the inverse filter process is executed every time encoding or decoding process is performed for one screen. That is, when the inverse filter process is executed, a decoded image obtained as the sum of the difference image restored by the IDCT unit 5 and the predicted image is recorded in the frame memory 7 for one screen.
[0142] 逆フィルタ処理部 12は、フィルタ処理部 11と同様、水平方向の逆フィルタ処理と垂 直方向の逆フィルタ処理とを、処理対象画像を複数のブロックに分割して実行する。 ここで、逆フィルタ処理部 12が処理対象画像を分割する分割パターンは、フィルタ処 理部 11が処理対象画像を分割する分割パターンと同一である。 [0142] Similar to the filter processing unit 11, the inverse filter processing unit 12 executes the horizontal direction reverse filter processing and the vertical direction reverse filter processing by dividing the processing target image into a plurality of blocks. Here, the division pattern in which the inverse filter processing unit 12 divides the processing target image is the same as the division pattern in which the filter processing unit 11 divides the processing target image.
[0143] 逆フィルタ処理部 12は、ブロック Bの画像データを、処理対象画像における当該ブ ロック Bの画像データ、および、当該ブロック Bに隣接するブロックの画像データから 算出する。具体的には、水平方向のフィルタ処理においては、ブロック Bの画像デー
タを、処理対象画像にぉレ、て当該ブロック の右側に隣接するブロック + 1画像デ ータを参照して算出し、垂直方向のフィルタ処理においては、ブロック Bの画像デー タを、当該ブロック Bの下側に隣接するブロック B の画像データを参照して算出 n n+W [0143] The inverse filter processing unit 12 calculates the image data of the block B from the image data of the block B in the processing target image and the image data of the block adjacent to the block B. Specifically, in horizontal filtering, the image data of block B Is calculated by referring to the block + 1 image data adjacent to the right side of the block and the image data of block B in the vertical filter processing. Calculated by referring to the image data of block B adjacent below B n n + W
する。 To do.
[0144] 以下、水平方向の逆フィルタ処理において逆フィルタ処理部 12が実行する逆フィ ルタ処理演算について、図 6と図 7とを参照しながら説明する。なお、以下では、 1つ のブロック Bの画素値(例えば輝度レベル)を算出するための逆フィルタ処理演算に ついて説明するが、逆フィルタ処理部 12は、以下に説明するフィルタ処理演算を、全 ての隣接 2ブロックについて繰り返すことにより、水平方向のフィルタ処理を完了する [0144] Hereinafter, the inverse filter processing calculation executed by the inverse filter processing unit 12 in the horizontal inverse filter processing will be described with reference to FIGS. 6 and 7. FIG. In the following, the inverse filter processing calculation for calculating the pixel value (for example, the luminance level) of one block B will be described. However, the inverse filter processing unit 12 performs all the filtering processing operations described below. Repeat for two adjacent blocks to complete horizontal filtering
〇 Yes
[0145] 図 6は、逆フィルタ処理部 12が実行する逆フィルタ処理演算を概略的に説明するフ ローチャートである。図 6に示したように、逆フィルタ処理部 12によるフィルタ処理演 算は、平均画素値を算出するステップ T1と、予測値を算出するステップ T2と、逆フィ ルタ出力画像を算出するステップ T3とを含んでいる。 FIG. 6 is a flowchart for schematically explaining the inverse filter processing calculation executed by the inverse filter processing unit 12. As shown in FIG. 6, the filtering process by the inverse filter processing unit 12 includes a step T1 for calculating an average pixel value, a step T2 for calculating a predicted value, and a step T3 for calculating an inverse filter output image. Is included.
[0146] ステップ T1〜T3について更に詳しく説明すれば以下の通りである。なお、以下の 説明では、ブロック Βに属する 4行 4列に配列された 16画素のうち、 V行目に配列さ れた 4画素の画素値を算出する逆フィルタ処理演算につ!/、て述べる。逆フィルタ処理 部 12は、以下に述べる逆フィルタ処理演算を、ブロック Βの 1行目力、ら 4行目につい て、順次、あるいは、並列的に実行することにより、ブロック Βに属する全ての画素の 画素値を算出するものである。 [0146] Steps T1 to T3 will be described in more detail as follows. In the following explanation, among the 16 pixels arranged in 4 rows and 4 columns belonging to block Β, the inverse filter processing operation for calculating the pixel values of 4 pixels arranged in the V row! /, State. The inverse filter processing unit 12 performs the inverse filter processing operation described below on the first row of the block 、, the fourth row, in sequence or in parallel, so that all the pixels belonging to the block の are processed. The pixel value is calculated.
[0147] (ステップ T1) 逆フィルタ処理部 12は、処理対象画像におけるブロック Βの V行目 に配列された 4画素の平均画素値 < Ρ 〉と、処理対象画像におけるブロック Β の V行目に配列された 4画素の平均画素値 < Ρ 〉とを算出する。逆フィルタ処理 η+ 1、 [0147] (Step T1) The inverse filter processing unit 12 calculates the average pixel value <Ρ> of the four pixels arranged in the V row of the block に お け る in the processing target image and the V row of the block に お け る in the processing target image. Calculate the average pixel value <Ρ> of the arranged four pixels. Inverse filter processing η + 1,
部 12が、平均画素値 < Ρ 〉と<? 〉とを算出するために用いる算出式は以下 π、 η+ 1、 Part 12 displays the average pixel values <Ρ> and <? The following formula is used to calculate π and η + 1,
の通りである。 It is as follows.
[0148] [数 15]
[0149] ここで、 P (n、 u、 v)は、処理対象画像の画素(n、 u、 v)における画素値である。図 7 の(a)は、処理対象画像の画素値を示したグラフであり、図 7の(b)は、上記ステップ T1にお!/、て得られた、平均画素値を表すグラフである。 [0148] [Equation 15] Here, P (n, u, v) is a pixel value in the pixel (n, u, v) of the processing target image. (A) in FIG. 7 is a graph showing the pixel values of the image to be processed, and (b) in FIG. 7 is a graph showing the average pixel values obtained by! / In step T1 above. .
[0150] (ステップ T2) 逆フィルタ処理部 12は、ステップ T1にて得られた平均画素値 < P [0150] (Step T2) The inverse filter processor 12 determines that the average pixel value obtained in Step T1 <P
〉と<? 〉とを用いた線型補間により、ブロック Bnの V行目の各画素についての n+ 1、 > And <? ) And n + 1 for each pixel in the Vth row of block Bn,
予測値 P (n、u、v)と、ブロック B の V行目の各画素についての予測値 P (n + Predicted value P (n, u, v) and predicted value P (n +
pred n+ 1 pred l、u、 v)とを算出する。逆フィルタ処理部 12が予測値 P (n、u、v P (n+ l、u pred n + 1 1 pred l, u, v) is calculated. The inverse filter processing unit 12 predicts the predicted value P (n, u, v P (n + l, u
pred pred 、 V)とを算出するために用いる算出式は以下の通りである。 The formula used to calculate pred pred, V) is as follows:
[0152] [数 17] [0152] [Equation 17]
P (" +1,", =1《 -く , )"+ 3 ,,〉+ 5〈 , ) P ("+1,", = 1 <<--,) "+ 3 ,,> + 5 <,)
[0153] 図 7の(c)は、上記ステップ T2により得られた、予測値を表したグラフである。 [0153] (c) of FIG. 7 is a graph showing the predicted value obtained in step T2.
[0154] (ステップ T3) [0154] (Step T3)
逆フィルタ処理部 12は、ステップ T2にて得られた予測値 P (n、 u、 v)と、ステップ pred The inverse filter processing unit 12 calculates the predicted value P (n, u, v) obtained in step T2 and the step pred
T1にて得られたブロック Bの平均画素値 < P 〉との差を処理対象画像に付加す べき付加成分とし、処理対象画像の画素値 P (n、 u、 v)に該付加成分を加算すること により、フィルタ出力画像の画素値 P' (n、u、 V)を算出する。逆フィルタ処理部 12が 逆フィルタ出力画像の画素値 P' (n、u、v)を算出するために用いる算出式は以下の 通りである。 The difference from the average pixel value <P> of block B obtained in T1 is set as an additional component to be added to the processing target image, and the additional component is added to the pixel value P (n, u, v) of the processing target image. By doing so, the pixel value P ′ (n, u, V) of the filter output image is calculated. The calculation formula used by the inverse filter processing unit 12 to calculate the pixel value P ′ (n, u, v) of the inverse filter output image is as follows.
[0156] 図 7の(d)は、上記ステップ T3により得られた、逆フィルタ出力画像の画素値を表し たグラフである。ここで、逆フィルタ出力画像におけるブロック Bの平均画素値は、処 理対象画像におけるブロック Bの平均画素値と一致する点に注意されたい。こ
め、動画像のボケやチラツキの発生は有効に防止される。 [0156] (d) of FIG. 7 is a graph showing pixel values of the inverse filter output image obtained in step T3. Note that the average pixel value of block B in the inverse filter output image matches the average pixel value of block B in the processing target image. This Therefore, occurrence of blurring and flickering of moving images is effectively prevented.
[0157] 逆フィルタ処理部 12は、上述のように水平方向の逆フィルタ処理を行った後、垂直 方向の逆フィルタ処理を行う。垂直方向の逆フィルタ処理演算は、ブロック Bの画像 データを、該ブロック Bの下側に隣接するブロック B を参照して算出するものであ n n+W [0157] The inverse filter processing unit 12 performs the inverse filter processing in the horizontal direction as described above, and then performs the inverse filter processing in the vertical direction. The vertical inverse filtering calculation is to calculate the image data of block B with reference to block B adjacent to the lower side of block B n n + W
る力 その算出方法については水平方向の逆フィルタ処理と同様であるので、その 説明を省略する。 Since the calculation method is the same as that of the horizontal inverse filter processing, the description thereof is omitted.
[0158] 以上のように定義された逆フィルタ処理部 12が行う逆フィルタ処理は、フィルタ処理 部 11が行う上記フィルタ処理の逆変換に相当する。すなわち、フィルタ処理部 11の 出力 p' (n、 u、 v)と逆フィルタ処理部 12の入力 P (n、 u、 v)との間に p' (n、 u、 v) =P (n、 u、 v)の関係が成り立つとき、フィルタ処理部 11の入力 p (n、 u、 v)と逆フィルタ処 理部 12の出力 P' (n、 u、 v)との間に p (n、 u、 ν) =Ρ' (η、 u、 ν)の関係が成り立つ。 従って、フィルタ処理部 11のフィルタ処理により、処理対象画像から除去されたブロ ック歪を発生させる周波数成分は、逆フィルタ処理部 12の逆フィルタ処理により復元 される。従って、復元画像において、特定の周波数成分が欠落するようなことはない The inverse filter processing performed by the inverse filter processing unit 12 defined as described above corresponds to the inverse transformation of the filter processing performed by the filter processing unit 11. That is, p ′ (n, u, v) = P (n between the output p ′ (n, u, v) of the filter processing unit 11 and the input P (n, u, v) of the inverse filter processing unit 12 , U, v), the relationship between the input p (n, u, v) of the filter processor 11 and the output P '(n, u, v) of the inverse filter processor 12 is p (n , U, ν) = Ρ '(η, u, ν). Accordingly, the frequency component that generates the block distortion removed from the processing target image by the filter processing of the filter processing unit 11 is restored by the inverse filter processing of the inverse filter processing unit 12. Therefore, a specific frequency component is not lost in the restored image.
〇 Yes
[0159] なお、ブロック毎の予測値の平均画素値がブロック毎の入力画像の平均画素値と 異なる予測を用いる場合には、フィルタ出力に、予測値の平均画素値と入力画像の 平均画素値との差を加え、フィルタ入力及びフィルタ出力の平均画素値が維持され るように補正する構成とすることが好まし!/ヽ。 [0159] In addition, when using a prediction in which the average pixel value of the prediction value for each block is different from the average pixel value of the input image for each block, the average pixel value of the prediction value and the average pixel value of the input image are used as the filter output. It is preferable to make a correction so that the average pixel value of the filter input and filter output is maintained.
[0160] 〔基本構成における問題点〕 [Problems in the basic configuration]
以上のように、動画像符号化装置 300は、符号化対象画像に対しフィルタ処理部 1 1にてフィルタ処理を施すことにより、ブロック歪の原因となる特定の周波数成分 FLを 除去する。そして、動画像復号装置 400は、除去された周波数成分 FLを逆フィルタ 処理部 12にて復元する。これにより、動画像復号装置 400における逆フィルタ出力 画像におけるブロック歪が低減される。 As described above, the moving picture coding apparatus 300 removes the specific frequency component FL that causes block distortion by performing the filtering process on the coding target image by the filter processing unit 11. Then, the video decoding device 400 restores the removed frequency component FL by the inverse filter processing unit 12. Thereby, block distortion in the inverse filter output image in the moving picture decoding apparatus 400 is reduced.
[0161] この際、逆フィルタ処理部 12から出力される逆フィルタ出力画像がフィルタ処理部 1 1に入力される符号化対象画像に一致するためには、逆フィルタ処理部 12に入力さ れる復号画像がフィルタ処理部 11から出力されるフィルタ出力画像に一致する必要
がある。すなわち、逆フィルタ出力画像において除去された周波数成分 FLを正確に 復元するためには、フィルタ出力画像と復号画像とが正確に一致する必要がある。図 5および図 7に即して言えば、図 5の(d)として示したグラフと、図 7の(a)として示した グラフとがー致する必要がある。 [0161] At this time, in order for the inverse filter output image output from the inverse filter processing unit 12 to match the encoding target image input to the filter processing unit 11, the decoding input to the inverse filter processing unit 12 is performed. The image must match the filter output image output from the filter processor 11 There is. In other words, in order to accurately restore the frequency component FL removed in the inverse filter output image, the filter output image and the decoded image need to match exactly. Speaking of Fig. 5 and Fig. 7, the graph shown as (d) in Fig. 5 should match the graph shown as (a) in Fig. 7.
[0162] ところが、動画像符号化装置 300におけるフィルタ出力画像と、動画像復号装置 4 00における復号画像とは、量子化誤差程度相違する。これは、 DCT部 1と量子化部 2とによる動画像符号化装置 300における量子化と、逆量子化部 4と IDCT部 5とによ る動画像復号装置 400における逆量子化とにより、量子化対象画像と復元量子化対 象画像との間に、量子化誤差が生じるためである。このため、逆フィルタ処理部 12に よる周波数成分 FLの復元は、近似的なものとなる。また、動画像符号化装置 300の 内部で参照画像を生成するために行われる逆フィルタ処理についても、同様のこと が言える。 However, the filter output image in moving picture coding apparatus 300 and the decoded picture in moving picture decoding apparatus 400 are different from each other by a quantization error. This is achieved by quantization in the video encoding device 300 by the DCT unit 1 and the quantization unit 2 and inverse quantization in the video decoding device 400 by the inverse quantization unit 4 and the IDCT unit 5. This is because a quantization error occurs between the quantization target image and the restored quantization target image. For this reason, the restoration of the frequency component FL by the inverse filter processing unit 12 is approximate. Further, the same can be said for the inverse filter processing performed for generating the reference image inside the moving image coding apparatus 300.
[0163] 図 17の(a)〜(d)は、それぞれ、フィルタ処理部 11に入力される符号化対象画像、 フィルタ処理部 11から出力されるフィルタ出力画像、逆フィルタ処理部 12に入力され る復号画像、逆フィルタ処理部 12から出力される逆フィルタ出力画像の画素値を示 したグラフである。図 17の(b)に示したグラフと図 17の(c)に示したグラフとを比較す ると分かるように、復号画像の画素値は、フィルタ出力画像の画素値に対して量子化 誤差をもつ。この量子化誤差を含む復号画像に逆フィルタ処理を施した結果力 図 1 7の(d)の逆フィルタ出力画像のグラフである。図 17の(d)に示したように、逆フィルタ 出力画像は、符号化対象画像を正確に再現するものではない。すなわち、逆フィノレ タ処理部 12により復元される周波数成分は、フィルタ処理部 11により除去された周 波数成分 FLに対して誤差をもつ。 [0163] (a) to (d) of FIG. 17 are respectively input to the encoding target image input to the filter processing unit 11, the filter output image output from the filter processing unit 11, and the inverse filter processing unit 12. 5 is a graph showing the pixel values of the decoded image and the inverse filter output image output from the inverse filter processing unit 12. As can be seen by comparing the graph shown in FIG. 17 (b) with the graph shown in FIG. 17 (c), the pixel value of the decoded image has a quantization error relative to the pixel value of the filter output image. It has. FIG. 17D is a graph of the inverse filter output image in FIG. 17D, which is the result of applying the inverse filter process to the decoded image including the quantization error. As shown in (d) of FIG. 17, the inverse filter output image does not accurately reproduce the encoding target image. That is, the frequency component reconstructed by the inverse finisher processing unit 12 has an error with respect to the frequency component FL removed by the filter processing unit 11.
[0164] 〔実施形態 1〕 [Embodiment 1]
本発明の一実施形態について、図 1、および、図 8から図 10に基づいて説明すれ ば、以下の通りである。 An embodiment of the present invention will be described below with reference to FIGS. 1 and 8 to 10.
[0165] (動画像符号化装置の構成) [0165] (Configuration of video encoding device)
図 8は、本実施形態に係る動画像符号化装置 300aの概略構成を示した機能プロ ック図である。図 8に示したように、動画像符号化装置 300aは、 DCT部 1、量子化部
2、可変長符号化部 3、逆量子化部 4、 IDCT部 5、フレームメモリ 7、予測画像導出部 8、符号化制御部 21、フィルタ処理部 11、逆フィルタ処理部 12、補正判定部 13、補 正画像候補導出部 14、および、補正画像決定部 15を備えている。図 8において、図 2の動画像符号化装置と同一機能を有するブロックについては、図 2と同一の名称お よび符号を用いて示し、その説明を省略する。 FIG. 8 is a functional block diagram showing a schematic configuration of the moving picture coding apparatus 300a according to the present embodiment. As shown in FIG. 8, the moving picture coding apparatus 300a includes a DCT unit 1 and a quantization unit. 2, variable length encoding unit 3, inverse quantization unit 4, IDCT unit 5, frame memory 7, prediction image derivation unit 8, encoding control unit 21, filter processing unit 11, inverse filter processing unit 12, correction determination unit 13 A corrected image candidate derivation unit 14 and a corrected image determination unit 15 are provided. In FIG. 8, blocks having the same functions as those in the moving picture coding apparatus in FIG. 2 are denoted by the same names and symbols as in FIG.
[0166] 動画像符号化装置 300aの特徴は、補正判定部 13、補正画像候補導出部 14、お よび、補正画像決定部 15とを含んでいる点である。 [0166] A feature of the moving image coding apparatus 300a is that it includes a correction determination unit 13, a corrected image candidate derivation unit 14, and a corrected image determination unit 15.
[0167] 補正画像決定部 15は、少なくとも 1つ以上のブロックについて、量子化対象画像か ら補正画像を減算する補正を行う。なお、補正画像決定部 15は、図 8に示されている ように、予測画像に補正画像を加算することにより、量子化対象画像から補正画像を 減算するものであってもよレ、。 [0167] The corrected image determination unit 15 performs correction for subtracting the corrected image from the quantization target image for at least one block. As shown in FIG. 8, the corrected image determining unit 15 may subtract the corrected image from the quantization target image by adding the corrected image to the predicted image.
[0168] 補正判定部 13は、上記補正画像決定部 15が上記補正を行うべきブロックを判定 する。具体的には、上記補正が行われた後の量子化対象画像の平均画素値の方が 、上記補正が行われる前の量子化対象画像の平均画素値より小さくなるブロックを、 補正を行うべきブロックと判定する。補正画像決定部 15は、補正判定部 13により補 正を行うべきと判定されたブロックにつレ、て、上記補正を行う。 [0168] The correction determination unit 13 determines a block on which the correction image determination unit 15 should perform the correction. Specifically, a block in which the average pixel value of the quantization target image after the correction is performed is smaller than the average pixel value of the quantization target image before the correction is performed should be corrected. Judge as a block. The corrected image determination unit 15 performs the above correction on the blocks that are determined to be corrected by the correction determination unit 13.
[0169] 補正画像候補導出部 14は、補正画像決定部 15が上記補正に用いる補正画像の 候補を導出する。より具体的には、各ブロックにおける量子化対象画像の平均画素 値を近似する近似平均画素値を画素値としてもつ補正画像候補を、補正画像候補と して導出する。 [0169] The corrected image candidate derivation unit 14 derives correction image candidates used by the corrected image determination unit 15 for the correction. More specifically, a corrected image candidate having an approximate average pixel value that approximates the average pixel value of the quantization target image in each block as a pixel value is derived as a corrected image candidate.
[0170] このため、補正画像決定部 15は、補正が行われた後の量子化対象画像の平均画 素値の方が、補正が行われる前の量子化対象画像の平均画素値より小さくなるプロ ックについて、量子化対象画像の各画素の画素値から、該画素が属するブロックに おける量子化対象画像の平均画素値を近似する近似平均画素値を減算する補正を 行うことになる。 [0170] For this reason, the corrected image determination unit 15 makes the average pixel value of the quantization target image after the correction is smaller than the average pixel value of the quantization target image before the correction is performed. For the block, correction is performed by subtracting the approximate average pixel value that approximates the average pixel value of the quantization target image in the block to which the pixel belongs from the pixel value of each pixel of the quantization target image.
[0171] したがって、上記補正によれば、上記量子化対象画像の各ブロックの平均画素ィ直 を該ブロックの元の平均画素値以下に低下させることができる。従って、上記量子化 における量子化レベル間隔を小さく設定することが可能になり、量子化により発生す
る量子化誤差を縮小できる。このため、上記量子化の過程で発生する量子化誤差を より小さくすること力 Sできる。従って、フィルタ処理が施された後の量子化対象画像と、 逆フィルタ処理が施される前の復元量子化対象画像とをより正確に一致させることが できる。このため、上記逆量子化に際し、上記フィルタ処理により除去された周波数 成分をより正確に復元することができるようになる。 [0171] Therefore, according to the correction described above, the average pixel size of each block of the quantization target image can be reduced to be equal to or less than the original average pixel value of the block. Therefore, the quantization level interval in the above quantization can be set small, and is generated by quantization. Quantization error can be reduced. For this reason, it is possible to reduce the quantization error generated in the quantization process. Therefore, the quantization target image after the filtering process and the restored quantization target image before the inverse filtering process can be matched more accurately. For this reason, the frequency component removed by the filtering process can be restored more accurately during the inverse quantization.
[0172] (動画像復号装置の構成) [0172] (Configuration of video decoding device)
図 1は、図 8に示した動画像符号化装置 300aに対応する動画像復号装置 400aの 概略構成を表した機能ブロック図である。図 8に示したように、動画像復号装置 400a は、逆量子化部 4、 IDCT部 5、フレームメモリ 7、予測画像導出部 8、逆フィルタ処理 部 12、可変長復号部 20a、補正画像候補導出部 14、および、補正画像決定部 15を 備えている。 FIG. 1 is a functional block diagram illustrating a schematic configuration of a video decoding device 400a corresponding to the video encoding device 300a shown in FIG. As shown in FIG. 8, the video decoding device 400a includes an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, a predicted image derivation unit 8, an inverse filter processing unit 12, a variable length decoding unit 20a, and a corrected image candidate. A derivation unit 14 and a corrected image determination unit 15 are provided.
[0173] 動画像復号装置 400aと動画像復号装置 400 (図 3)との相違点は、動画像復号装 置 400aが、補正画像候補導出部 14および補正画像決定部 15を備えている点であ る。また、動画像復号装置 400の可変長復号部 20の代わりに備える可変長復号部 2 Oaが、可変長復号部 20の機能に加えて、予測画像に対して補正を行うか否かの情 報である補正判定結果を復号し、補正画像候補導出部 14および補正画像決定部 1 5に供給する点である。なお、動画像復号装置 400aにおける補正画像候補導出部 1 4および補正画像決定部 15は、それぞれ、動画像符号化装置 300aに同一の符号を 付して示したそれと同一の機能を有するものである。 [0173] The difference between the moving picture decoding apparatus 400a and the moving picture decoding apparatus 400 (Fig. 3) is that the moving picture decoding apparatus 400a includes a corrected image candidate deriving unit 14 and a corrected image determining unit 15. is there. Further, in addition to the function of the variable-length decoding unit 20, the variable-length decoding unit 2 Oa provided instead of the variable-length decoding unit 20 of the video decoding device 400 provides information on whether or not to correct the predicted image. That is, the correction determination result is decoded and supplied to the corrected image candidate deriving unit 14 and the corrected image determining unit 15. Note that the corrected image candidate derivation unit 14 and the corrected image determination unit 15 in the moving image decoding device 400a have the same functions as those indicated by attaching the same reference numerals to the moving image encoding device 300a, respectively. .
[0174] 上記動画像復号装置 400aにより、動画像符号化装置 300aにて符号化された符 号化データを復号することができる。動画像符号化装置 300aにおける符号化時に 上述した補正を用いているため、動画像復号装置 400aにおける逆フィルタへの入力 画像における量子化誤差は低減されている。したがって、逆フィルタ処理によって、 除去された周波数成分 FLを正確に復元することができるため、動画像復号装置 400 aの出力画像でもある、逆フィルタ処理の逆フィルタ出力画像におけるブロック歪を低 減すること力 Sでさる。 [0174] The moving picture decoding apparatus 400a can decode the encoded data encoded by the moving picture encoding apparatus 300a. Since the above-described correction is used at the time of encoding in the moving image encoding device 300a, the quantization error in the input image to the inverse filter in the moving image decoding device 400a is reduced. Therefore, since the removed frequency component FL can be accurately restored by the inverse filter processing, the block distortion in the inverse filter output image of the inverse filter processing, which is also the output image of the video decoding device 400a, is reduced. That's the power S.
[0175] 以下では、ブロック Bの符号化時における補正判定処理について説明する。また、 ブロック Bの符号化時および復号時における補正画像導出処理について説明する。
なお、以下の説明において、入力画像の符号化処理もしくは符号化データの復号処 理 (ま、図 18におレヽてプ、ロック B、プ、ロック B、プ、ロック B、 · · ·、プ、ロック B、プ、ロック B Hereinafter, the correction determination process at the time of encoding block B will be described. The corrected image derivation process at the time of encoding and decoding of block B will be described. In the following description, the encoding process of the input image or the decoding process of the encoded data (in FIG. 18, the lock, lock B, pre, lock B, pre, lock B, ... , Lock B, pu, lock B
0 1 2 n n 0 1 2 n n
、…と!/、うラスタスキャン順に実行されるものとする。 , ... and! /, Which are executed in raster scan order.
+ 1 + 1
[0176] (補正判定処理の詳細) [0176] (Details of correction judgment processing)
補正判定処理は補正判定部 13において実行される。まず、動画像符号化装置 30 Oaに好適に用いることのできる補正判定部 13について説明する。 The correction determination process is executed in the correction determination unit 13. First, the correction determination unit 13 that can be suitably used for the moving image encoding device 30 Oa will be described.
[0177] 補正判定部 13には、フィルタ処理部 11から出力されたフィルタ出力画像と、予測 画像導出部 8から出力された予測画像と、補正画像候補導出部 14から出力された補 正画像候補と、が供給される。補正判定部 13は、これらに基づいて後述する補正判 定処理を実行する。判定の結果は、補正判定結果として、補正画像候補導出部 14 および補正画像決定部 15と、可変長符号化部 3とに送られる。可変長符号化部 3は 、この補正判定結果を符号化し、動画像符号化装置 400aに送出する。 The correction determination unit 13 includes a filter output image output from the filter processing unit 11, a predicted image output from the predicted image derivation unit 8, and a corrected image candidate output from the correction image candidate derivation unit 14. And are supplied. Based on these, the correction determination unit 13 executes a correction determination process described later. The determination result is sent as a correction determination result to the corrected image candidate deriving unit 14, the corrected image determining unit 15, and the variable length encoding unit 3. The variable length encoding unit 3 encodes the correction determination result and sends it to the moving image encoding apparatus 400a.
[0178] 図 9は、補正判定部 13の概略構成を表した機能ブロック図である。図 9に示したよう に、補正判定部 13は、平均画素値算出部 50および補正画像候補評価部 51を備え ている。 FIG. 9 is a functional block diagram showing a schematic configuration of the correction determination unit 13. As shown in FIG. 9, the correction determination unit 13 includes an average pixel value calculation unit 50 and a corrected image candidate evaluation unit 51.
[0179] 平均画素値算出部 50には、フィルタ処理が施された符号化対象画像 (フィルタ出 力画像)と、予測画像導出部 8から供給された予測画像との画素毎との差分画像が 入力される。平均画素値算出部 50は、入力された差分画像のブロック毎の平均画素 値を算出する。ここで、上記差分画像は、現在注目しているブロックに対して補正が 行われなかった場合の量子化対象画像に相当し、従って、算出された平均画素値は 、補正が行われなつた場合の量子化対象画像の平均画素値に相当する点に注意さ れたい。平均画素値算出部 50により算出された差分画像の平均画素値は、補正画 像候補評価部 51に送られる。 [0179] In the average pixel value calculation unit 50, a difference image between each pixel of the encoding target image (filter output image) subjected to the filter process and the prediction image supplied from the prediction image derivation unit 8 is stored. Entered. The average pixel value calculation unit 50 calculates an average pixel value for each block of the input difference image. Here, the difference image corresponds to the quantization target image when the correction is not performed on the currently focused block. Therefore, the calculated average pixel value is obtained when the correction is not performed. Note that this corresponds to the average pixel value of the quantization target image. The average pixel value of the difference image calculated by the average pixel value calculation unit 50 is sent to the corrected image candidate evaluation unit 51.
[0180] 補正画像候補評価部 51は、平均画素値算出部 50から供給された差分画像の平 均画素値と、補正画像候補導出部 14から供給された補正画像候補を上記差分画像 から減算して得られる画像の平均画素値とを比較して、当該ブロックにおいて補正を 行うか否かを判定する。具体的には、差分画像から補正画像候補を減算した画像の 平均画素値の方が小さかった場合に、現在処理中のブロック Bに対して補正を行う
ことを判定する。ここで、補正画像候補導出部 14から供給された補正画像候補を上 記差分画像から減算した画像は、補正を行った場合の量子化対象画像に相当する 点に注意されたい。従って、補正画像候補評価部 51は、補正を行う方が量子化対象 画像の平均画素値を小さくすることができるブロックを、補正を行うべきブロックと判定 する。補正画像候補評価部 51における判定結果は、補正判定結果として、補正画 像決定部 15と可変長符号化部 3とに供給される。 [0180] The corrected image candidate evaluation unit 51 subtracts the average pixel value of the difference image supplied from the average pixel value calculation unit 50 and the correction image candidate supplied from the correction image candidate derivation unit 14 from the difference image. The average pixel value of the obtained image is compared, and it is determined whether or not correction is to be performed in the block. Specifically, when the average pixel value of the image obtained by subtracting the corrected image candidate from the difference image is smaller, correction is performed on the block B currently being processed. Judge that. Here, it should be noted that the image obtained by subtracting the corrected image candidate supplied from the corrected image candidate deriving unit 14 from the difference image corresponds to the quantization target image when correction is performed. Therefore, the corrected image candidate evaluation unit 51 determines that a block that can reduce the average pixel value of the quantization target image as a block to be corrected by performing the correction. The determination result in the corrected image candidate evaluation unit 51 is supplied to the corrected image determination unit 15 and the variable length coding unit 3 as a correction determination result.
[0181] 次に、補正判定部 13において実行される補正判定処理の手順について説明する 。補正判定処理の手順は、符号化対象画像と予測画像の差分である差分画像の平 均画素値を計算するステップと、補正を行うか否か判定するステップとの 2つのステツ プからなる。 Next, the procedure of the correction determination process executed in the correction determination unit 13 will be described. The procedure of the correction determination process includes two steps: a step of calculating an average pixel value of a difference image that is a difference between the encoding target image and the predicted image, and a step of determining whether or not to perform correction.
[0182] (ステップ 1) 平均画素値算出部 50は、フィルタ処理が施された後の符号化対象 画像の画素値 p (n、 u、 v)から、予測画像の画素値 P (n, u, v)を減算した差分画 est [0182] (Step 1) The average pixel value calculation unit 50 calculates the pixel value P (n, u) of the predicted image from the pixel value p (n, u, v) of the encoding target image after the filtering process. , v) subtraction image est
素を取得し、該差分画像の平均値画素値を算出する。ブロック Bにおける平均値 < P 〉を算出するために用いる算出式は以下の通りである。 An element is acquired, and an average pixel value of the difference image is calculated. The calculation formula used to calculate the average value <P> in block B is as follows.
sub、 n sub, n
[0183] [数 19] [0183] [Equation 19]
< Ps«l,,n > ― Pes, U' )<Ps «l ,, n > ― Pes, U ')
[0184] (ステップ 2) 補正画像候補評価部 51は、ステップ 1にて算出された平均画素値 < P 〉と、補正画像候補導出部 14から供給された補正画像候補の平均画素値に sub、 n [0184] (Step 2) The corrected image candidate evaluation unit 51 adds sub to the average pixel value <P> calculated in Step 1 and the average pixel value of the corrected image candidate supplied from the corrected image candidate derivation unit 14. n
相当する補正量 a'とを比較して、当該ブロック Bにおいて補正を行うか否かを判定 する。具体的には、以下の数式で表される aと 0を比較することで判定を行う。 A comparison is made with the corresponding correction amount a ′ to determine whether or not the correction is performed in the block B. Specifically, the determination is made by comparing a and 0 represented by the following mathematical formula.
[0185] [数 20] [0185] [Equation 20]
[0186] [数 21] β = \< Ρ „ >\ [0186] [Equation 21] β = \ <Ρ „> \
[0187] αが /3より小さい場合には補正を行うと判定される。それ以外の場合(αが /3より大 きい、もしくは、 αと /3が等しい場合)には補正を行わないと判定する。
[0188] 上述したように、 αは補正を行う場合の量子化対象画像の平均画素値に対応する 量であり、 βは補正を行なわない場合の平均画素値に対応する量である。従って、 αと /3との大小比較を行うことにより、補正を行った場合に量子化対象画像の平均画 素値を小さくすることができるか否かを判定することができる。 [0187] If α is smaller than / 3, it is determined to perform correction. In other cases (when α is greater than / 3, or when α and / 3 are equal), it is determined that correction is not performed. As described above, α is an amount corresponding to the average pixel value of the quantization target image when correction is performed, and β is an amount corresponding to the average pixel value when correction is not performed. Therefore, by comparing the magnitudes of α and / 3, it is possible to determine whether or not the average pixel value of the quantization target image can be reduced when correction is performed.
[0189] (補正画像導出処理の詳細) [0189] (Details of corrected image derivation process)
次に、補正画像候補導出部 14および補正画像決定部 15において実行される補正 画像導出処理について説明する。まず、動画像符号化装置 300aおよび動画像復号 装置 400aに好適に用いることのできる補正画像候補導出部 14および補正画像決 定部 15について説明する。 Next, a corrected image derivation process executed in the corrected image candidate derivation unit 14 and the corrected image determination unit 15 will be described. First, the corrected image candidate deriving unit 14 and the corrected image determining unit 15 that can be suitably used in the moving image encoding device 300a and the moving image decoding device 400a will be described.
[0190] 補正画像候補導出部 14は、補正判定結果と、逆量子化部 4より供給される変換係 数とに基づいて、当該ブロックの補正に利用される補正画像の候補である補正画像 候補を導出する。導出された補正画像候補は、補正判定部 13および補正画像決定 部 15に送出される。 [0190] The corrected image candidate derivation unit 14 is based on the correction determination result and the conversion coefficient supplied from the inverse quantization unit 4, and is a corrected image candidate that is a correction image candidate used for correcting the block. Is derived. The derived corrected image candidates are sent to the correction determination unit 13 and the corrected image determination unit 15.
[0191] 補正画像決定部 15は、補正判定部 13より供給された補正判定結果に基づいて、 当該ブロックにおける補正画像を決定して送出する。 [0191] Based on the correction determination result supplied from the correction determination unit 13, the correction image determination unit 15 determines and transmits a correction image in the block.
[0192] 図 10は、補正画像候補導出部 14の概略構成を表した機能ブロック図である。図 1FIG. 10 is a functional block diagram showing a schematic configuration of the corrected image candidate derivation unit 14. Figure 1
0に示したように、補正画像候補導出部 14は、予測誤差量記憶メモリ 52、補正量導 出部 53、補正画像候補生成部 54、および、予測誤差量導出部 55を備えている。 As indicated by 0, the corrected image candidate derivation unit 14 includes a prediction error amount storage memory 52, a correction amount derivation unit 53, a corrected image candidate generation unit 54, and a prediction error amount derivation unit 55.
[0193] 予測誤差量記憶メモリ 52には、現在処理中のブロック Bの前に処理した量子化- 逆量子化処理済みのブロック (例えばブロック B )に対応する予測誤差量が記録さ れている。 [0193] The prediction error amount storage memory 52 stores the prediction error amount corresponding to the quantized / inverse quantized block (for example, block B) processed before the block B currently being processed. .
[0194] 補正量導出部 53は、予測誤差量記憶メモリ 52に記録されている予測誤差量を参 照して、当該ブロックにおける補正量を導出する。導出した補正量は、補正画像候補 生成部 54に送出される。 The correction amount deriving unit 53 refers to the prediction error amount recorded in the prediction error amount storage memory 52 and derives the correction amount in the block. The derived correction amount is sent to the corrected image candidate generation unit 54.
[0195] 補正画像候補生成部 54は、補正量導出部 53より供給された補正量に基づいて、 補正画像候補を生成して送出する。 The corrected image candidate generating unit 54 generates and sends a corrected image candidate based on the correction amount supplied from the correction amount deriving unit 53.
[0196] 予測誤差量導出部 55は、補正判定部 13より供給された補正判定結果と、補正量 導出部 53より供給された補正量と、逆量子化部 4より供給された変換係数に基づ!/、
て現在処理中のブロック における予測誤差量を算出して予測誤差量記憶メモリ 52 に記録する。 [0196] The prediction error amount deriving unit 55 is based on the correction determination result supplied from the correction determining unit 13, the correction amount supplied from the correction amount deriving unit 53, and the transform coefficient supplied from the inverse quantization unit 4. !! The prediction error amount in the block currently being processed is calculated and recorded in the prediction error amount storage memory 52.
[0197] 次に、補正画像候補導出部 14および補正画像決定部 1 5により実行される補正画 像導出処理について、図 1 1に基づいて説明する。 Next, the corrected image derivation process executed by the corrected image candidate deriving unit 14 and the corrected image determining unit 15 will be described with reference to FIG.
[0198] 図 1 1は、補正画像導出処理の流れを示したフローチャートである。 FIG. 11 is a flowchart showing the flow of the corrected image derivation process.
[0199] 補正画像導出処理は、ブロック Bに適用可能な補正量を導出するステップ U 1と、 導出した補正量の値に基づ!/、て補正画像候補を生成するステップ U2と、補正判定 結果に基づレ、て判定を行うステップ U3と、補正量として補正画像候補を送出するス テツプ U4と、補正量として全ての画素値がゼロである画像を送出するステップ U5を 含んでいる。以下、ステップ U 1〜U5について、もう少し詳しく説明する。 [0199] The corrected image derivation process includes a step U 1 for deriving a correction amount applicable to the block B, a step U 2 for generating a corrected image candidate based on the derived correction amount value, and a correction determination. Step U3 for making a determination based on the result, Step U4 for sending a corrected image candidate as a correction amount, and Step U5 for sending an image with all pixel values being zero as a correction amount. Hereinafter, steps U1 to U5 will be described in a little more detail.
[0200] (ステップ U1 ) 補正量導出部 53は、現在処理中のブロック Bの左側に隣接するブ ロック B― に対応する予測誤差量 d を、当該ブロック Bの補正量 に設定する。 ただし、当該ブロック Bが画像の左端に位置する場合には、値ゼロを当該ブロックの 補正量 に設定する。 [0200] (Step U1) The correction amount deriving unit 53 sets the prediction error amount d corresponding to the block B− adjacent to the left side of the block B currently being processed as the correction amount of the block B. However, if the block B is located at the left edge of the image, the value zero is set as the correction amount for the block.
[0201] [数 22] d \も—,((" mod W)≠ 0) [0201] [Equation 22] d \ also —, (("mod W) ≠ 0)
rt— 1 θ ((« mod W) = 0) r t — 1 θ ((«mod W) = 0)
[0202] ここで、ブロック B の予測誤差量 d を当該ブロック Bの補正量 に設定する 理由は、隣接するブロック間での予測誤差量の相関を利用して予測画像を補正する ことで、予測画像の精度を高めることができるためである。 [0202] Here, the reason for setting the prediction error amount d of block B to the correction amount of the block B is that the prediction image is corrected by using the correlation of the prediction error amount between adjacent blocks. This is because the accuracy of the image can be increased.
[0203] (ステップ U2) 補正画像候補生成部 54は、ステップ U 1で導出された補正量 a' に 基づいて、補正画像候補を生成する。具体的には、全ての画素の画素値が a'であ る画像を生成して、その画像を補正画像候補とする。 [0203] (Step U2) The corrected image candidate generation unit 54 generates a corrected image candidate based on the correction amount a ′ derived in Step U1. Specifically, an image in which the pixel values of all the pixels are a ′ is generated, and the image is set as a corrected image candidate.
[0204] (ステップ U3) 補正画像決定部 1 5は、外部(図 8の補正判定部 13、または、図 1 可変長復号部 20a)から供給された補正判定結果に基づ!/、て、補正画像を決定する[0204] (Step U3) The corrected image determination unit 15 is based on the correction determination result supplied from the outside (the correction determination unit 13 in FIG. 8 or the variable length decoding unit 20a in FIG. 1)! /, Determine the corrected image
。前記判定結果が当該ブロックで補正を行うことを示す場合にはステップ U4へ進み. If the determination result indicates that correction is performed in the block, the process proceeds to step U4.
、補正を行わな!/、ことを示す場合にはステップ U5へ進む。 If no correction is made! /, Go to step U5.
[0205] なお、当該ステップにおける判定に利用する補正判定結果は、符号化処理の際に
は補正判定部 13より供給され、復号処理の際には可変長復号部 20aより供給される [0205] The correction determination result used for the determination in this step is the same as that in the encoding process. Is supplied from the correction determination unit 13 and is supplied from the variable length decoding unit 20a during the decoding process.
[0206] (ステップ U4) 当該ステップは、ステップ U3における予測判定の結果、現在処理 中のブロックに対して補正を行うと判定された場合に実行される。補正画像候補生成 部 54は、ステップ U2で導出された補正画像候補を、当該ブロックの補正画像として 送出する。 (Step U4) This step is executed when it is determined that correction is performed on the block currently being processed as a result of the prediction determination in step U3. The corrected image candidate generation unit 54 sends out the corrected image candidate derived in step U2 as a corrected image of the block.
[0207] (ステップ U5) 当該ステップは、ステップ U3における予測判定の結果、補正を行 わないと判定された場合に実行される。補正画像候補生成部 54は、全ての画素の 画素値がゼロである画像を生成して、該画像を補正画像候補として送出する。 (Step U5) This step is executed when it is determined that correction is not performed as a result of the prediction determination in step U3. The corrected image candidate generation unit 54 generates an image in which the pixel values of all the pixels are zero, and sends the image as a corrected image candidate.
[0208] 以上の手順に従えば、現在処理中のブロックにおいて補正を行うために必要な補 正画像候補を導出することができる。動画像符号化装置 300aおよび動画像復号装 置 400aでは、導出された補正画像を、予測画像導出部 8より送出される予測画像に 加えることで補正を行う。 [0208] According to the above procedure, a corrected image candidate necessary for performing correction in the block currently being processed can be derived. In the moving image encoding device 300a and the moving image decoding device 400a, correction is performed by adding the derived corrected image to the predicted image transmitted from the predicted image deriving unit 8.
[0209] 上記の補正動画像導出処理は、現在処理中のブロック Bの補正量の導出に、プロ ック B―の予測誤差量 d を参照する。したがって、当該ブロック Bの予測誤差量 d に関しても、後に処理されるブロック (例えばブロック B )における補正量の導出に 利用される可能性があるため、導出して予測誤差量記録メモリ 52に記録しておく必 要がある。予測誤差量 dの導出手順は次の通りである。 [0209] In the above-described corrected moving image derivation process, the prediction error amount d of block B- is referred to in deriving the correction amount of block B currently being processed. Therefore, the prediction error amount d of the block B may also be used for derivation of a correction amount in a block to be processed later (for example, block B). Therefore, the prediction error amount d is derived and recorded in the prediction error amount recording memory 52. It is necessary to keep it. The procedure for deriving the prediction error amount d is as follows.
[0210] (ステップ VI ) 予測誤差量導出部 55は、補正画像導出処理のステップ U1で導出 された補正量の値と、補正判定部 13より供給された補正判定結果と、逆量子化部 4 より供給された逆量子化後の変換係数に基づいて予測誤差量 dを算出する。算出 に用いる算出式は次の通りである。 [0210] (Step VI) The prediction error amount deriving unit 55 includes the correction amount value derived in step U1 of the corrected image deriving process, the correction determination result supplied from the correction determination unit 13, and the inverse quantization unit 4 The prediction error amount d is calculated on the basis of the transform coefficient after inverse quantization supplied from the above. The calculation formula used for calculation is as follows.
[021 1] [数 23] r (当該プロック S„で予測補正を行っていない場合)
r + a„' (当該ブロック „で予測補正を行つている場合) [021 1] [Equation 23] r (When prediction correction is not performed in the block S „) r + a „'(when the prediction is corrected in the block„)
[0212] ここで、 rは、逆量子化後の変換係数における直流成分であり、 r X γは、ブロック Βにおける量子化対象画像の平均画素 に対応するものである。なお、 Ίは逆量子 化後の変換係数 rの単位を、画素値の単位に変換するための定数である。また、量
子化対象画像に対して行われる補正は、量子化対象画像の各画素から補正量 α η' を減算するものであることから、 r X y + a Ίま、補正が行われる前の量子化対象画 像 (フィルタ処理が施された符号化対象画像から予測画像を減算した差分画像)の 平均画素値に対応するものである。すなわち、予測誤差量 dは、ブロック Bにて補正 を行っていない場合であっても、補正を行っている場合であっても、量子化対象画像 の平均画素値に対応する。 Here, r is a DC component in the transform coefficient after inverse quantization, and r X γ corresponds to the average pixel of the quantization target image in block Β. Note that Ί is a constant for converting the unit of the conversion coefficient r after inverse quantization to the unit of the pixel value. Also quantity Since the correction performed on the child image is to subtract the correction amount α η 'from each pixel of the image to be quantized, the quantization before correction is performed until r X y + a This corresponds to the average pixel value of the target image (difference image obtained by subtracting the predicted image from the target image to be encoded). That is, the prediction error amount d corresponds to the average pixel value of the quantization target image regardless of whether correction is performed in block B or correction is performed.
[0213] (ステップ V2) 予測誤差量導出部 55は、ステップ VIにて導出した予測誤差量 d を予測誤差量記録メモリ 52に記録する。この際、当該ブロック以降に処理するブロッ クにおいて使用されない予測誤差量に関しては予測誤差量記憶メモリ 52から消去し ても構わない。 [0213] (Step V2) The prediction error amount deriving unit 55 records the prediction error amount d derived in step VI in the prediction error amount recording memory 52. At this time, a prediction error amount that is not used in a block processed after the block may be deleted from the prediction error amount storage memory 52.
[0214] (補正画像導出処理に関する付記事項) [0214] (Additional note regarding corrected image derivation processing)
1.符号化側にて、全てのブロックについての補正判定結果を符号化し、復号側に て、符号化された補正判定結果を復号することにより全てのブロックについての補正 判定結果を得る構成について説明した力、本発明はこれに限らない。 1. Describes a configuration in which correction determination results for all blocks are encoded on the encoding side, and correction determination results for all blocks are obtained by decoding the encoded correction determination results on the decoding side. However, the present invention is not limited to this.
[0215] すなわち、復号側において、必ずしも全てのブロックに対する補正判定結果が必要 とされる訳ではなぐ復号側にて補正判定結果を推定可能なブロックについては、補 正判定結果の符号化を省略する構成とすることも可能である。復号側にて補正判定 結果の推定が可能なブロックについて、補正判定結果の符号化を省略することにより 、符号化データの符号量を削減することができる。 [0215] That is, the correction determination result for all blocks is not necessarily required on the decoding side. For blocks whose correction determination result can be estimated on the decoding side, encoding of the correction determination result is omitted. A configuration is also possible. By omitting the encoding of the correction determination result for the block on which the correction determination result can be estimated on the decoding side, the code amount of the encoded data can be reduced.
[0216] 例えば、導出された補正量補の値がゼロとなるようなブロックに対しては、常に補正 が行われない。従って、補正量を参照することにより、復号側にて補正判定結果を推 定 (確定)すること力できる。また、例えば、導出される補正量の値がある程度大きい ブロックに対しては補正が適用されにくいという傾向がある。従って、補正量の値があ る所定の閾値よりも大きい場合には、補正を行わないと推定することができる。従って 、このようなブロックに対して符号化を省略するよう、符号化側を構成することができる [0216] For example, correction is not always performed for a block in which the derived correction amount compensation value is zero. Therefore, it is possible to estimate (determine) the correction determination result on the decoding side by referring to the correction amount. Also, for example, correction tends to be difficult to apply to blocks that have a certain amount of correction value. Therefore, when the value of the correction amount is larger than a predetermined threshold value, it can be estimated that correction is not performed. Therefore, the encoding side can be configured to omit encoding for such blocks.
[0217] 2. 補正量導出部 53における補正量の導出に、当該ブロック Bの左側に隣接す るブロック B―に対応する予測誤差量 d を用いる構成について説明した力 本発
明はこれに限らない。具体的には、例えば、当該ブロック の近傍に存在する別の 処理済ブロックに対応する予測誤差量を併用してもよい。 [0217] 2. Correction amount deriving section 53 A power that explains the configuration that uses the prediction error amount d corresponding to block B- adjacent to the left side of block B to derive the correction amount. Akira is not limited to this. Specifically, for example, a prediction error amount corresponding to another processed block existing in the vicinity of the block may be used together.
[0218] 例えば、図 20に示されるようなラスタスキャン順に符号化および復号処理が行われ る場合に、当該ブロック Bの上側に隣接するブロック B に対応する予測誤差量 d と、当該ブロック Bの左側に隣接するブロック B―に対応する予測誤差量 d とを 併用し、補正量を導出することができる。この場合、隣接する 2つのブロックのうち、当 該ブロック Bの予測誤差量と相関の高!/、予測誤差量を有するブロックを選択すること で、 1つの予測誤差量し力、利用しない場合に較べ、より適切な補正を行うことができる 。以下、この例について、もう少し詳しく詳しく説明する。 For example, when encoding and decoding processes are performed in the raster scan order as shown in FIG. 20, the prediction error amount d corresponding to the block B adjacent above the block B and the block B The correction amount can be derived by using the prediction error d corresponding to block B- adjacent on the left side. In this case, by selecting a block having a prediction error amount that is highly correlated with the prediction error amount of the block B from two adjacent blocks, the prediction error amount can be reduced by one. As a result, more appropriate correction can be made. Hereinafter, this example will be described in more detail.
[0219] 補正量の導出に、当該ブロックの左側および上側のブロックの予測誤差量を利用 するためには、前述の補正画像導出処理におけるステップ U 1を次のステップ urに 置き換えればよい。 [0219] In order to use the prediction error amount of the block on the left side and the upper side of the block for derivation of the correction amount, step U1 in the correction image derivation process described above may be replaced with the next step ur.
[0220] (ステップ UD補正量導出部 53は、当該ブロック Βの左側に隣接するブロック Β に対応する予測誤差量 d と、上側に隣接するブロック B に対応する予測誤差 量 d とに基づいて、補正量 を求める。補正量 は以下の式により定められる。 [0220] (Step UD correction amount deriving unit 53 determines, based on prediction error amount d corresponding to block Β adjacent to the left side of block Β and prediction error amount d corresponding to block B adjacent to the upper side, Calculate the correction amount, which is determined by the following equation.
[0221] [数 24] [0221] [Equation 24]
0 {άη_χ = 0または《 mod W =0 )かつ (d。一 ^ = 0または w < ) (d„一 ,≠ 0かつ n mod W≠0 )かつ (d„—w = 0または nく W) {d„_w≠ 0かつ w > if )かつ( —! = 0または n mod W =-0 ) —, + d„ 0 {ά η _ χ = 0 or << mod W = 0) and (d. One ^ = 0 or w <) (d „one, ≠ 0 and n mod W ≠ 0) and (d„ —w = 0 or n W W) (d „_ w ≠ 0 and w> if) and (—! = 0 or n mod W = -0) —, + d„
≠ 0かつ n mod W≠0 )かつ( 0かつ n > W ≠ 0 and n mod W ≠ 0) and (0 and n> W
2 2
[0222] なお、当該ブロック Bの左側に存在する 2つのブロック B およびブロック B と、 上側に存在する 2つのブロック B およびブロック B それぞれに対応する予測誤[0222] Note that the prediction errors corresponding to the two blocks B and B existing on the left side of the block B and the two blocks B and B existing on the upper side of the block B, respectively.
- 2W -2W
d に基づいて、次の算出式で補正量 a'を求めることもで n- 2W n Based on d, the correction amount a 'can be calculated using the following formula: n-2W n
[0224] ただし、 n < 2W、または、 n mod W < 2の場合には、上記〔数 24〕に従って求め
[0225] 上記のように補正量を求めることで、当該ブロックの垂直方向と水平方向のいずれ の方向でブロック間の予測誤差量の相関が高いかを判定し、当該ブロックに対して 相関の高い方向に位置するブロックの予測誤差量を利用して補正量を導出すること ができる。このため、より正確な補正を行うことができる。 [0224] However, in the case of n <2W or n mod W <2, it is obtained according to the above [Equation 24]. [0225] By calculating the correction amount as described above, it is determined whether the correlation of the prediction error amount between the blocks is high in the vertical direction or the horizontal direction of the block, and the correlation is high with respect to the block The correction amount can be derived using the prediction error amount of the block located in the direction. For this reason, more accurate correction can be performed.
[0226] なお、これまでの説明では、予測誤差量のみに基づいて補正量を導出していたが 、予測誤差量と相関のある符号化パラメータを併用して補正量を導出しても構わない 。例えば、イントラ予測に用いる予測モードと予測誤差量を併用して補正量を導出す ること力 Sできる。より具体的には、当該ブロックに近接するブロックの中から、予測モー ドが当該ブロックにおける予測モードと一致するブロックを選択して、選択されたプロ ックにおける予測誤差量の平均値として補正量 を求めること力 Sできる。同じ予測モ ードを持つブロックでは予測画像が類似することが多!/、ため、予測誤差量も近レ、値 になることが多い。したがって、予測モードが同じブロックの予測誤差量を利用するこ とで、より好ましい補正量を求めることができる。 [0226] In the above description, the correction amount is derived based only on the prediction error amount. However, the correction amount may be derived using a coding parameter correlated with the prediction error amount. . For example, it is possible to derive the correction amount by combining the prediction mode used for intra prediction and the prediction error amount. More specifically, a block whose prediction mode matches the prediction mode in the block is selected from blocks adjacent to the block, and the correction amount is calculated as an average value of the prediction error amount in the selected block. The ability to seek S Predictive images are often similar in blocks with the same prediction mode, so the amount of prediction error is often near and low. Therefore, a more preferable correction amount can be obtained by using the prediction error amount of the block having the same prediction mode.
[0227] 予測誤差量と相関のある符号化パラメータとしては、上記予測モードの他に、イント ラ予測のブロックサイズやインター予測における動きベクトル、参照画像などがある。 例えば、当該ブロックの近傍ブロックの中から、上記符号化パラメータが当該ブロック と最も近いブロックを選択して、選択されたブロックの予測誤差量から補正量 a'の値 を求めることでも好ましい補正量を求めることができる。 [0227] Coding parameters correlated with the prediction error amount include, in addition to the prediction mode, a block size for intra prediction, a motion vector in inter prediction, a reference image, and the like. For example, a preferable correction amount can be obtained by selecting a block having the encoding parameter closest to the block from the neighboring blocks of the block and obtaining the value of the correction amount a ′ from the prediction error amount of the selected block. Can be sought.
[0228] 〔実施形態 2〕 [Embodiment 2]
本発明の第 2の実施形態について、図 12から図 17に基づいて説明すれば以下の 通りである。 The following describes the second embodiment of the present invention with reference to FIGS.
[0229] (動画像符号化装置の構成) [0229] (Configuration of video encoding device)
図 12は、本実施形態に係る動画像符号化装置 300bの概略構成を示した機能プロ ック図である。 FIG. 12 is a functional block diagram showing a schematic configuration of the moving picture coding apparatus 300b according to the present embodiment.
[0230] 図 12に示したように、動画像符号化装置 300bは、 DCT部 1、量子化部 2、可変長 符号化部 3、逆量子化部 4、 IDCT部 5、フレームメモリ 7、予測画像導出部 8、符号化 制御部 21、フィルタ処理部 1 1、逆フィルタ処理部 12、逆フィルタ入力修正部 16、お
よび、修正方法決定部 17を備えている。 [0230] As shown in Fig. 12, the moving picture coding apparatus 300b includes a DCT unit 1, a quantization unit 2, a variable length coding unit 3, an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, and a prediction Image deriving unit 8, coding control unit 21, filter processing unit 1 1, inverse filter processing unit 12, inverse filter input correction unit 16, And a correction method determination unit 17.
[0231] 動画像符号化装置 300bと動画像符号化装置 300 (図 1)との相違点は、動画像符 号化装置 300bが、逆フィルタ処理の対象となる局所復号画像を修正する逆フィルタ 修正部 16を備えている点である。また、動画像符号化装置 300bが、逆フィルタ入力 修正部 16において適用する修正方法を判定する修正方法決定部 17を備えている 点である。 [0231] The difference between the moving picture coding apparatus 300b and the moving picture coding apparatus 300 (Fig. 1) is that the moving picture coding apparatus 300b uses an inverse filter that corrects a local decoded image to be subjected to inverse filter processing. This is the point that a correction unit 16 is provided. In addition, the moving picture coding apparatus 300b includes a correction method determination unit 17 that determines a correction method to be applied in the inverse filter input correction unit 16.
[0232] 逆フィルタ入力修正部 16は、フレームメモリ 7に記録されている局所復号画像を取 得して、修正方法決定部 17より供給される修正方法に応じて前記局所復号画像を 修正する。修正された局所復号画像は、逆フィルタ処理部 12に送出される。 [0232] The inverse filter input correction unit 16 acquires the local decoded image recorded in the frame memory 7, and corrects the local decoded image according to the correction method supplied from the correction method determination unit 17. The corrected local decoded image is sent to the inverse filter processing unit 12.
[0233] 修正方法決定部 17は、動画像符号化装置 300aに対する入力画像である入力画 像データと、フレームメモリ 7より取得した局所復号画像とに基づいて、逆フィルタ入 力修正部 16で適用する修正方法を決定する。決定された修正方法は、修正方法判 定結果として逆フィルタ入力修正部 16および可変長符号化部 3へ送出される。 [0233] The correction method determination unit 17 is applied by the inverse filter input correction unit 16 based on the input image data that is an input image to the video encoding device 300a and the local decoded image acquired from the frame memory 7. Determine how to fix. The determined correction method is sent to the inverse filter input correction unit 16 and the variable length coding unit 3 as a correction method determination result.
[0234] 既に述べたように、上述した基本構成をもつ動画像符号化装置 300および動画像 復号装置 400では、局所復号画像が量子化誤差を含む場合に、逆フィルタ処理に ぉレ、て周波数成分 FLが正確には復元できな!/、と!/、う問題があった。 [0234] As already described, in moving picture coding apparatus 300 and moving picture decoding apparatus 400 having the above-described basic configuration, when a locally decoded picture includes a quantization error, the frequency is reduced by inverse filtering. There was a problem that component FL could not be restored correctly!
[0235] 本実施形態にお!/、ては、量子化誤差を含む局所復号画像(図 15の (b) )を修正す ることで量子化誤差が低減された局所復号画像(図 15の (c) )を求める。量子化誤差 を含む局所復号画像に逆フィルタ処理を施す場合、除去されて!/、る周波数成分 FL が正確には復元できないため、逆フィルタ処理の結果得られる画像はブロック歪を含 む(図 15の(d) )。一方、量子化誤差が低減された局所復号画像に逆フィルタ処理を 施す場合は、周波数成分 FLをより正確に復元できるため、逆フィルタ処理の結果得 られる画像にぉレ、てブロック歪が低減されて!/、る(図 15の(e) )。 [0235] In this embodiment, the local decoded image (Fig. 15) has a reduced quantization error by correcting the local decoded image (Fig. 15 (b)) including the quantization error. (c) Find). When inverse filtering is applied to a locally decoded image that includes quantization errors, the frequency component FL that has been removed! / Cannot be accurately restored, so the image obtained as a result of inverse filtering contains block distortion (see Fig. 2). 15 (d)). On the other hand, when the inverse filter process is applied to a locally decoded image with a reduced quantization error, the frequency component FL can be restored more accurately, so that the block distortion is reduced in the image obtained as a result of the inverse filter process. / !, ru (Fig. 15 (e)).
[0236] 動画像符号化装置 300bは、修正方法決定部 17において、所定の修正方法によ つて、局所復号画像における量子化誤差が低減され得る力、を判定し、上記判定結果 を符号化する。復号時には、上記判定結果に応じて局所復号画像を修正することで 、局所復号画像の量子化誤差を低減し得る。したがって、動画像符号化装置 300b は、ブロック歪が低減された画像が復号され得る符号化データを生成することができ
[0237] (動画像復号装置の構成) [0236] In the video encoding device 300b, the correction method determination unit 17 determines the power that can reduce the quantization error in the locally decoded image by a predetermined correction method, and encodes the determination result. . At the time of decoding, the quantization error of the local decoded image can be reduced by correcting the local decoded image according to the determination result. Therefore, the video encoding device 300b can generate encoded data that can be used to decode an image with reduced block distortion. [0237] (Configuration of video decoding device)
図 13は、図 12に示した動画像符号化装置 300bに対応する動画像復号装置 400 bの概略構成を表した機能ブロック図である。図 13に示したように、動画像復号装置 400bは、逆量子化部 4、 IDCT部 5、フレームメモリ 7、予測画像導出部 8、逆フィルタ 処理部 12、逆フィルタ入力修正部 16、および、可変長復号部 20bを備えている。 FIG. 13 is a functional block diagram showing a schematic configuration of a video decoding device 400b corresponding to the video encoding device 300b shown in FIG. As shown in FIG. 13, the video decoding device 400b includes an inverse quantization unit 4, an IDCT unit 5, a frame memory 7, a predicted image derivation unit 8, an inverse filter processing unit 12, an inverse filter input correction unit 16, and A variable length decoding unit 20b is provided.
[0238] 動画像復号装置 400bと動画像復号装置 400 (図 3)との相違点は、動画像復号装 置 400bが、逆フィルタ入力修正部で適用する修正方法判定結果を復号する機能を 有する可変長復号部 20bを備えている点である。また、動画像復号装置 400bが、前 記修正方法判定結果に基づいて局所復号画像を修正することで予測誤差を低減す る逆フィルタ入力修正部 16を備えている点である。 [0238] The difference between the moving image decoding apparatus 400b and the moving image decoding apparatus 400 (Fig. 3) is that the moving image decoding apparatus 400b has a function of decoding the correction method determination result applied by the inverse filter input correction unit. The variable length decoding unit 20b is provided. Further, the moving picture decoding apparatus 400b includes an inverse filter input correction unit 16 that reduces a prediction error by correcting a local decoded picture based on the correction method determination result.
[0239] 上記の動画像復号装置 400bは逆フィルタ入力修正部 16を備えることで、局所復 号画像において生じている量子化誤差を低減することができる。したがって、逆フィ ルタ処理において、符号化時のフィルタ処理により除去されたブロック歪の原因とな る特定の周波数成分 FLを、動画像復号装置 400bに較べてより正確に再現すること ができるため、ブロック歪が低減された画像を復号できる。 [0239] Since the moving picture decoding apparatus 400b includes the inverse filter input correction unit 16, it is possible to reduce the quantization error occurring in the local decoded picture. Therefore, in the inverse filter process, the specific frequency component FL that causes the block distortion removed by the filter process at the time of encoding can be reproduced more accurately than the moving picture decoding apparatus 400b. An image with reduced block distortion can be decoded.
[0240] 以下では、動画像符号化装置 300bにおける特徴的な処理である修正方法決定処 理について詳しく説明する。また、動画像符号化装置 300bおよび動画像復号装置 4 00bにおける特徴的な処理である逆フィルタ入力修正処理についても詳しく説明す [0240] Hereinafter, the correction method determination process, which is a characteristic process in the video encoding device 300b, will be described in detail. Further, the inverse filter input correction process, which is a characteristic process in the moving picture coding apparatus 300b and the moving picture decoding apparatus 400b, will be described in detail.
[0241] なお、以下の説明においては、簡単のため、入力画像データの 1画面分に相当す る局所復号画像がフレームメモリ 7に記録されている状態で修正方法決定処理およ び逆フィルタ入力修正処理が起動されるものとする。 [0241] In the following description, for the sake of simplicity, correction method determination processing and inverse filter input are performed with a local decoded image equivalent to one screen of input image data recorded in the frame memory 7. It is assumed that the correction process is activated.
[0242] (修正方法決定処理の詳細) [0242] (Details of correction method decision processing)
図 14のフローチャートを参照して、動画像符号化装置 300bの修正方法決定部 16 において実行される修正方法決定処理の手順について説明する。なお、ステップ W ;!〜 W6は局所復号画像における注目ブロック Bの修正方法を決定する処理を表す With reference to the flowchart of FIG. 14, the procedure of the correction method determination process executed in the correction method determination unit 16 of the video encoding device 300b will be described. Steps W;! To W6 represent processing for determining a correction method for the block of interest B in the locally decoded image.
〇
[0243] (ステップ Wl)修正方法決定部 17は、注目ブロック Bnにおける、符号化対象画像 の平均画素値く P〉を計算する。図 15の(a)は、当該ステップにより得られる、符号化 対象画像の平均画素値く P〉を模式的に表す図である。 Yes [0243] (Step Wl) The correction method determination unit 17 calculates the average pixel value P> of the encoding target image in the block of interest Bn. FIG. 15 (a) is a diagram schematically showing the average pixel value P> of the encoding target image obtained by this step.
[0244] (ステップ W2)フレームメモリ 7から局所復号画像を取得して、注目ブロック Bにお ける局所復号画像の平均画素値く P 〉を計算する。図 15の (b)はステップ W2によ り得られる局所復号画像の平均画素値く P〉を模式的に表す図である。 (Step W2) A locally decoded image is acquired from the frame memory 7, and an average pixel value P> of the locally decoded image in the target block B is calculated. (B) of Fig. 15 is a diagram schematically representing the average pixel value P> of the locally decoded image obtained in step W2.
[0245] (ステップ W3)注目ブロック Bにおける局所復号画像の画素値を修正するために、 局所復号画像の画素値から、修正値 <P 〉を計算する。まず、注目ブロックの左 (Step W3) In order to correct the pixel value of the locally decoded image in the target block B, a corrected value <P> is calculated from the pixel value of the locally decoded image. First, the left of the attention block
mod、 n mod, n
右に隣接する 2つのブロックにおける局所復号画像の平均画素値 <P ― 〉、 <P 〉を求める。そして、得られた局所復号画像の平均画素値く P ― 〉、 <P 〉、お よび、ステップ W2で得られた注目ブロックにおける局所復号画像の平均画素値 <P 〉の加重平均を算出することにより、修正値 <P 〉を求める。より具体的には、 Find the average pixel values <P-> and <P> of the local decoded image in the two blocks adjacent to the right. Then, calculate the weighted average of the average pixel values P −> and <P> of the obtained local decoded image and the average pixel value <P> of the local decoded image in the target block obtained in step W2. Thus, the corrected value <P> is obtained. More specifically,
πιοα、 η πιοα, η
修正値 <Ρ 〉の値を以下の算出式で算出する。 Calculate the corrected value <Ρ> using the following formula.
πιοα、 η πιοα, η
[0246] [数 26] [0246] [Equation 26]
〈 d,„〉= ^(2 ,〉 +〈 +〈 ) 〈 D , „〉 = ^ (2,〉 + 〈+ 〈)
[0247] 注目ブロック Bが画面端に位置する場合には以下の算出方法で算出する。 [0247] When the target block B is positioned at the screen edge, the following calculation method is used.
[0248] [数 27] [0248] [Equation 27]
〈 ,, ,〉= (〈„〉 +〈 ) (» modf = 0 ) 〈,,,〉 = (〈„〉 + 〈) (» Modf = 0)
[0249] [数 28] ,〉 = ( ,〉十〈 ) (nmodW = W-l) [0249] [Equation 28],〉 = (,〉 ten 〈) (nmodW = W-l)
[0250] なお、上記の計算は、注目ブロックとその近傍のブロックとにおける復号画像の平 均画素値を平滑化することで、量子化誤差が発生しなかった場合の当該注目ブロッ クにおける局所復号画像の平均画素値を近似する修正値 <P 〉を計算するとい [0250] Note that the above calculation is performed by smoothing the average pixel value of the decoded image in the block of interest and its neighboring blocks, so that local decoding in the block of interest when no quantization error occurs is performed. Calculate the corrected value <P> that approximates the average pixel value of the image
mod、 n mod, n
う処理に相当する。上記修正は、特に画素値の変動が平坦な画像領域において発 生した量子化誤差を低減するのに適した修正である。図 15の(c)はステップ W3によ
り得られる修正された局所復号画像の平均画素値 < P 〉を模式的に表す図で It corresponds to the processing. The above correction is particularly suitable for reducing the quantization error generated in an image region where the fluctuation of the pixel value is flat. Figure 15 (c) is based on step W3. The average pixel value <P> of the modified local decoded image obtained
lnod、 n lnod, n
ある。 is there.
[0251] (ステップ W4)ステップ W1とステップ W2とでそれぞれ導出された、符号化対象画 像の平均画素値 < p 〉、局所復号画像の平均画素値 < P 〉、および、ステップ W3 で導出された修正値 < Ρ' 〉に基づいて、注目ブロック Βにおいて画素値の修正を 行うか否かの判定をする。局所復号画像の平均画素値 < Ρ 〉よりも修正値 < Ρ' > の値の方が符号化対象画像の < ρ 〉の値に近い場合には、ステップ W5へ進む。上 記以外の場合にはステップ W6へ進む。 [0251] (Step W4) The average pixel value <p> of the encoding target image, the average pixel value <P> of the local decoded image, and the step W3, respectively, derived in Step W1 and Step W2, respectively. Based on the corrected value <Ρ '>, it is determined whether or not to correct the pixel value in the target block Β. If the value of the modified value <値 ′> is closer to the value of <ρ> of the encoding target image than the average pixel value <Ρ> of the local decoded image, the process proceeds to step W5. Otherwise go to step W6.
[0252] (ステップ W5)注目ブロック Βに対して修正を行うと判定し、この判定結果を、修正 方法判定結果として逆フィルタ入力修正部 16および画像符号化部 3に送出して、修 正方法決定処理を終了する。 [0252] (Step W5) It is determined that the target block Β is to be corrected, and this determination result is sent as a correction method determination result to the inverse filter input correction unit 16 and the image encoding unit 3 to be corrected. The decision process is terminated.
[0253] (ステップ W6)、注目ブロック Βに対して修正を行わな!/、と判定して、前記判定結果 を修正方法判定結果として逆フィルタ入力修正部 16および画像符号化部 3に送出し て、修正方法決定処理を終了する。 [0253] (Step W6), the target block 修正 is determined not to be corrected! /, And the determination result is sent to the inverse filter input correction unit 16 and the image encoding unit 3 as a correction method determination result. Then, the correction method determination process ends.
[0254] 以上の手順によって修正方法決定処理を行うことで、当該ブロック Βに対して逆フ ィルタ入力修正部 16で適用する修正方法を決定して、上記修正方法を修正方法判 定結果として送出すること力 Sできる。後述する逆フィルタ入力修正処理にお!/ヽては、 上記判定結果に応じて、注目ブロックの量子化誤差が低減され得る場合のみ修正を fiなうことができる。 [0254] By performing the correction method determination process according to the above procedure, the correction method to be applied to the block 入 力 by the inverse filter input correction unit 16 is determined, and the correction method is transmitted as the correction method determination result. The power to do S. In the inverse filter input correction process described later, correction can be made only when the quantization error of the block of interest can be reduced according to the determination result.
[0255] 〔逆フィルタ入力修正処理の詳細〕 [Details of inverse filter input correction processing]
次に、図 16のフローチャートに基づいて、動画像符号化装置 300bおよび動画像 復号装置 400bの逆フィルタ入力修正部において実行される逆フィルタ入力処理に ついて説明する。なお、ステップ X;!〜 X7は逆フィルタへの入力画像における注目ブ ロック Bnの画素値を算出する処理を表す。 Next, an inverse filter input process executed in the inverse filter input correction unit of the moving image encoding device 300b and the moving image decoding device 400b will be described based on the flowchart of FIG. Steps X;! To X7 represent processing for calculating the pixel value of the target block Bn in the input image to the inverse filter.
[0256] (ステップ XI)フレームメモリ 7から局所復号画像を取得する。 (Step XI) A locally decoded image is acquired from the frame memory 7.
[0257] (ステップ X2)修正方法決定処理において導出され、修正方法決定部 17もしくは 可変長復号部 20bより供給された修正方法判定結果が、注目ブロック Bnにお!/、て局 所復号画像の修正を行うことを示す場合はステップ X3へ進む。前記判定結果が、注
目ブロック Bnにお!/、て局所復号画像の修正を行うことを示す場合はステップ X7へ進 む。 [0257] (Step X2) The correction method determination result derived in the correction method determination process and supplied from the correction method determination unit 17 or the variable length decoding unit 20b is the! If you indicate that you want to make corrections, go to step X3. The judgment result is Proceed to Step X7 to indicate that the local block image is to be corrected for eye block Bn! /.
[0258] (ステップ X3)ステップ XIで取得した注目ブロック Bnにおける局所復号画像の平均 画素値 < P 〉を計算する。 (Step X3) The average pixel value <P> of the locally decoded image in the target block Bn obtained in Step XI is calculated.
[0259] (ステップ X4)修正方法決定処理におけるステップ W2と同様の方法で、修正値 <[0259] (Step X4) The correction value <
P 〉の値を算出する。 Calculate the value of P>.
niod、 n niod, n
[0260] (ステップ X5)ステップ X3にて得られた平均画素値く P 〉と、ステップ X4にて得ら れた修正値 < P 〉を用いて、修正された局所復号画像の画素値 P (n, u, V) [0260] (Step X5) Using the average pixel value P> obtained in Step X3 and the modified value <P> obtained in Step X4, the pixel value P ( n, u, V)
niod、 n mod niod, n mod
を以下の算出式により算出する。 Is calculated by the following calculation formula.
[0261] [数 29] [0261] [Numerical 29]
Pmai{w) = P {n,u,v) + < P→, >一く P„ > [0262] ここで、 < P 〉一 < P 〉は、局所復号画像の平均画素値から、量子化誤差が P mai (w) = P (n, u, v) + <P → ,> P <> [0262] where <P> 1 <P> is the quantum from the average pixel value of the local decoded image. Conversion error
n mod、 n n mod, n
発生しなかった場合の当該注目ブロックにおける局所復号画像の平均画素値を近 似する修正値を減算した差、すなわち、ブロック Bにおける近似的な量子化誤差量 を表す。従って、上記修正は、局所復号画像の各画素の画素値から、該近似的な量 子化誤差を除去する処理に相当する。この修正により、ブロック Bにおける局所復号 画像の平均画素値 Pnは、ステップ X2で得られた修正された平均画素値 < P > niod、 n に置き換えられる。 This indicates the difference obtained by subtracting the correction value that approximates the average pixel value of the local decoded image in the target block when it does not occur, that is, the approximate quantization error amount in block B. Therefore, the correction corresponds to a process of removing the approximate quantization error from the pixel value of each pixel of the locally decoded image. With this modification, the average pixel value Pn of the locally decoded image in block B is replaced with the modified average pixel value <P> niod, n obtained in step X2.
[0263] (ステップ X6)ステップ X5で得られた、修正された局所復号画像を逆フィルタ処理 部 12へ送出して、逆フィルタ入力修正処理を終了する。 [0263] (Step X6) The corrected local decoded image obtained in Step X5 is sent to the inverse filter processing unit 12, and the inverse filter input correction process is terminated.
[0264] (ステップ X7)ステップ XIで取得した局所復号画像をそのまま逆フィルタ処理部 12 へ送出して、逆フィルタ入力修正処理を終了する。 (Step X7) The local decoded image acquired in Step XI is sent as it is to the inverse filter processing unit 12, and the inverse filter input correction process is terminated.
[0265] 以上の手順によって、逆フィルタ入力修正処理を行うことで、局所復号画像を修正 して量子化誤差を低減することができる。修正されて、量子化誤差が低減された局所 復号画像に対して逆フィルタ処理を行うことで、修正されてレ、な!/、局所復号画像を入 力する場合に較べて、フィルタ処理により除去した周波数成分をより正確に復元する こと力 Sでさる。
[0266] 〔実施形態 2についての付記事項〕 [0265] By performing the inverse filter input correction process according to the above procedure, the locally decoded image can be corrected and the quantization error can be reduced. By applying the inverse filter process to the locally decoded image that has been modified and the quantization error is reduced, it is corrected and removed by filtering as compared to the case of inputting the locally decoded image. The force S can be restored more accurately to restore the frequency component. [Additional Notes about Embodiment 2]
動画像符号化装置 300bにおける修正方法決定処理に関する上記の説明におい て、修正方法決定部 17は、修正方法判定結果を可変長符号化部 3に送出するもの とした。しかし、必ずしも全てのブロックに対する修正方法判定結果を符号化する必 要はなぐ修正方法判定結果が復号時に推定可能である場合には符号化を省略し ても構わない。 In the above description regarding the correction method determination processing in the moving image encoding device 300b, the correction method determination unit 17 is assumed to send the correction method determination result to the variable length encoding unit 3. However, it is not always necessary to encode the correction method determination results for all the blocks. If the correction method determination results can be estimated at the time of decoding, the encoding may be omitted.
[0267] 例えば、修正方法決定処理において、ブロック Bnにおける局所復号画像の平均画 素値 < Pn〉と、修正された局所復号画像の平均画素値 < P 〉が一致する場合 [0267] For example, in the correction method determination process, when the average pixel value <Pn> of the local decoded image in block Bn matches the average pixel value <P> of the corrected local decoded image
niod、 n niod, n
には、常に逆フィルタ入力修正部 16において修正を行わないものと判定される。前 記の場合には、復号時に前記判定結果を容易に推定できるため、前記判定結果を 符号化する必要はな!/、。そのため符号化データの符号量を削減することができる。 Therefore, it is always determined that the inverse filter input correction unit 16 does not perform correction. In the case described above, since the determination result can be easily estimated at the time of decoding, it is not necessary to encode the determination result! /. Therefore, the code amount of encoded data can be reduced.
[0268] また、局所復号画像の平均画素値 < P 〉と、修正された局所復号画像の平均画 素値 < P 〉の差がある程度以上ある場合には、平均画素値 < P 〉の方が入力 [0268] If there is a difference between the average pixel value <P> of the locally decoded image and the average pixel value <P> of the modified local decoded image to some extent, the average pixel value <P> is better. Input
niod、 n n niod, n n
画像データの平均画素値く p 〉に近いという傾向がある。そこで、ある閾値 T1を定 めて、 < P 〉と<? 〉の差力 ST1より大きい場合には常に局所復号画像の推定を There is a tendency that the average pixel value of image data is close to p>. Therefore, a certain threshold T1 is determined, and <P> and <? > When ST1 is greater than ST1, the local decoded image is always estimated.
n mod、 n n mod, n
行わないと判定する。その場合、復号時には < P 〉と<? 〉の差を評価すること It is determined not to perform. In that case, <P> and <? Evaluating the difference between
n mod、 n n mod, n
で判定結果を推定することができるため、修正方法判定結果を符号化する必要がな い。なお、閾値 T1として、例えば次の数式で表される値を利用できる。 Therefore, it is not necessary to encode the correction method determination result. As the threshold T1, for example, a value represented by the following formula can be used.
[0269] [数 30] [0269] [Equation 30]
[0270] ここで、 rは DCT変換係数における直流成分の値を量子化する際に用いた量子化 [0270] where r is the quantization used to quantize the DC component value in the DCT transform coefficient
0 0
ステップ幅、 γ は rの値を周波数領域の単位から空間領域の単位に変換する為の The step width, γ, is used to convert the value of r from frequency domain units to spatial domain units.
0 0 0 0
係数である。上記のように閾値 T1を定めるのは、平均画素値く P〉と入力画像データ の平均画素値く P〉の差が基本的に r X γ 以下であるという事実による。 It is a coefficient. The threshold T1 is determined as described above due to the fact that the difference between the average pixel value P> and the average pixel value P> of the input image data is basically less than r X γ.
η 0 0 η 0 0
[0271] また、修正された局所復号画像の平均画素値 < Ρ 〉の導出に近傍ブロックの [0271] In order to derive the average pixel value <Ρ> of the modified local decoded image,
niod、 n niod, n
平均画素値の値を参照した平滑化を利用する場合、画素値の変動が平坦な画像領 域に対しては修正が行われやすいという傾向がある。そこで、例えば量子化代表値
を参照して注目ブロックが平坦な領域か否かを判定し、平坦な領域と判定された場 合には常に修正を行うものとして修正方法判定結果を符号化しないことで、符号化 データの符号量を削減することができる。 When smoothing with reference to the value of the average pixel value is used, there is a tendency that correction is easily performed on an image area where the fluctuation of the pixel value is flat. Therefore, for example, quantization representative value To determine whether or not the target block is a flat region. If it is determined that the target block is a flat region, the correction method determination result is not encoded and the correction method determination result is not encoded. The amount can be reduced.
[0272] なお、上記の修正方法決定処理および逆フィルタ入力修正処理においては、修正 された局所復号画像における平均画素値 < P 〉の導出に、注目ブロックの左右 [0272] In the correction method determination process and the inverse filter input correction process described above, the left and right sides of the target block are used to derive the average pixel value <P> in the corrected local decoded image.
niod、 n niod, n
に隣接するブロックを用いた平滑化を用いた力 別の方法で平均画素値 < P > Force using smoothing with blocks adjacent to the average pixel value <P>
mod、 n を導出しても構わない。 mod, n may be derived.
[0273] 例えば、注目ブロックの上下左右にそれぞれに隣接する 4つのブロックを用いた平 滑化により平均画素値 < P 〉を導出することもできる。注目ブロック Bnの平均画 [0273] For example, the average pixel value <P> can be derived by smoothing using four blocks adjacent to each of the top, bottom, left, and right of the block of interest. Average image of the block of interest Bn
niod、 n niod, n
素値 < P 〉および、ブロック Bnの上下左右に隣接するブロックの平均画素値 < P― 〉、 < P 〉、 < P 〉、 < P 〉を用いて、修正された平均画素値く P > Using the prime value <P> and the average pixel values <P->, <P>, <P>, <P> of blocks adjacent to the top, bottom, left, and right of block Bn, the corrected average pixel value P>
W n+W n— 1 n+ 1 mod, n の値を以下の算出式で算出することができる。 The value of W n + W n− 1 n + 1 mod, n can be calculated by the following calculation formula.
[0274] [数 31] [0274] [Equation 31]
〈 〉 = (4〈„〉 +〈 + 〉 +〈 !〉 +〈 ) 〈> = (4 〈„〉 + 〈+〉 + 〈!〉 + 〈)
[0275] 注目ブロック Bが画面端に位置する場合には別の算出方法で算出する。ブロック B が上端 (ただし左上隅と右上隅以外)、左上隅にある場合の算出式について以下に 示す。 [0275] When the target block B is located at the screen edge, the calculation is performed by another calculation method. The calculation formula when block B is at the upper end (except for the upper left corner and upper right corner) and the upper left corner is shown below.
[0276] [数 32] [0276] [Equation 32]
〈 d,„〉= 〉 + 〉 +〈 "- +〈 " ("く かつ "≠。 かつ - 1) 〈 D , „〉 =〉 +〉 + 〈"-+ 〈"(" Katsu and "≠. And-1)
[0277] [数 33] ,〉 = -(2(„) + („+f ) + („+1)j (" = 0) [0277] [Equation 33],〉 =-(2 („) + („ + f ) + („ +1 ) j (" = 0)
[0278] ブロック Bが前記以外の画面端に位置する場合については同様の考え方で算出 できるため説明を省略する。 [0278] The case where block B is located at a screen edge other than the above can be calculated based on the same concept, and the description is omitted.
[0279] 〔付記事項〕 [0279] [Appendix]
本発明は上述した各実施形態に限定されるものではなぐ請求項に示した範囲で 種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適
宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。例 えば、本発明は以下のように構成することができる。 The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and the technical means disclosed in the different embodiments are applied appropriately. Embodiments obtained by appropriate combinations are also included in the technical scope of the present invention. For example, the present invention can be configured as follows.
[0280] 本発明にかかる動画像復号装置は、ブロック歪を発生させる周波数成分が除去さ れた画像データを符号化して得られた符号化データを復号する動画像復号装置で あって、 [0280] The video decoding device according to the present invention is a video decoding device that decodes encoded data obtained by encoding image data from which frequency components that generate block distortion have been removed.
上記符号化データを復号する可変長復号手段と、 Variable length decoding means for decoding the encoded data;
復号して得られた画像データに対し、上記除去された周波数成分を復元する逆フ ィルタ処理を施す逆フィルタ処理手段と、 An inverse filter processing means for performing an inverse filter process for restoring the removed frequency component on the image data obtained by decoding;
参照画像の画素値に基づいて予測画像を生成する予測画像生成手段と、 上記周波数成分が除去された画像データと上記予測画像の差を近似する予測誤 差量を導出する予測誤差量導出手段と、 Prediction image generation means for generating a prediction image based on pixel values of a reference image; prediction error amount derivation means for deriving a prediction error amount approximating the difference between the image data from which the frequency component has been removed and the prediction image; ,
上記予測誤差量に基づいて上記予測画像を補正する補正手段と、 Correction means for correcting the predicted image based on the prediction error amount;
を備えて構成されて!/、てもよレ、。 It is configured with! /
[0281] また、本発明に係る動画像復号装置において、 [0281] Further, in the video decoding device according to the present invention,
上記可変長復号手段は、上記補正手段にお!/、て補正を行うか否かを示す補正判 定結果を復号し、 The variable length decoding means decodes the correction judgment result indicating whether or not to correct the correction means!
上記補正手段は、上記補正判定結果に応じて、上記予測誤差量に基づいて上記 予測画像を補正するか否かを切り替える、 The correction means switches whether to correct the predicted image based on the prediction error amount according to the correction determination result.
ように構成されていてもよい。 It may be configured as follows.
[0282] また、本発明に係る動画像復号装置におレ、て、 [0282] Also, in the video decoding device according to the present invention,
上記補正手段は、処理対象ブロックにお!/、て上記予測誤差量に基づ!/、て上記予 測画像を補正できるか否力、を推定し、上記推定が可能である場合には、上記推定の 結果に応じて、上記予測誤差量に基づ!/、て上記予測画像を補正するか否かを切り 替える、 The correction means estimates whether or not the predicted image can be corrected based on the prediction error amount! /, Based on the prediction error amount in the processing target block, and when the estimation is possible, Depending on the result of the estimation, based on the prediction error amount! /, It is switched whether to correct the predicted image.
ように構成されていてもよい。 It may be configured as follows.
[0283] また、本発明に係る動画像復号装置におレ、て、 [0283] Also, in the video decoding device according to the present invention,
上記補正手段は、少なくとも 1個以上の復号済ブロックに対応する上記予測誤差量 に基づ!/、て上記予測画像を補正する、
ように構成されていてもよい。 The correction means corrects the prediction image based on the prediction error amount corresponding to at least one decoded block! It may be configured as follows.
[0284] また、本発明に係る動画像復号装置におレ、て、 [0284] Also, in the video decoding device according to the present invention,
上記復号済ブロックは、処理対象ブロックに隣接するブロックを少なくとも 1個以上 含む、 The decoded block includes at least one block adjacent to the processing target block,
ように構成されていてもよい。 It may be configured as follows.
[0285] また、本発明に係る動画像復号装置におレ、て、 [0285] Also, in the video decoding device according to the present invention,
上記補正手段は、上記予測誤差量および上記予測誤差量と相関のある符号化パ ラメータに基づいて上記予測画像を補正する、 The correction means corrects the prediction image based on the prediction error amount and an encoding parameter correlated with the prediction error amount.
ように構成されていてもよい。 It may be configured as follows.
[0286] 本発明に係る動画像復号装置は、画像を複数のブロックに分割して各ブロックの画 像データを量子化し、該量子化により得られた量子化代表値を符号化する動画像符 号化装置であって、 [0286] The moving image decoding apparatus according to the present invention divides an image into a plurality of blocks, quantizes the image data of each block, and encodes a quantized representative value obtained by the quantization. Encoding device,
上記量子化前の画像データに対し、ブロック歪を発生させる周波数成分を除去す るフィルタ処理を施すフィルタ処理手段と、 Filter processing means for performing filter processing for removing frequency components that generate block distortion on the image data before quantization;
参照画像の画素値に基づいて予測画像を生成する予測画像生成手段と、 上記フィルタ処理を施した画像データと上記予測画像の差を近似する予測誤差量 を導出する予測誤差量導出手段と、 A predicted image generating unit that generates a predicted image based on a pixel value of a reference image; a prediction error amount deriving unit that derives a prediction error amount that approximates a difference between the image data subjected to the filtering process and the predicted image;
上記予測誤差量に基づいて上記予測画像を補正する補正手段と、 Correction means for correcting the predicted image based on the prediction error amount;
を備えて構成されて!/、てもよレ、。 It is configured with! /
[0287] 本発明に係る動画像復号装置は、ブロック歪を発生させる周波数成分が除去され た画像データを符号化して得られた符号化データを復号する動画像復号装置であ つて、 [0287] A video decoding device according to the present invention is a video decoding device that decodes encoded data obtained by encoding image data from which frequency components that generate block distortion have been removed.
上記符号化データを復号する可変長復号手段と、 Variable length decoding means for decoding the encoded data;
上記除去された周波数成分を復元する逆フィルタ処理を施す逆フィルタ処理手段 と、 Inverse filter processing means for performing inverse filter processing to restore the removed frequency component;
上記逆フィルタ処理手段に入力される局所復号画像において発生している量子化 誤差を低減する逆フィルタ入力修正手段と、 An inverse filter input correcting means for reducing a quantization error occurring in the local decoded image input to the inverse filter processing means;
を備えて構成されて!/、てもよレ、。
[0288] また、本発明に係る動画像復号装置におレ、て、 It is configured with! / [0288] Also, in the video decoding device according to the present invention,
上記可変長復号手段は、上記逆フィルタ処理手段における上記局所復号画像の 修正処理を制御するための修正方法判定結果を復号し、 The variable length decoding means decodes a correction method determination result for controlling the correction process of the local decoded image in the inverse filter processing means,
上記逆フィルタ入力修正手段は、上記修正方法判定結果に応じて、処理対象プロ ックを修正するか否かを切り替える、 The inverse filter input correction means switches whether to correct the processing target block according to the correction method determination result;
ように構成されていてもよい。 It may be configured as follows.
[0289] また、本発明に係る動画像復号装置におレ、て、 [0289] Also, in the video decoding device according to the present invention,
上記逆フィルタ入力修正手段は、処理対象ブロックに隣接する少なくとも 1個以上 のブロックそれぞれの平均画素値に基づレ、て修正値を算出し、上記修正値と処理対 象ブロックの平均画素値との比較結果に応じて処理対象ブロックを修正するか否か を切り替える、 The inverse filter input correction means calculates a correction value based on an average pixel value of each of at least one block adjacent to the processing target block, and calculates the correction value and the average pixel value of the processing target block. Switch whether to modify the processing target block according to the comparison result of
ように構成されていてもよい。 It may be configured as follows.
[0290] また、本発明に係る動画像復号装置におレ、て、 [0290] Also, in the video decoding device according to the present invention,
上記逆フィルタ入力修正手段は、処理対象ブロックに隣接する少なくとも 1個以上 のブロックそれぞれの平均画素値に基づいて修正値を算出し、処理対象ブロックの 平均画素値が上記修正値に一致するように、処理対象ブロックを修正する、 ように構成されていてもよい。 The inverse filter input correction means calculates a correction value based on an average pixel value of each of at least one block adjacent to the processing target block so that the average pixel value of the processing target block matches the correction value. The processing target block may be corrected.
[0291] 本発明に係る動画像符号化装置は、画像を複数のブロックに分割して各ブロックの 画像データを量子化し、該量子化により得られた量子化代表値を符号化する動画像 符号化装置であって、 [0291] The video encoding apparatus according to the present invention divides an image into a plurality of blocks, quantizes the image data of each block, and encodes the quantized representative value obtained by the quantization. Device.
画像データを復号するために必要な情報を符号化する可変長符号化部と、 上記量子化前の画像データに対し、ブロック歪を発生させる周波数成分を除去す るフィルタ処理を施すフィルタ処理手段と、 A variable-length encoding unit that encodes information necessary for decoding image data, and a filter processing unit that performs filter processing for removing frequency components that generate block distortion on the image data before quantization. ,
局所復号画像において発生する量子化誤差を低減するために上記局所復号画像 を修正するか否力、を判定する修正方法決定手段を備え、 Correction method determining means for determining whether or not to correct the local decoded image in order to reduce the quantization error generated in the local decoded image;
上記可変長符号化手段は、上記修正方法決定手段における判定結果である修正 方法判定結果を符号化する、 The variable length encoding means encodes a correction method determination result which is a determination result in the correction method determination means;
ように構成されていてもよい。
[0292] 最後に、本発明の動画像符号化装置 300a、 300b,および、本発明の動画像復号 装置 400a、 400bの上記各ブロックは、ハードウェアロジックによって構成されるもの であってもよいし、次のように CPUを用いてソフトウェアによって実現されるものであつ てもよい。 It may be configured as follows. [0292] Finally, the above-described blocks of the moving image encoding devices 300a and 300b of the present invention and the moving image decoding devices 400a and 400b of the present invention may be configured by hardware logic. It may be realized by software using a CPU as follows.
[0293] すなわち、上記動画像符号化装置および動画像復号装置は、各機能を実現する 制御プログラムの命令を実行する CPU (central processing unit)、上記プログラムを 格納した ROM (read only memory)、上記プログラムを展開する RAM (random acces s memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置 (記録 媒体)などを備えている。そして、本発明の目的は、上述した機能を実現するソフトゥ エアである上記動画像符号化装置および動画像復号装置の制御プログラムのプログ ラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンビュ ータで読み取り可能に記録した記録媒体を、上記動画像符号化装置および動画像 復号装置に供給し、そのコンピュータほたは CPUや MPU)が記録媒体に記録され ているプログラムコードを読み出し実行することによつても、達成可能である。 [0293] That is, the moving picture encoding apparatus and moving picture decoding apparatus include a CPU (central processing unit) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, and the above It is equipped with RAM (random access memory) for expanding the program, and storage devices (recording media) such as memory for storing the program and various data. An object of the present invention is to compile program codes (execution format program, intermediate code program, source program) of the control program for the video encoding device and the video decoding device, which are software that realizes the above-described functions. A recording medium recorded so as to be readable by a computer is supplied to the moving picture encoding apparatus and the moving picture decoding apparatus, and the computer or CPU or MPU) reads out and executes the program code recorded on the recording medium. This is also achievable.
[0294] 上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッ ピー(登録商標)ディスク/ハードディスク等の磁気ディスクや CD— ROM/MO/ MD/DVD/CD— R等の光ディスクを含むディスク系、 ICカード(メモリカードを含 む)/光カード等のカード系、あるいはマスク ROM/EPROM/EEPROM/フラッ シュ ROM等の半導体メモリ系などを用いることができる。 [0294] Examples of the recording medium include magnetic tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, and CD-ROM / MO / MD / DVD / CD-R. A disk system including an optical disk, a card system such as an IC card (including a memory card) / optical card, or a semiconductor memory system such as a mask ROM / EPROM / EEPROM / flash ROM can be used.
[0295] また、上記動画像符号化装置および動画像復号装置を通信ネットワークと接続可 能に構成し、上記プログラムコードは通信ネットワークを介して供給してもよい。この 通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、ェ キストラネット、 LAN, ISDN, VAN, CATV通信網、仮想専用網(virtual private ne twork)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信 ネットワークを構成する伝送媒体としては、特に限定されず、例えば、 IEEE1394、 U SB、電力線搬送、ケーブル TV回線、電話線、 ADSL回線等の有線でも、 IrDAゃリ モコンのような赤外線、 Bluetooth (登録商標)、 802. 11無線、 HDR、携帯電話網 、衛星回線、地上波デジタル網等の無線でも利用可能である。なお、本発明は、上
記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンビュ ータデータ信号の形態でも実現され得る。 [0295] Further, the moving image encoding device and the moving image decoding device may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network (virtual private network), telephone line network, mobile communication network Satellite communication networks can be used. In addition, the transmission medium constituting the communication network is not particularly limited. For example, in the case of wired communication such as IEEE1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared rays such as IrDA remote control, Bluetooth (registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network, etc. can also be used. The present invention is not limited to the above. It can also be realized in the form of a converter data signal embedded in a carrier wave, in which the program code is embodied by electronic transmission.
[0296] 本発明に係る動画像復号装置は、ブロック歪を発生させる周波数成分を除去する フィルタ処理が施された量子化対象画像を複数のブロックに分割し、該量子化対象 画像をブロック毎に量子化することにより得られた量子化代表値を、逆量子化する動 画像復号装置であって、少なくとも 1つ以上のブロックについて、上記逆量子化により 復元された復元量子化対象画像の各画素の画素直に、該画素が属するブロックに おける上記量子化対象画像の平均画素値を近似する近似平均画素値を加算する補 正を行う復元量子化対象画像補正手段と、上記補正が施された復元量子化対象画 像に対し、上記フィルタ処理の逆変換に相当する逆フィルタ処理を施す逆フィルタ処 理手段と、を備えている。 [0296] The moving picture decoding apparatus according to the present invention divides a quantization target image subjected to filter processing for removing a frequency component that generates block distortion into a plurality of blocks, and the quantization target image is divided into blocks. A video decoding device that inversely quantizes a quantized representative value obtained by quantization, wherein each pixel of a restored quantization target image restored by the above inverse quantization for at least one block A restored quantization target image correcting unit that performs correction by adding an approximate average pixel value that approximates the average pixel value of the quantization target image in the block to which the pixel belongs, and the correction is performed. And an inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process on the restored quantization target image.
[0297] また、本発明に係る動画像復号装置は、ブロック歪を発生させる周波数成分を除去 するフィルタ処理が施された量子化対象画像を複数のブロックに分割してブロック毎 に量子化する動画像復号装置であって、上記課題を解決するために、少なくとも 1つ 以上のブロックについて、上記量子化による量子化代表値を逆量子化して復元され た復元量子化対象画像の各画素の画素値から、該画素が属するブロックにおける量 子化誤差を近似する近似量子化誤差を減算する補正を行う復元量子化対象画像補 正手段と、上記補正が施された復元量子化対象画像に対し、上記フィルタ処理の逆 変換に相当する逆フィルタ処理を施し、上記除去された周波数成分を復元する逆フ ィルタ処理手段と、を備えている。 [0297] Also, the moving picture decoding apparatus according to the present invention divides a quantization target image, which has been subjected to filter processing for removing frequency components that generate block distortion, into a plurality of blocks, and quantizes each block for quantization. In order to solve the above-described problem, the image decoding apparatus includes a pixel value of each pixel of the restored quantization target image restored by dequantizing the quantization representative value obtained by the quantization for at least one block. To the restored quantization target image correcting means for performing correction for subtracting the approximate quantization error that approximates the quantization error in the block to which the pixel belongs, and for the restored quantization target image subjected to the above correction, And an inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process and restoring the removed frequency component.
[0298] このため、復号された動画像におけるブロック歪を低減でき、また、画像のボケゃチ ラツキといった副作用を生じることのない動画像復号装置であって、さらに除去された ブロック歪を発生させる周波数成分を、正確に復元可能な動画像復号装置を実現す ること力 Sでさる。 [0298] Therefore, the block distortion in the decoded moving image can be reduced, and the moving image decoding apparatus does not cause side effects such as blurring of the image, and further generates the removed block distortion. The ability S to achieve a video decoding device that can accurately restore frequency components.
[0299] 発明の詳細な説明の項にお!/、てなされた具体的な実施形態または実施例は、あく までも、本発明の技術内容を明らかにするものであって、そのような具体例にのみ限 定して狭義に解釈されるべきものではなぐ本発明の精神と次に記載する請求の範 囲内で、レ、ろ!/、ろと変更して実施することができるものである。
産業上の利用可能性 [0299] The specific embodiments or examples made in the detailed description section of the invention have so far clarified the technical contents of the present invention. The present invention should not be construed in a narrow sense, but only by way of example, and can be carried out in various ways within the spirit of the present invention and within the scope of the following claims. . Industrial applicability
本発明は、動画像を符号化して記憶する動画像記憶装置、動画像を符号化して送 信する動画像送信装置、あるいは、動画像を復号して再生する動画像再生装置等と して好適に利用することができる。具体的には、例えば、ハードディスクレコーダゃ携 帯電話端末など対して、好適に利用することができる。
The present invention is suitable as a moving image storage device that encodes and stores moving images, a moving image transmission device that encodes and transmits moving images, or a moving image reproducing device that decodes and reproduces moving images. Can be used. Specifically, for example, it can be suitably used for a hard disk recorder or a mobile phone terminal.
Claims
[1] ブロック歪を発生させる周波数成分を除去するフィルタ処理が施された量子化対象 画像をブロック毎に量子化することにより得られた量子化代表値を、逆量子化する動 画像復号装置であって、 [1] A video decoding device that inverse-quantizes the quantized representative value obtained by quantizing the image to be quantized that has been subjected to filter processing to remove frequency components that generate block distortion for each block. There,
少なくとも 1つ以上のブロックについて、上記逆量子化により復元された復元量子化 対象画像の各画素の画素値に、該画素が属するブロックにおける上記量子化対象 画像の平均画素値を近似する近似平均画素値を加算する補正を行う復元量子化対 象画像補正手段と、 For at least one block, an approximate average pixel that approximates the average pixel value of the quantization target image in the block to which the pixel belongs to the pixel value of each pixel of the reconstruction target image restored by the inverse quantization. Reconstructed quantization target image correcting means for performing correction for adding values;
上記補正が施された復元量子化対象画像に対し、上記フィルタ処理の逆変換に相 当する逆フィルタ処理を施す逆フィルタ処理手段と、を備えている、 An inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process on the restored quantization target image subjected to the correction,
ことを特徴とする動画像復号装置。 A moving picture decoding apparatus characterized by the above.
[2] 上記補正を行うべきブロックを指定する補正ブロック指定情報を、上記量子化を行 う動画像符号化装置から取得する補正ブロック指定情報取得手段を更に備え、 上記復元量子化対象画像補正手段は、上記補正ブロック指定情報により指定され たブロックについて上記補正を行うものである、 [2] The restoration quantization target image correction unit further includes correction block designation information acquisition unit that acquires the correction block specification information that specifies the block to be corrected from the moving image encoding device that performs the quantization. Performs the above correction for the block specified by the correction block specification information.
ことを特徴とする請求の範囲第 1項に記載の動画像復号装置。 The moving picture decoding apparatus according to claim 1, wherein:
[3] 上記復元量子化対象画像の各ブロックの画素値を平均した補正前平均画素値と、 該補正前平均画素値から当該ブロックの上記近似平均画素値を減算した補正後平 均画素値との大小関係を推定する比較推定手段を更に備え、 [3] An average pixel value before correction obtained by averaging pixel values of each block of the restored quantization target image, and an average pixel value after correction obtained by subtracting the approximate average pixel value of the block from the average pixel value before correction A comparison estimation means for estimating the magnitude relation of
上記復元量子化対象画像補正手段は、上記比較推定手段により上記補正後平均 画素値が上記補正前平均画素値より小さレ、と推定されたブロックにつ!/、て、上記補 正を fiうものである、 The restored quantization object image correcting unit performs fiducial correction on the block whose average pixel value after correction is estimated to be smaller than the average pixel value before correction by the comparison and estimation unit! Is,
ことを特徴とする請求の範囲第 1項に記載の動画像復号装置。 The moving picture decoding apparatus according to claim 1, wherein:
[4] 上記近似平均画素値は、上記復元量子化対象画像から導出されたものである、 ことを特徴とする請求の範囲第 1項から第 3項までの何れか 1項に記載の動画像復号 装置。 [4] The moving image according to any one of claims 1 to 3, wherein the approximate average pixel value is derived from the restored quantization target image. Decoding device.
[5] 各ブロックの上記近似平均画素値を、当該ブロックに隣接する近似平均画素値導 出済みの隣接ブロックにおける上記復元量子化対象画像の画素値に基づいて導出
する近似平均画素値導出手段を更に備え、 [5] The approximate average pixel value of each block is derived based on the pixel value of the restored quantization target image in the adjacent block for which the approximate average pixel value adjacent to the block has been derived. An approximate average pixel value deriving unit
上記近似平均画素値導出手段は、 The approximate average pixel value deriving means includes:
上記隣接ブロックにつ!/、て上記補正が行われな!/、場合、上記隣接ブロックにおけ る上記復元量子化対象画像の平均画素値を、当該ブロックの近似平均画素値とし、 上記隣接ブロックにつ!/、て上記補正が行われる場合、上記隣接ブロックにおける 上記復元量子化対象画像の平均画素値と上記隣接ブロックの近似平均画素値との 差分値を、当該ブロックの近似平均画素値とする、 If the correction is not performed for the adjacent block! /, The average pixel value of the restored quantization target image in the adjacent block is set as the approximate average pixel value of the block, and the adjacent block When the above correction is performed, the difference value between the average pixel value of the restored quantization target image in the adjacent block and the approximate average pixel value of the adjacent block is calculated as the approximate average pixel value of the block. To
ことを特徴とする請求の範囲第 4項に記載の動画像復号装置。 5. The moving picture decoding apparatus according to claim 4, wherein the moving picture decoding apparatus is provided.
[6] 各ブロックの上記近似平均画素値を、上記量子化の方法を指定する量子化パラメ ータを参照することにより選択された当該ブロックと相関のある、近似平均画素値導 出済みの相関ブロックにおける上記復元量子化対象画像の画素値に基づいて導出 する近似平均画素値導出手段を更に備え、 [6] The approximate average pixel value of each block is correlated with the block selected by referring to the quantization parameter that specifies the quantization method, and the approximate average pixel value has been derived. An approximate average pixel value deriving unit for deriving based on the pixel value of the restored quantization target image in the block;
上記近似平均画素値導出手段は、 The approximate average pixel value deriving means includes:
上記相関ブロックにつ!/、て上記補正が行われな!/、場合、上記相関ブロックにおけ る上記復元量子化対象画像の平均画素値を、当該ブロックの近似平均画素値とし、 上記相関ブロックについて上記補正が行われる場合、上記相関ブロックにおける 上記復元量子化対象画像の平均画素値と上記相関ブロックの近似平均画素値との 差分値を、当該ブロックの近似平均画素値とする、 If the correction is not performed on the correlation block! /, The average pixel value of the restored quantization target image in the correlation block is set as the approximate average pixel value of the block, and the correlation block When the above correction is performed, the difference value between the average pixel value of the restored quantization target image in the correlation block and the approximate average pixel value of the correlation block is set as the approximate average pixel value of the block.
ことを特徴とする請求の範囲第 4項に記載の動画像復号装置。 5. The moving picture decoding apparatus according to claim 4, wherein the moving picture decoding apparatus is provided.
[7] ブロック歪を発生させる周波数成分を除去するフィルタ処理が施された量子化対象 画像をブロック毎に量子化することにより得られた量子化代表値を、逆量子化する動 画像復号装置であって、 [7] A video decoding device that inverse-quantizes the quantized representative value obtained by quantizing the image to be quantized that has been subjected to filter processing to remove frequency components that generate block distortion for each block. There,
少なくとも 1つ以上のブロックについて、上記逆量子化により復元された復元量子化 対象画像の各画素の画素値から、該画素が属するブロックにおける量子化誤差を近 似する近似量子化誤差を減算する補正を行う復元量子化対象画像補正手段と、 上記補正が施された復元量子化対象画像に対し、上記フィルタ処理の逆変換に相 当する逆フィルタ処理を施す逆フィルタ処理手段と、を備えている、 Correction for subtracting an approximate quantization error that approximates the quantization error in the block to which the pixel belongs from the pixel value of each pixel of the restored quantization image restored by the above inverse quantization for at least one or more blocks And an inverse filter processing means for performing an inverse filter process corresponding to the inverse transform of the filter process on the restored quantization target image subjected to the correction. ,
ことを特徴とする動画像復号装置。
A moving picture decoding apparatus characterized by the above.
[8] 上記補正を行うべきブロックを指定する補正ブロック指定情報を、上記量子化を行 う動画像符号化装置から取得する補正ブロック指定情報取得手段を更に備え、 上記復元量子化対象画像補正手段は、上記補正ブロック指定情報により指定され たブロックについて上記補正を行うものである、 [8] The restored quantization target image correcting unit, further comprising: a corrected block specifying information acquiring unit that acquires the correction block specifying information that specifies the block to be corrected from the moving image encoding device that performs the quantization. Performs the above correction for the block specified by the correction block specification information.
ことを特徴とする請求の範囲第 7項に記載の動画像復号装置。 8. The moving picture decoding apparatus according to claim 7, wherein
[9] 各ブロックにおける上記近似量子化誤差は、 [9] The approximate quantization error in each block is
当該ブロックの近傍にあるブロックの各々における上記復元量子化対象画像の平 均画素値を加重平均した加重平均値と、当該ブロックにおける上記復元量子化対象 画像の平均画素値との差分値である、 A difference value between a weighted average value obtained by weighted average of the average pixel values of the restored quantization target image in each block adjacent to the block and an average pixel value of the restored quantization target image in the block;
ことを特徴とする請求の範囲第 7項または第 8項に記載の動画像復号装置。 9. The moving picture decoding apparatus according to claim 7, wherein the moving picture decoding apparatus is characterized in that:
[10] 上記フィルタ逆処理手段は、 [10] The filter inverse processing means includes:
上記逆フィルタ処理の対象となる処理対象画像の各ブロックにおける平均画素値 を算出する平均画素値算出処理と An average pixel value calculation process for calculating an average pixel value in each block of the processing target image to be subjected to the inverse filtering process;
上記平均画素値算出処理にて算出された平均画素値に基づいて、上記処理対 象画像の各画素の画素値を予測する予測処理と、 A prediction process for predicting a pixel value of each pixel of the processing target image based on the average pixel value calculated in the average pixel value calculation process;
上記処理対象画像の各画素について、上記予測処理にて予測された当該画素 の予測画素値と、上記平均画素値算出処理にて算出された当該画素が属するプロ ックの平均画素値との差を、上記処理対象画像に付加すべき付加成分とし、当該付 加成分を上記処理対象画像の当該画素の画素値に加算する加算処理と、 を実 fiするものである、 For each pixel of the processing target image, the difference between the predicted pixel value of the pixel predicted in the prediction process and the average pixel value of the block to which the pixel belongs calculated in the average pixel value calculation process Is an additional component to be added to the processing target image, and the addition processing is performed to add the additional component to the pixel value of the pixel of the processing target image.
ことを特徴とする、請求の範囲第 1項から第 9項までの何れか 1項に記載の動画像復 号装置。 The moving picture decoding apparatus according to any one of claims 1 to 9, wherein the moving picture decoding apparatus is characterized in that:
[11] 量子化対象画像を複数のブロックに分割してブロック毎に量子化する動画像符号 化装置であって、 [11] A moving picture encoding apparatus that divides a quantization target image into a plurality of blocks and quantizes each block,
上記量子化対象画像に対し、ブロック歪を発生させる周波数成分を除去するフィル タ処理を施すフィルタ処理手段と、 Filter processing means for performing filtering processing on the quantization target image to remove frequency components that generate block distortion;
少なくとも 1つ以上のブロックについて、上記フィルタ処理が施された上記量子化対 象画像の各画素の画素値から、該画素が属するブロックにおける上記量子化対象画
像の平均画素値を近似する近似平均画素値を減算する補正を行う量子化対象画像 補正手段と、を備えている、 For at least one block, the quantization target image in the block to which the pixel belongs is calculated from the pixel value of each pixel of the quantization target image subjected to the filtering process. A quantization target image correcting unit that performs correction to subtract an approximate average pixel value that approximates an average pixel value of an image, and
ことを特徴とする動画像符号化装置。 A moving picture coding apparatus characterized by the above.
[12] 上記量子化対象画像の各ブロックについて、当該ブロックにおける上記量子化対 象画像の画素値を平均した補正前平均画素値と、該補正前平均画素値から当該ブ ロックの上記近似平均画素値を減算した補正後平均画素値とを算出する平均画素 値算出手段と、 [12] For each block of the quantization target image, an average pixel value before correction obtained by averaging pixel values of the quantization target image in the block, and the approximate average pixel of the block from the average pixel value before correction Average pixel value calculating means for calculating a corrected average pixel value obtained by subtracting the value;
上記量子化対象画像の各ブロックについて、上記補正前平均画素値と上記補正 後平均画素値とを大小比較する補正評価手段と、を更に備え、 Correction evaluation means for comparing the size of the average pixel value before correction and the average pixel value after correction for each block of the quantization target image,
上記量子化対象画像補正手段は、上記補正評価手段により上記補正後平均画素 値が上記補正前平均画素値より小さ!/、ことが判定されたブロックにつ!/、て、上記補正 を fiうものである、 The quantization target image correcting unit applies the correction to the block in which the average pixel value after correction is determined to be smaller than the average pixel value before correction by the correction evaluation unit! Is,
ことを特徴とする請求の範囲第 11項に記載の動画像符号化装置。 12. The moving picture coding apparatus according to claim 11, wherein the moving picture coding apparatus is provided.
[13] 上記量子化により得られた量子化代表値を逆量子化する動画像復号装置に対し、 上記量子化対象画像補正手段によって補正が行われたブロックを指定するための補 正ブロック指定情報を提供する補正ブロック指定情報提供手段を更に備えている、 ことを特徴とする、請求の範囲第 11項または第 12項に記載の動画像符号化装置。 [13] Correction block designation information for designating a block that has been corrected by the quantization target image correction means for a video decoding device that inversely quantizes the quantized representative value obtained by the quantization 13. The moving picture coding apparatus according to claim 11, further comprising correction block designation information providing means for providing
[14] フィルタ処理手段によりブロック歪を発生させる周波数成分を除去するフィルタ処理 が施された符号化対象画像を複数のブロックに分割してブロック毎に符号化する動 画像符号化装置であって、 [14] A moving picture coding apparatus that divides a coding target picture subjected to filter processing for removing frequency components that generate block distortion by a filter processing means into a plurality of blocks, and codes each block.
上記符号化により得られた符号化データを復号し局所復号画像を得る局所復号手 段と、 A local decoding means for decoding the encoded data obtained by the above encoding and obtaining a locally decoded image;
各ブロックに対し、当該ブロックの近傍にあるブロックの各々おける上記局所復号画 像の平均画素値を加重平均した加重平均値と、当該ブロックにおける上記局所復号 画像の平均画素値とのうち、何れの値が当該ブロックにおける上記符号化対象画像 の平均画素値に近いかを判定する補正方法判定手段と、 For each block, any one of a weighted average value obtained by weighted average of the average pixel values of the local decoded image in each block adjacent to the block and an average pixel value of the local decoded image in the block Correction method determining means for determining whether a value is close to an average pixel value of the encoding target image in the block;
上記符号化により得られた符号化データを復号する動画像復号装置に対し、上記 加重平均値の方が符号化対象画像の平均画素値に値が近いと判定されたブロック
を、補正を行うべきブロックとして指示するための補正ブロック指示情報を提供する補 正ブロック指示情報提供手段と、を備えている、 A block in which the weighted average value is determined to be closer to the average pixel value of the encoding target image with respect to the video decoding device that decodes the encoded data obtained by the encoding. Correction block instruction information providing means for providing correction block instruction information for instructing as a block to be corrected,
ことを特徴とする動画像符号化装置。 A moving picture coding apparatus characterized by the above.
[15] 上記フィルタ処理手段は、 [15] The filtering means includes:
上記フィルタ処理の対象となる処理対象画像の各ブロックにおける平均画素値を 算出する平均画素値算出処理と An average pixel value calculation process for calculating an average pixel value in each block of the processing target image to be filtered;
上記平均画素値算出処理にて算出された平均画素値に基づいて、上記処理対 象画像の各画素の画素値を予測する予測処理と、 A prediction process for predicting a pixel value of each pixel of the processing target image based on the average pixel value calculated in the average pixel value calculation process;
上記処理対象画像の各画素について、上記予測処理にて予測された当該画素 の予測画素値と、上記平均画素値算出処理にて算出された当該画素が属するプロ ックの平均画素値との差を、上記処理対象画像から除去すべき除去成分とし、当該 除去成分を上記処理対象画像の当該画素の画素値から減算する減算処理と、 を実 fiするものである、 For each pixel of the processing target image, the difference between the predicted pixel value of the pixel predicted in the prediction process and the average pixel value of the block to which the pixel belongs calculated in the average pixel value calculation process Is a removal component to be removed from the processing target image, and a subtraction process for subtracting the removal component from the pixel value of the pixel of the processing target image, and
ことを特徴とする、請求の範囲第 11項から第 14項までの何れ力、 1項に記載の動画像 符号化装置。 15. The moving picture encoding apparatus according to claim 1, wherein any one of claims 11 to 14 is used.
[16] 請求の範囲第 1項から第 10項までの何れか 1項に記載の動画像復号装置を備え た動画像再生装置であって、当該動画像復号装置にて復号された動画像を再生す る動画像再生装置。 [16] A moving picture reproduction apparatus comprising the moving picture decoding apparatus according to any one of claims 1 to 10, wherein the moving picture decoded by the moving picture decoding apparatus is A video playback device for playback.
[17] 請求の範囲第 11項から第 15項までの何れか 1項に記載の動画像符号化装置を備 えた動画像記録装置であって、当該動画像符号化装置にて符号化された動画像を 記録する動画像記録装置。
[17] A moving picture recording apparatus comprising the moving picture encoding apparatus according to any one of claims 11 to 15, encoded by the moving picture encoding apparatus A moving image recording device that records moving images.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006190888 | 2006-07-11 | ||
JP2006-190888 | 2006-07-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2008007717A1 true WO2008007717A1 (en) | 2008-01-17 |
Family
ID=38923273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2007/063860 WO2008007717A1 (en) | 2006-07-11 | 2007-07-11 | Dynamic image decoding device and dynamic image encoding device |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2008007717A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010093608A (en) * | 2008-10-09 | 2010-04-22 | Akuseru:Kk | System and program for processing image |
JP2010245734A (en) * | 2009-04-03 | 2010-10-28 | Oki Electric Ind Co Ltd | Decoding apparatus of video compression encoded data |
JP2011041014A (en) * | 2009-08-11 | 2011-02-24 | Canon Inc | Device for encoding moving image, method of controlling the same, and program |
US8135233B2 (en) | 2008-05-22 | 2012-03-13 | Aptina Imaging Corporation | Method and apparatus for the restoration of degraded multi-channel images |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0319488A (en) * | 1989-06-15 | 1991-01-28 | Matsushita Electric Ind Co Ltd | Block coding and decoding device |
JPH08181984A (en) * | 1994-12-26 | 1996-07-12 | Sharp Corp | Image compressor and image compression method |
JPH11501472A (en) * | 1995-03-02 | 1999-02-02 | ソニー エレクトロニクス インク | Image data compression method and apparatus with pre-processing to compensate for block effects |
-
2007
- 2007-07-11 WO PCT/JP2007/063860 patent/WO2008007717A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0319488A (en) * | 1989-06-15 | 1991-01-28 | Matsushita Electric Ind Co Ltd | Block coding and decoding device |
JPH08181984A (en) * | 1994-12-26 | 1996-07-12 | Sharp Corp | Image compressor and image compression method |
JPH11501472A (en) * | 1995-03-02 | 1999-02-02 | ソニー エレクトロニクス インク | Image data compression method and apparatus with pre-processing to compensate for block effects |
Non-Patent Citations (1)
Title |
---|
YAMAMOTO T.: "Catmull-Rom Spline Hokan ni Motozuku Block Hizumi Teigen Shuho no Kiso Kento (A STUDY OF A DEBLOCKING METHOD BASED ON CATMULL-ROM SPLINE INTERPOLATION)", INFORMATION AND COMMUNICATION ENGINEERS, ENGINEERING SCIENCES SOCIETY TAIKAI KOEN RONBUNSHU, vol. A-4-10, 7 September 2006 (2006-09-07), pages 77, XP003017840 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8135233B2 (en) | 2008-05-22 | 2012-03-13 | Aptina Imaging Corporation | Method and apparatus for the restoration of degraded multi-channel images |
JP2010093608A (en) * | 2008-10-09 | 2010-04-22 | Akuseru:Kk | System and program for processing image |
JP2010245734A (en) * | 2009-04-03 | 2010-10-28 | Oki Electric Ind Co Ltd | Decoding apparatus of video compression encoded data |
JP2011041014A (en) * | 2009-08-11 | 2011-02-24 | Canon Inc | Device for encoding moving image, method of controlling the same, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101911705B (en) | Moving image encoder and moving image decoder | |
RU2479938C2 (en) | Image processing apparatus, method and program | |
JP5283628B2 (en) | Video decoding method and video encoding method | |
JP5216070B2 (en) | Encoding apparatus and encoding method | |
JP5133135B2 (en) | Video encoding method and apparatus, decoding method and apparatus using inter-color compensation | |
KR100853336B1 (en) | Picture coding apparatus and picture decoding apparatus | |
US20100254450A1 (en) | Video coding method, video decoding method, video coding apparatus, video decoding apparatus, and corresponding program and integrated circuit | |
US20130028322A1 (en) | Moving image prediction encoder, moving image prediction decoder, moving image prediction encoding method, and moving image prediction decoding method | |
JP5454584B2 (en) | Video encoding device and video decoding device | |
US8675979B2 (en) | Transcoder, method of transcoding, and digital recorder | |
JPWO2010001999A1 (en) | Video encoding / decoding method and apparatus | |
JP2007166522A (en) | Decoding device, decoding method, and program | |
JP2007336468A (en) | Re-encoding apparatus, re-encoding method and program | |
WO2008007717A1 (en) | Dynamic image decoding device and dynamic image encoding device | |
CN103069798B (en) | Method and apparatus for encoding and decoding at least one image in performing transform domain estimation | |
JP5516842B2 (en) | Moving image processing apparatus, moving image processing method, and moving image processing program | |
US20230122782A1 (en) | Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method, and non-transitory computer-readable storage medium | |
CN102057679A (en) | Compressed image noise removal device and reproduction device | |
JP4643437B2 (en) | Information processing device | |
JP2012134632A (en) | Image decoding device, image decoding method, and program | |
JP4768011B2 (en) | Moving picture encoding apparatus and moving picture decoding apparatus | |
US12170794B2 (en) | Image encoding device, image encoding method and storage medium, image decoding device, and image decoding method and storage medium | |
JP6200220B2 (en) | Image processing apparatus, encoding apparatus, decoding apparatus, and program | |
WO2009133938A1 (en) | Time-varying image encoding and decoding device | |
JP4510696B2 (en) | Image processing apparatus and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 07790664 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
NENP | Non-entry into the national phase |
Ref country code: RU |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 07790664 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: JP |