Provided are an image encoding/decoding method and apparatus, in which one of a plurality of color component images is predicted from a different color component image reconstructed using a correlation between the plurality of color component images. Using a reconstructed image of a first color component image selected from among the plurality of color component images forming a single color image, the other color component images are predicted.
|
1. An image encoding method comprising:
(a) performing predictive encoding on a pixel block having a predetermined size of a first color component image of an input image including a plurality of component images;
(b) reconstructing the predictive-encoded pixel block of the first color component image; and
(c) predicting a corresponding pixel block of a second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image,
wherein (c) comprises predicting the corresponding pixel block of the second color component image based on a linear correlation between the first color component image and the second color component image.
25. An image decoding method comprising:
(a) receiving a bitstream of an encoded image including a plurality of color component images;
(b) decoding a pixel block having a predetermined size of a first color component image among the color component images;
(c) detecting an edge in the decoded pixel block of the first color component image;
(d) dividing the decoded pixel block of the first color component image and a corresponding pixel block of a second color component image into areas using the detected edge; and
(e) decoding the pixel block of the second color component image by predicting pixel values in each of the areas of the second color component image using pixel values of a decoded neighbor pixel block of the first color component image, pixel values of a decoded neighbor pixel block of the second color component image, and pixel values of the decoded pixel block of the first color component image.
8. An image encoding method comprising:
(a) performing predictive encoding on a pixel block having a predetermined size of a first color component image of an input image including a plurality of color component images;
(b) reconstructing the predictive-encoded pixel block of the first color component image;
(c) detecting an edge in the reconstructed pixel block of the first color component image;
(d) dividing the pixel block of the first color component image and a corresponding pixel block of a second color component image into areas using the detected edge; and
(e) predicting pixel values in each of the areas of the second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image.
13. An image encoding apparatus comprising:
a predictive encoding unit which performs predictive encoding on a pixel block having a predetermined size of a first color component image of an image including a plurality of color component images;
a reconstruction unit which reconstructs the predictive-encoded pixel block of the first color component image; and
a correlation prediction unit which predicts a corresponding pixel block of a second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image,
wherein the correlation prediction unit predicts the corresponding pixel block of the second color component image based on a linear correlation between the first color component image and the second color component image.
20. An image encoding apparatus comprising:
a predictive encoding unit which performs predictive encoding on a pixel block having a predetermined size of a first color component image of an input image including a plurality of color component images;
a reconstruction unit which reconstructs the predictive-encoded pixel block of the first color component image;
an edge detection unit which detects an edge in the reconstructed pixel block of the first color component image;
an area division unit which divides the pixel block of the first color component image into areas and a corresponding pixel block of a second color component image into areas using the detected edge; and
a correlation prediction unit which predicts pixel values in each of the areas of the second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image.
29. An image decoding apparatus comprising:
a first color component decoding unit which receives a bitstream including a plurality of encoded color component images, decodes a pixel block having a predetermined size of a first color component image among the color component images by intra prediction, and outputs the decoded pixel block of the first color component image;
an edge detection unit which detects an edge in the decoded pixel block of the first color component image;
an area division unit which divides the decoded pixel block of the first color component image and a corresponding pixel block of a second color component image into areas using the detected edge; and
a correlation decoding unit which decodes the pixel block of the second color component image by predicting pixel values in each of the areas of the second color component image using pixel values of a decoded neighbor pixel block of the first color component image, pixel values of a decoded neighbor pixel block of the second color component image, and pixel values of the decoded pixel block of the first color component image.
2. The image encoding method of
3. The image encoding method of
where i×j, where i and j are integers, denotes the size of the reconstructed pixel block of the first color component, X′i,j denotes a pixel value in an ith row and a jth column of the reconstructed pixel block of the first color component image,
4. The image encoding method of
5. The image encoding method of
6. The image encoding method of
7. The image encoding method of
9. The image encoding method of
where each of the pixel block of the first color component image and the corresponding pixel block of the second color component image are divided into n areas, where n is an integer, X(k)′i,j denotes a pixel value in a kth area (k=1, 2, . . . , n) of the reconstructed pixel block of the first color component image,
10. The image encoding method of
11. The image encoding method of
12. The image encoding method of
14. The image encoding apparatus of
15. The image encoding apparatus of
where i ×j, where i and j are integers, denotes the size of the reconstructed pixel block of the first color component,X′i,j a denotes a pixel value in an ith row and a jth column of the reconstructed pixel block of the first color component image,
16. The image encoding apparatus of
17. The image encoding apparatus of
18. The image encoding apparatus of
19. The image encoding apparatus of
21. The image encoding apparatus of
22. The image encoding apparatus of
23. The image encoding apparatus of
24. The image encoding apparatus of
26. The image decoding method of
(e1) extracting a predetermined weight e indicating correlation between the first color component image and the second color component image and a predetermined offset value f from the bitstream;
(e2) generating a prediction pixel block of the second color component image, the prediction pixel block havig pixel values Y(k)i,j predicted using
where each of the decoded pixel block of the first color component image and the corresponding pixel block of the second color component image is divided into n areas, where n is an integer, X(k)′i,j denotes a pixel value in a kth area, where k=1, 2, . . . , n, of the decoded pixel block of the first color component image,
(e3) decoding a second residue that is a difference between a pixel block of the second color component image and the prediction pixel block of the second color component image included in the bitstream; and
(e4) decoding a pixel block of the second color component image by adding the decoded second residue to the prediction pixel block of the second color component image.
27. The image decoding method of
28. The image decoding method of
30. The image decoding apparatus of
where each of the decoded pixel block of the first color component image and the corresponding pixel block of the second color component image is divided into n areas, where n is an integer, X(k)′i,j denotes a pixel value in a kth area, where k=1, 2, . . . , n, of the decoded pixel block of the first color component image, and
31. The image decoding apparatus of
32. The image decoding apparatus of
|
This is a divisional of U.S. patent application Ser. No. 11/727,080, filed on Mar. 23, 2007, which claims priority from U.S. Provisional Application No. 60/784,911, filed on Mar. 23, 2006 and No. 60/786,722, filed on Mar. 29, 2006, in the U.S. Patent and Trademark Office, and Korean Patent Application No. 10-2006-0063485, filed on Jul. 6, 2006, in the Korean Intellectual Property Office, the disclosures of which are incorporated herein in their entirety by reference.
1. Field of the Invention
Apparatuses and methods consistent with the present invention relate to image encoding and decoding, and more particularly, to image encoding/decoding in which one of a plurality of color component images of an image is predicted from a different color component image using a correlation between the color component images, thereby improving encoding efficiency.
2. Description of the Related Art
In general, when an image is captured, the captured original image is in a red, green, and blue (RGB) color format. To encode the RGB color format image, the RGB color format image is transformed into a YUV (or YCbCr) color format. Y is a black-white image and has a luminance component, and U (or Cb) and V (or Cr) have color components. Information is uniformly distributed over R, G, and B in an RGB image, but information is concentrated in Y and the amount of information in U (or Cb) and V (or Cr) is small in a YUV (or YCbCr) image. Thus, the YUV (or YCbCr) image can be compressed with high compression efficiency. To further improve compression efficiency, an YUV (or YCbCr) 4:2:0 image obtained by sampling color components U (or Cb) and V (or Cr) of an YUV (or YCbCr) image at a ratio of 1:4 is generally used.
However, since ¼ sampling of U (or Cb) and V (or Cr) in the YUV (or YCbCr) 4:2:0 image causes color distortion, it is not suitable for providing high display quality. Thus, a method for effectively encoding a YUV (or YCbCr) 4:4:4 image without sampling U (or Cb) and V (or Cr) is required. Recently, residual color transform (RCT), which directly encodes an RGB 4:4:4 image to remove color distortion occurring in transformation of an RGB image to a YUV (or YCbCr) image, has been suggested.
When an image like a YUV (or YCbCr) 4:4:4 image and an RGB 4:4:4 image, in which color components have the same resolution, is directly encoded using a related art encoding method, encoding efficiency is degraded. Thus, a method for improving encoding efficiency while maintaining high display quality by prediction based on the statistical characteristics of an image is required for a case where a YUV (or YCbCr) 4:4:4 image is encoded or an RGB image is encoded in an RGB domain without being transformed to a YUV (or YCbCr) format.
Exemplary embodiments of the present invention overcome the above disadvantages and other disadvantages not described above. Also, the present invention is not required to overcome the disadvantages described above, and an exemplary embodiment of the present invention may not overcome any of the problems described above.
An aspect of the present invention provides an image encoding/decoding method and apparatus, in which one of a plurality of color component images forming a color image is predicted from a different color component image using a correlation between the color component images, thereby improving encoding efficiency.
According to an aspect of the present invention, there is provided an image encoding method comprising: (a) performing predictive encoding on a pixel block having a predetermined size of a first color component image of an input image including at least two color component images; (b) reconstructing the predictive-encoded pixel block of the first color component image; and (c) predicting a corresponding pixel block of a second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image.
An aspect of the present invention also provides an image encoding method comprising: (a) performing predictive encoding on a pixel block having a predetermined size of a first color component image of an input image including at least two color component images; (b) reconstructing the predictive-encoded pixel block of the first color component image; (c) detecting an edge in the reconstructed pixel block of the first color component image; (d) dividing the pixel block of the first color component image and a corresponding pixel block of a second color component image into areas using the detected edge; and (e) predicting pixel values in each of the areas of the second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image.
According to another aspect of the present invention, there is provided an image encoding apparatus comprising: a predictive encoding unit which performs predictive encoding on a pixel block having a predetermined size of a first color component image of an image including at least two color component images; a reconstruction unit which reconstructs the predictive-encoded pixel block of the first color component image; and a correlation prediction unit which predicts a corresponding pixel block of a second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image.
An aspect of the present invention also provides an image encoding apparatus comprising: a predictive encoding unit which performs predictive encoding on a pixel block having a predetermined size of a first color component image of an input image including at least two color component images; a reconstruction unit which reconstructs the predictive-encoded pixel block of the first color component image; an edge detection unit which detects an edge in the reconstructed pixel block of the first color component image; an area division unit which divides the pixel block of the first color component image into areas and a corresponding pixel block of a second color component image into areas using the detected edge; and a correlation prediction unit which predicts pixel values in each of the areas of the second color component image using pixel values of a reconstructed neighbor pixel block of the first color component image, pixel values of a reconstructed neighbor pixel block of the second color component image, and pixel values of the reconstructed pixel block of the first color component image.
According to another aspect of the present invention, there is provided an image decoding method comprising: (a) receiving a bitstream of an encoded image including at least two color component images; (b) decoding a pixel block having a predetermined size of a first color component image among the color component images; and (c) decoding a corresponding pixel block of a second color component image using pixel values of a decoded neighbor pixel block of the previously processed first color component image, pixel values of a decoded neighbor pixel block of the second color component image, and pixel values of the decoded pixel block of the first color component image.
An aspect of the present invention also provides an image decoding method comprising: (a) receiving a bitstream of an encoded image including at least two color component images; (b) decoding a pixel block having a predetermined size of a first color component image among the color component images; (c) detecting an edge in the decoded pixel block of the first color component image; (d) dividing the decoded pixel block of the first color component image and a corresponding pixel block of a second color component image into areas using the detected edge; and (e) decoding the pixel block of the second color component image by predicting pixel values in each of the areas of the second color component image using pixel values of a decoded neighbor pixel block of the first color component image, pixel values of a decoded neighbor pixel block of the second color component image, and pixel values of the decoded pixel block of the first color component image.
According to another aspect of the present invention, there is provided an image decoding apparatus comprising: a first color component decoding unit which receives a bitstream including a plurality of encoded color component images comprising at least two color components and decoding a pixel block having a predetermined size of a first color component image among the color component images; and a correlation decoding unit which decodes a corresponding pixel block of a second color component image using pixel values of a decoded neighbor pixel block of the previously processed first color component image, pixel values of a decoded neighbor pixel block of the second color component image, and pixel values of the decoded pixel block of the first color component image.
An aspect of the present invention also provides an image decoding apparatus comprising: a first color component decoding unit which receives a bitstream including at least two encoded color component images, decodes a pixel block having a predetermined size of a first color component image among the color component images by intra-prediction, and outputs the decoded pixel block of the first color component image; an edge detection unit which detects an edge in the decoded pixel block of the first color component image; an area division unit which divides the decoded pixel block of the first color component image and a corresponding pixel block of a second color component image into areas using the detected edge; and a correlation decoding unit which decodes the pixel block of the second color component image by predicting pixel values in each of the areas of the second color component image using pixel values of a decoded neighbor pixel block of the first color component image, pixel values of a decoded neighbor pixel block of the second color component image, and pixel values of the decoded pixel block of the first color component image.
The patent or application file contains at least one drawing executed in color. Copies of this patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.
The above and other aspects of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
In general, when a color image is encoded, predictive encoding is performed on each of color component images to remove redundant information in each of color components. Referring to
Thus, according to an exemplary embodiment of the present invention, a first color component image selected from a plurality of color component images of an image is encoded according to general predictive encoding such as H.264 and the remaining color component images are predicted from a reconstructed first color component image based on a correlation between the color component images. For example, if an image includes three color components of RGB, a G color component image is first predictive-encoded by intra-prediction or inter prediction, a corresponding R color component image is predicted from a reconstructed G color component image, and the other B color component image is predicted from the reconstructed G color component image or a reconstructed R color component image, according to the present invention. In this example, the encoding order of the color component images may vary.
Referring to
The motion estimation unit 302 and the motion compensation unit 304 perform inter-prediction in which a prediction value of the current pixel block of a first color component image is searched for in a preceding or following reference picture. The intra-prediction unit 306 performs intra-prediction in which the prediction value of the current pixel block of the first color component image is searched for in the current picture. For example, referring to
The subtraction unit 307 generates a first residue by subtracting a prediction pixel block predicted by inter-prediction or intra-prediction from a pixel block of the input first color component image. The generated first residue is transformed into a frequency domain by the transformation unit 308 and is quantized by the quantization unit 309. Transformation coefficients of the quantized first residue are rearranged by the rearrangement unit 310 and then encoded by the entropy-coding unit 314 to be output in the form of a bitstream.
The transformed and quantized first residue is inversely quantized by the inverse quantization unit 312 and is inversely transformed by the inverse transformation unit 313. The addition unit 315 adds the inversely quantized and inversely transformed first residue to the prediction pixel block of the first color component image, thereby reconstructing the pixel block of the first color component image. The reconstructed first color component image passes through the filter 316 that performs deblocking filtering and is stored in the frame memory 317 to be used for inter-prediction of a next picture. The reconstructed pixel block of the first color component image is input to the intra-prediction unit 306 to be used as a reference for intra-prediction of a next pixel block. The reconstructed pixel block of the first color component image is also input to the correlation prediction unit 314 for prediction of pixel blocks of the other color component images except for the first color component image.
The correlation prediction unit 314 predicts a pixel block of corresponding to another color component image from a pixel block of the reconstructed first color component image using a correlation between the color component images of a color image. Referring back to
When the correlation prediction unit 314 predictive-encodes an input image including at least three color components as in an RGB color image, the correlation prediction unit 314 may predict pixel blocks of both of the remaining second and third color component images using a reconstructed pixel block of a first color component image or predict a pixel block of the second color component image from the reconstructed pixel block of the first color component image and a pixel block of the third color component image from the reconstructed pixel block of the second color component image. In other words, the correlation prediction unit 314 may predict pixel blocks of the other color component images from the reconstructed pixel block of the first color component image or predict a pixel block of a color component image from a reconstructed pixel block of another color component image predicted from the reconstructed pixel block of the first color component image.
The subtraction unit 307 subtracts pixel blocks of the original second and third color component images from pixel blocks of the second and third color component images predicted by the correlation prediction unit 314, thereby generating a second residue and a third residue. Like the first residue, the second residue and the third residue are encoded by transformation, quantization, and entropy-coding and are output in the form of a bitstream.
The transformed and quantized second residue and third residue are inversely quantized by the inverse quantization unit 312 and inversely transformed by the inverse transformation unit 313, and the addition unit 315 adds the inversely quantized and inversely transformed second residue and third residue to the pixel blocks of the second and third color component images predicted by the correlation prediction unit 314, thereby reconstructing pixel blocks of the second and third color component images. The reconstructed second and third color component images pass through the filter 316 that performs deblocking filtering and is stored in the frame memory 317 to be used for inter-prediction of a next picture. As mentioned above, when a pixel block of the third color component image is predicted from the reconstructed pixel block of the second color component image, a pixel block of the second color component image reconstructed in the addition unit 315 is input to the correlation prediction unit 314.
The control unit 318 controls components of the image encoding apparatus 300 and determines a prediction mode for the current pixel block. More specifically, the control unit 318 calculates the costs of an inter-predicted image, an intra-predicted image, and an image predicted using a correlation between color component images according to the exemplary embodiment of the present invention and determines a prediction mode at the lowest as a final prediction mode. The control unit 318 may select related art inter-prediction or intra-prediction for encoding each of the color component images instead of predictive encoding according to the present invention if a cost of a predicted image, according to an exemplary embodiment of the present invention, is greater than a predetermined threshold.
The control unit 318 also calculates a reference value indicating correlation between color component images as illustrated in
Prediction mode information is inserted into a header of a bitstream of an image encoded by an image encoding method according to an exemplary embodiment of the present invention to perform decoding based on correlation between color component images according to the exemplary embodiment of the present invention.
In operation 410, predictive encoding is performed on a pixel block having a predetermined size of a first color component image selected from a plurality of color component images of an input color image. As mentioned above, the predictive encoding is performed by inter-prediction of the motion estimation unit 302 and the motion compensation unit 304 or intra-prediction of the intra-prediction unit 306.
When the G color component image, the B color component image, and the R color component image are sequentially encoded, a prediction pixel block of a 16×16 pixel block of the G color component image is generated by inter-prediction of the motion estimation unit 302 and the motion compensation unit 304 or intra-prediction of the intra-prediction unit 306.
The subtraction unit 307 calculates a first residue by calculating a difference between the prediction pixel block of the 16×16 pixel block of the G color component image and the 16×16 pixel block of the original G color component image. The generated first residue passes through transformation, quantization, and entropy-encoding and is then output as a bitstream.
In operation 420, inverse quantization and inverse transformation are performed on the first residue and the inversely quantized and inversely transformed first residue is added to the prediction pixel block of the 16×16 pixel block of the G color component image in order to reconstruct the 16×16 pixel block of the G color component image.
In operation 430, the correlation prediction unit 314 predicts pixel values of a pixel block of the B color component image and pixel values of a pixel block of the R color component image at corresponding positions using pixel values of a reconstructed neighbor pixel block of the G color component image, pixel values of reconstructed neighbor pixel blocks of the B and R color component images, and pixel values of the reconstructed current pixel block of the G color component image.
If a pixel value of a pixel in an ith row and a jth column of the reconstructed 16×16 pixel block of the G color component image is g′i,j and a prediction value, which corresponds to g′i,j, of a pixel in an ith row and a jth column of a pixel block of the B color component image is
where a function f may be defined variously. For example, the relationship between the pixel value g′i,j of the reconstructed current pixel block of the G color component image and the prediction value
where a indicates a predetermined weight indicating correlation between the G color component image and the B color component image and b indicates a predetermined offset value. Prediction pixel values obtained by Equation 2 are clipped to integers between 0 and 255 when a pixel value of an image is expressed in 8 bits.
Values a and b in Equation 2 may change according to the position (i, j) of a pixel, but they are assumed to be constant within a predetermined block in the current exemplary embodiment of the present invention. For example, a and b are determined as values that minimize differences between prediction pixel values of a neighbor pixel block of the second color component image predicted using pixel values of a reconstructed neighbor pixel block of the first color component image and pixel values of a reconstructed neighbor pixel block of the second color component image. In other words, when the first color component image is the G color component image and another color component image is the B color component image, a and b may be determined as values that minimize a sum of differences between pixel values b′i,j of a reconstructed neighbor pixel block of the B color component image and corresponding prediction pixel values
To determine a and b in Equation 2, a may be determined as 1 and b may be determined as the average of differences between pixel values of a reconstructed neighbor pixel block of the B color component image and pixel values of a reconstructed neighbor pixel block of the G color component image as follows:
Once a and b in Equation 2 are determined, the correlation prediction unit 314 substitutes pixel values g′i,j of a pixel block of the reconstructed G color component image into Equation 2 in order to predict corresponding pixel values of a pixel block of the B color component image.
To determine a and b in Equation 2, a linear regression model based method that is widely used in the field of statistics may be used.
Referring to
Referring to
a and b of Equation 2 may be determined as values that minimize a sum of differences between pixel values of a reconstructed 4×4 neighbor pixel block of the B color component image and corresponding prediction pixel values of a neighbor pixel block of the B color component image or a may be determined as 1 and b may be determined as the average of differences between pixel values of a reconstructed 8×8 neighbor pixel block of the B color component image and pixel values of a reconstructed 8×8 neighbor pixel block of the G color component image as follows:
As mentioned above, correlation prediction for macroblock (16×16) may be performed in units of a 16×16 block, an 8×8 block, or a 4×4 block. As an adaptive example, correlation prediction for each macroblock may be performed in units of a block in one of the three block modes.
The subtraction unit 307 calculates a difference between a pixel block of the original B color component image and a prediction pixel block predicted by the correlation prediction unit 314 using pixel values of a reconstructed pixel block of the G color component image, thereby generating a second residue. The generated second residue passes through transformation, quantization, and entropy-encoding and is output in the form of a bitstream.
Like the pixel values of the pixel block of the B color component image, pixel values of a pixel block of the R color component image can also be predicted using pixel values of a reconstructed pixel block of the G color component image.
The correlation prediction unit 314 may predict pixel values of a pixel block of the R color component image using pixel values of a reconstructed pixel block of the previously processed B color component image instead of pixel values of the reconstructed G color component image. In other words, the transformed and quantized value of the second residue that is a difference between the pixel block of the original B color component image and a prediction pixel block of the B color component image is inversely transformed and inversely quantized, and the pixel block of the B color component image reconstructed by adding the inversely transformed and inversely quantized second residue and the prediction pixel block of the B color component image may be used for prediction of a pixel block of the R color component image.
More specifically, when a pixel value of a pixel in an ith row and a jth column of a reconstructed pixel block of the B color component image is b′i,j, a prediction value, which corresponds to b′i,j, of a pixel in an ith row and a jth column of a pixel block of the R color component image is
As mentioned above, prediction pixel values obtained using Equation 7 are clipped to integers between 0 and 255 when a pixel value of an image is expressed in 8 bits. c and d may be determined using pixel values of a reconstructed neighbor pixel block of the B color component image and pixel values of a reconstructed neighbor pixel block of the R color component image in the similar manner to determination of a and b.
Once the constants c and d of Equation 7 are determined, the correlation prediction unit 314 substitutes pixel values of a reconstructed pixel block of the B color component image into Equation 6 to predict corresponding pixel values of a pixel block of the R color component image.
Values a and b of Equation 2 and c and d of Equation 7 may be inserted as prediction mode information into a header of a generated bitstream and transmitted to a decoding stage to be used for decoding. However, since an image decoding apparatus can also generate a, b, c, and d using reconstructed neighbor pixels of each color component in the same way to an image encoding apparatus, a, b, c, and d may be generated by the image decoding apparatus without insertion of a, b, c, and d into a bitstream.
The structure and operation of the image encoding apparatus 900 according to another exemplary embodiment of the present invention are similar to those of the image encoding apparatus 300 illustrated in
In operation 1010, a prediction pixel block of a pixel block of the G color component image is generated by motion estimation/compensation of a motion estimation unit 903 and a motion compensation unit 904 or intra-prediction of the intra-prediction unit 905. A first residue that is a difference between the prediction pixel block of the G color component image and the original pixel block of the G color component image is encoded by transformation, quantization, and entropy-encoding and is output as a bitstream.
In operation 1020, inverse transformation and inverse quantization are performed on the transformed and quantized first residue, thereby reconstructing the first residue. The reconstructed first residue is added to the prediction pixel block of the G color component image, thereby reconstructing the pixel block of the G color component image.
In operation 1030, the edge detection unit 901 detects an edge in a reconstructed pixel block having a predetermined size of the first color component image. This is because color characteristics may change between areas divided by an edge within a pixel block. Thus, in the another exemplary embodiment of the present invention, an edge in a pixel block is detected, a pixel block is divided by the detected edge into areas, and pixel values in each area of another color component image is predicted from pixel values of the reconstructed first color component in a similar manner as in the foregoing exemplary embodiment of the present invention.
For edge detection, various edge detection algorithms like a sobel operator or canny edge detection may be used. The direction of an intra-prediction mode determined by the intra-prediction unit 905 may be determined as an edge direction without a need for the edge detection unit 901.
In operation 1040, the area division unit 902 divides a pixel block of the first color component image and a corresponding pixel block of another color component image using the detected edge.
In operation 1050, the correlation prediction unit 913 predicts pixel values in each of the areas I and II of the B color component image and pixel values of the R color component image using a corresponding reconstructed pixel block of the G color component image. In other words, the correlation prediction unit 913 predicts pixel values in the first area I of a pixel block of the B color component image and pixel values in the first area I of a pixel block of the R color component image using pixel values g′i,j in the first area I of the reconstructed G color component. Similarly, the correlation prediction unit 913 predicts pixel values in the second area II of a pixel block of the B color component image and pixel values in the second area II of a pixel block of the R color component image using pixel values g′i,j in the second area II of the reconstructed G color component image.
More specifically, if a pixel block of each color component image is divided into n areas, a pixel value in a kth area (k=1, 2, . . . , n) of a reconstructed pixel block of the G color component image is g(k)′i,j, a prediction pixel value, which corresponds to g′(k)′i,j, of a pixel in a kth area of a pixel block of the B color component image, is
where the constants e and f may be determined as values that minimize differences between prediction pixel values of a neighbor pixel block of the second component color image adjacent to the kth area of the pixel block of the second color component image predicted using pixel values of a reconstructed neighbor pixel block of the first color component image and pixel values of a reconstructed neighbor pixel block of the second color component image adjacent to the kth area of the pixel block of the second color component image.
For example, e may be determined as 1 and f may be determined using the average of differences between pixel values of a reconstructed neighbor pixel block of the second color component image adjacent to the kth area of the pixel block of the second color component image and pixel values of a reconstructed neighbor pixel block of the first color component image adjacent to the kth area of the pixel block of the second color component image. Referring to
Similarly, f of Equation 8 to be applied to the second area II can be defined using pixel values of pixels 1120 and 1130 of a reconstructed neighbor pixel block of the G color component image adjacent to the second area II of the current pixel block and pixel values of corresponding pixels 1122 and 1132 of a reconstructed neighbor pixel block of the B color component image, as follows:
Like prediction of pixel values in each of the first area I and the second area II of a pixel block of the B color component image, pixel values in each of the first area I and the second area II of a pixel block of the R color component image can also be predicted.
When pixel values of a pixel block of the R color component image are predicted, pixel values of a reconstructed pixel block of the B color component image in the same area, instead of pixel values of a reconstructed pixel block of the G color component image, may be used like in Equation 7.
Referring to
The entropy-decoding unit 1210 and the rearrangement unit 1220 receive a compressed bitstream and perform entropy-decoding, thereby generating a quantized coefficient. The inverse quantization unit 1230 and the inverse transformation unit 1240 perform inverse quantization and inverse transformation on the quantized coefficient in order to extract residue information, motion vector information, and prediction mode information for each color component image. Here, the prediction mode information may include a predetermined syntax indicating whether the compressed bitstream is a bitstream encoded according to an exemplary embodiment of the present invention. If the compressed bitstream is encoded according to an exemplary embodiment of the present invention, the prediction mode information may include predictor information used for prediction of pixel values of a pixel block of other color component images. For example, the prediction mode information may include a and b of Equation 2, c and d of Equation 7, and e and f of Equation 8.
If the current pixel block is an inter-predicted pixel block, the motion compensation unit 1260 generates a prediction pixel block of the current pixel block by motion compensation and estimation. If the current pixel block is an intra-predicted pixel block, the intra-prediction unit 1250 generates a prediction pixel block of the current pixel block by performing intra prediction.
The addition unit 1275 adds the prediction pixel block of the first color component image and a first residue output from the inverse transformation unit 1240 in order to decode a pixel block of the first color component image.
The decoded pixel block of the first color component image is input to the correlation prediction unit 1270. The correlation prediction unit 1270 decodes a corresponding pixel block of another color component image using the decoded pixel block of the first color component image.
More specifically, like the correlation prediction unit 314 of
By adding a second residue and a third residue output from the inverse transformation unit 1240 to prediction pixel blocks of the second color component image and the third color component image predicted by the correlation prediction unit 1270, a pixel block of the second color component image and a pixel block of the third color component image are decoded.
When an edge in each area of a pixel block is detected and an encoded bitstream are encoded according to another exemplary embodiment of the present invention, the image decoding apparatus 1200 may further include an edge detection unit (not shown) that detects an edge in a pixel block of a first color component image from a received bitstream including a plurality of encoded color component images and an area division unit (not shown) that divides a pixel block of each of the color component images using the detected edge. In this case, like the correlation prediction unit 913 of
Referring to
A prediction pixel block of a pixel block having a predetermined size of a first color component image among a plurality of color component images included in the bitstream is generated in operation 1320 and the prediction pixel block of the first color component image is added by a first residue in order to decode the pixel block of the first color component image in operation 1330.
In operation 1340, pixel values of a pixel block of another color component image is predicted using the decoded pixel block of the first color component image, a decoded neighbor pixel block of the first color component image, and a decoded neighbor pixel block of the another color component image, thereby generating a prediction pixel block of a pixel block of the another color component image. As mentioned above, to generate a predictor like in Equation 2 or 7 used for prediction of a pixel block of the another color component image, prediction mode information included in the bitstream or a decoded neighbor pixel block of the first color component image and a decoded neighbor pixel block of another color component image to be decoded may be used. The correlation prediction unit 1270 predicts pixel values of pixel blocks of the second color component image and the third color component image using pixel values of the decoded pixel block of the first color component image or predicts pixel values of the decoded pixel block of the third color component image using a second color component image.
In operation 1350, an inversely transformed second residue and an inversely transformed third residue are added to prediction pixel blocks of the pixel blocks of the second color component image and the third color component image, thereby decoding pixel blocks of the second color component image and the third color component image.
Referring to
In operation 1420, a pixel block having a predetermined size of a first color component image among the color component images is decoded.
In operation 1430, an edge in the decoded pixel block of the first color component image is detected.
In operation 1440, the decoded pixel block of the first color component image and corresponding pixel blocks of the other color component images are divided using the detected edge.
In operation 1450, pixel values in each area of the pixel blocks of the second color component image and the second color component image are predicted using the decoded pixel block of the first color component image.
The pixel values in each area of the second color component image or the third color component image predicted are combined to form prediction pixel blocks of the second color component image or the third color component image. The prediction pixel blocks are added to inversely transformed second residue and third residue, thereby decoding pixel blocks of the second color component image and the third color component image.
The present invention can also be embodied as a computer-readable code on a computer-readable recording medium. The computer-readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of computer-readable recording media include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves. The computer-readable recording medium can also be distributed over a network of coupled computer systems so that the computer-readable code is stored and executed in a decentralized fashion.
As described above, according to an exemplary embodiment of the present invention, predictive encoding is performed using a correlation between a plurality of color component images forming a single image, thereby improving encoding efficiency.
Moreover, according to an exemplary embodiment of the present invention, encoding is performed on an RGB input image in an RGB domain without transformation into a YUV domain, thereby preventing color distortion during transformation of the RGB image into another color format and thus improving display quality.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.
Patent | Priority | Assignee | Title |
10778968, | Oct 18 2013 | GE VIDEO COMPRESSION, LLC | Multi-component picture or video coding concept |
11765342, | Oct 18 2013 | GE VIDEO COMPRESSION, LLC | Multi-component picture or video coding concept |
Patent | Priority | Assignee | Title |
5513128, | Sep 14 1993 | Comsat Corporation | Multispectral data compression using inter-band prediction |
6154493, | May 21 1998 | Intel Corporation | Compression of color images based on a 2-dimensional discrete wavelet transform yielding a perceptually lossless image |
7697783, | Jul 26 2005 | Sony Corporation; Sony Electronics INC | Coding device, coding method, decoding device, decoding method, and programs of same |
7792370, | Mar 18 2005 | Sharp Kabushiki Kaisha | Residual color transform for 4:2:0 RGB format |
20050013370, | |||
20050111741, | |||
20050281473, | |||
20070014354, | |||
JP8205172, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 30 2011 | Samsung Electronics Co., Ltd. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Nov 14 2017 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Feb 14 2022 | REM: Maintenance Fee Reminder Mailed. |
Aug 01 2022 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Jun 24 2017 | 4 years fee payment window open |
Dec 24 2017 | 6 months grace period start (w surcharge) |
Jun 24 2018 | patent expiry (for year 4) |
Jun 24 2020 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jun 24 2021 | 8 years fee payment window open |
Dec 24 2021 | 6 months grace period start (w surcharge) |
Jun 24 2022 | patent expiry (for year 8) |
Jun 24 2024 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jun 24 2025 | 12 years fee payment window open |
Dec 24 2025 | 6 months grace period start (w surcharge) |
Jun 24 2026 | patent expiry (for year 12) |
Jun 24 2028 | 2 years to revive unintentionally abandoned end. (for year 12) |