A color signal interpolation system and method, which performs a green sample interpolation on a signal with a cross color sample. The method includes: (A) providing neighboring color samples on an interpolation sample; (B) computing a luminance respectively of the interpolation sample and the neighboring color samples; (C) computing an edge value of the interpolation sample based on the luminance computed; (D) determining if the edge value is smaller than a predetermined threshold; (E) computing an average of the neighboring color samples that have the same color with the interpolation sample when the edge value is smaller than the predetermined threshold, and using the average as a first color output of the interpolation sample.
|
6. A color signal interpolation method implemented in a color signal interpolation system including a sensor, a luminance compute device, an edge determinator and an average device, for performing a first color sample interpolation on a signal with a cross-color sample, the method comprising the steps of
(A) providing bayer pattern neighboring color samples on an interpolation sample by the sensor, wherein the sensor has a bayer color filter array;
(B) computing a flat value of the interpolation sample by using a luminance respectively of the interpolation sample and the bayer pattern neighboring color samples by the edge determinator, wherein the luminance is the total of all colors of the bayer pattern;
(C) determining if the flat value is smaller than a predetermined threshold by the edge determinator; and
(D) the average device computing an average of the neighboring color samples having the same color with the interpolation sample when the flat value is smaller than the predetermined threshold, and using the average as a first color output of the interpolation sample.
1. A color signal interpolation method implemented in a color signal interpolation system including a sensor, a luminance compute device, an edge determinator and an average device, for performing a first color sample interpolation on a signal with a cross-color sample, the method comprising the steps of:
(A) providing bayer pattern neighboring color samples on an interpolation sample by the sensor, wherein the sensor has a bayer color filter array;
(B) computing a luminance respectively of the interpolation sample and the bayer pattern neighboring color samples by the luminance compute device;
(C) the edge determinator computing an edge value of the interpolation sample by using the luminance respectively of the interpolation sample and the neighboring color samples computed in step (B) based on a luminance domain wherein the luminance is the total of all colors of the bayer pattern;
(D) determining if the edge value is smaller than a predetermined threshold by the edge determinator; and
(E) the average device computing an average of the neighboring color samples having the same color with the interpolation sample when the edge value is smaller than the predetermined threshold, and using the average as a first color output of the interpolation sample.
17. A color signal interpolation method converting pixels from an rgb domain to a luminance domain and implemented in a color signal interpolation system including a sensor, a luminance compute device, an edge determinator, an average device and a selector, for performing a first color sample interpolation on a signal with a cross-color sample, the method comprising the steps of
(A) providing neighboring color samples on an interpolation sample by the sensor;
(B) computing a luminance respectively of the interpolation sample and the neighboring color samples by the luminance compute device wherein the luminance is the total of all colors of a bayer pattern;
(C) computing with the edge determinator an edge value of the interpolation sample by using the luminance respectively of the interpolation sample and the neighboring color samples computed in step (B) based on a luminance domain;
(D) determining if the edge value is smaller than a predetermined threshold by the edge determinator; and
(E) computing with the average device an average of the neighboring color samples having the same color with the interpolation sample and when the edge value is smaller than the predetermined threshold, the interpolation sample is located on a flat area and when the edge value is not smaller than the predetermined threshold, the interpolation sample is not located on a flat area and thus avoiding resolution reduction and reducing a crosstalk effect caused by error of the green color value.
11. A color signal interpolation system, which performs a first color sample interpolation on a signal with a cross-color sample, the system comprising:
a sensor, which has a bayer color filter array and provides the signal with the cross-color sample;
a line buffer, which is connected to the sensor, for storing color samples of the signal;
a luminance compute device, which is connected to the line buffer, for computing a luminance respectively of an interpolation sample and bayer pattern neighboring color samples wherein the luminance is the total of all colors of the bayer pattern;
an edge determinator, which is connected to the luminance compute device, for computing an edge value of the interpolation sample by using the luminance computed, and determining if the edge value is smaller than a predetermined threshold;
a reconstruction filter, which is connected to the line buffer, for performing an interpolation computation on the interpolation sample to thus produce a first color interpolation value;
an average device, which is connected to the line buffer, for computing an average of the neighboring color samples having the same color with the interpolation sample; and
a selector, which is connected to the line buffer, the edge determinator, the average device and the reconstruction filter in order to select one of the interpolation sample, the first color interpolation value and the average as a first color output of the interpolation sample;
wherein the average is selected as the first color output of the interpolation sample when the edge value is smaller than the predetermined threshold.
2. The method as claimed in
3. The method as claimed in
4. The method as claimed in
7. The method as claimed in
8. The method as claimed in
9. The method as claimed in
(B1) the luminance compute device computing a luminance respectively of the interpolation sample and the neighboring color samples;
(B2) the edge determinator computing a horizontal edge value and a vertical edge value based on the luminance computed in the step (B1); and
(B3) the edge determinator adding the horizontal edge value and the vertical edge value as the flat value of the interpolation sample.
13. The system as claimed in
14. The system as claimed in
a horizontal edge compute device, which is connected to the luminance compute device in order to compute a horizontal edge value of the interpolation sample based on the luminance computed;
a vertical edge compute device, which is connected to the luminance compute device, for computing a vertical edge value of the interpolation sample based on the luminance computed;
an adder, which is connected to the horizontal edge compute device and the vertical edge compute device, for adding the horizontal edge value and the vertical edge value as the edge value to output; and
a comparator, which is connected to the adder in order to determine if the edge value is smaller than the predetermined threshold.
15. The system as claimed in
16. The system as claimed in
18. The method as claimed in
|
1. Field of the Invention
The invention relates to the technical field of color signal interpolation and, more particularly, to a color signal interpolation system and method for reconstructing green color.
2. Description of Related Art
A color image processing system essentially includes an image capture unit, an image reconstruction and processing unit, an image display and an image compression unit. The image capture unit includes an image sensor and a color filter array (CFA).
In addition, the image sensor has the pixel crosstalk effect in which, when a pixel is illuminated by a light, charge generation and signal transmission will diffuse to the neighboring pixels due to the semiconductor process in pixel layout and production. In accordance with the observations and experiences, the horizontal crosstalk effect is stronger than the vertical crosstalk effect. For the example of Bayer color filter array, red and blue pixels present the crosstalk on the respective left and right green pixels. Due to the pixel crosstalk effect, the left and right green pixels relative to a red pixel have different outputs from those relative to a blue one. In this case, the pixel value of a green photosite presents an error component. Thus, the pixel crosstalk effect can be seen obviously in a flat area when an interpolation is used to reconstruct each pixel's red, green and blue values because of the result of error component.
To overcome this problem, U.S. Pat. No. 6,727,945 granted to Jaspers for a “Color signal interpolation” has disclosed that a difference of green photosites at different rows is compared to a threshold to accordingly determine if a corresponding photosite locates on an edge area, thereby selecting one from an original green value of the photosite, a interpolation value, or an average value for the corresponding photosite. However, the threshold is computed with pixels (on the RGB domain) captured by the image sensor, which encounters the problems of lower representative, easy to cause a resolution reduction, and hard to improve the crosstalk effect caused by a green error. Therefore, it is desirable to provide an improved color signal interpolation system and method to mitigate and/or obviate the aforementioned problems.
The object of the invention is to provide a color signal interpolation system and method, which can avoid the resolution reduction and reduce the crosstalk effect caused by the green error.
In accordance with one aspect of the present invention, there is provided a color signal interpolation method. The method performs a first color sample interpolation on a signal with a cross-color sample. The method includes the steps of: (A) providing neighboring color samples on an interpolation sample; (B) computing a luminance respectively of the interpolation sample and the neighboring color samples; (C) computing an edge value of the interpolation sample in accordance with the luminance computed; (D) determining if the edge value is smaller than a predetermined threshold; (E) computing an average of the neighboring color samples that have the same color with the interpolation sample when the edge value is smaller than the predetermined threshold, and using the average as a first color output of the interpolation sample.
In accordance with another aspect of the present invention, there is provided a color signal interpolation method, which performs a first color sample interpolation on a signal with a cross-color sample. The method includes the steps of: (A) providing neighboring color samples on an interpolation sample; (B) computing a flat value of the interpolation sample; (C) determining if the flat value is smaller than a predetermined threshold; (D) computing an average of the neighboring color samples that have the same color with the interpolation sample when the flat value is smaller than the predetermined threshold, and using the average as a first color output of the interpolation sample.
In accordance with a further aspect of the present invention, there is provided a color signal interpolation system, which performs a first color sample interpolation on a signal with a cross-color sample. The system includes a sensor, a line buffer, a luminance compute device, an edge determinator, a reconstruction filter, an average device and a selector. The sensor provides the signal with the cross-color sample. The line buffer is connected to the sensor in order to store color samples of the signal. The luminance compute device is connected to the line buffer in order to compute a luminance respectively of an interpolation sample and neighboring color samples that neighbor with the interpolation sample. The edge determinator is connected to the luminance compute device in order to compute an edge value of the interpolation sample in accordance with the luminance computed, and determine if the edge value is smaller than a predetermined threshold. The reconstruction filter is connected to the line buffer in order to perform an interpolation computation on the interpolation sample to thus produce a first color interpolation value. The average device is connected to the line buffer in order to compute an average of the neighboring color samples that have the same color with the interpolation sample. The selector is connected to the line buffer, the edge determinator, the average device and the reconstruction filter in order to select one of the interpolation sample, the first color interpolation value and the average as a first color output. When the edge value is smaller than the predetermined threshold, the average is selected as the first color output of the interpolation sample.
Other objects, advantages, and novel features of the invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
The sensor 210 has the Bayer color filter array to provide the signal with the cross-color sample. In the
The line buffer 220 is connected to the sensor 210 in order to store color samples of the signal. In this case, the line buffer 220 includes three lines to store data shown in
The luminance compute device 230, which is connected to the line buffer 220, computes a luminance on an interpolation sample and luminance of color samples neighboring the interpolation sample. In order to cooperate with the line buffer 220, the luminance compute device 230 can be a 3×3 filter with coefficients of [1 2 1, 2 4 2, 1 2 1]. In this case, the luminance, for example, of G6 in the
The edge determinator 240, which is connected to the luminance compute device 230, computes an edge value of the interpolation sample in accordance with the luminance computed, and determine if the edge value is smaller than a predetermined threshold Th. The edge determinator 240 includes a horizontal edge compute device 241, a vertical edge compute device 242, an adder 243 and a comparator 244.
The horizontal edge compute device 241 can be a 3×3 filter with coefficients of [1 2 1, 0 0 0, −1 −2 −1] to computes a horizontal edge value Eh. When the luminance compute device 230 outputs the luminance of [Y1 Y2 Y3, Y4 Y5 Y6, Y7 Y8 Y9], the horizontal edge value Eh is a value of (1*Y1+2*Y2+1*Y3−(1*Y7+2*Y8+1*Y9)). The smaller a value Eh is, the more flatness on the corresponding interpolation sample is. The vertical edge compute device 242 can be a 3×3 filter with coefficients of [−1 0 1, −2 0 2, −1 0 1] to compute a vertical edge value Ev. When the luminance compute device 230 outputs the luminance of [Y1 Y2 Y3, Y4 Y5 Y6, Y7 Y8 Y9], the vertical edge value Ev is a value of (−1*Y1+1*Y3−2*Y4+2*Y6−1*Y7+1*Y9). The smaller a value Ev is, the more flatness on the corresponding interpolation sample is.
The adder 243 adds the values Eh and Ev to thus obtain an edge value E (or flat value). When the edge value E is smaller in comparison with the threshold Th, it indicates the corresponding interpolation sample locates on a flat area.
The reconstruction filter 250, which is connected to the line buffer 220, performs an interpolation computation for the interpolation sample Gc or Gc′ to thus produce a green interpolation value Gres. The green interpolation value Gres of an interpolation sample is obtained by computing an averaged gradient in a direction with a smaller gradient. For example, the gradients on the interpolation sample Gc of
The average device 260 is connected to the line buffer 220 in order to compute an average avG of same color samples adjacent to the interpolation sample Gc or Gc′. Accordingly, either of the sample Gc of
The selector 270 is connected to the line buffer, the edge determinator, the average device and the reconstruction filter in order to select one of the interpolation sample Gc, the green interpolation value Gres and the average avG as a green output (Go) of the sample Gc or Gc′. For the sample Gc′ of
For the sample Gc of
In this embodiment, the sensor 210 is implemented by the Bayer color filter array, but not limited to it. As shown in
As compared with a red pixel and a blue pixel, the color value of a green pixel has a greater luminance, and accordingly the noise reduction on the green color value is relatively important. The invention first converts the pixels from the Bayer pattern domain, a subset of the RGB domain to a luminance domain and then computes the edges of the pixels. Because the edges are estimated on the luminance domain, it is determined accurately that a pixel to be interpolated locates on a flat or edge area. Therefore, the invention can avoid the resolution reduction and reduce the crosstalk effect caused by the error of green color value.
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5729360, | Jan 14 1994 | FUJI XEROX CO , LTD | Color image processing method and system |
6697110, | Jul 15 1997 | ST Wireless SA | Color sample interpolation |
6727945, | Jan 29 1998 | ST Wireless SA | Color signal interpolation |
6771838, | Oct 06 2000 | HEWLETT-PACKARD DEVELOPMENT COMPANY L P | System and method for enhancing document images |
7139022, | Jun 19 2002 | Intellectual Ventures I LLC | Edge enhancer for RGB-Beyer to YUV 4:2:0 converter with sharpened-Y feedback to U, V transformer |
7339619, | Apr 08 2003 | Olympus Corporation | Image pickup system and image processing program for performing correction on chroma signal |
7583299, | Jan 14 2004 | Casio Computer Co., Ltd. | Moving image recording apparatus with a stream recording function of a moving image |
7623705, | Nov 10 2003 | ADVANCED INTERCONNECT SYSTEMS LIMITED | Image processing method, image processing apparatus, and semiconductor device using one-dimensional filters |
20020167602, | |||
20030007082, | |||
20030086606, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Nov 03 2005 | WU, CHENG-YU | SUNPLUS TECHNOLOGY CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 017531 | /0009 | |
Feb 02 2006 | Sunplus Technology Co., Ltd. | (assignment on the face of the patent) | / | |||
Dec 11 2012 | SUNPLUS TECHNOLOGY CO , LTD | ICATCH TECHNOLOGY, INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 029598 | /0882 |
Date | Maintenance Fee Events |
Dec 24 2014 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Apr 28 2015 | ASPN: Payor Number Assigned. |
Dec 20 2018 | SMAL: Entity status set to Small. |
Dec 28 2018 | M2552: Payment of Maintenance Fee, 8th Yr, Small Entity. |
Dec 05 2022 | M2553: Payment of Maintenance Fee, 12th Yr, Small Entity. |
Date | Maintenance Schedule |
Jul 12 2014 | 4 years fee payment window open |
Jan 12 2015 | 6 months grace period start (w surcharge) |
Jul 12 2015 | patent expiry (for year 4) |
Jul 12 2017 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jul 12 2018 | 8 years fee payment window open |
Jan 12 2019 | 6 months grace period start (w surcharge) |
Jul 12 2019 | patent expiry (for year 8) |
Jul 12 2021 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jul 12 2022 | 12 years fee payment window open |
Jan 12 2023 | 6 months grace period start (w surcharge) |
Jul 12 2023 | patent expiry (for year 12) |
Jul 12 2025 | 2 years to revive unintentionally abandoned end. (for year 12) |