WO2000033243A1 - Image processing circuit and method for reducing a difference between pixel values across an image boundary - Google Patents

Image processing circuit and method for reducing a difference between pixel values across an image boundary Download PDF

Info

Publication number
WO2000033243A1
WO2000033243A1 PCT/US1999/028410 US9928410W WO0033243A1 WO 2000033243 A1 WO2000033243 A1 WO 2000033243A1 US 9928410 W US9928410 W US 9928410W WO 0033243 A1 WO0033243 A1 WO 0033243A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
pixel
block
pixels
values
Prior art date
Application number
PCT/US1999/028410
Other languages
French (fr)
Inventor
Qinggang Zhou
Original Assignee
Equator Technologies, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Equator Technologies, Inc. filed Critical Equator Technologies, Inc.
Priority to JP2000585816A priority Critical patent/JP2002531971A/en
Priority to KR1020017006769A priority patent/KR20010089526A/en
Priority to AU18380/00A priority patent/AU1838000A/en
Priority to EP99961889A priority patent/EP1151410A1/en
Publication of WO2000033243A1 publication Critical patent/WO2000033243A1/en
Priority to HK02101739.2A priority patent/HK1042364A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/86Methods 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Definitions

  • the invention relates generally to electronic and computer circuits, and more particularly to an image processing circuit and a method for reducing the difference between the respective values of a first pixel on one side of an image boundary and a second pixel on the other side of the boundary.
  • a circuit and method can be used to reduce blockiness in an image that has undergone block- based digital compression.
  • HDTV High-Definition-Television
  • an image may be compressed before being sent over the internet.
  • an image may be compressed before being stored thereon.
  • Such image compression typically involves reducing the number of data bits necessary to represent an image.
  • many compression techniques are lossy. That is, visual information contained in the original image may be lost during compression. This loss of information may cause noticeable differences, often called visual artifacts, in the reconstructed image. In many cases, these artifacts are undesirable, and thus significantly reduce the visual quality of the reconstructed image as compared to the quality of the original image.
  • MPEG Moving Pictures Experts Group
  • JPEG Joint Photographic Experts Group
  • each video frame is divided into areas called macro blocks, which each include one or more pixels.
  • Figure 1A is a 16-pixel-by-16-pixel macro block 10 having 256 pixels 12.
  • a macro block is always 16x16 pixels, although other compression standards may use macro blocks having other dimensions.
  • each pixel 12 has a respective luminance value Y and a respective pair of color-, i.e., chroma-, difference values C B and CR.
  • the digital luminance (Y) and chroma-difference (C B and C R ) values that will be used for compression, i.e., the pre-compression values, are generated from the original Y, CB, and C R values of the original frame.
  • the pre-compression values are generated from the original Y, CB, and C R values of the original frame.
  • the pre-compression values are generated from the original Y, CB, and C R values of the original frame.
  • Y values are the same as the original Y values.
  • each pixel 12 merely retains its original luminance value Y.
  • the MPEG 4:2:0 format allows only one pre-compression C B value and one pre- compression CR value for each group 14 of four pixels 12.
  • Each of these pre- compression CB and C R values are respectively derived from the original CB and C R values of the four pixels 12 in the respective group 14.
  • the pre-compression Y, C B , and C R values generated for the macro block 10 are arranged as one 16x16 matrix 16 of pre-compression Y values (equal to the original
  • the block 16 of pre-compression Y values is subdivided into four 8x8 blocks 22a - 22d, which respectively correspond to the 8x8 blocks A - D of pixels in the macro block 10.
  • FIG. 1 B - 1 D six 8x8 blocks of pre-compression pixel data are generated for each macro block 10: four 8x8 blocks 22a - 22d of pre- compression Y values, one 8x8 block 18 of pre-compression C B values, and one 8x8 block 20 of pre-compression CR values.
  • Figure 2 is a general block diagram of an MPEG compressor 30, which is more commonly called an encoder 30.
  • the encoder 30 converts the pre- compression data for a frame or sequence of frames into encoded data that represent the same frame or frames with significantly fewer data bits than the pre- compression data. To perform this conversion, the encoder 30 reduces or eliminates redundancies in the pre-compression data and reformats the remaining data using efficient transform and coding techniques. More specifically, the encoder 30 includes a frame-reorder buffer 32, which receives the pre-compression data for a sequence of one or more frames and reorders the frames in an appropriate sequence for encoding. Thus, the reordered sequence is often different than the sequence in which the frames are generated.
  • the encoder 30 assigns each of the stored frames to a respective group, called a Group Of Pictures (GOP), and labels each frame as either an intra (I) frame or a non-intra (non-l) frame.
  • the encoder 30 always encodes an l-frame without reference to another frame, but can and often does encode a non-l frame with reference to one or more of the other frames in the GOP.
  • the encoder 30 does not, however, encode a non-l frame with reference to a frame in a different GOP.
  • the 8x8 blocks ( Figures 1 B - 1 D) of the pre-compression Y, C B , and C R values that represent the I frame pass through a summer 34 to a Discrete Cosine Transform (DCT) circuit 36, which transforms these blocks of values into respective 8x8 blocks of one DC coefficient and sixty-three AC coefficients. That is, the summer 34 is not needed when the encoder 30 encodes an I frame, and thus the pre-compression values pass through the summer 34 without being summed with any other values. As discussed below, however, the summer 34 is often needed when the encoder 30 encodes a non-l frame.
  • DCT Discrete Cosine Transform
  • a quantizer 38 limits each of the coefficients to a respective maximum value, and provides the quantized AC (nonzero frequency) and DC (zero frequency) coefficients on respective paths 40 and 42.
  • a predictive encoder 44 predictively encodes the DC coefficients, and a variable-length coder 46 converts the quantized AC coefficients and the quantized and predictively encoded DC coefficients into variable-length codes, such as Huffman codes. These codes form the encoded data that represent the pixel values of the encoded I frame.
  • a transmit buffer 48 then temporarily stores these codes to allow synchronized transmission of the encoded data to a decoder (discussed below in conjunction with Figure 3). Alternatively, if the encoded data is to be stored instead of transmitted, the coder 46 may provide the variable-length codes directly to a storage medium such as a CD-ROM.
  • the encoder 30 If the I frame will be used as a reference (as it often will be) for one or more non-l frames in the GOP, then, for the following reasons, the encoder 30 generates a corresponding reference frame by decoding the encoded I frame with a decoding technique that is similar or identical to the decoding technique used by the decoder ( Figure 3).
  • the decoder When decoding non-l frames that are referenced to the I frame, the decoder has no option but to use the decoded I frame as a reference frame. Because MPEG encoding and decoding are lossy, the pixel values of the decoded I frame will often be different than the pre-compression pixel values of the I frame.
  • pre-compression I frame may cause additional differences in the decoded non-l frame because the reference frame used for decoding (decoded I frame) would be different than the reference frame used for encoding (pre-compression I frame).
  • the encoder 30 includes a dequantizer 50 and an inverse DCT circuit 52, which are designed to mimic the dequantizer and inverse DCT circuit of the decoder ( Figure 3).
  • the dequantizer 50 dequantizes the quantized DCT coefficients from the quantizer 38, and the circuit 52 transforms the dequantized DCT coefficients back into corresponding 8x8 blocks of Y, C B , and CR pixel values. Because of the losses incurred during quantization and dequantization, however, some or all of these decoded pixel values may be respectively different than the corresponding pre-compression pixel values.
  • These decoded pixel values then pass through a summer 54 (used when generating a reference frame from a non-l frame as discussed below) to a reference-frame buffer 56, which stores the reference frame.
  • the encoder 30 initially encodes each macro-block of the non-l frame in at least two ways: in the manner discussed above for I frames, and using motion prediction, which is discussed below. The encoder 30 then saves and transmits the resulting code having the fewest bits. This technique insures that the macro blocks of the non-l frames are always encoded using the fewest bits.
  • an object in a frame exhibits motion if its relative position changes in the succeeding frames. For example, a horse exhibits relative motion if it gallops across the screen. Or, if the camera follows the horse, then the background exhibits relative motion.
  • each of the succeeding frames in which the object appears contains at least some of the same macro blocks of pixels as the preceding frames. But such matching macro blocks in the succeeding frame often occupy respective frame locations that are different than the respective frame locations they occupy in the preceding frames.
  • a macro block that includes a portion of a stationary object (e.g., tree) or background scene (e.g., sky) may occupy the same frame location in a succession of frames.
  • a motion predictor 58 compares the pre-compression Y values (the CB and C R values are not used during motion prediction) of macro blocks in the non-l frame with the decoded Y values of macro blocks in the reference frame to identify matching macro blocks. For each macro block in the non-l frame for which a match is found in the reference frame, a motion predictor 58 generates a motion vector that specifies the location of the matching macro block in the reference frame.
  • the decoder uses the motion vectors to obtain the pixel values for these macro blocks from the matching macro blocks in the reference frame.
  • the predictive encoder predictively encodes the motion vectors, and the coder 46 generates codes for the predictively encoded motion vectors and provides them to the transmit buffer 48.
  • the encoder 30 encodes these differences along the with motion vector so the decoder can account for them. More specifically, the motion predictor 58 provides the decoded Y values of the matching macro block of the reference frame to the summer 34, which effectively subtracts, on a pixel-by-pixel basis, these Y values from the pre- compression Y values of the matching macro block of the non-l frame.
  • residuals are arranged in 8x8 blocks and are processed by the DCT circuit 36, the quantizer 38, the coder 46, and the buffer 48 in a manner similar to that discussed above, except that the quantized DC coefficients of the residual blocks are not predictively encoded by the predictive encoder 44. Additionally, it is possible to use a non-l frame as a reference frame. When the non-l frame will be used as a reference frame, the quantized residuals from the quantizer 38 are respectively dequantized and inverse transformed by the dequantizer 50 and the inverse DCT circuit 52 so that this non-l reference frame will be the same as the one used by the decoder for the reasons discussed above.
  • the motion predictor 58 provides the decoded Y values of the reference I frame from which the residuals were generated to the summer 54, which adds the respective residuals from the circuit 52 to these decoded Y values of the reference I frame to generate the respective Y values of the reference non-l frame.
  • the reference-frame buffer 56 then stores the reference non-l frame along with the reference I frame for use in encoding subsequent non-l frames.
  • the encoder 30 also includes a rate controller 60 to insure that the transmit buffer 48, which typically transmits the encoded frame data at a fixed rate, never overflows or empties, i.e., underflows. If either of these conditions occurs, errors may be introduced into the encoded data. For example, if the buffer 48 overflows, data from the coder 46 is lost.
  • the rate controller 60 uses feed back to adjust the quantization scaling factors used by the quantizer 38 based on the degree of fullness of the transmit buffer 48. The more full the buffer 48, the larger the controller 60 makes the scale factors, and the fewer data bits the quantizer 40 generates.
  • FIG. 3 is a block diagram of a conventional MPEG decompressor 60, which is more commonly called a decoder 60 and which can decode frames that are encoded by the encoder 30 of Figure 2.
  • variable-length decoder 62 decodes the variable-length codes received from the encoder 30.
  • a prediction decoder 64 decodes the predictively encoded DC coefficients, and a dequantizer 65, which is similar or identical to the dequantizer 50 of Figure 2, dequantizes the decoded AC and DC coefficients.
  • An inverse DCT circuit 66 which is similar or identical to the inverse DCT circuit 52 of Figure 2, transforms the dequantized coefficients into pixel values.
  • the decoded pixel values pass through a summer 68 (which is used during the decoding of motion-predicted macro blocks of non-l frames as discussed below) into a frame-reorder buffer 70, which stores the decoded frames and arranges them in a proper order for display on a video display unit 72. If the I frame is used as a reference frame, it is also stored in the reference-frame buffer 74.
  • the decoder 62, dequantizer 65, and inverse DCT 66 process the residuals as discussed above.
  • the prediction decoder 64 decodes the motion vectors, and a motion interpolator 76 provides to the summer 68 the pixel values from the macro blocks in the reference frame that the motion vectors point to.
  • the summer 68 adds these reference pixel values to the residuals to generate the pixel values of the decoded macro blocks, and provides these decoded pixel values to the frame-reorder buffer 70. If the non-l frame is used as a reference frame, it is stored in the reference-frame buffer 74.
  • a problem with block-based compression techniques such as the MPEG standard is that the loss of visual information during compression may cause some or all of the respective boundaries between the 8x8 pixel blocks A - D and between contiguous macro blocks 10 to be noticeable to a viewer. More specifically, the compression losses may cause an abrupt change in the pixel values across a boundary, thus making the boundary visible.
  • Such a visible boundary is often described as “blocky” or as exhibiting a "blocky” artifact, and the process of reducing the severity of blocky artifacts, i.e., making blocky boundaries invisible to a viewer, is often called deblocking.
  • the Yang reference assumes that changes in neighboring pixel values, i.e., the values of pixels on either side of a boundary, should be at a minimum, and then, like O'Rourke, proceeds to estimate the values of the boundary pixels by iteratively solving the convex constrained optimization problem.
  • changes in neighboring pixel values i.e., the values of pixels on either side of a boundary
  • O'Rourke proceeds to estimate the values of the boundary pixels by iteratively solving the convex constrained optimization problem.
  • such techniques often require too much computation time for implementation in a real-time system.
  • such techniques often operate on boundaries that are not blocky.
  • the quality of the image may be degraded because generally, the assumption made by such techniques is that the difference between a pixel and its neighboring pixels should be small. Although such an assumption is correct some of the time, it is frequently incorrect, particularly in areas of an image including object edges.
  • an image processing circuit includes a processor that receives a portion of an image that includes a boundary and first and second contiguous pixels disposed on opposite sides of the boundary, the first and second pixels having respective first and second pixel values.
  • the processor generates a boundary value from the first and second pixel values, compares the boundary value to a comparison value, and reduces the difference between the first and second pixel values if the boundary value has a specified relationship to the comparison value.
  • Such a processing circuit operates on an image after it has been decoded, it does not change the way an image is encoded or decoded, and thus is compatible with all block-based compression standards. Furthermore, the comparison value can be set so that the processing circuit operates only on blocky boundaries, and thus does not degrade boundaries that are not blocky. Additionally, the processing circuit can operate on a sequence of video frames in real time.
  • Figure 1A is a conventional macro block of pixels in an image.
  • Figure 1 B is a conventional block of pre-compression Y values that respectively correspond to the pixels in the macro block of Figure 1A.
  • Figure 1C is a conventional block of pre-compression CB values that respectively correspond to the pixel groups in the macro block of Figure 1A.
  • Figure 1 D is a conventional block of pre-compression CR values that respectively correspond to the pixel groups in the macro block of Figure 1A.
  • Figure 2 is a block diagram of a conventional MPEG encoder.
  • Figure 3 is a block diagram of a conventional MPEG decoder.
  • Figure 4 is a schematic block diagram of an embodiment of an imaging processing circuit according to the invention.
  • Figure 5 is a flow chart that explains the operation of the image processing circuit of Figure 4.
  • Figure 6 is a detailed view of a macro block having boundaries that the image processing circuit of Figure 4 operates on.
  • Figure 7A is a functional block diagram of an embodiment of a filter that reduces the differences in pixel values across vertical image boundaries according to the invention.
  • Figure 7B is a functional block diagram of an embodiment of a filter that reduces the differences in pixel values across horizontal image boundaries according to the invention.
  • Figure 8A is a functional block diagram of another embodiment of a filter that reduces the differences in pixel values across vertical image boundaries according to the invention.
  • Figure 8B is a functional block diagram of another embodiment of a filter that reduces the differences in pixel values across horizontal image boundaries according to the invention.
  • FIG 4 is a schematic block diagram of an image processing and display circuit 80, which includes an image processing circuit 82 and an image display circuit 84.
  • the circuit 80 may be used to process and display individual images or a sequence of video frames.
  • the image processing circuit 82 includes a conventional storage circuit 86 for storing image data received from a decoder such as the decoder 60 of Figure 3.
  • the circuit 82 also includes an image processor 88, which in one embodiment includes conventional hardware components (not shown) and which reduces the pixel differences across blocky image boundaries as discussed below.
  • the storage circuit 86 is part of the decoder.
  • the storage circuit 86 may be the frame-reorder buffer 70 of Figure 3.
  • the storage circuit 86 is part of the processor 88.
  • the processing circuit 82 does not include the storage circuit 86, and the processor 88 receives the image data directly from the decoder.
  • the display circuit 84 includes an image storage circuit 90, which stores the processed image data from the processor 88, and includes a display device 92, which displays the images stored in the circuit 90.
  • FIG. 5 is a flow chart that shows the general operation of one embodiment of the image processor 88 of Figure 4.
  • the operation of the processor 88 is discussed with respect to the pixel Y values, it being understood that the operation is the same for the pixel C B and C R values and for the luminance and chroma values of other color spaces.
  • the processor 88 first calculates a threshold value based on the decoded values of some or all of the pixels in two contiguous pixel blocks that share a boundary.
  • the pixel blocks are 8x8, it being understood that the pixel blocks may have dimensions other than 8x8.
  • step 102 the processor 88 calculates a boundary value from the values of the pixels that lie along the boundary.
  • the processor 88 is described as performing step 100 before step 102, the order of these steps can be reversed.
  • the processor 88 compares the threshold value to the boundary value.
  • the processor 88 identifies the boundary as blocky, and in step 107, filters the pixel values that lie along the boundary.
  • the processor 88 filters the pixel values by reducing the differences between the values of pixels on one side of the boundary and the values of pixels on the other side of the boundary. If the boundary value does not differ from the threshold value in the predetermined way (e.g., is not greater than, is not less than), then the processor 88 identifies the boundary as not blocky. Referring to step 108, the processor 88 then processes all of the remaining boundaries of the image in this manner. In one embodiment, the processor 88 starts in the upper left corner of the image and works toward the lower right corner.
  • step 110 after the processor 88 processes all of the boundaries with respect to the Y values, the processor 88 repeats steps 100 - 108 for the C R and C B values. Referring to step 1 12, after the processor 88 processes all the boundaries in the image with respect to the C B and C R values, the processor 88 repeats steps 100 - 110 for any remaining images.
  • the processor 88 operates on the boundaries of an image after the image has been decoded, the described de-blocking technique neither needs a change in nor makes a change to the techniques used to encode and decode the image, and thus is compatible with any block-based compression standard. Furthermore, as discussed below, because the calculations of the threshold and boundary values and the filtering algorithm are relatively simple, the processor 88 can operate on the boundaries fast enough for real-time applications such as the enhancement of HDTV video frames. Additionally, experimental observation of images compressed using standards such as ISO/ITU MPEG and H.263 indicates that a significant number of boundaries are not blocky, and that the decoded image is often of the best visual quality when these "unblocky" boundaries are left unaltered. Thus, because the processor 88 filters only the boundaries it identifies as blocky, it does not degrade the quality of the image by filtering the boundaries that are not blocky.
  • the processor 88 compares the respective average roughnesses inside the two blocks to the roughness at the boundary. That is, the boundary value (step 102 of Figure 5) is a function of the roughness at the boundary between the two blocks, and the threshold value (step 104 Figure 5) is a function of the respective average roughnesses inside the two blocks.
  • the processor 88 identifies a boundary as being blocky, then it implements the conventional finite-impulse-response (FIR) filters of Figures 7A and 7B to "smoothen" the differences between the values of the pixels that lie along and on opposite sides of the boundary.
  • FIR finite-impulse-response
  • this embodiment exploits the experimental observation that in a typical real-world image before compression, the roughness within a particular block is the same as or is close to the respective roughnesses at its boundaries with adjacent blocks. But for reasons discussed above, lossy compression schemes may cause a block to have a different (typically higher), degree of roughness along its boundaries than within itself, and this difference in roughness is visible as a blocky boundary.
  • this embodiment is described below with respect to the Y values, it can be used with the C R and C B values and the luminance and chroma values of other color spaces.
  • Figure 6 is a 16x16 macro block 120, which includes four 8x8 pixel blocks A - D.
  • the macro block 120 and the blocks A - D are similar to the macro block 10 and the blocks A - D of Figure 1A.
  • Each of the pixels in the respective blocks A - D has a respective row and column location.
  • the pixel a 2 , 4 in the block A is located at the intersection of row 2 and column 4 of the block A.
  • a similar coordinate scheme is used for the blocks B - D.
  • four boundaries are respectively located between the blocks A - D.
  • a boundary 122 is located between the blocks A and B
  • a boundary 124 is located between the blocks A and C.
  • the widths of the boundaries 122 and 124 are exaggerated for illustration, but in actuality, the pixels in column 7 of block A are contiguous with the respective pixels in column 0 of block B, and the pixels in row 7 of block A are contiguous with the respective pixels in row 0 of block C.
  • the pixel a 0l is contiguous with the pixel bo,o.
  • the pixel a ⁇ , 7 is contiguous with the pixel b ⁇ , 0 , and so on.
  • the processor 88 is described as operating on the internal boundaries between the blocks A - D with respect to the Y values, it being understood that the processor 88 operates on the external boundaries between macro blocks with respect to the Y values in a similar fashion. But because in the MPEG 4:2:0 format each macro block has associated therewith only one 8x8 block of C R values and one 8x8 block of C B , there are no chroma- difference boundaries within a macro block, and thus the processor 88 operates only on the boundaries between macro blocks with respect to the C R and C B values.
  • the processor 88 operates on these boundaries with respect to the C R and C B values in a manner similar to that described below for the Y values. In other formats, however, there may be chroma-difference boundaries within a macro block, in which case the processor 88 operates on these boundaries too.
  • the macro block 120 is described as being 16x16 and the blocks A - D are described as being 8x8, the macro block 120 and the blocks A - D may have other dimensions. Still referring to Figure 6, the operation of the processor 88 according to this embodiment of the invention is discussed in detail.
  • the operation with respect to the boundaries 122 and 124 and the Y values is discussed, it being understood that the operation is similar with respect to other boundaries — whether between the blocks A - D within a macro block 120 or between macro blocks 120 — or with respect to the C R and C B values.
  • block as used below is generic to blocks like the blocks A - D and to macro blocks.
  • the horizontal roughness of a block with respect to the Y values equals the average horizontal difference between the Y values of horizontally adjacent pixels within the block.
  • the horizontal roughnesses with respect to the C R and C B values equal the average horizontal differences between the C R and C B values, respectively, of adjacent pixel groups, like the groups 14 of Figure 1 A, within the block.
  • the vertical roughness of a block with respect to the Y values is equal to the average vertical difference between the Y values of vertically adjacent pixels within the block.
  • a y , x is the Y value of the pixel in row y and column x of block A
  • b y , x is the Y value of the pixel in row y and column x of block B.
  • RA B equals the average difference between the Y values of the respective pairs of contiguous pixels in column 7 of block A and column 0 of block B.
  • RA C the vertical boundary roughness RA C of the boundary 124 between the blocks A and C is represented by the following formula:
  • R AC equals the average difference between the Y values of the respective pairs of contiguous pixels in row 7 of block A and row 0 of block C.
  • the horizontal boundary 122 is blocky if the horizontal boundary roughness R A B exceeds the average of the horizontal roughnesses R Ah and R ⁇ by a first predetermined amount, and that the boundary 124 is blocky if the vertical boundary roughness R A C exceeds the average of the vertical roughnesses R Av and R Cv by a second predetermined amount.
  • the processor 88 calculates the average Y values P A , PB, Pc for the pixels in blocks A, B, and C, respectively, according to the following formulas:
  • the processor 88 identifies the boundary 122 between the blocks A and B as blocky when the following equation is true:
  • T h is an experimentally determined threshold constant.
  • T h ⁇ 0.05.
  • the processor 88 filters the boundary 122 only if the average of the horizontal roughnesses R A h and R Bn differs from the horizontal-boundary roughness RAB by more than T h divided by 2.
  • the equation 10 can be rewritten as: (11) R AB -!(R Ah R B h)> ⁇ (PA + PB)
  • M AB ⁇ [ ⁇ R Ah +R Bh ) + T h (P A + P B )]
  • the boundary 122 is blocky if:
  • the processor 88 identifies the boundary 122 as being blocky and filters this boundary as discussed below only if the boundary value, here the horizontal- boundary roughness RAB, is greater than the comparison value, MAB-
  • the processor 88 identifies the boundary 124 between the blocks A and C as blocky and filters this boundary when the following equation is true:
  • Equation (15) is calculated from equation (15) as:
  • M AC [(R Av + R Cv ) + T v ⁇ P A + P c ) ⁇ Therefore, in this embodiment, the boundary 124 is blocky if:
  • the respective boundary values R AB and R A c and comparison values M AB and M A C are functions of the Y pixel values in two adjacent blocks of the same image, in other embodiments these values may be functions of other data such as the pixel values in nonadjacent blocks in the same frame, pixel values in blocks of other frames in a video sequence, motion-vector values, or transform-domain values such as DCT coefficients.
  • the processor 88 implements a filter, such as a FIR filter, to smoothen the boundaries that are identified as being blocky.
  • the filter operates on the Y values of the pixels that are contiguous with the blocky boundary. For example, if the processor 88 identifies the boundary 122 as being blocky, then it filters the Y values of the 16 pixels — the eight pixels in column 7 of block A and the eight pixels in column 0 of block B — that are contiguous with the boundary 122.
  • the processor 88 identifies the boundary 124 as being blocky, then it filters the Y values of the 16 pixels — the eight pixels in row 7 of block A and the eight pixels in row 0 of block C — that are contiguous with the boundary 124.
  • the processor 88 implements a filter that sets the Y value of a filtered pixel equal to a function of its Y value and the Y values of the two contiguous pixels on either side of the filtered pixel in a direction perpendicular to the boundary.
  • a filter that sets the Y value of a filtered pixel equal to a function of its Y value and the Y values of the two contiguous pixels on either side of the filtered pixel in a direction perpendicular to the boundary.
  • Y value of the filtered pixel hp1 is set equal to a function of its Y value and the Y values of the two horizontally contiguous pixels hpO and hp2.
  • the processor 88 sets the Y value of the pixel a 3 ⁇ 7 equal to a function of the Y values of the pixels a 3 , 6 (hpO), a 3>7 (hp1), and b 3i0 (hp2).
  • the processor 88 then filters the Y values of all of the other pixels in column 7 of block A and column 0 of block B in a similar manner to effectively reduce the respective differences between the Y values of the pixels in column 7 of block A and the Y values of the respective pixels in column 0 of block B. That is, the processor 88 smoothens the boundary 122 by reducing the average difference between the Y values of the pixeis a 7 0 . . .
  • the Y value of the filtered pixel vp1 is set equal to a function of its Y value and the Y values of the two vertically contiguous pixels vpO and vp2.
  • the processor 88 sets the Y value of the pixel c 0 , 4 equal to a function of the Y values of the pixels a 74 (vpO), Co, 4 (vp1), and c 1 ⁇ (vp2).
  • the processor 88 then filters the Y values of all of the other pixels in row 7 of block A and row 0 of block C in a similar manner to effectively reduce the respective differences between the Y values of the pixels in row 7 of block A and the Y values of the respective pixels in row 0 of block C. That is, the processor 88 smoothens the boundary 124 by reducing the average difference between the Y values of the pixels ao . . . a ⁇ 7 and the Y values of the respective pixels co,o • ⁇ • o .
  • the processor implements an averaging filter that sets the Y value of the filtered pixel equal to the average of its pre-filtered Y value and the Y values of the contiguous pixels.
  • the processor 88 uses the pre-filtered Y values of the pixels it filters to avoid reaching a result that depends on the order in which the blocks are filtered. Consequently, after the processor 88 filters contiguous pixels on either side of a boundary, neither pixel has a filtered Y value equal to the average of the filtered Y values of the pixels next to it.
  • the filtering of the Y values of the pixel a 3 and the horizontally adjoining pixel b 3: o is described in conjunction with the smoothing of the boundary 122 according to an embodiment of the invention.
  • the processor 88 calculates the average Y value for the pixels a 36 , a 3 , 7 , and b 3 ⁇ o
  • the processor 88 stores this resulting filtered Y value for a 3 in a temporary memory location such as in an on-board memory array.
  • the processor 88 sets the Y value of the pixel b 3 ⁇ 0 (hp1) equal to the average Y value for the pixels a 3 , 7 , b 3 .o, and b 3: 1 (hpO, hp1 , and hp2) and stores the resulting filtered Y value for b 3 ,o in another temporary memory location.
  • the processor 88 puts the filtered Y values for a 3 and b 3 ,o in the respective memory locations corresponding to the Y values of these pixels. .
  • the order of filtering i.e., filtering a pixel in block A before filtering a horizontally contiguous pixel in block B or vice-versa, has no affect on the result of the filtering.
  • the pixels a 0 - a 7 and b 0 ,o- b 7 ,o can be filtered in any order.
  • the filtered Y value of a 3 , 7 is not equal to the average of the Y value of a 3 , ⁇ and the filtered Y values of a 3 and b 3 ⁇ o, which Y values appear in the decoded image.
  • the filtered Y value of 0 3 , 0 is not equal to the average of the Y value of b 31 and the filtered Y values of a 3 and b 3 ⁇ 0 .
  • the filtering of the Y values of the pixel a 7 ,3 and the vertically adjoining pixel c 0 , 3 is discussed in conjunction with the smoothing of the boundary 124 according to an embodiment of the invention.
  • the processor 88 calculates the average pixel value for the pixels a ⁇ , 3 , a 7 , 3 ,and co ⁇ 3 (vpO, vp1 , and vp2). Then, the processor 88 stores this resulting filtered pixel value for a 7 , 3 in a temporary memory location.
  • the processor 88 sets the value of the pixel c 0 , 3 (vp1) equal to the average pixel value for the pixels a 7 ⁇ 3 , c 0,3 , and c ⁇ ,3 (vpO, vp1 , and vp2). Therefore, for the reasons stated above, this embodiment allows the processor 88 to filter the pixels a 7i0 - a 7 ⁇ 7 and c 0 ,o- c 0 , in any order.
  • the filtered value of a t3 is not equal to the average of the value of a 6 ⁇ 3 and the filtered values of a 7f and c 0 , 3
  • the filtered value of Co, 3 is not equal to the average of the value of c 1i3 and the filtered values of a 7 , 3 and c 0 , 3 .
  • the processor 88 uses different roughness and filtering calculations to respectively identify and smoothen blocky boundaries.
  • One difference between this embodiment and the previous embodiment discussed above in conjunction with Figures 7A and 7B is that in this embodiment, the processor 88 is often better able to distinguish between a sharp edge of an object and a blocky boundary.
  • the processor 88 operates on the CR and C B values and the boundaries between macro blocks in a similar manner.
  • the processor 88 implements a minimum filter to determine the degree of blockiness at the block boundaries.
  • the minimum filter removes the part of the roughness value that does not result from compression quantization errors.
  • the horizontal roughness R A B at the boundary 122 is represented by the following equation:
  • the quantization circuit 38 quantizes the coefficients from the DCT circuit 36 to reduce the number of data bits needed to encode a particular pixel block.
  • the quantization circuit 38 applies a respective quantization value to each of the DCT coefficients representing a pixel block.
  • the quantizer 38 varies the quantization values from block to block depending on characteristics such as the degree of visual detail in a particular block.
  • the quantization values are fixed. Therefore, T qe is a function of the first three quantization values for each of the two blocks that are contiguous with the boundary in question, and in one aspect of this embodiment T qe is represented by the following equation:
  • T ⁇ ⁇ + Al + lA2 + C - B0 + qBl + c lB2 A qe
  • q A o - qA ⁇ and q B o - ⁇ 7s2 are the first three quantization values used during the encoding of blocks A and B, respectively.
  • T q ⁇ is also either a constant or can be represented by the following equation:
  • T qAo + c ⁇ + A2 +qco + c ⁇ + qc2
  • the processor 88 also calculates the horizontal and vertical roughnesses within a block in a different manner. In the previous embodiment, to identify a blocky boundary, the processor 88 calculates the horizontal and vertical roughnesses within a block by respectively averaging the horizontal and vertical differences between the values of all the horizontally and vertically contiguous pixels within the block. But in this embodiment, instead of computing the average horizontal and vertical differences for the values of every pixel in the block, the processor 88 computes these average differences only for values of the two alignments (either rows or columns) of pixels adjacent to the block boundary. Accordingly, the horizontal roughness R An of the block A is represented by the following equation:
  • the processor 88 identifies the boundary 122 as being blocky if the following equation is true:
  • the processor 88 identifies the boundary 124 as being blocky if the following equation is true:
  • the processor 88 implements a filter that is different from the averaging filter discussed above in conjunction with Figures 7A and 7B. More specifically, the processor 88 implements a filter that operates on the values of the four pixels adjacent to a boundary, two pixels on either side of the boundary.
  • the processor 88 filters the values of hpO - hp3 based on four respective functions fhO - fh3 of the pre-filtered values of hpO - hp3.
  • a' y .- > corresponds to the filtered Y value of the pixel hpO, i.e., hpOfmered. and a (y ,6)pre-mered, 3(y,7)pr ⁇ -f ⁇ ltered, b( y , ⁇ )pre-f ⁇ ltered, and b(y, . pre- ⁇ /.erec/ respectively
  • a ' y , 6 equals the filtered Y value of the pixel a y , 6 .
  • a' y corresponds to hp1 fi
  • b'yo corresponds to hp2f,i te red, and thus equals the filtered Y value of the pixel b y ,o
  • b' y ⁇ corresponds to hp3fj
  • a' 6 , x corresponds to the filtered Y value of the pixel vpO, i.e., vpOf ⁇ t ered, and a(e,x)pr ⁇ -mer ⁇ d, C(o,x) P r ⁇ -f ⁇ itered, and C( X ) P re-f ⁇ itered respectively correspond to the pre-filtered Y values of the pixels vp0-vp3, i.e., vpO pre-Wf ⁇ red , vp1 pre .; relieve ered , vp2 pre . altered, and vp3 pre .;/ tered , of Figure 8B.
  • a' 6,x equals the filtered value of the pixel ,. -,-,, ., PCT/US99/28410 O 00/33243
  • a' 7 . x corresponds to vp1 fil te r e , and thus equals the filtered Y value of the pixel 37.
  • c'o.x corresponds to vp2fj
  • C' X corresponds to vp3fii te r ed , and thus equals the filtered Y value of the pixel c 1:X .
  • the processor 88 conventionally stores the pre-filtered values of the pixels being filtered.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

