This application claims the benefit of Taiwan application Serial No. 94100931, filed Jan. 12, 2005, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to a color processing apparatus, and more particularly to a color processing apparatus for reducing cross color.
2. Description of the Related Art
Ordinary screens, such as CRT TV monitors or liquid crystal TV monitors for instance, adopt composite video or S video as the format of the source video. Composite video, labeled as Vcomp, is a quadrature modulated signal and includes two formats, namely NTSC and PAL:
Vcomp—PAL=Y+U sin ωt°±V cos ωt+timing
Vcomp—NTSC=Y+Q sin (ωt+33°)±I cos (ωt+33°)+timing
wherein, Y is the luminance, U and V (or I and Q) are chrominance C. For the convenience of explanation, the chrominance C here below includes U and V.
However, the luminance Y of the pixel on a diagonal edge still contains a component of high frequency, and can be mixed with high-frequency chrominance C. Consequently, the signal of chrominance C may be mixed with the signal of luminance Y, causing cross color and generating rainbow colors.
It is therefore the object of the invention to provide a cross color suppressing apparatus to reduce the cross color and increase image quality.
According to an object of the invention, a cross color suppressing apparatus used for suppressing the cross color of a frame is provided. The frame has several pixels, and the image data of each pixel include a luminance and a chrominance. The apparatus includes a diagonal edge detector, a cross color detector and a chrominance suppressing unit. The diagonal edge detector is used for determining whether target pixel is on a diagonal edge according to the luminance of the target pixel and that of its neighboring pixels. The cross color detector is used for determining whether the chrominance of the target pixel is substantially different from that of its neighboring pixels. If both the results of the diagonal edge detector and that of the cross color detector are true, then the chrominance suppressing unit suppresses the chrominance of the target pixel and that of its neighboring pixels.
According to another object of the invention, a cross color suppressing apparatus including a diagonal edge detecting unit and a chrominance suppressing unit is provided. The diagonal edge detecting unit is used for determine whether the target pixel is on a diagonal edge according to the luminance of a target pixel and that of its neighboring pixels. The chrominance suppressing unit is used for suppressing the chrominance of the target pixel according to the results of the diagonal edge detector.
According to yet another object of the invention, a cross color suppressing apparatus including a cross color detecting unit and a chrominance suppressing unit is provided. The cross color detecting unit is used for determining whether the chrominance of a target pixel is substantially different from that of its neighboring pixels. The chrominance suppressing unit is used for suppressing the chrominance of the target pixel according to the results of the diagonal edge detector.
According to still another object of the invention, a cross color suppressing method is provided. At first, whether the target pixel is on a diagonal edge is determined according to the luminance of the target pixel and that of its neighboring pixels, and whether the chrominance of the target pixel is substantially different from that of its neighboring pixels is also determined. Then, the chrominance of the target pixel and that of its neighboring pixels are suppressed if the target pixel is positioned on a diagonal edge and the chrominance of the target pixel is substantially different from that of its neighboring pixels.
Other objects, features, and advantages of the invention will become apparent from the following detailed description of the preferred but non-limiting embodiments. The following description is made with reference to the accompanying drawings.
Referring to
The cross color suppressing apparatus 202 includes a diagonal edge detector 210, a cross color detector 220 and a chrominance suppressing unit 230. Since the cross color is generated when luminance Y has a high frequency, that is, when a diagonal edge exists, first of all, the diagonal edge detector 210 is used to detect whether a target pixel is on the diagonal edge. Next, the cross color detector 220 is used for determining whether the chrominance of the target pixel is substantially different from that of the neighboring pixels above and under the target pixel. Then, the chrominance suppressing unit 230 outputs the luminance Y and the chrominance U′ and V′ according to both the determination results of the diagonal edge detector 210 and the cross color detector 220. The decoder 110 can be a two-dimensional (2D) decoder for instance.
Referring to
V_coeff=abs(a−c)+abs(2*d−2*f)+abs(g−i)
H_coeff=abs(a−d)+abs(2*b−2*e)+abs(c−f)+abs(g−d)+abs(2*h−2*e)+abs(i−f)
Next, the diagonal edge detector 210 determines whether the vertical image gradient V_coeff and the horizontal image gradient H_coeff are respectively larger than a vertical threshold value Vth and a horizontal threshold value Hth. If yes, the target pixel is positioned on a diagonal edge. The pixel grey values of
The cross color detector 220 is used for determining whether the chrominance of the target pixel is substantially different from that of the neighboring pixels above and under the target pixel. At first, a map_U matrix is generated by performing a threshold operation on the U value of each pixel of
If the U value of a pixel is larger than or equal to 128, then the corresponding position of the map_U is recorded as 1. If the U value of a pixel is smaller than or equal to 128, then the corresponding position of the map_U is recorded as −1. Similarly, if the V value of a pixel is larger than or equal to 128, then the corresponding position of the map_V is recorded as 1. If the V value of a pixel is smaller than or equal to 128, then the corresponding position of the map_V is recorded as −1. That is:
map—U(x,y)=(U(x,y)>=128)?(1:(U(x,y)<128?−1:0))
map—V(x,y)=(V(x,y)>=128)?(1:(V(x,y)<128?−1:0))
If any map_U or map_V complies with the chrominance difference diagram CF1 or CF2 of
When both the determination results of the diagonal edge detector 210 and the cross color detector 220 are true, the chrominance suppressing unit 230 suppresses the chrominance of the target pixel and its vertical neighboring pixels. Let the value of U or V be expressed by 8 bits. As the U or V value gets closer to the middle value 128, the chrominance of the pixel becomes weaker. Especially when both the U value and the V value are equal to 128, the grey value is entirely determined by the Y value. Therefore, the chrominance suppressing unit 230 converges the chrominance value to the middle value 128 according to a suppression parameter Rc. The suppression parameter Rc is exemplified as:
Rc=[1 1 2 4 5 6 10 16 (16) 16 10 6 5 4 2 1 1]
That is, the chrominance of the target pixel (x,y) and that of its horizontal neighboring pixels are added/subtracted by the corresponding suppression parameter Rc in order to suppress the chrominance value to 128. That is, U(x−8, y)˜U(x+8,y) respectively correspond to Rc[1]˜Rc[17], and V(x−8, y)˜V(x+8,y) respectively correspond to Rc[1]˜Rc[17]. When U(x,y) is larger than 128, then U′(x,y)=U(x,y)−Rc[9]. If the operated U′(x,y)<128, then U′(x,y)=128, so the chrominance approaches 128 and will not be reduced to be smaller than 128. When U(x,y) is smaller than 128, then U′(x,y)=U(x,y)+Rc[9]. If the operated U′(x,y)>128, then U′(x,y)=128, so the chrominance value approaches 128 and will not be added to be larger than 128. For example, if the original U(x,y)=150, which is larger than 128, then 150 is subtracted by Rc[9] (that is, 16) and the obtained difference equals to 134. That is, the chrominance suppressed U′(x,y)=134. If the original U(x,y)=140, which is larger than 128, then 140 is subtracted by 16 and the obtained difference equals to 124, which is smaller than 128, and the chrominance suppressed U′(x,y)=128. If the original U(x+2,y)=150, then the chrominance suppressed U′(x+2,y)=150−10=140. If the original U(x−2,y)=130, then 130 is subtracted by 10, the obtained difference equals to 120, which is smaller than 128, and the chrominance suppressed U′(x−2,y)=128. Similarly, the V values of the pixels are operated like the U values of the pixels. For example, V(x−4,y)=100, and 100 is added by 5 and amounts to 105, then the chrominance suppressed V′(x−4,y)=105. Pixel images are then displayed on the display module 120 according to the generated U′ and V′.
The cross color suppressing apparatus and the method thereof disclosed in above embodiment of the invention is capable of reducing cross color and increasing image quality.
While the invention has been described by way of example and in terms of a preferred embodiment, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
94100931 A | Jan 2005 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4847683 | Lang | Jul 1989 | A |
5305120 | Faroudja | Apr 1994 | A |
5355176 | Inagaki et al. | Oct 1994 | A |
6055024 | DiMeo et al. | Apr 2000 | A |
6608942 | Le | Aug 2003 | B1 |
7012651 | Kondo et al. | Mar 2006 | B2 |
7333678 | Huang et al. | Feb 2008 | B1 |
7349026 | Wyman et al. | Mar 2008 | B2 |
7349028 | Neuman et al. | Mar 2008 | B2 |
7376288 | Huang et al. | May 2008 | B2 |
7397515 | Walls et al. | Jul 2008 | B2 |
7454078 | Ramamurthy | Nov 2008 | B2 |
7519232 | Neuman et al. | Apr 2009 | B2 |
7532254 | Woodall | May 2009 | B1 |
7535515 | Bacche et al. | May 2009 | B2 |
7551232 | Winger et al. | Jun 2009 | B2 |
20030071921 | Tanigawa | Apr 2003 | A1 |
20040179141 | Topper | Sep 2004 | A1 |
20050134740 | Bacche | Jun 2005 | A1 |
20050134745 | Bacche et al. | Jun 2005 | A1 |
20050168650 | Walls et al. | Aug 2005 | A1 |
20050168657 | Neuman et al. | Aug 2005 | A1 |
20050280740 | Chao | Dec 2005 | A1 |
20060017854 | Chao | Jan 2006 | A1 |
20070211957 | Ou et al. | Sep 2007 | A1 |
20070258013 | Chao | Nov 2007 | A1 |
20080075394 | Huang et al. | Mar 2008 | A1 |
20080151122 | Lin et al. | Jun 2008 | A1 |
Number | Date | Country |
---|---|---|
618738 | Oct 1994 | EP |
0140265 | Aug 1990 | TW |
Number | Date | Country | |
---|---|---|---|
20060152631 A1 | Jul 2006 | US |