This application claims the benefit of People's Republic of China application Serial No. 201210141397.7, filed May 8, 2012, the subject matter of which is incorporated herein by reference.
The disclosure relates in general to an image processing method.
There are many image formats in image and video processing. Examples of the formats include RGB format, YCbCr/YUV format and so on. Let the YCbCr/YUV format be taken for example. There are various modes, depending on ratio between luminance (Y) and chroma (CbCr/UV) such as 444, 422, and 420 modes. The 444 mode refers to data bits of the Y component, the Cb(U) component and the Cr (V) component of the YCrCb image signal in a ratio of 4:4:4 (bits). The definitions of the 422 mode and the 420 mode can be obtained by the same token. The data bit refers to the number of bits of a component.
The above disclosure shows that the 444 mode YCbCr/YUV signal has complete luminance and chroma components, hence avoiding color distortion. The 422/420 mode YCbCr/YUV signal has a smaller data bit (i.e. number of bits of chroma components), and therefore requiring smaller storage capacity and smaller transmission bandwidth.
In frame rate conversion (FRC), to reduce transmission bandwidth and hardware requirements, the 444 mode YCbCr/YUV signal is subsampled or downsampled into a 422/420 mode YCbCr/YUV signal. After data processing, the 422/420 mode YCbCr/YUV signal is upsampled into a 444 mode YCbCr/YUV signal.
During the conversion processing, it is better to recover chroma components of the YCbCr/YUV signal to avoid problems such as color blur.
The present disclosure is directed to an image processing method. In the subsampling process, chroma component information is stored for reference in upsampling.
The present disclosure is directed to an image processing method. In the subsampling process, chroma component information is kept as much as possible and in the upsampling process, chroma component information is restored as much as possible.
The present disclosure is directed to an image processing method. In the subsampling process, pixel uniqueness is analyzed to maintain chroma uniqueness as much as possible.
The present disclosure is directed to an image processing method. In the upsampling process, the uniqueness and difference of pixels are analyzed to recover the uniqueness and smoothness of pixels.
The present disclosure is directed to an image processing method for subsampling a plurality of pixels of a frame. Information relevant to subsampling the pixels is generated. The pixels are subsampled, so that bits of luminance components of the pixels are higher than bits of chroma components of the pixels.
According to one embodiment of the present disclosure, an image processing method for processing a plurality of pixels of a frame is provided. Bits of luminance components of the pixels are higher than that of chroma components of the pixels. The pixels are upsampled according to information relevant to subsampling the pixels, so that bits of luminance components of the upsampled pixels are equal to bits of chroma components of the upsampled pixels.
According to another embodiment of the present disclosure, an image processing method is provided. Information relevant to subsampling a plurality of pixels of a first frame is generated. The pixels are subsampled to generate a second frame, so that bits of luminance components of a plurality of pixels of the second frame are higher than bits of chroma components of the pixels of the second frame. The pixels of the second frame are upsampled to generate a third frame according to information relevant to subsampling the pixels of the first frame, so that bits of luminance components of a plurality of pixels of the third frame are equal to bits of chroma components of the pixels of the third frame.
The above and other contents of the disclosure will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment(s). The following description is made with reference to the accompanying drawings.
In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
Referring to
In step 120, the pixels are subsampling according to the uniqueness analysis.
Referring to
The subsampling uniqueness values U(0), U(−1) and U(1) (also referred as “uniqueness parameter”) of the pixels P0
U(0)=|Y−1+Y1−2Y0|*|Y−1−Y0|*|Y1−Y0| (1-1)
U(−1)=|Y−2+Y0−2Y−1|*|Y−2−Y−1|*|Y0−Y1| (1-2)
U(1)=|Y2+Y0−2Y1|*|Y2−Y1|*|Y1−Y0| (1-3)
In the present embodiment, after the subsampling uniqueness is obtained, a blending ratio between the to-be-subsampled pixel (such as the pixel P0
Let
The blending ratio values A(−1) and A(1) respectively may be expressed as formulas (2-1) and (2-2):
A(−1)=nonlinear_mapping(U(−1)−(U(0)) to [0,1] (2-1)
A(1)=nonlinear_mapping(U(1)−(U(0)) to [0,1] (2-2)
“U(−1)˜U(0)” denote the uniqueness contrast relationship between the pixels P−1
After the blending ratios are obtained, the chroma component C0′ of the subsampled pixel (which is obtained by subsampling the pixel P0
C
0
′=A(−1)*C−1+A(1)*C1+(1−A(−1)−A(1))*C0 (3)
After obtaining the chroma component of the subsampled pixel, the process of subsampling the pixel P0
The upsampling process of the present embodiment is elaborated below. In some applications, the 422 mode YCbCr/YUV signal may have to be upsampled as a 444 mode YCbCr/YUV signal.
Referring to
In step 320, the pixels are upsampled according to the uniqueness/smoothness analysis.
Referring to
The upsampling uniqueness values U(0), U(−1) and U(1) of the pixels P0
U(0)=|Y−1+Y1−2Y0|*|Y−1−Y0|*|Y1−Y0| (4-1)
U(−1)=|Y−2+Y0−2Y−1|*|Y−2−Y−1|*|Y0−Y1| (4-2)
U(1)=|Y2+Y0−2Y1|*|Y2−Y1|*|Y1−Y0| (4-3)
In the present embodiment, after the upsampling uniqueness is obtained, a blending ratio between the to-be-upsampled pixel (such as the pixel P0
Let
The blending ratio values B(−1) and B(1) respectively may be expressed as formulas (5-1) and (5-2).
B(−1)=nonlinear_mapping(U(−1)−(U(0)) to [0,1] (5-1)
B(1)=nonlinear_mapping(U(1)−(U(0)) to [0,1] (5-2)
Likewise, the normalized blending ratio value B(−1) is obtained by mapping the upsampling uniqueness values U(−1)˜U(0) into 0 and 1. The normalized blending ratio value B(1) is obtained by mapping the upsampling uniqueness values U(1)˜U(0) into 0 and 1.
After the blending ratio is obtained, the chroma component C0′ of the pixel P—422 (which is to be upsampled) is expressed as formula (6):
C
0′=(1−B(−1))*C−1+(1−B(1))*C1+(B(−1)−B(1)−1)*(C−1+C1)/2 (6)
After obtaining the chroma component of the upsampled pixel, the process of upsampling the pixel P0
As for the missing pixels (such as pixels P−1
During the subsampling process, information relevant to subsampling (such as the blending ratio of
An image processing method is disclosed in another embodiment of the disclosure. The image processing method comprises a subsampling step and an upsampling step disclosed in the above embodiments of the disclosure. For example, after the frame comprising a plurality of pixels is subsampled like the above embodiments, the subsampled frame is further processed. Then, if needed, the subsampled frame is upsampled and outputted. Details of subsampling and upsampling are similar or identical to the above descriptions and are not repeated here.
During the subsampling process as disclosed in the above embodiments of the disclosure, information relevant to chroma component is stored and referred in the upsampling operation to avoid problems such as color blur.
It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201210141397.7 | May 2012 | CN | national |