An image processing circuit (82) includes a processor (84) that receives at least a portion of an image including a boundary and first and second contiguous pixels disposed on opposite sides of the boundary, the first and second pixels having respective first and second pixel values. The processor generates a boundary value from the first and second pixel values, compares the boundary value to a comparison value, and reduces the difference between the first and second values if the boundary value has a specified relationship to the comparison value. For example, such a processing circuit can be used to reduce blockiness in an image that has undergone block-based digital compression.

Description

IMAGE PROCESSING CIRCUIT AND METHOD FOR REDUCING A DIFFERENCE BETWEEN PIXEL VALUES ACROSS AN IMAGE BOUNDARY
Technical Field: The invention relates generally to electronic and computer circuits, and more particularly to an image processing circuit and a method for reducing the difference between the respective values of a first pixel on one side of an image boundary and a second pixel on the other side of the boundary. For example, such a circuit and method can be used to reduce blockiness in an image that has undergone block- based digital compression.
Background of the Invention:
To electronically transmit a relatively high-resolution image over a relatively low-band-width channel, or to electronically store such an image in a relatively small memory space, it is often necessary to compress the digital data that represents the image. For example, High-Definition-Television (HDTV) video images are compressed to allow their transmission over existing television channels. Without compression, HDTV video images would require transmission channels having bandwidths much greater than the bandwidths of existing television channels. Furthermore, to reduce data traffic and transmission time to acceptable levels, an image may be compressed before being sent over the internet. Or, to increase the image-storage capacity of a CD-ROM or server, an image may be compressed before being stored thereon.
Such image compression typically involves reducing the number of data bits necessary to represent an image. Unfortunately, many compression techniques are lossy. That is, visual information contained in the original image may be lost during compression. This loss of information may cause noticeable differences, often called visual artifacts, in the reconstructed image. In many cases, these artifacts are undesirable, and thus significantly reduce the visual quality of the reconstructed image as compared to the quality of the original image.
Referring to Figures 1-3, the basics of the popular block-based Moving Pictures Experts Group (MPEG) compression standards, which include MPEG-1 and MPEG-2, are discussed. For purposes of illustration, the discussion is based on using an MPEG 4:2:0 format to compress images represented in a Y, CB, CR color space, although the basic concepts discussed also apply to other MPEG formats and images represented in other color spaces, and to other block-based compression standards such as the Joint Photographic Experts Group (JPEG) standard, which is often used to compress still images. Furthermore, although many details of the MPEG standards and the Y, CB, CR color space are omitted for brevity, these details are well-known and are disclosed in a large number of available references.
Referring to Figures 1 - 3, the MPEG standards are often used to compress temporal sequences of images — which are also called video frames — such as found in a television broadcast. Each video frame is divided into areas called macro blocks, which each include one or more pixels. Figure 1A is a 16-pixel-by-16-pixel macro block 10 having 256 pixels 12. In the MPEG standards, a macro block is always 16x16 pixels, although other compression standards may use macro blocks having other dimensions. In the original video frame, i.e., the frame before compression, each pixel 12 has a respective luminance value Y and a respective pair of color-, i.e., chroma-, difference values CB and CR.
Referring to Figures 1A - 1 D, before compression of the frame, the digital luminance (Y) and chroma-difference (CB and CR) values that will be used for compression, i.e., the pre-compression values, are generated from the original Y, CB, and CR values of the original frame. In the MPEG 4:2:0 format, the pre-compression
Y values are the same as the original Y values. Thus, each pixel 12 merely retains its original luminance value Y. But to reduce the amount of data to be compressed, the MPEG 4:2:0 format allows only one pre-compression CB value and one pre- compression CR value for each group 14 of four pixels 12. Each of these pre- compression CB and CR values are respectively derived from the original CB and CR values of the four pixels 12 in the respective group 14. Thus, referring to Figures I BI D, the pre-compression Y, CB, and CR values generated for the macro block 10 are arranged as one 16x16 matrix 16 of pre-compression Y values (equal to the original
Y value for each pixel 12), one 8x8 matrix 18 of pre-compression CB values (equal to one derived CB value for each group 14 of four pixels 12), and one 8x8 matrix 20 of pre-compression CR values (equal to one derived CR value for each group 14 of four pixels 12). It is, however, common in the industry to call the matrices 16, 18, and 20 "blocks" of values. Furthermore, because it is convenient to perform the compression transforms on 8x8 blocks of pixel values instead of 16x16 blocks, the block 16 of pre-compression Y values is subdivided into four 8x8 blocks 22a - 22d, which respectively correspond to the 8x8 blocks A - D of pixels in the macro block 10. Thus, still referring to Figures 1 B - 1 D, six 8x8 blocks of pre-compression pixel data are generated for each macro block 10: four 8x8 blocks 22a - 22d of pre- compression Y values, one 8x8 block 18 of pre-compression CB values, and one 8x8 block 20 of pre-compression CR values.
Figure 2 is a general block diagram of an MPEG compressor 30, which is more commonly called an encoder 30. Generally, the encoder 30 converts the pre- compression data for a frame or sequence of frames into encoded data that represent the same frame or frames with significantly fewer data bits than the pre- compression data. To perform this conversion, the encoder 30 reduces or eliminates redundancies in the pre-compression data and reformats the remaining data using efficient transform and coding techniques. More specifically, the encoder 30 includes a frame-reorder buffer 32, which receives the pre-compression data for a sequence of one or more frames and reorders the frames in an appropriate sequence for encoding. Thus, the reordered sequence is often different than the sequence in which the frames are generated. The encoder 30 assigns each of the stored frames to a respective group, called a Group Of Pictures (GOP), and labels each frame as either an intra (I) frame or a non-intra (non-l) frame. The encoder 30 always encodes an l-frame without reference to another frame, but can and often does encode a non-l frame with reference to one or more of the other frames in the GOP. The encoder 30 does not, however, encode a non-l frame with reference to a frame in a different GOP. During the encoding of an I frame, the 8x8 blocks (Figures 1 B - 1 D) of the pre-compression Y, CB, and CR values that represent the I frame pass through a summer 34 to a Discrete Cosine Transform (DCT) circuit 36, which transforms these blocks of values into respective 8x8 blocks of one DC coefficient and sixty-three AC coefficients. That is, the summer 34 is not needed when the encoder 30 encodes an I frame, and thus the pre-compression values pass through the summer 34 without being summed with any other values. As discussed below, however, the summer 34 is often needed when the encoder 30 encodes a non-l frame. A quantizer 38 limits each of the coefficients to a respective maximum value, and provides the quantized AC (nonzero frequency) and DC (zero frequency) coefficients on respective paths 40 and 42. A predictive encoder 44 predictively encodes the DC coefficients, and a variable-length coder 46 converts the quantized AC coefficients and the quantized and predictively encoded DC coefficients into variable-length codes, such as Huffman codes. These codes form the encoded data that represent the pixel values of the encoded I frame. A transmit buffer 48 then temporarily stores these codes to allow synchronized transmission of the encoded data to a decoder (discussed below in conjunction with Figure 3). Alternatively, if the encoded data is to be stored instead of transmitted, the coder 46 may provide the variable-length codes directly to a storage medium such as a CD-ROM.
If the I frame will be used as a reference (as it often will be) for one or more non-l frames in the GOP, then, for the following reasons, the encoder 30 generates a corresponding reference frame by decoding the encoded I frame with a decoding technique that is similar or identical to the decoding technique used by the decoder (Figure 3). When decoding non-l frames that are referenced to the I frame, the decoder has no option but to use the decoded I frame as a reference frame. Because MPEG encoding and decoding are lossy, the pixel values of the decoded I frame will often be different than the pre-compression pixel values of the I frame. Therefore, using the pre-compression I frame as a reference frame during encoding may cause additional differences in the decoded non-l frame because the reference frame used for decoding (decoded I frame) would be different than the reference frame used for encoding (pre-compression I frame).
Therefore, to generate a reference frame for encoding that will be similar to or the same as the reference frame used for decoding, the encoder 30 includes a dequantizer 50 and an inverse DCT circuit 52, which are designed to mimic the dequantizer and inverse DCT circuit of the decoder (Figure 3). The dequantizer 50 dequantizes the quantized DCT coefficients from the quantizer 38, and the circuit 52 transforms the dequantized DCT coefficients back into corresponding 8x8 blocks of Y, CB, and CR pixel values. Because of the losses incurred during quantization and dequantization, however, some or all of these decoded pixel values may be respectively different than the corresponding pre-compression pixel values. These decoded pixel values then pass through a summer 54 (used when generating a reference frame from a non-l frame as discussed below) to a reference-frame buffer 56, which stores the reference frame.
During the encoding of a non-l frame, the encoder 30 initially encodes each macro-block of the non-l frame in at least two ways: in the manner discussed above for I frames, and using motion prediction, which is discussed below. The encoder 30 then saves and transmits the resulting code having the fewest bits. This technique insures that the macro blocks of the non-l frames are always encoded using the fewest bits.
With respect to motion prediction, an object in a frame exhibits motion if its relative position changes in the succeeding frames. For example, a horse exhibits relative motion if it gallops across the screen. Or, if the camera follows the horse, then the background exhibits relative motion. Generally, each of the succeeding frames in which the object appears contains at least some of the same macro blocks of pixels as the preceding frames. But such matching macro blocks in the succeeding frame often occupy respective frame locations that are different than the respective frame locations they occupy in the preceding frames. Alternatively, a macro block that includes a portion of a stationary object (e.g., tree) or background scene (e.g., sky) may occupy the same frame location in a succession of frames. In either case, instead of encoding each frame independently, it takes fewer data bits to say "locations X and Z of frame #1 (non-l frame) contain the same macro blocks that are in locations S and T, respectively, of frame #0 (I frame)." This "statement" is encoded as a motion vector. For a stationary or relatively slow-moving object or background scene, the motion vector is merely set near or equal to zero.
More specifically and still referring to Figure 2, during the encoding of a non-l frame, a motion predictor 58 compares the pre-compression Y values (the CB and CR values are not used during motion prediction) of macro blocks in the non-l frame with the decoded Y values of macro blocks in the reference frame to identify matching macro blocks. For each macro block in the non-l frame for which a match is found in the reference frame, a motion predictor 58 generates a motion vector that specifies the location of the matching macro block in the reference frame. Thus, as discussed below in conjunction with Figure 3, during decoding of these macro blocks of the non-l frame, the decoder uses the motion vectors to obtain the pixel values for these macro blocks from the matching macro blocks in the reference frame. The predictive encoder predictively encodes the motion vectors, and the coder 46 generates codes for the predictively encoded motion vectors and provides them to the transmit buffer 48.
Furthermore, because a macro block in the non-i frame and a matching macro block in the reference frame are often similar but not identical, the encoder 30 encodes these differences along the with motion vector so the decoder can account for them. More specifically, the motion predictor 58 provides the decoded Y values of the matching macro block of the reference frame to the summer 34, which effectively subtracts, on a pixel-by-pixel basis, these Y values from the pre- compression Y values of the matching macro block of the non-l frame. These differences, which are called residuals, are arranged in 8x8 blocks and are processed by the DCT circuit 36, the quantizer 38, the coder 46, and the buffer 48 in a manner similar to that discussed above, except that the quantized DC coefficients of the residual blocks are not predictively encoded by the predictive encoder 44. Additionally, it is possible to use a non-l frame as a reference frame. When the non-l frame will be used as a reference frame, the quantized residuals from the quantizer 38 are respectively dequantized and inverse transformed by the dequantizer 50 and the inverse DCT circuit 52 so that this non-l reference frame will be the same as the one used by the decoder for the reasons discussed above. The motion predictor 58 provides the decoded Y values of the reference I frame from which the residuals were generated to the summer 54, which adds the respective residuals from the circuit 52 to these decoded Y values of the reference I frame to generate the respective Y values of the reference non-l frame. The reference-frame buffer 56 then stores the reference non-l frame along with the reference I frame for use in encoding subsequent non-l frames.
Still referring to Figure 2, the encoder 30 also includes a rate controller 60 to insure that the transmit buffer 48, which typically transmits the encoded frame data at a fixed rate, never overflows or empties, i.e., underflows. If either of these conditions occurs, errors may be introduced into the encoded data. For example, if the buffer 48 overflows, data from the coder 46 is lost. Thus, the rate controller 60 uses feed back to adjust the quantization scaling factors used by the quantizer 38 based on the degree of fullness of the transmit buffer 48. The more full the buffer 48, the larger the controller 60 makes the scale factors, and the fewer data bits the quantizer 40 generates. Conversely, the more empty the buffer 48, the smaller the controller 60 makes the scale factors, and the more data bits the quantizer 40 generates. This continuous adjustment insures that the buffer 48 neither overflows nor underflows. Figure 3 is a block diagram of a conventional MPEG decompressor 60, which is more commonly called a decoder 60 and which can decode frames that are encoded by the encoder 30 of Figure 2.
For I frames and macro blocks of non-l frames that are not motion predicted, a variable-length decoder 62 decodes the variable-length codes received from the encoder 30. A prediction decoder 64 decodes the predictively encoded DC coefficients, and a dequantizer 65, which is similar or identical to the dequantizer 50 of Figure 2, dequantizes the decoded AC and DC coefficients. An inverse DCT circuit 66, which is similar or identical to the inverse DCT circuit 52 of Figure 2, transforms the dequantized coefficients into pixel values. The decoded pixel values pass through a summer 68 (which is used during the decoding of motion-predicted macro blocks of non-l frames as discussed below) into a frame-reorder buffer 70, which stores the decoded frames and arranges them in a proper order for display on a video display unit 72. If the I frame is used as a reference frame, it is also stored in the reference-frame buffer 74. For motion-predicted macro blocks of non-l frames, the decoder 62, dequantizer 65, and inverse DCT 66 process the residuals as discussed above. The prediction decoder 64 decodes the motion vectors, and a motion interpolator 76 provides to the summer 68 the pixel values from the macro blocks in the reference frame that the motion vectors point to. The summer 68 adds these reference pixel values to the residuals to generate the pixel values of the decoded macro blocks, and provides these decoded pixel values to the frame-reorder buffer 70. If the non-l frame is used as a reference frame, it is stored in the reference-frame buffer 74.
A more detailed discussion of the MPEG encoder 30 and decoder 60 of Figures 2 and 3, respectively, is available in many publications including "Video Compression" by Peter D. Symes, McGraw-Hill, 1998. Furthermore, there are other well-known block-based compression techniques for encoding and decoding images.
Referring to Figure 1A, a problem with block-based compression techniques such as the MPEG standard is that the loss of visual information during compression may cause some or all of the respective boundaries between the 8x8 pixel blocks A - D and between contiguous macro blocks 10 to be noticeable to a viewer. More specifically, the compression losses may cause an abrupt change in the pixel values across a boundary, thus making the boundary visible. Such a visible boundary is often described as "blocky" or as exhibiting a "blocky" artifact, and the process of reducing the severity of blocky artifacts, i.e., making blocky boundaries invisible to a viewer, is often called deblocking.
Some references, including C. Reeve and J. S. Lim, "Reduction of Blocking Effects in Image Coding/' Optical Engineering, Vol. 23, No. 1 , Jan/Feb 1984, pp. 34- 37, and, N. Ngan, D. W. Lin, and M. L. Liou, "Enhancement of Image Quality for Low Bit Rate Video Coding/' IEEE Transactions on Circuits and Systems,, Vol. 38, No. 10, Oct 1991 , pp. 1221-1225, disclose deblocking techniques that are implemented during image encoding. But most images and video sources are encoded according to internationally agreed-upon compression standards such as MPEG, so altering the encoding algorithms is impractical if not impossible if one wishes to design an encoding system that complies with one or more of these standards.
Other references, including T. O'Rourke, R. Stevenson, "Improved Image Decompression for Reduced Transform Coding Artifacts," IEEE Transactions On Circuits And Systems For Video Technologies, Vol. 5, No. 6, Dec 1995, and Y. Yang et al, "Projection-Based Spatially Adaptive Reconstruction of Block-Transform
Compressed Images," IEEE Transactions on Image Processing, Vol. 4, No. 7, July 1995, disclose deblocking techniques that are implemented during image decoding. For example, O'Rourke et al. describe a statistical discontinuity-preserved image model and a statistical image compression model, and a technique for generating maximum a posteriori (MAP) estimations of boundary pixels given based on these two models. O'Rourke then estimates the values of the boundary pixels by iteratively solving a convex constrained optimization problem. Similarly, the Yang reference assumes that changes in neighboring pixel values, i.e., the values of pixels on either side of a boundary, should be at a minimum, and then, like O'Rourke, proceeds to estimate the values of the boundary pixels by iteratively solving the convex constrained optimization problem. But such techniques often require too much computation time for implementation in a real-time system. Additionally, such techniques often operate on boundaries that are not blocky. Unfortunately, when such techniques are applied to boundaries that are not blocky, the quality of the image may be degraded because generally, the assumption made by such techniques is that the difference between a pixel and its neighboring pixels should be small. Although such an assumption is correct some of the time, it is frequently incorrect, particularly in areas of an image including object edges.
Still other references describe deblocking techniques that employ low-pass filters along the block boundaries. Unfortunately, such low-pass filtering may lead to blurring at the block boundaries. Some of these techniques, such as that described in Ramamurthi and A. Gersho, "Nonlinear Space-Variant Post-processing of Block Coded Images," IEEE Transactions on Acoustics, Speech, and Signal Processing, Vol. ASSP-34, No. 5 October 1986, pp. 1258-1268, attempt to avoid blurring the boundaries by estimating the values of the boundary pixels in the original image and then adaptively choosing different types of filters to preserve the sharpness of the boundaries in the original image. Unfortunately, accurately estimating original boundary values from a highly compressed image may be very difficult because the quality of the decoded image is often inadequate for accurate boundary-value estimation. Furthermore, like some of the techniques described above, these techniques often operate on all of the boundaries in an image whether they are blocky or not, and thus may unnecessarily degrade the quality of the image or may be too computationally intensive for many applications.
SUMMARY OF THE INVENTION
In one aspect of the invention, an image processing circuit includes a processor that receives a portion of an image that includes a boundary and first and second contiguous pixels disposed on opposite sides of the boundary, the first and second pixels having respective first and second pixel values. The processor generates a boundary value from the first and second pixel values, compares the boundary value to a comparison value, and reduces the difference between the first and second pixel values if the boundary value has a specified relationship to the comparison value.
Because such a processing circuit operates on an image after it has been decoded, it does not change the way an image is encoded or decoded, and thus is compatible with all block-based compression standards. Furthermore, the comparison value can be set so that the processing circuit operates only on blocky boundaries, and thus does not degrade boundaries that are not blocky. Additionally, the processing circuit can operate on a sequence of video frames in real time.
BRIEF DESCRIPTION OF THE DRAWINGS
Figure 1A is a conventional macro block of pixels in an image.
Figure 1 B is a conventional block of pre-compression Y values that respectively correspond to the pixels in the macro block of Figure 1A.
Figure 1C is a conventional block of pre-compression CB values that respectively correspond to the pixel groups in the macro block of Figure 1A.
Figure 1 D is a conventional block of pre-compression CR values that respectively correspond to the pixel groups in the macro block of Figure 1A.
Figure 2 is a block diagram of a conventional MPEG encoder.
Figure 3 is a block diagram of a conventional MPEG decoder. Figure 4 is a schematic block diagram of an embodiment of an imaging processing circuit according to the invention.
Figure 5 is a flow chart that explains the operation of the image processing circuit of Figure 4.
Figure 6 is a detailed view of a macro block having boundaries that the image processing circuit of Figure 4 operates on.
Figure 7A is a functional block diagram of an embodiment of a filter that reduces the differences in pixel values across vertical image boundaries according to the invention.
Figure 7B is a functional block diagram of an embodiment of a filter that reduces the differences in pixel values across horizontal image boundaries according to the invention.
Figure 8A is a functional block diagram of another embodiment of a filter that reduces the differences in pixel values across vertical image boundaries according to the invention. Figure 8B is a functional block diagram of another embodiment of a filter that reduces the differences in pixel values across horizontal image boundaries according to the invention. DETAILED DESCRIPTION OF THE INVENTION
Figure 4 is a schematic block diagram of an image processing and display circuit 80, which includes an image processing circuit 82 and an image display circuit 84. The circuit 80 may be used to process and display individual images or a sequence of video frames. The image processing circuit 82 includes a conventional storage circuit 86 for storing image data received from a decoder such as the decoder 60 of Figure 3. The circuit 82 also includes an image processor 88, which in one embodiment includes conventional hardware components (not shown) and which reduces the pixel differences across blocky image boundaries as discussed below. In one embodiment of the invention, the storage circuit 86 is part of the decoder. For example, the storage circuit 86 may be the frame-reorder buffer 70 of Figure 3. In another embodiment, the storage circuit 86 is part of the processor 88. In yet another embodiment, the processing circuit 82 does not include the storage circuit 86, and the processor 88 receives the image data directly from the decoder. The display circuit 84 includes an image storage circuit 90, which stores the processed image data from the processor 88, and includes a display device 92, which displays the images stored in the circuit 90.
Figure 5 is a flow chart that shows the general operation of one embodiment of the image processor 88 of Figure 4. For example purposes, the operation of the processor 88 is discussed with respect to the pixel Y values, it being understood that the operation is the same for the pixel CB and CR values and for the luminance and chroma values of other color spaces.
In step 100, the processor 88 first calculates a threshold value based on the decoded values of some or all of the pixels in two contiguous pixel blocks that share a boundary. In one embodiment, the pixel blocks are 8x8, it being understood that the pixel blocks may have dimensions other than 8x8.
Next, in step 102, the processor 88 calculates a boundary value from the values of the pixels that lie along the boundary. Although the processor 88 is described as performing step 100 before step 102, the order of these steps can be reversed.
Then, in step 104, the processor 88 compares the threshold value to the boundary value. In step 106, if the boundary value differs from the threshold value in a predetermined manner (e.g., is greater than, is less than), then the processor 88 identifies the boundary as blocky, and in step 107, filters the pixel values that lie along the boundary. In one embodiment, the processor 88 filters the pixel values by reducing the differences between the values of pixels on one side of the boundary and the values of pixels on the other side of the boundary. If the boundary value does not differ from the threshold value in the predetermined way (e.g., is not greater than, is not less than), then the processor 88 identifies the boundary as not blocky. Referring to step 108, the processor 88 then processes all of the remaining boundaries of the image in this manner. In one embodiment, the processor 88 starts in the upper left corner of the image and works toward the lower right corner.
Referring to step 110, after the processor 88 processes all of the boundaries with respect to the Y values, the processor 88 repeats steps 100 - 108 for the CR and CB values. Referring to step 1 12, after the processor 88 processes all the boundaries in the image with respect to the CB and CR values, the processor 88 repeats steps 100 - 110 for any remaining images.
Therefore, because the processor 88 operates on the boundaries of an image after the image has been decoded, the described de-blocking technique neither needs a change in nor makes a change to the techniques used to encode and decode the image, and thus is compatible with any block-based compression standard. Furthermore, as discussed below, because the calculations of the threshold and boundary values and the filtering algorithm are relatively simple, the processor 88 can operate on the boundaries fast enough for real-time applications such as the enhancement of HDTV video frames. Additionally, experimental observation of images compressed using standards such as ISO/ITU MPEG and H.263 indicates that a significant number of boundaries are not blocky, and that the decoded image is often of the best visual quality when these "unblocky" boundaries are left unaltered. Thus, because the processor 88 filters only the boundaries it identifies as blocky, it does not degrade the quality of the image by filtering the boundaries that are not blocky.
Referring to Figures 6, 7A, and 7B, the operation of the image processor 88 of Figure 4 according to an embodiment of the invention is discussed. Generally, to determine whether or not a boundary between two contiguous pixel blocks is blocky, the processor 88 compares the respective average roughnesses inside the two blocks to the roughness at the boundary. That is, the boundary value (step 102 of Figure 5) is a function of the roughness at the boundary between the two blocks, and the threshold value (step 104 Figure 5) is a function of the respective average roughnesses inside the two blocks. If the processor 88 identifies a boundary as being blocky, then it implements the conventional finite-impulse-response (FIR) filters of Figures 7A and 7B to "smoothen" the differences between the values of the pixels that lie along and on opposite sides of the boundary. Thus, this embodiment exploits the experimental observation that in a typical real-world image before compression, the roughness within a particular block is the same as or is close to the respective roughnesses at its boundaries with adjacent blocks. But for reasons discussed above, lossy compression schemes may cause a block to have a different (typically higher), degree of roughness along its boundaries than within itself, and this difference in roughness is visible as a blocky boundary. Furthermore, although this embodiment is described below with respect to the Y values, it can be used with the CR and CB values and the luminance and chroma values of other color spaces.
Figure 6 is a 16x16 macro block 120, which includes four 8x8 pixel blocks A - D. Although shown in more detail, the macro block 120 and the blocks A - D are similar to the macro block 10 and the blocks A - D of Figure 1A. Each of the pixels in the respective blocks A - D has a respective row and column location. For example, the pixel a2, 4 in the block A is located at the intersection of row 2 and column 4 of the block A. A similar coordinate scheme is used for the blocks B - D. Furthermore, four boundaries are respectively located between the blocks A - D. For example, a boundary 122 is located between the blocks A and B, and a boundary 124 is located between the blocks A and C. The widths of the boundaries 122 and 124 are exaggerated for illustration, but in actuality, the pixels in column 7 of block A are contiguous with the respective pixels in column 0 of block B, and the pixels in row 7 of block A are contiguous with the respective pixels in row 0 of block C. For example, referring to the boundary 122, the pixel a0l is contiguous with the pixel bo,o. the pixel aι,7 is contiguous with the pixel bι,0, and so on.
As discussed in conjunction with Figures 1 - 3, because the DCT transform is performed on 8x8 blocks of pixel values, the macro block 120 is divided into the 8x8 blocks A - D. Therefore, for example purposes, the processor 88 is described as operating on the internal boundaries between the blocks A - D with respect to the Y values, it being understood that the processor 88 operates on the external boundaries between macro blocks with respect to the Y values in a similar fashion. But because in the MPEG 4:2:0 format each macro block has associated therewith only one 8x8 block of CR values and one 8x8 block of CB, there are no chroma- difference boundaries within a macro block, and thus the processor 88 operates only on the boundaries between macro blocks with respect to the CR and CB values. The processor 88, however, operates on these boundaries with respect to the CR and CB values in a manner similar to that described below for the Y values. In other formats, however, there may be chroma-difference boundaries within a macro block, in which case the processor 88 operates on these boundaries too. Furthermore, although the macro block 120 is described as being 16x16 and the blocks A - D are described as being 8x8, the macro block 120 and the blocks A - D may have other dimensions. Still referring to Figure 6, the operation of the processor 88 according to this embodiment of the invention is discussed in detail. For example purposes, the operation with respect to the boundaries 122 and 124 and the Y values is discussed, it being understood that the operation is similar with respect to other boundaries — whether between the blocks A - D within a macro block 120 or between macro blocks 120 — or with respect to the CR and CB values. Furthermore, the term "block" as used below is generic to blocks like the blocks A - D and to macro blocks.
In this embodiment, the horizontal roughness of a block with respect to the Y values equals the average horizontal difference between the Y values of horizontally adjacent pixels within the block. (Similarly, for the 4:2:0 MPEG format discussed in conjunction with Figures 1 - 3, the horizontal roughnesses with respect to the CR and CB values equal the average horizontal differences between the CR and CB values, respectively, of adjacent pixel groups, like the groups 14 of Figure 1 A, within the block.) Likewise, the vertical roughness of a block with respect to the Y values is equal to the average vertical difference between the Y values of vertically adjacent pixels within the block. (Similarly, for the 4:2:0 MPEG format discussed in conjunction with Figures 1 - 3, the vertical roughnesses with respect to the CR and CB values equal the average vertical differences between the CR and CB values, respectively, of adjacent pixel groups.) For example, the respective horizontal roughnesses RA and RBh of the blocks A and B of Figure 6, respectively, are represented by the following formulas:
Figure imgf000017_0001
(2) RBh = ^ ∑ ∑! by,χ - by,χ-l l
where ay,x is the Y value of the pixel in row y and column x of block A, and by,x is the Y value of the pixel in row y and column x of block B.
Similarly, the vertical roughnesses RAV and Rcv of the blocks A and C, respectively, are represented by the following formulas:
Figure imgf000017_0002
- CytJ
Figure imgf000017_0003
where cy x is the Y value of the pixel in the row y and column x of the block C. Furthermore, the horizontal boundary roughness RAB of the boundary 122 between the blocks A and B is represented by the following formula:
Figure imgf000017_0004
Thus, RAB equals the average difference between the Y values of the respective pairs of contiguous pixels in column 7 of block A and column 0 of block B. Likewise, the vertical boundary roughness RAC of the boundary 124 between the blocks A and C is represented by the following formula:
Figure imgf000017_0005
Thus, RAC equals the average difference between the Y values of the respective pairs of contiguous pixels in row 7 of block A and row 0 of block C.
It has been experimentally determined that the horizontal boundary 122 is blocky if the horizontal boundary roughness RAB exceeds the average of the horizontal roughnesses RAh and Rβ by a first predetermined amount, and that the boundary 124 is blocky if the vertical boundary roughness RAC exceeds the average of the vertical roughnesses RAv and RCv by a second predetermined amount. To carry out this calculation, the processor 88 calculates the average Y values PA, PB, Pc for the pixels in blocks A, B, and C, respectively, according to the following formulas:
(7) PA = 7^ Σ ∑av,x
°':+ y---0 χ=:0
(8) >B = — Σ ∑by,> O^ y=0 =0
(g) Pc = ∑ ∑ ∑ cy.χ 0i+ y = 0 X = 0
The processor 88 identifies the boundary 122 between the blocks A and B as blocky when the following equation is true:
Figure imgf000018_0001
where Th is an experimentally determined threshold constant. In one aspect of this embodiment, Th ≡ 0.05. More specifically, because the human visual system is more sensitive to differences in roughness than the to the actual degree of roughness, the processor 88 filters the boundary 122 only if the average of the horizontal roughnesses RAh and RBn differs from the horizontal-boundary roughness RAB by more than Th divided by 2. The equation 10 can be rewritten as: (11) R AB -!(R Ah RBh)> ^(PA + PB)
It is convenient to rewrite the equation again so that one can compare a boundary value, here the boundary roughness RAB, to a comparison value MAB to determine whether or not the boundary 122 is blocky. In this embodiment, MAB is calculated from equation (11) as:
(12) MAB=±[{RAh +RBh) + Th(PA +PB)]
Therefore, in this embodiment, the boundary 122 is blocky if:
<13) RAB >
Figure imgf000019_0001
+*j +Th(PA +PB)]
Thus, the processor 88 identifies the boundary 122 as being blocky and filters this boundary as discussed below only if the boundary value, here the horizontal- boundary roughness RAB, is greater than the comparison value, MAB-
Similarly, the processor 88 identifies the boundary 124 between the blocks A and C as blocky and filters this boundary when the following equation is true:
(14) RAC (RAV+RCV)>Y(PA+PC)
where Tv is an experimentally determined vertical threshold constant. In one aspect of this embodiment, Tv = 0.04.
As with equation (11), it is convenient to rewrite equation (15) again so that one can compare a boundary value, here the boundary roughness RAc, to a comparison value MAC to determine whether or not the boundary 124 is blocky. In this embodiment, MAc is calculated from equation (15) as:
(15) MAC = [(RAv +RCv) + Tv{PA +Pc)} Therefore, in this embodiment, the boundary 124 is blocky if:
(16) RAC >
Figure imgf000020_0001
+ RCV )+ TV(PA + PC )]
Although in this embodiment the respective boundary values RAB and RAc and comparison values MAB and MAC are functions of the Y pixel values in two adjacent blocks of the same image, in other embodiments these values may be functions of other data such as the pixel values in nonadjacent blocks in the same frame, pixel values in blocks of other frames in a video sequence, motion-vector values, or transform-domain values such as DCT coefficients.
Next, to reduce the undesirable effects that blocky boundaries have on an image, the processor 88 implements a filter, such as a FIR filter, to smoothen the boundaries that are identified as being blocky. In this embodiment, the filter operates on the Y values of the pixels that are contiguous with the blocky boundary. For example, if the processor 88 identifies the boundary 122 as being blocky, then it filters the Y values of the 16 pixels — the eight pixels in column 7 of block A and the eight pixels in column 0 of block B — that are contiguous with the boundary 122. Likewise, if the processor 88 identifies the boundary 124 as being blocky, then it filters the Y values of the 16 pixels — the eight pixels in row 7 of block A and the eight pixels in row 0 of block C — that are contiguous with the boundary 124.
More specifically, referring to Figures 7A and 7B, in this embodiment, the processor 88 implements a filter that sets the Y value of a filtered pixel equal to a function of its Y value and the Y values of the two contiguous pixels on either side of the filtered pixel in a direction perpendicular to the boundary. Referring to Figure 7A, for a vertical boundary such as the boundary 122, the
Y value of the filtered pixel hp1 is set equal to a function of its Y value and the Y values of the two horizontally contiguous pixels hpO and hp2. For example, to filter the Y value of a boundary pixel a3ι7 (hp1), the processor 88 sets the Y value of the pixel a3ι7 equal to a function of the Y values of the pixels a3,6 (hpO), a3>7 (hp1), and b3i0 (hp2). The processor 88 then filters the Y values of all of the other pixels in column 7 of block A and column 0 of block B in a similar manner to effectively reduce the respective differences between the Y values of the pixels in column 7 of block A and the Y values of the respective pixels in column 0 of block B. That is, the processor 88 smoothens the boundary 122 by reducing the average difference between the Y values of the pixeis a7 0 . . . a77 and the Y values of the respective pixels b0,o • • • boj- Similarly, referring to Figure 7B, for a horizontal boundary such as the boundary 124, the Y value of the filtered pixel vp1 is set equal to a function of its Y value and the Y values of the two vertically contiguous pixels vpO and vp2. For example, to filter the Y value of a boundary pixel co,4 (vp1), the processor 88 sets the Y value of the pixel c0,4 equal to a function of the Y values of the pixels a74 (vpO), Co,4 (vp1), and c1 ι (vp2). The processor 88 then filters the Y values of all of the other pixels in row 7 of block A and row 0 of block C in a similar manner to effectively reduce the respective differences between the Y values of the pixels in row 7 of block A and the Y values of the respective pixels in row 0 of block C. That is, the processor 88 smoothens the boundary 124 by reducing the average difference between the Y values of the pixels ao . . . a ι7 and the Y values of the respective pixels co,o • ■ • o .
In one aspect of this embodiment, the processor implements an averaging filter that sets the Y value of the filtered pixel equal to the average of its pre-filtered Y value and the Y values of the contiguous pixels. For example, in this embodiment, referring to Figures 7A and 7B, hp1fl|tered = (hp0pre-fiite.ed + hp1 pre-filtered + hp2pre-fiitered)/3 and Vp1 filtere = (Vp0pre-f,ιtered + Vp1pre-f,ltered + Vp2pre-fj|.ered)/3. As disCUSSβd belOW, the processor 88 uses the pre-filtered Y values of the pixels it filters to avoid reaching a result that depends on the order in which the blocks are filtered. Consequently, after the processor 88 filters contiguous pixels on either side of a boundary, neither pixel has a filtered Y value equal to the average of the filtered Y values of the pixels next to it.
For example, referring to Figures 6 and 7A, the filtering of the Y values of the pixel a3 and the horizontally adjoining pixel b3:o is described in conjunction with the smoothing of the boundary 122 according to an embodiment of the invention. First, the processor 88 calculates the average Y value for the pixels a36, a3,7, and bo
(hpO, hp1 , and hp2). Then, the processor 88 stores this resulting filtered Y value for a3 in a temporary memory location such as in an on-board memory array. Next, using the pre-filtered value of a3ι7, the processor 88 sets the Y value of the pixel b3ι0 (hp1) equal to the average Y value for the pixels a3,7, b3.o, and b3: 1 (hpO, hp1 , and hp2) and stores the resulting filtered Y value for b3,o in another temporary memory location. Then, the processor 88 puts the filtered Y values for a3 and b3,o in the respective memory locations corresponding to the Y values of these pixels. . As stated above, by using the pre-filtered Y values in all filtering calculations, the order of filtering, i.e., filtering a pixel in block A before filtering a horizontally contiguous pixel in block B or vice-versa, has no affect on the result of the filtering. Thus, the pixels a0 - a7 and b0,o- b7,o can be filtered in any order. Also, because the pre- filtered Y values of a3 and b3,o, and not the filtered Y values of a3 and b3,o, are used during the filtering of a3 , the filtered Y value of a3,7 is not equal to the average of the Y value of a3,β and the filtered Y values of a3 and bo, which Y values appear in the decoded image. Likewise, the filtered Y value of 03,0 is not equal to the average of the Y value of b31 and the filtered Y values of a3 and b3ι0.
Similarly, referring to Figures 6 and 7B, the filtering of the Y values of the pixel a7,3 and the vertically adjoining pixel c0,3 is discussed in conjunction with the smoothing of the boundary 124 according to an embodiment of the invention. First, the processor 88 calculates the average pixel value for the pixels aβ,3, a7,3,and coι3 (vpO, vp1 , and vp2). Then, the processor 88 stores this resulting filtered pixel value for a7,3 in a temporary memory location. Next, using the pre-filtered pixel value of the pixel a7t3, the processor 88 sets the value of the pixel c0,3 (vp1) equal to the average pixel value for the pixels a7ι3, c0,3, and cι,3 (vpO, vp1 , and vp2). Therefore, for the reasons stated above, this embodiment allows the processor 88 to filter the pixels a7i0- a7ι 7 and c0,o- c0, in any order. Also, the filtered value of a t3 is not equal to the average of the value of a6ι3 and the filtered values of a7f and c0,3, and the filtered value of Co,3 is not equal to the average of the value of c1i3 and the filtered values of a7,3 and c0,3.
Referring to Figures 6, 8A, and 8B, in another embodiment of the invention, the processor 88 uses different roughness and filtering calculations to respectively identify and smoothen blocky boundaries. One difference between this embodiment and the previous embodiment discussed above in conjunction with Figures 7A and 7B is that in this embodiment, the processor 88 is often better able to distinguish between a sharp edge of an object and a blocky boundary. Furthermore, like the previous embodiment, although this embodiment is discussed with respect to the Y values and the boundaries within a macro block, the processor 88 operates on the CR and CB values and the boundaries between macro blocks in a similar manner.
In this embodiment, the processor 88 implements a minimum filter to determine the degree of blockiness at the block boundaries. The minimum filter removes the part of the roughness value that does not result from compression quantization errors. For example, the horizontal roughness RAB at the boundary 122 is represented by the following equation:
(17) R AB = ∑M!N(\ ay -b \,Tqe) * y=0
That is, an element y=i of the summation equals the smaller of the absolute value of ay,7- by,o (the Y values of the pixels ay and by0, respectively) and Tqβ, which is either an experimentally determined constant or an adaptive variable related to the quantization coefficients used during the encoding of the image. For example, if Tqg is a constant, then T = 30 has been found to give good results. Alternatively, if it is an adaptive variable, then T is determined according to the possible quantization errors. More specifically, it has been discovered that a major cause of blocky boundaries is the errors resulting from quantization of the first few coefficients of the DCT transform. As discussed above in conjunction with Figure 2, the quantization circuit 38 quantizes the coefficients from the DCT circuit 36 to reduce the number of data bits needed to encode a particular pixel block. The quantization circuit 38 applies a respective quantization value to each of the DCT coefficients representing a pixel block. In some applications, the quantizer 38 varies the quantization values from block to block depending on characteristics such as the degree of visual detail in a particular block. In other applications, the quantization values are fixed. Therefore, Tqe is a function of the first three quantization values for each of the two blocks that are contiguous with the boundary in question, and in one aspect of this embodiment Tqe is represented by the following equation:
(18) T = < θ + Al + lA2 + C- B0 + qBl + clB2 Aqe where qAo - qA and qBo - <7s2 are the first three quantization values used during the encoding of blocks A and B, respectively.
In a similar manner, the vertical roughness RAC at the boundary 124 is represented by the following equation:
(19) R AC = ∑MIN(\ alx -cQx \ qe) * x=0
Here, T is also either a constant or can be represented by the following equation:
(20) T = qAo + c ι + A2 +qco + cι + qc2
where qco- qc are the first three quantization values used during the encoding of block C. The processor 88 also calculates the horizontal and vertical roughnesses within a block in a different manner. In the previous embodiment, to identify a blocky boundary, the processor 88 calculates the horizontal and vertical roughnesses within a block by respectively averaging the horizontal and vertical differences between the values of all the horizontally and vertically contiguous pixels within the block. But in this embodiment, instead of computing the average horizontal and vertical differences for the values of every pixel in the block, the processor 88 computes these average differences only for values of the two alignments (either rows or columns) of pixels adjacent to the block boundary. Accordingly, the horizontal roughness RAn of the block A is represented by the following equation:
1
(2D RAh = - ∑| av,6 - ay)7 l
8 y=0
Thus, the calculation of RAn is simplified by taking the average of the absolute values of the differences between the Y values of the horizontally contiguous pixels in the last two columns 6 and 7 of block A. In a similar manner, the horizontal roughness Rβh of block B is represented by the following equation:
Figure imgf000025_0001
Thus, the calculation of RBΛ is simplified by taking the average of the absolute values of the differences between the Y values of the horizontally contiguous pixels in the first two columns 0 and 1 of block B.
Similarly, the vertical roughnesses RAv and RCvof the blocks A and C, respectively, are represented by the following equations:
Figure imgf000025_0002
Figure imgf000025_0003
The processor 88 identifies the boundary 122 as being blocky if the following equation is true:
(25) RAB > F - MAX(RAh , RBh ) + T, bd
Therefore, in this embodiment, the comparison value MAB is equal to the right-hand side of equation (25). Furthermore, F and Ti.c/are determined experimentally, and MAX(F /,, RBn) equals the greater of RAh and R_h- For example, F = 1.4 and T0_ = 8 have been found to yield good results, although different values may be used.
Likewise, the processor 88 identifies the boundary 124 as being blocky if the following equation is true:
(26) RAC > F . MAX(RAv ,RCv ) + Tbd Here, the comparison value MAC is equal to the right-hand side of equation (26), and F = 1.4 and TDd = 8 work well, although different values may be used.
Referring to Figures 8A and 8B, in this embodiment the processor 88 implements a filter that is different from the averaging filter discussed above in conjunction with Figures 7A and 7B. More specifically, the processor 88 implements a filter that operates on the values of the four pixels adjacent to a boundary, two pixels on either side of the boundary. For example, referring to Figure 8A, where two pixels hpO and hp1 of a first block are on one side of a vertical boundary 130, and two pixels hp2 and hp4 of a second block are on the other the other side of the boundary 130, the processor 88 filters the values of hpO - hp3 based on four respective functions fhO - fh3 of the pre-filtered values of hpO - hp3. Likewise, referring to Figure 8b, where two pixels vpO and vp1 of a first block are on one side of a horizontal boundary 132, and two pixels vp2 and vp4 of a second block are on the other the other side of the boundary 132, the processor 88 filters the values of vpO - vp3 based on four functions fvO - fv3 of the pre-filtered values of vpO - vp3. For example, referring to Figures 6 and 8A, in one embodiment, if the boundary 122 is blocky, the processor 88 filters the Y values of the pixels ayβ for y=0, 1, 2, 3, ... ,7 (column 6 of block A) according to the following equation:
a'y,6 = fhO = (27) ^•65a(y)6)pre_filtered + 0.2a(y)7)pre_flltered +
0-lb(y,0)pre-fϊltered + 0-05b(y)1)pre_flItered
where a'y.-> corresponds to the filtered Y value of the pixel hpO, i.e., hpOfmered. and a(y,6)pre-mered, 3(y,7)prβ-fιltered, b(y,θ)pre-fιltered, and b(y, . pre-ή/.erec/ respectively Correspond to the pre-filtered Y values of the pixels hp0-hp03, i.e., hpOpre-fιitered. hp1pre.f,ιtetβd. hp2pre-flitered, and hp3Pre-fιitered of Figure 8A. Thus, a 'y,6 equals the filtered Y value of the pixel ay,6.
Similarly, the processor 88 filters the values of the pixels ay (column 7 of block A), by,o (column O of block B), and by,ι (column 1 of block B) for y=0, 1, 2, ... , 7 according to the following equations: a'y-7 = AH =
(28) 0-25a(y 6)pre.filtered + 0.35a(y;7)pre.fllteι.ed +
0.26b(y)0)pre.flltered + 0.14b(y;1 pre.filtered
b'y,0 = fh2 =
(29) 0-l4a(y,6)pre-filtered + ^26a(y 7)pre_flltered +
0.35b(y)0)pre_fi|tered + 0.25b(y l)pre---f ιtered
b'v l = fh3 = (30) °-05a(y,6)pre-filtered + °-la(y,7)pre-filtered +
°-2b(y)0)pre-filtered + °-65b(y l)pre_filtered
where a'y corresponds to hp1fi|tered, and thus equals the filtered Y value of the pixel 3y , b'yo corresponds to hp2f,itered, and thus equals the filtered Y value of the pixel by,o, and b'yι corresponds to hp3fj|tered, and thus equals the filtered Y value of the pixel
Likewise, referring to Figures 6 and 8B, if the boundary 124 is blocky, the processor 88 filters the values of the pixels a6,χ for =0, 7,2,3, ..., 7 (row 6 of block A) according to the following equation:
6,χ = fvO = (31) °'65a(6,x)pre-fιltered + 0-2a(7,x)pre-filtered +
0-lc(0,x)pre-filtered + 0-05c(l,x)pre-f.ltered
where a'6,x corresponds to the filtered Y value of the pixel vpO, i.e., vpOfϋtered, and a(e,x)prβ-merβd,
Figure imgf000027_0001
C(o,x)Prβ-fιitered, and C( X)Pre-fιitered respectively correspond to the pre-filtered Y values of the pixels vp0-vp3, i.e., vpOpre-Wfθred, vp1pre.;„ered, vp2pre. altered, and vp3pre.;/tered, of Figure 8B. Thus, a'6,x equals the filtered value of the pixel ,. -,-,, ., PCT/US99/28410 O 00/33243
Similarly, the processor 88 filters the values of the pixels a7,x, (row 7 of block A), Co,x, (row 0 of block C), and c x, (row 1 of block C) for x=0,1, 2, ... ,7 according to the following equations:
a'7)X = fvl = (32) 0-25a(6>x)pre_fl]tered + 0.35a(7 x)pre_fl|tered +
0-26c (0,x)pre---flltered +
Figure imgf000028_0001
Figure imgf000028_0002
(33) 0J4a(6 x)pre_flItered + 0.26a (7 x)pre_fiitered +
0-35c (0,x)pre-fjltered + 0-25C(I>χ)pre_ i|tered
(34) 0.05a(6 x)pre_flItered + 0.1a(7>X)pre_fijtered +
Figure imgf000028_0003
where a'7.x corresponds to vp1 filtere , and thus equals the filtered Y value of the pixel 37. , c'o.x corresponds to vp2fj|tere , and thus equals the filtered Y value of the pixel c0,x, and C' X corresponds to vp3fiitered, and thus equals the filtered Y value of the pixel c1:X. To implement the above filtering equations, the processor 88 conventionally stores the pre-filtered values of the pixels being filtered.
From the foregoing it will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without deviating from the spirit and scope of the invention.

Claims

What is claimed:
1. An image processing circuit, comprising: a processor operable to, receive at least a portion of an image, the portion including a boundary and first and second contiguous pixels disposed on opposite sides of the boundary, the first and second pixels having respective first and second pixel values; generate a boundary value from the first and second values; compare the boundary value to a comparison value; and reduce a difference between the first and second values if the boundary value has a specified relationship to the comparison value.
2. The processing circuit of claim 1 wherein the processor is operable to reduce the difference between the first and second values if the boundary value is greater than the comparison value.
3. The processing circuit of claim 1 wherein the boundary value equals the difference between the first and second values.
4. The processing circuit of claim 1 wherein the boundary value equals the lesser of a predetermined value or an absolute value of the difference between the first and second values.
5. The processing circuit of claim 1 wherein the boundary value equals a roughness value that indicates the roughness of the boundary.
6. The processing circuit of claim 1 wherein the image includes first and second contiguous pixel blocks disposed on opposite sides of the boundary, the first and second pixels respectively disposed in the first and second blocks.
7. The processing circuit of claim 1 wherein: the image includes third and fourth pixels having respective values, the third pixel contiguous with and on the same side of the boundary as the first pixel and the fourth pixel contiguous with and on the same side of the boundary as the second pixel; and the processor is operable to reduce the difference between the values of the first and second pixels by setting the value of the first pixel equal to the average of the values of the first, second, and third pixels and setting the value of the second pixel equal to the average of the values of the first, second, and fourth pixels.
8. The processing circuit of claim 1 wherein: the image includes third and fourth pixels having respective values, the third pixel contiguous with and on the same side of the boundary as the first pixel and the fourth pixel contiguous with and on the same side of the boundary as the second pixel; and the processor is operable to reduce the difference between the values of the first and second pixels by, setting the value of the first pixel equal to the sum of a first factor times the value of the third pixel, a second factor times the value of the first pixel, a third factor times the value of the second pixel, and a fourth factor times the value of the fourth, and setting the value of the second pixel equal to the sum of a fifth factor times the value of the third pixel, a sixth factor times the value of the first pixel, a seventh factor times the value of the second pixel, and an eighth factor times the value of the fourth pixel.
9. The processing circuit of claim 1 wherein: the image includes third and fourth pixels having respective values, the third pixel contiguous with and on the same side of the boundary as the first pixel and the fourth pixel contiguous with and on the same side of the boundary as the second pixel; and the processor is operable to reduce the difference between the values of the first and second pixels by, setting the value of the first pixel equal to the sum of a first factor times the value of the third pixel, a second factor times the value of the first pixel, a third factor times the value of the second pixel, and a fourth factor times the value of the fourth, and setting the value of the second pixel equal to the sum of a fifth factor times the value of the third pixel, a sixth factor times the value of the first pixel, a seventh factor times the value of the second pixel, and an eighth factor times the value of the fourth pixel; and the processor is operable to reduce the difference between the values of the first and fourth pixels and to reduce the difference between the values of the second and third pixels by, setting the value of the third pixel equal to the sum of a ninth factor times the value of the third pixel, a tenth factor times the value of the first pixel, an eleventh factor times the value of the second pixel, and a twelfth factor times the value of the fourth pixel, and setting the value of the fourth pixel equal to the sum of a thirteenth factor times the value of the third pixel, a fourteenth factor times the value of the first pixel, a fifteenth factor times the value of the second pixel, and a sixteenth factor times the value of the fourth pixel.
10. The processing circuit of claim 1 wherein the first and second values of the first and second pixels, respectively, comprise respective luminance values.
11. An image processing circuit, comprising: a storage circuit operable to store at least a portion of an image including a boundary and first and second contiguous pixels disposed on opposite sides of the boundary, the first and second pixels having respective first and second pixel values; and a processor coupled to the storage circuit, the processor operable to generate a boundary value from the first and second values, to compare the boundary value to a comparison value, and to reduce a difference between the first and second values if the boundary value is related to the comparison value in a specified manner.
12. The processing circuit of claim 11 wherein the processor is operable to reduce the difference between the first and second values if the boundary value is greater than the comparison value.
13. The processing circuit of claim 11 wherein the boundary value equals the difference between the first and second values.
14. The processing circuit of claim 11 wherein the boundary value equals a roughness value that indicates the roughness of the boundary.
15. The processing circuit of claim 11 wherein the image includes first and second contiguous pixel blocks disposed on opposite sides of the boundary, the first and second pixels respectively disposed in the first and second blocks.
16. The processing circuit of claim 11 wherein the first and second values of the first and second pixels, respectively, comprise respective luminance values.
17. An image processing circuit, comprising: a storage circuit operable to store at least a portion of an image, the portion including a boundary and first and second contiguous pixel blocks disposed on opposite sides of the boundary, each block including pixels arranged in alignments and orthogonal alignments and having respective values, each pixel in a first alignment of the first block being contiguous with a respective pixel in a first alignment of the second block; and a processor coupled to the storage circuit, the processor operable to generate a boundary value from the values of the pixels in the first alignments of the first and second blocks, to compare the boundary value to a comparison value, and to reduce a difference between the value of a first pixel in the first alignment of the first block and the value of a respective first pixel in the first alignment of the second block if the boundary value has a specified relationship to the comparison value.
18. The processing circuit of claim 17 wherein the pixel alignments of the first and second blocks each comprise a respective column of pixels and the orthogonal pixel alignments of the first and second blocks each comprise a respective row of pixels.
19. The processing circuit of claim 17 wherein the pixel alignments of the first and second blocks each comprise a respective row of pixels and the orthogonal pixel alignments of the first and second blocks each comprise a respective column of pixels.
20. The processing circuit of claim 17 wherein the boundary value equals an average difference between the values of the pixels in the first alignment of the first block and the values of the respective pixels in the first alignment of the second block.
21. The processing circuit of claim 17 wherein the comparison value is a function of the average difference between the values of two contiguous pixels in the same orthogonal alignment of the first block and the average difference between the values of two contiguous pixels in the same orthogonal alignment of the second block.
22. The processing circuit of claim 17 wherein the comparison value is a function of the average value of the pixels in the first block and the average value of the pixels in the second block.
23. The processing circuit of claim 17, wherein the processor is operable to: calculate the respective differences between the values of contiguous pixels in the orthogonal alignments of the first block and the respective differences between the values of contiguous pixels in the orthogonal alignments of the second block; calculate a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculate a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; calculate a first-block average pixel value equal to the sum of the values of the pixels in the first biock divided by the number of pixels in the first block; calculate a second-block average pixel value equal to the sum of the values of the pixels in the second block divided by the number of pixels in the second block; and calculate the comparison value equal to the difference between the product of a first factor and the sum of the first- and second-block average pixel differences and the product of a second factor and the sum of the first- and second-block average pixel values.
24. The processing circuit of claim 17, wherein the processor is operable to: calculate the respective differences between the values of contiguous pixels in the orthogonal alignments of the first block and the respective differences between the values of contiguous pixels in the orthogonal alignments of the second block; calculate a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculate a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; calculate a first-block average pixel value equal to the sum of the values of the pixels in the first block divided by the number of pixels in the first block; calculate a second-block average pixel value equal to the sum of the values of the pixels in the second block divided by the number of pixels in the second block; and calculate the comparison value equal to the absolute value of the difference between half of the sum of the first- and second-block average pixel differences and 0.02 times the sum of the first- and second-block average pixel values.
25. The processing circuit of claim 17, wherein the processor is operable to: calculate the respective differences between the values of contiguous pixels in the orthogonal alignments of the first block and the respective differences between the values of contiguous pixels in the orthogonal alignments of the second block; calculate a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculate a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; calculate a first-block average pixel value equal to the sum of the values of the pixels in the first block divided by the number of pixels in the first block; calculate a second-block average pixel value equal to the sum of the values of the pixels in the second block divided by the number of pixels in the second block; calculate the comparison value equal to the difference between the product of a first constant and the sum of the first- and second-block average pixel differences and the product of a second constant and the sum of the first- and second-block average pixel values; and to reduce the average difference between the values of the pixels in the first alignment of the first block and the values of the respective pixels in the first alignment of the second block if the boundary value is greater than the comparison value.
26. The processing circuit of claim 17 wherein: the first block includes a second alignment of pixels including a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second block includes a second alignment of pixels that includes a second pixel that is contiguous with the first pixel of the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first and second blocks by setting the value of the first pixel in the first block equal to the average of the values of the first and second pixels in the first block and the first pixel in the second block and setting the value of the first pixel in the second block equal to the average of the values of the first pixel in the first block and the first and second pixels in the second block.
27. The processing circuit of claim 17 wherein: the first block includes a second alignment of pixels including a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second block includes a second alignment of pixels including a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first and second blocks by setting the value of the first pixel in the first block to equal the average of the values of the first and second pixels in the first block and first pixel in the second block, storing the resulting value of the first pixel in the first block, setting the value of the first pixel in the second block to equal the average of the values of the first pixel in the first block and the first and second pixels in the second block, and storing the resulting value of the first pixel in the second block.
28. The processing circuit of claim 17 wherein: the first block includes a second alignment of pixels including a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second block includes a second alignment of pixels including a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first and second blocks by changing the value of the first pixel in the second block to equal the average of the values of the first pixel in the first block and the first and second pixels in the second block, storing the resulting value of the first pixel of the second block, changing the value of the first pixel in the first block to equal the average of the values of the first pixel and second pixels in the first block and the second pixel in the second block, and storing the resulting value of the first pixel of the second block.
29. A processing circuit, comprising: a storage circuit operable to store at least a portion of an image, the portion including a boundary and first and second contiguous pixel blocks located on opposite sides of the boundary, the first and second blocks each including respective first and second alignments of pixels having respective values, each pixel in the first alignment of the first block being contiguous with a respective pixel in the first alignment of the second block; and a processor coupled to the storage circuit, the processor operable to generate a boundary value from the values of the pixels in the first alignments of the first and second blocks, to compare the boundary value to a comparison value, and to reduce a difference between the value of a first pixel in the first alignment of the first block and the value of a respective first pixel in the first alignment of the second block if the boundary value has a specified relationship to the comparison value.
30. The processing circuit of claim 29 wherein the boundary value equals the minimum of a predetermined value or the average difference between the values of the pixels in the first alignment of the first block and the values of the respective pixels in the first alignment of the second block.
31. The processing circuit of claim 29 wherein the boundary value equals the minimum of a constant or the average difference between the values of the pixels in the first alignment of the first block and the values of the respective pixels in the first alignment of the second block.
32. The processing circuit of claim 29 wherein the boundary value equals the minimum of a predetermined value or the average difference between the values of the pixels in the first alignment of the first block and the values of the respective pixels in the first alignment of the second block, the predetermined value being a function of quantization performed during encoding of the image.
33. The processing circuit of claim 29 wherein the comparison value is a function of the greater of the average difference between the values of two contiguous pixels in the first block, one pixel in the first alignment and one pixel in the alignment, and the average difference between the values of two contiguous pixels in the second block, one pixel in the first alignment and one pixel in the second alignment.
34. The processing circuit of claim 29, wherein the processor is operable to: calculate the respective differences between the values of the pixels in the first alignment of the first block and the values of the contiguous pixels in the second alignment of the first block and calculate the respective differences between the values of the pixels in the first alignment of the second block and the values of the contiguous pixels in the second alignment of the second block; calculate a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculate a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; and calculate the comparison value equal to the greater of the first- and second- block average pixel differences.
35. The processing circuit of claim 29, wherein the processor is operable to: calculate the respective differences between the values of the pixels in the first alignment of the first block and the values of the contiguous pixels in the second alignment of the first block and calculate the respective differences between the values of the pixels in the first alignment of the second block and the values of the contiguous pixels in the second alignment of the second block; calculate a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculate a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; and calculate the comparison value equal to the sum of a first predetermined value and the product of a second predetermined value and the greater of the first- and second-block average pixel differences.
36. The processing circuit of claim 29, wherein the processor is operable to: calculate the respective differences between the values of the pixels in the first alignment of the first block and the values of the contiguous pixels in the second alignment of the first block and calculate the respective differences between the values of the pixels in the first alignment of the second block and the values of the contiguous pixels in the second alignment of the second block; calculate a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculate a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; and calculate the comparison value equal to 8 plus 1.4 times the greater of the first- and second-block average pixel differences.
37. The processing circuit of claim 29, wherein the processor is operable to reduce the difference between the value of the first pixel in the first alignment of the first block and the value of the first pixel in the first alignment of the second block if the boundary value is greater than the comparison value.
38. The processing circuit of claim 29 wherein: the second alignment of the first block includes a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second alignment of the second block includes a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first alignments of the first and second blocks by, storing the values of the first and second pixels in the first block and of the first and second pixels in the second block, setting the value of the first pixel in the first block equal to the sum of a first value times the value of the second pixel in the first block, a second value times the value of the first pixel in the first block, a third value times the value of the first pixel in the second block, and a fourth value times the value of the second pixel in the second block, and setting the value of the first pixel in the second block equal to the sum of a fifth value times the value of the second pixel in the first block, a sixth value times the value of the first pixel in the first block, a seventh value times the value of the first pixel in the second block, and an eighth value times the value of the second pixel in the second block.
39. The processing circuit of claim 29 wherein: the second alignment of the first block includes a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second alignment of the second block includes a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first alignments of the first and second blocks by, storing the values of the first and second pixels in the first block and of the first and second pixels in the second block, setting the value of the first pixel in the first block equal to the sum of a first value times the value of the second pixel in the first block, a second value times the value of the first pixel in the first block, a third value times the value of the first pixel in the second block, and a fourth value times the value of the second pixel in the second block, and setting the value of the first pixel in the second block equal to the sum of the fourth value times the value of the second pixel in the first block, the third value times the value of the first pixel in the first block, the second value times the value of the first pixel in the second block, and the first value times the value of the second pixel in the second block
40. The processing circuit of claim 29 wherein: the second alignment of the first block includes a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second alignment of the second block includes a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first alignments of the first and second blocks by, storing the values of the first and second pixels in the first block and of the first and second pixels in the second block, setting the value of the first pixel in the first block equal to the sum of 0.25 times the value of the second pixel in the first block, 0.35 times the value of the first pixel in the first block, 0.26 times the value of the first pixel in the second block, and 0J4 times the value of the second pixel in the second block, and setting the value of the first pixel in the second block equal to the sum of 0J4 times the value of the second pixel in the first block, 0.26 times the value of the first pixel in the first block, 0.35 times the value of the first pixel in the second block, and 0.25 times the value of the second pixel in the second block
41. The processing circuit of claim 29 wherein: the second alignment of the first block includes a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second alignment of the second block includes a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first alignments of the first and second blocks by, storing the values of the first and second pixels in the first block and of the first and second pixels in the second block, setting the value of the first pixel in the first block equal to the sum of a first value times the value of the second pixel in the first block, a second value times the value of the first pixel in the first block, a third value times the value of the first pixel in the second block, and a fourth value times the value of the second pixel in the second block, and setting the value of the first pixel in the second block equal to the sum of a fifth value times the value of the second pixel in the first block, a sixth value times the value of the first pixel in the first block, a seventh value times the value of the first pixel in the second block, and an eighth value times the value of the second pixel in the second block; and the processor is operable to reduce the difference between the values of the second pixel in the first block and the first pixel in the second block and to reduce the difference between the values of the second pixel in the second block and the first pixel in the first block by, setting the value of the second pixel in the first block equal to the sum of a ninth value times the value of the second pixel in the first block, a tenth value times the value of the first pixel in the first block, an eleventh value times the value of the first pixel in the second block, and a twelfth value times the value of the second pixel in the second block, and setting the value of the second pixel in the second block equal to the sum of a thirteenth value times the value of the second pixel in the first block, a fourteenth value times the value of the first pixel in the first block, a fifteenth value times the value of the first pixel in the second block, and a sixteenth value times the value of the second pixel in the second block.
42. The processing circuit of claim 29 wherein: the second alignment of the first block includes a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second alignment of the second block includes a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first alignments of the first and second blocks by, storing the values of the first and second pixels in the first block and of the first and second pixels in the second block, setting the value of the first pixel in the first block equal to the sum of a first value times the value of the second pixel in the first block, a second value times the value of the first pixel in the first block, a third value times the value of the first pixel in the second block, and a fourth value times the value of the second pixel in the second block, and setting the value of the first pixel in the second block equal to the sum of the fourth value times the value of the second pixel in the first block, the third value times the value of the first pixel in the first block, the second value times the value of the first pixel in the second block, and the first value times the value of the second pixel in the second block; and the processor is operable to reduce the difference between the values of the second pixel in the first block and the first pixel in the second block and to reduce the difference between the values of the second pixel in the second block and the first pixel in the first block by, setting the value of the second pixel in the first block equal to the sum of a fifth value times the value of the second pixel in the first block, a sixth value times the value of the first pixel in the first block, a seventh value times the value of the first pixel in the second block, and an eighth value times the value of the second pixel in the second block, and setting the value of the second pixel in the second block equal to the sum of the eighth value times the value of the second pixel in the first block, the seventh value times the value of the first pixel in the first block, the sixth value times the value of the first pixel in the second block, and the fifth value times the value of the second pixel in the second block.
43. The processing circuit of claim 29 wherein: the second alignment of the first block includes a second pixel that is contiguous with the first pixel in the first alignment of the first block; the second alignment of the second block includes a second pixel that is contiguous with the first pixel in the first alignment of the second block; and the processor is operable to reduce the difference between the values of the first pixels in the first alignments of the first and second blocks by, storing the values of the first and second pixels in the first block and of the first and second pixels in the second block, setting the value of the first pixel in the first block equal to the sum of 0.25 times the value of the second pixel in the first block, 0.35 times the value of the first pixel in the first block, 0.26 times the value of the first pixel in the second block, and 0J4 times the value of the second pixel in the second block, and setting the value of the first pixel in the second block equal to the sum of 0J4 times the value of the second pixel in the first block, 0.26 times the value of the first pixel in the first block, 0.35 times the value of the first pixel in the second block, and 0.25 times the value of the second pixel in the second block; and the processor is operable to reduce the difference between the values of the second pixel in the first block and the first pixel in the second block and to reduce the difference between the values of the second pixel in the second block and the first pixel in the first block by, setting the value of the second pixel in the first block equal to the sum of 0.65 times the value of the second pixel in the first block, 0.2 times the value of the first pixel in the first block, 0J times the value of the first pixel in the second block, and 0.05 times the value of the second pixel in the second block, and setting the value of the second pixel in the second block equal to the sum of 0.05 times the value of the second pixel in the first block, 0J times the value of the first pixel in the first block, 0.2 times the value of the first pixel in the second block, and 0.65 times the value of the second pixel in the second block.
44. The processing circuit of claim 29 wherein the first and second alignments of the first block and the first and second alignments of the second block each comprise a respective row of pixels.
45. The processing circuit of claim 29 wherein the first and second alignments of the first block and the first and second alignments of the second block each comprise a respective column of pixels.
46. The processing circuit of claim 29 wherein the image comprises a video image.
47. The processing circuit of claim 29 wherein the image comprises a still image.
48. A method, comprising: calculating a boundary value from a first value of a first pixel and a second value of a second pixel, the first and second pixels being contiguous with one another and located on opposite sides of a boundary; comparing the boundary value to a comparison value; and reducing a difference between the first and second values if the boundary value is related to the comparison value in a specified manner.
49. The method of claim 48 wherein the reducing comprises reducing the difference between the first and second values if the boundary value exceeds the comparison value.
50. The method of claim 48 wherein calculating the boundary value comprises setting the boundary value equal to the difference between the first and second values.
51. The method of claim 48 wherein calculating the boundary value comprises setting the boundary value equal to the lesser of a predetermined value or an absolute value of the difference between the first and second values.
52. The method of claim 48 wherein: third and fourth pixels have respective values, the third pixel contiguous with and on the same side of the boundary as the first pixel and the fourth pixel contiguous with and on the same side of the boundary as the second pixel; and reducing the difference between the values of the first and second pixels comprises setting the value of the first pixel equal to the average of the values of the first, second, and third pixels and setting the value of the second pixel equal to the average of the values of the first, second, and fourth pixels.
53. The method of claim 48 wherein: third and fourth pixels have respective values, the third pixel contiguous with and on the same side of the boundary as the first pixel and the fourth pixel contiguous with and on the same side of the boundary as the second pixel; and reducing the difference between the values of the first and second pixels comprises, setting the value of the first pixel equal to the sum of a first value times the value of the third pixel, a second value times the value of the first pixel, a third value times the value of the second pixel, and a fourth value times the value of the fourth, and setting the value of the second pixel equal to the sum of a fifth value times the value of the third pixel, a sixth value times the value of the first pixel, a seventh value times the value of the second pixel, and an eighth value times the value of the fourth pixel.
54. The method of claim 48 wherein: third and fourth pixels have respective values, the third pixel contiguous with and on the same side of the boundary as the first pixel and the fourth pixel contiguous with and on the same side of the boundary as the second pixel; reducing the difference between the values of the first and second pixels comprises, setting the value of the first pixel equal to the sum of a first value times the value of the third pixel, a second value times the value of the first pixel, a third value times the value of the second pixel, and a fourth value times the value of the fourth, and setting the value of the second pixel equal to the sum of a fifth value times the value of the third pixel, a sixth value times the value of the first pixel, a seventh value times the value of the second pixel, and an eighth value times the value of the fourth pixel; and the method further comprises reducing the difference between the values of the first and fourth pixels and reducing the difference between the values of the second and third pixels by, setting the value of the third pixel equal to the sum of a ninth value times the value of the third pixel, a tenth value times the value of the first pixel, an eleventh value times the value of the second pixel, and a twelfth value times the value of the fourth pixel, and setting the value of the fourth pixel equal to the sum of a thirteenth value times the value of the third pixel, a fourteenth value times the value of the first pixel, a fifteenth value times the value of the second pixel, and a sixteenth value times the value of the fourth.
55. A method, comprising: calculating a boundary value from the values of pixels in first and second alignments of an image, the first and second alignments located on opposite sides of a boundary, each pixel in the first alignment being contiguous with a respective pixel in the second alignment; comparing the boundary value to a comparison value; and reducing a difference between the value of a first pixel in the first alignment and the value of a respective second pixel in the second alignment if the boundary value has a specified relationship to the comparison value.
56. The method of claim 55 wherein the calculating the boundary value comprises calculating the boundary value equal to the average difference between the values of the pixels in the first alignment and the values of the respective pixels in the second alignment.
57. The method of claim 55 wherein: the image includes first and second pixel blocks located on opposite sides of the boundary, each of the blocks including pixels arranged in alignments and orthogonal alignments and having respective values, the first and second alignments respectively located in the first and second blocks; and the method further comprises calculating the comparison value as a function of the average difference between the values of two contiguous pixels in the same orthogonal alignment of the first block and the average difference between the values of two contiguous pixels in the same orthogonal alignment of the second block.
58. The method of claim 56 wherein the alignments and orthogonal alignments of the first and second blocks comprise respective rows and columns of pixels.
59. The method of claim 55 wherein the alignments and orthogonal alignments of the first and second blocks comprise respective columns and rows of pixels.
60. The method of claim 55, further comprising calculating the comparison value as a function of the average value of the pixels in the first block and the average value of the pixels in the second block.
61. The method of claim 55 wherein: the image includes first and second pixel blocks located on opposite sides of the boundary, each of the blocks including pixels arranged in alignments and orthogonal alignments and having respective values, the first and second alignments respectively located in the first and second blocks; and the method further comprises: calculating the respective differences between the values of contiguous pixels in the orthogonal alignments of the first block and the respective differences between the values of contiguous pixels in the orthogonal alignments of the second block; calculating a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculating a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; calculating a first-block average pixel value equal to the sum of the values of the pixels in the first block divided by the number of pixels in the first block; calculating a second-block average pixel value equal to the sum of the values of the pixels in the second block divided by the number of pixels in the second block; and calculating the comparison value equal to the difference between the product of a first constant and the sum of the first- and second-block average pixel differences and the product of a second constant and the sum of the first- and second-block average pixel values.
62. The method of claim 55 wherein: the image includes first and second pixel blocks located on opposite sides of the boundary, each of the blocks including pixels arranged in alignments and orthogonal alignments and having respective values, the first and second alignments respectively located in the first and second blocks; and the method further comprises: calculating the respective differences between the values of contiguous pixels in the orthogonal alignments of the first block and the respective differences between the values of contiguous pixels in the orthogonal alignments of the second block; calculating a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculating a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; calculating a first-block average pixel value equal to the sum of the values of the pixels in the first block divided by the number of pixels in the first block; calculating a second-block average pixel value equal to the sum of the values of the pixels in the second block divided by the number of pixels in the second block; and calculating the comparison value equal to the absolute value of the difference between half of the sum of the first- and second-block average pixel differences and 0.02 times the sum of the first- and second-block average pixel values.
63. The method of claim 55 wherein: the image includes first and second pixel blocks located on opposite sides of the boundary, each of the blocks including pixels arranged in alignments and orthogonal alignments and having respective values, the first and second alignments respectively located in the first and second blocks; and the method further comprises: calculating the respective differences between the values of contiguous pixels in the orthogonal alignments of the first block and the respective differences between the values of contiguous pixels in the orthogonal alignments of the second block; calculating a first-block average pixel difference equal to the sum of the differences from the first block divided by the number of differences from the first block; calculating a second-block average pixel difference equal to the sum of the differences from the second block divided by the number of differences from the second block; calculating a first-block average pixel value equal to the sum of the values of the pixels in the first block divided by the number of pixels in the first block; calculating a second-block average pixel value equal to the sum of the values of the pixels in the second block divided by the number of pixels in the second block; calculating the comparison value equal to the difference between the product of a first constant and the sum of the first- and second-block average pixel differences and the product of a second constant and the sum of the first- and second-block average pixel values; and reducing the average difference between the values of the pixels in the first alignment of the first block and the values of the respective pixels in the second alignment of the second block if the boundary value is greater than the comparison value.
64. The method of claim 55 wherein: the image includes a third alignment having a third pixel that is contiguous with the first pixel of the first alignment and includes a fourth alignment having a fourth pixel that is contiguous with the second pixel of the second alignment; and reducing the difference between the values of the first and second pixels comprises setting the value of the first pixel equal to the average of the values of the first, second, and third pixels and setting the value of the second pixel equal to the average of the values of the first, second, and fourth pixels.
65. The method of claim 55 wherein the values of the first and second pixels comprise respective luminance values.
66. A method, comprising: calculating a boundary value from the values of pixels in first and second alignments of an image, the first and second alignments located on opposite sides of a boundary, each pixel in the first alignment being contiguous with a respective pixel in the second alignment, the image also including a third alignment contiguous with and located on the same side of the boundary as the first alignment and a fourth alignment contiguous with and located on the same side of the boundary as the second alignment; comparing the boundary value to a comparison value; and reducing a difference between the value of a first pixel in the first alignment and the value of a respective second pixel in the second alignment if the boundary value is related to the comparison value in a specified manner.
67. The method of claim 66, further comprising calculating the boundary value equal to the minimum of a predetermined value or the average difference between the values of the pixels in the first alignment and the values of the respective pixels in the second alignment.
68. The method of claim 66, further comprising calculating the boundary value equal to the minimum of a constant or the average difference between the values of the pixels in the first alignment and the values of the respective pixels in the second alignment.
69. The method of claim 66, further comprising calculating the boundary value equal to the minimum of a predetermined value or the average difference between the values of the pixels in the first alignment and the values of the respective pixels in the second alignment, the predetermined value being a function of quantization performed during encoding of the image.
70. The method of claim 66, further comprising calculating the comparison value as a function of the greater of the average difference between the values of two contiguous pixels in the first and third alignments, respectively, and the average difference between the values of two contiguous pixels in the second and fourth alignments, respectively.
71. The method of claim 66, further comprising: calculating the respective differences between the values of the pixels in the first alignment and the values of the contiguous pixels in the third alignment; calculating the respective differences between the values of the pixels in the second alignment and the values of the contiguous pixels in the fourth alignment; calculating a first average pixel difference equal to the sum of the differences between the first and third alignments divided by the number of these differences; calculating a second average pixel difference equal to the sum of the differences between the second and fourth alignments divided by the number of these differences; and calculating the comparison value equal to the greater of the first and second average pixel differences.
72. The method of claim 66, further comprising: calculating the respective differences between the values of the pixels in the first alignment and the values of the contiguous pixels in the third alignment; calculating the respective differences between the values of the pixels in the second alignment and the values of the contiguous pixels in the fourth alignment; calculating a first average pixel difference equal to the sum of the differences between the first and third alignments divided by the number of these differences; calculating a second average pixel difference equal to the sum of the differences between the second and fourth alignments divided by the number of these differences; and calculating the comparison value equal to the sum of a first predetermined value and the product of a second predetermined value and the greater of the first and second average pixel differences.
73. The method of claim 66, further comprising: calculating the respective differences between the values of the pixels in the first alignment and the values of the contiguous pixels in the third alignment; calculating the respective differences between the values of the pixels in the second alignment and the values of the contiguous pixels in the fourth alignment; calculating a first average pixel difference equal to the sum of the differences between the first and third alignments divided by the number of these differences; calculating a second average pixel difference equal to the sum of the differences between the second and fourth alignments divided by the number of these differences; and calculating the comparison value equal to 8 plus 1.4 times the greater of the first and second average pixel differences.
74. The method of claim 66 wherein the reducing comprises reducing the difference between the values of the first and second pixels if the boundary value is greater than the comparison value.
75. The method of claim 66 wherein: the third alignment includes a third pixel that is contiguous with the first pixel; the fourth alignment includes a fourth pixel that is contiguous with the second pixel; and the reducing step comprises, storing the values of the first, second, third, and fourth pixels, setting the value of the first pixel equal to the sum of a first value times the value of the third pixel, a second value times the value of the first pixel, a third value times the value of the second pixel, and a fourth value times the value of the fourth pixel, and setting the value of the second pixel equal to the sum of a fifth value times the value of the third pixel, a sixth value times the value of the first pixel, a seventh value times the value of the second pixel, and an eighth value times the value of the fourth pixel.
76. The method of claim 66 wherein: the third alignment includes a third pixel that is contiguous with the first pixel; the fourth alignment includes a fourth pixel that is contiguous with the second pixel; and the reducing step comprises, storing the values of the first, second, third, and fourth pixels, setting the value of the first pixel equal to the sum of a first value times the value of the third pixel, a second value times the value of the first pixel, a third value times the value of the second pixel, and a fourth value times the value of the fourth pixel, and setting the value of the second pixel equal to the sum of the fourth value times the value of the third pixel, the third value times the value of the first pixel, the second value times the value of the second pixel, and the first value times the value of the fourth pixel.
77. The method of claim 66 wherein: the third alignment includes a third pixel that is contiguous with the first pixel; the fourth alignment includes a fourth pixel that is contiguous with the second pixel; and the reducing step comprises, storing the values of the first, second, third, and fourth pixels, setting the value of the first pixel equal to the sum of 0.25 times the value of the third pixel, 0.35 times the value of the first pixel, 0.26 times the value of the second pixel, and 0J4 times the value of the fourth pixel, and setting the value of the second pixel equal to the sum of 0J4 times the value of the third pixel, 0.26 times the value of the first pixel, 0.35 times the value of the second pixel, and 0.25 times the value of the fourth pixel.
78. The method of claim 66 wherein: the third alignment includes a third pixel that is contiguous with the first pixel; the fourth alignment includes a fourth pixel that is contiguous with the second pixel; the reducing step comprises, storing the values of the first, second, third, and fourth pixels, setting the value of the first pixel equal to the sum of a first value times the value of the third pixel, a second value times the value of the first pixel, a third value times the value of the second pixel, and a fourth value times the value of the fourth pixel, and setting the value of the second pixel equal to the sum of a fifth value times the value of the third pixel, a sixth value times the value of the first pixel, a seventh value times the value of the second pixel, and an eighth value times the value of the fourth pixel; and the method further comprises, setting the value of the third pixel equal to the sum of a ninth value times the value of the third pixel, a tenth value times the value of the first pixel, an eleventh value times the value of the second pixel, and a twelfth value times the value of the fourth pixel, and setting the value of the fourth pixel equal to the sum of a thirteenth value times the value of the third pixel, a fourteenth value times the value of the first pixel, a fifteenth value times the value of the second pixel, and a sixteenth value times the value of the fourth pixel.
79. The method of claim 66 wherein: the third alignment includes a third pixel that is contiguous with the first pixel; the fourth alignment includes a fourth pixel that is contiguous with the second pixel; the reducing step comprises, storing the values of the first, second, third, and fourth pixels, setting the value of the first pixel equal to the sum of a first value times the value of the third pixel, a second value times the value of the first pixel, a third value times the value of the second pixel, and a fourth value times the value of the fourth pixel, and setting the value of the second pixel equal to the sum of the fourth value times the value of the third pixel, the third value times the value of the first pixel, the second value times the value of the second pixel, and the first value times the value of the fourth pixel; and the method further comprises, setting the value of the third pixel equal to the sum of a fifth value times the value of the third pixel, a sixth value times the value of the first pixel, a seventh value times the value of the second pixel, and an eighth value times the value of the fourth pixel, and setting the value of the fourth pixel equal to the sum of the eighth value times the value of the third pixel, the seventh value times the value of the first pixel, the sixth value times the value of the second pixel, and the fifth value times the value of the fourth pixel.
80. The method of claim 66 wherein: the third alignment includes a third pixel that is contiguous with the first pixel; the fourth alignment includes a fourth pixel that is contiguous with the second pixel; the reducing step comprises, storing the values of the first, second, third, and fourth pixels, setting the value of the first pixel equal to the sum of 0.25 times the value of the third pixel, 0.35 times the value of the first pixel, 0.26 times the value of the second pixel, and 0J4 times the value of the fourth pixel, and setting the value of the second pixel equal to the sum of 0.14 times the value of the third pixel, 0.26 times the value of the first pixel, 0.35 times the value of the second pixel, and 0.25 times the value of the fourth pixel; and the method further comprises, setting the value of the third pixel equal to the sum of 0.65 times the value of the third pixel, 0.2 times the value of the first pixel, 0J times the value of the second pixel, and 0.05 times the value of the fourth pixel, and setting the value of the fourth pixel equal to the sum of the 0.05 times the value of the third pixel, 0J times the value of the first pixel, 0.2 times the value of the second pixel, and 0.65 times the value of the fourth pixel.
81. The method of claim 66 wherein the first, second, third, and fourth alignments each comprise a respective row of pixels.
82. The method of claim 66 wherein the first, second, third, and fourth alignments each comprise a respective column of pixels.
83. The method of claim 66 wherein the image comprises a video image.
84. The method of claim 66 wherein the image comprises a non-video image.
85. An image processing circuit, comprising: a processor operable to, receive at least a portion of an image, the portion including a boundary and first and second contiguous pixels disposed on opposite sides of the boundary, the first and second pixels having respective first and second pixel values; determine if the boundary is blocky; and reduce a difference between the first and second values if and only if the boundary value is blocky.
86. A method, comprising: determining if a boundary between first and second pixels is blocky, the first and second pixels having respective first and second values; and reducing a difference between the first and second values if and only if the boundary value is blocky.
87. An image processing circuit, comprising: a processor operable to, receive at least a portion of a decoded image, the portion including a boundary between first and second contiguous pixels; and calculate a roughness of the boundary as a function of quantization performed during encoding of the image.
88. A method, comprising: identifying a boundary between contiguous pixels of a decoded image; and calculating a roughness of the boundary as a function of quantization performed during encoding of the image.
PCT/US1999/028410 1998-11-30 1999-11-30 Image processing circuit and method for reducing a difference between pixel values across an image boundary WO2000033243A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2000585816A JP2002531971A (en) 1998-11-30 1999-11-30 Image processing circuit and method for reducing differences between pixel values across image boundaries
KR1020017006769A KR20010089526A (en) 1998-11-30 1999-11-30 Image processing circuit and method for reducing a difference between pixel values across an image boundary
AU18380/00A AU1838000A (en) 1998-11-30 1999-11-30 Image processing circuit and method for reducing a difference between pixel values across an image boundary
EP99961889A EP1151410A1 (en) 1998-11-30 1999-11-30 Image processing circuit and method for reducing a difference between pixel values across an image boundary
HK02101739.2A HK1042364A1 (en) 1998-11-30 2002-03-06 Image processing circuit and method for reducing a difference between pixel values across an image boundary

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/201,270 1998-11-30
US09/201,270 US6236764B1 (en) 1998-11-30 1998-11-30 Image processing circuit and method for reducing a difference between pixel values across an image boundary

Publications (1)

Publication Number Publication Date
WO2000033243A1 true WO2000033243A1 (en) 2000-06-08

Family

ID=22745177

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1999/028410 WO2000033243A1 (en) 1998-11-30 1999-11-30 Image processing circuit and method for reducing a difference between pixel values across an image boundary

Country Status (9)

Country Link
US (2) US6236764B1 (en)
EP (1) EP1151410A1 (en)
JP (1) JP2002531971A (en)
KR (1) KR20010089526A (en)
CN (1) CN1329734A (en)
AU (1) AU1838000A (en)
HK (1) HK1042364A1 (en)
TW (1) TW464831B (en)
WO (1) WO2000033243A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005088537A1 (en) 2004-03-17 2005-09-22 Nokia Corporation Electronic device and a method in an electronic device for processing image data

Families Citing this family (80)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6215910B1 (en) * 1996-03-28 2001-04-10 Microsoft Corporation Table-based compression with embedded coding
US6571016B1 (en) * 1997-05-05 2003-05-27 Microsoft Corporation Intra compression of pixel blocks using predicted mean
KR100371130B1 (en) * 1996-05-28 2003-02-07 마쯔시다덴기산교 가부시키가이샤 Image predictive decoding apparatus and method thereof, and image predictive cording apparatus and method thereof
FI106071B (en) * 1997-03-13 2000-11-15 Nokia Mobile Phones Ltd Adaptive filter
US7239755B1 (en) * 1997-07-30 2007-07-03 Lg Electronics Inc. Method of reducing a blocking artifact when coding moving picture
KR100282147B1 (en) * 1998-11-13 2001-02-15 구자홍 Compressed Image Restoration Method
US6236764B1 (en) * 1998-11-30 2001-05-22 Equator Technologies, Inc. Image processing circuit and method for reducing a difference between pixel values across an image boundary
CN1296703A (en) * 1999-02-16 2001-05-23 皇家菲利浦电子有限公司 Video decoding device and method using filtering step for block effect reduction
FI117534B (en) * 2000-01-21 2006-11-15 Nokia Corp A method for filtering digital images and a filter
US7426315B2 (en) * 2001-09-05 2008-09-16 Zoran Microelectronics Ltd. Method for reducing blocking artifacts
DK2938071T3 (en) 2001-11-29 2018-01-22 Godo Kaisha Ip Bridge 1 METHOD OF REMOVING CODING PREVENTION
CN101448162B (en) 2001-12-17 2013-01-02 微软公司 Method for processing video image
US7543326B2 (en) * 2002-06-10 2009-06-02 Microsoft Corporation Dynamic rate control
US20030235250A1 (en) * 2002-06-24 2003-12-25 Ankur Varma Video deblocking
US7084929B2 (en) * 2002-07-29 2006-08-01 Koninklijke Philips Electronics N.V. Video data filtering arrangement and method
EP1394742B1 (en) * 2002-08-23 2007-12-12 STMicroelectronics S.r.l. Method for filtering the noise of a digital image sequence
US6922492B2 (en) * 2002-12-27 2005-07-26 Motorola, Inc. Video deblocking method and apparatus
US20050013494A1 (en) * 2003-07-18 2005-01-20 Microsoft Corporation In-loop deblocking filter
US10554985B2 (en) 2003-07-18 2020-02-04 Microsoft Technology Licensing, Llc DC coefficient signaling at small quantization step sizes
US7724827B2 (en) * 2003-09-07 2010-05-25 Microsoft Corporation Multi-layer run level encoding and decoding
KR100987765B1 (en) * 2003-09-30 2010-10-13 삼성전자주식회사 Prediction method and apparatus in video encoder
US7277592B1 (en) * 2003-10-21 2007-10-02 Redrock Semiconductory Ltd. Spacial deblocking method using limited edge differences only to linearly correct blocking artifact
US8472792B2 (en) 2003-12-08 2013-06-25 Divx, Llc Multimedia distribution system
US7519274B2 (en) 2003-12-08 2009-04-14 Divx, Inc. File format for multiple track digital data
US7343046B2 (en) * 2004-02-12 2008-03-11 Xerox Corporation Systems and methods for organizing image data into regions
US7496141B2 (en) * 2004-04-29 2009-02-24 Mediatek Incorporation Adaptive de-blocking filtering apparatus and method for MPEG video decoder
NO20042477A (en) * 2004-06-14 2005-10-17 Tandberg Telecom As Chroma de-blocking procedure
EP1766986A1 (en) * 2004-07-15 2007-03-28 Samsung Electronics Co., Ltd. Temporal decomposition and inverse temporal decomposition methods for video encoding and decoding and video encoder and decoder
KR100679026B1 (en) * 2004-07-15 2007-02-05 삼성전자주식회사 Method for temporal decomposition and inverse temporal decomposition for video coding and decoding, and video encoder and video decoder
US7612804B1 (en) * 2005-02-15 2009-11-03 Apple Inc. Methods and apparatuses for image processing
US7626614B1 (en) * 2005-02-15 2009-12-01 Apple Inc. Transfer function and high dynamic range images
DE102005025629A1 (en) * 2005-06-03 2007-03-22 Micronas Gmbh Image processing method for reducing blocking artifacts
TWI296099B (en) * 2005-12-15 2008-04-21 Princeton Technology Corp Method for improving image quality and image processor of operating the same
US7602964B2 (en) * 2006-01-10 2009-10-13 Synopsys, Inc. Method and apparatus for detection of failures in a wafer using transforms and cluster signature analysis
US7515710B2 (en) 2006-03-14 2009-04-07 Divx, Inc. Federated digital rights management scheme including trusted systems
JP2008009318A (en) * 2006-06-30 2008-01-17 Toshiba Corp Image processing apparatus and image processing method
US20080084932A1 (en) * 2006-10-06 2008-04-10 Microsoft Corporation Controlling loop filtering for interlaced video frames
ES2935410T3 (en) 2007-01-05 2023-03-06 Divx Llc Video distribution system including progressive play
US8295633B2 (en) * 2007-04-04 2012-10-23 Samsung Electronics Co., Ltd. System and method for an adaptive de-blocking filter after decoding of compressed digital video
US8073276B2 (en) * 2007-04-10 2011-12-06 Vivante Corporation De-ringing filter for decompressed video data
DE102007028175A1 (en) 2007-06-20 2009-01-02 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Automated method for temporal segmentation of a video into scenes taking into account different types of transitions between image sequences
US8165424B1 (en) * 2007-07-13 2012-04-24 One True Media, Inc. Method and device for video transformations
KR20100106327A (en) 2007-11-16 2010-10-01 디브이엑스, 인크. Hierarchical and reduced index structures for multimedia files
US7961224B2 (en) * 2008-01-25 2011-06-14 Peter N. Cheimets Photon counting imaging system
JP4958056B2 (en) * 2009-05-12 2012-06-20 東芝ディーエムエス株式会社 Image interpolation apparatus and image interpolation program
US8457396B2 (en) 2009-08-11 2013-06-04 Microsoft Corporation Digital image compression and decompression
WO2011068668A1 (en) 2009-12-04 2011-06-09 Divx, Llc Elementary bitstream cryptographic material transport systems and methods
US9413477B2 (en) * 2010-05-10 2016-08-09 Microsoft Technology Licensing, Llc Screen detector
US8787443B2 (en) 2010-10-05 2014-07-22 Microsoft Corporation Content adaptive deblocking during video encoding and decoding
US8914534B2 (en) 2011-01-05 2014-12-16 Sonic Ip, Inc. Systems and methods for adaptive bitrate streaming of media stored in matroska container files using hypertext transfer protocol
US9042458B2 (en) 2011-04-01 2015-05-26 Microsoft Technology Licensing, Llc Multi-threaded implementations of deblock filtering
US8812662B2 (en) 2011-06-29 2014-08-19 Sonic Ip, Inc. Systems and methods for estimating available bandwidth and performing initial stream selection when streaming content
US9467708B2 (en) 2011-08-30 2016-10-11 Sonic Ip, Inc. Selection of resolutions for seamless resolution switching of multimedia content
US9955195B2 (en) 2011-08-30 2018-04-24 Divx, Llc Systems and methods for encoding and streaming video encoded using a plurality of maximum bitrate levels
US8799647B2 (en) 2011-08-31 2014-08-05 Sonic Ip, Inc. Systems and methods for application identification
US8787570B2 (en) 2011-08-31 2014-07-22 Sonic Ip, Inc. Systems and methods for automatically genenrating top level index files
US8909922B2 (en) 2011-09-01 2014-12-09 Sonic Ip, Inc. Systems and methods for playing back alternative streams of protected content protected using common cryptographic information
US8964977B2 (en) 2011-09-01 2015-02-24 Sonic Ip, Inc. Systems and methods for saving encoded media streamed using adaptive bitrate streaming
US9282344B2 (en) * 2011-11-04 2016-03-08 Qualcomm Incorporated Secondary boundary filtering for video coding
US20130179199A1 (en) 2012-01-06 2013-07-11 Rovi Corp. Systems and methods for granting access to digital content using electronic tickets and ticket tokens
US9936267B2 (en) 2012-08-31 2018-04-03 Divx Cf Holdings Llc System and method for decreasing an initial buffering period of an adaptive streaming system
US9191457B2 (en) 2012-12-31 2015-11-17 Sonic Ip, Inc. Systems, methods, and media for controlling delivery of content
US9313510B2 (en) 2012-12-31 2016-04-12 Sonic Ip, Inc. Use of objective quality measures of streamed content to reduce streaming bandwidth
US10397292B2 (en) 2013-03-15 2019-08-27 Divx, Llc Systems, methods, and media for delivery of content
US9906785B2 (en) 2013-03-15 2018-02-27 Sonic Ip, Inc. Systems, methods, and media for transcoding video data according to encoding parameters indicated by received metadata
US9094737B2 (en) 2013-05-30 2015-07-28 Sonic Ip, Inc. Network video streaming with trick play based on separate trick play files
US9100687B2 (en) 2013-05-31 2015-08-04 Sonic Ip, Inc. Playback synchronization across playback devices
US9380099B2 (en) 2013-05-31 2016-06-28 Sonic Ip, Inc. Synchronizing multiple over the top streaming clients
US9386067B2 (en) 2013-12-30 2016-07-05 Sonic Ip, Inc. Systems and methods for playing adaptive bitrate streaming content by multicast
US9866878B2 (en) 2014-04-05 2018-01-09 Sonic Ip, Inc. Systems and methods for encoding and playing back video at different frame rates using enhancement layers
MX2016015022A (en) 2014-08-07 2018-03-12 Sonic Ip Inc Systems and methods for protecting elementary bitstreams incorporating independently encoded tiles.
CN107111477B (en) 2015-01-06 2021-05-14 帝威视有限公司 System and method for encoding content and sharing content between devices
EP3627337A1 (en) 2015-02-27 2020-03-25 DivX, LLC Systems and methods for frame duplication and frame extension in live video encoding and streaming
US10075292B2 (en) 2016-03-30 2018-09-11 Divx, Llc Systems and methods for quick start-up of playback
US10231001B2 (en) 2016-05-24 2019-03-12 Divx, Llc Systems and methods for providing audio content during trick-play playback
US10129574B2 (en) 2016-05-24 2018-11-13 Divx, Llc Systems and methods for providing variable speeds in a trick-play mode
US10148989B2 (en) 2016-06-15 2018-12-04 Divx, Llc Systems and methods for encoding video content
US10498795B2 (en) 2017-02-17 2019-12-03 Divx, Llc Systems and methods for adaptive switching between multiple content delivery networks during adaptive bitrate streaming
ES2974683T3 (en) 2019-03-21 2024-07-01 Divx Llc Systems and methods for multimedia swarms
US20210334975A1 (en) * 2020-04-23 2021-10-28 Nvidia Corporation Image segmentation using one or more neural networks

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761341A (en) * 1994-10-28 1998-06-02 Oki Electric Industry Co., Ltd. Image encoding and decoding method and apparatus using edge synthesis and inverse wavelet transform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5337088A (en) * 1991-04-18 1994-08-09 Matsushita Electric Industrial Co. Ltd. Method of correcting an image signal decoded in block units
US6236764B1 (en) * 1998-11-30 2001-05-22 Equator Technologies, Inc. Image processing circuit and method for reducing a difference between pixel values across an image boundary

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761341A (en) * 1994-10-28 1998-06-02 Oki Electric Industry Co., Ltd. Image encoding and decoding method and apparatus using edge synthesis and inverse wavelet transform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005088537A1 (en) 2004-03-17 2005-09-22 Nokia Corporation Electronic device and a method in an electronic device for processing image data
EP1725984A1 (en) * 2004-03-17 2006-11-29 Nokia Corporation Electronic device and a method in an electronic device for processing image data

Also Published As

Publication number Publication date
EP1151410A1 (en) 2001-11-07
HK1042364A1 (en) 2002-08-09
TW464831B (en) 2001-11-21
CN1329734A (en) 2002-01-02
AU1838000A (en) 2000-06-19
US6236764B1 (en) 2001-05-22
US6690838B2 (en) 2004-02-10
JP2002531971A (en) 2002-09-24
KR20010089526A (en) 2001-10-06
US20010021276A1 (en) 2001-09-13

Similar Documents

Publication Publication Date Title
US6236764B1 (en) Image processing circuit and method for reducing a difference between pixel values across an image boundary
US5819035A (en) Post-filter for removing ringing artifacts of DCT coding
US5844614A (en) Video signal decoding apparatus
US7492961B2 (en) Method of reducing a blocking artifact when coding moving picture
EP0811951B1 (en) System and method for performing motion estimation in the DCT domain with improved efficiency
US5731836A (en) Method of video encoding by accumulated error processing and encoder therefor
EP1408699A1 (en) Signal adaptive filtering method, signal adaptive filter and computer readable medium for storing program therefor
US20200244965A1 (en) Interpolation filter for an inter prediction apparatus and method for video coding
JP2000059769A (en) Method and system for loop-filtering video data
JP2000232651A (en) Method for removing distortion in decoded electronic image from image expression subtected to block transformation and encoding
JPH08265761A (en) Image data post-processing
US20120087411A1 (en) Internal bit depth increase in deblocking filters and ordered dither
US7095448B2 (en) Image processing circuit and method for modifying a pixel value
JP4382284B2 (en) Subband encoding / decoding
JP3365784B2 (en) Image signal decoding device
JPH10224790A (en) Filter eliminating block noise in companded image and filter method
JPH11187400A (en) Method for removing distorting and its filter
US8023559B2 (en) Minimizing blocking artifacts in videos
JPH10229559A (en) Method and filter for reducing effect due to block processing
JP4784618B2 (en) Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding program, and moving picture decoding program
EP1083751A1 (en) Measurement of activity of video images in the DCT domain
US20080187237A1 (en) Method, medium, and system reducing image block noise
US20100002147A1 (en) Method for improving the deringing filter
US20030031256A1 (en) Determination of prediction direction in MPEG-4
JP3948142B2 (en) High-efficiency encoding device and high-efficiency decoding device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 99813907.6

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 2000 18380

Country of ref document: AU

Kind code of ref document: A

AK Designated states

Kind code of ref document: A1

Designated state(s): AE AL AM AT AU AZ BA BB BG BR BY CA CH CN CR CU CZ DE DK DM EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
ENP Entry into the national phase

Ref document number: 2000 585816

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 1020017006769

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 1999961889

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1020017006769

Country of ref document: KR

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

WWP Wipo information: published in national office

Ref document number: 1999961889

Country of ref document: EP

WWW Wipo information: withdrawn in national office

Ref document number: 1999961889

Country of ref document: EP

WWW Wipo information: withdrawn in national office

Ref document number: 1020017006769

Country of ref document: KR