# Patent

## Title
Method for correcting pixel information of color pixels on a color filter array of an image sensor

## Abstract

A method for correcting pixel information of color pixels on a color filter array of an image sensor includes: establishing an M×M distance factor table, selecting M×M pixels of the color filter array, calculating a red/green/blue-color contribution from the red/green/blue pixels to a target pixel in the selected M×M pixels, calculating a red/blue/green-color pixel performance of the target pixel, calculating a red/blue/green-color correcting factor, obtaining a corrected pixel information of each of the red/green/blue pixels, by applying the red/green/blue-color correcting factor to the measured pixel information of each of the red/green/blue pixels.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
N/A
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a color filter array of an image sensor, and more particularly to a method for correcting pixel information of color pixels on a color filter array of an image sensor.
2. Background of the Invention:
CMOS Image Sensor (CIS) is an imaging device that performs the role of an electronic film in digital photography equipment. CIS has been used in a broad range of areas including digital cameras, camera phone, web-camera, notebook security devices, automobile, and miniature imaging devices used in medical applications. To achieve high image sensing quality, it is necessary for the CIS to provide wide dynamic range and high sensibility.
A CIS includes a color filter array, a micro lens array and pixel sensors (e.g., a photo diodes). A color filter array is a mosaic of tiny color filters placed over the pixel sensors of the image sensor to capture color information. A Bayer filter array is a typical color filter array for arranging RGB (red, green, blue) color filters on a square grid of photo diodes.
In order to increase the image sensibility of the CIS, a plurality of possible color filter arrays with WRGB (white, red, green, blue) arrangement have been proposed. For example, Toshiba proposed a 1/4 WRGB color filter array having a plurality of pixel arrays. As shown in FIG. 1A, each pixel array consists of a four (4) 2×2 pixel units, and each 2×2 pixel unit has one (1) white pixel, one (1) red pixel, one (1) green pixel and one (1) blue pixel.
After TSB proposed the 1/4 WRGB color filter array, Eastman Kodak Company proposed a 2/4 WRGB color filter array having a plurality of pixel arrays. As shown in FIG. 1B, each pixel array consists of a four (4) 2×2 pixel units, and each 2×2 pixel unit has two (2) white pixels and two (2) color pixels with the same color.
Since the 1/4 WRGB color filter array has one (1) white pixel in each pixel unit of the color filter array, the image sensitivity of the 1/4 WRGB color filter array is higher than a typical Bayer filter array. Similarly, since the 2/4 WRGB color filter array has two (2) white pixels in each pixel unit of the color filter array, the image sensitivity of the 2/4 WRGB color filter array is higher than a typical Bayer filter array and 1/4 WRGB color filter array. However, the image resolution of the CIS with the 2/4 WRGB color filter array will be reduced, also due to the increased number of white pixels in the 2/4 WRGB color filter array. Therefore, the more number of the white pixels in a color filter array, the higher the image sensitivity of the CIS and the lower the image resolution of the CIS.
SUMMARY OF THE INVENTION
In view of the above, how to provide an image sensor that can provide higher image sensitivity without scarifying its image resolution becomes an important issue. To achieve the above-mentioned object, a method for correcting pixel information of color pixels on a color filter array of an image sensor is provided. The color filter array includes a plurality of pixel arrays. Each pixel array consists of a four (4) N×N pixel units, N being an integer equal to or larger than 2; each N×N pixel unit has a plurality of white pixels and at least one color pixel; the at least one color pixel includes one or more red pixels, one or more green pixels, one or more blue pixels, or any combination thereof, the number of the at least one color pixel in each of the four (4) N×N pixel units being the same; and the number of the at least one color pixel in each of the four (4) N×N pixel units is smaller than the number of the plurality of white pixels in each of the four (4) N×N pixel units. The method comprises: establishing an M×M distance factor table having M×M distance factors (dfij); selecting M×M pixels of the color filter array, wherein the M×M pixels of the color filter array cover at least two red pixels, at least two green pixels, at least two blue pixels, and a target pixel, and the target pixel is a center pixel of the M×M pixels of the color filter array; calculating a red-color contribution (Raverage) from the at least two red pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Rij) of each of the at least two red pixels; calculating a green-color contribution (Gaverage) from the at least two green pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Gij) of each of the at least two green pixels; calculating a blue-color contribution (Baverage) from the at least two blue pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Bij) of each of the at least two blue pixels; calculating at least one of a red-color pixel performance (fRij) of the target pixel, a green-color pixel performance (fGij) of the target pixel, and a blue-color pixel performance (fBij) of the target pixel, based on the red-color contribution (Raverage) the green-color contribution (Gaverage) and the blue-color contribution (Baverage), and measured pixel information (W) of the target pixel; calculating at least one of a red-color correcting factor (TR) that is a ratio of the red-color pixel performance (fRij) to the red-color contribution (Raverage), a green-color correcting factor (TG) that is a ratio of the green-color pixel performance (fGij) to the green-color contribution (Gaverage), and a blue-color correcting factor (TB) that is a ratio of the blue-color pixel performance (fBij) to the blue-color contribution (Baverage); and performing at least one of obtaining a corrected pixel information (Rfinal) of each of the at least two red pixels, by applying the red-color correcting factor (TR) to the measured pixel information (Rij) of each of the at least two red pixels; obtaining a corrected pixel information (Gfinal) of each of the at least two green pixels, by applying the green-color correcting factor (TG) to the measured pixel information (Gij) of each of the at least two green pixels; and obtaining a corrected pixel information (Bfinal) of each of the at least two blue pixels, by applying the blue-color correcting factor (TB) to the measured pixel information (Bij) of each of the at least two blue pixels.
Further scope of applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.



BRIEF DESCRIPTION OF THE DRAWINGS
The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present invention, and wherein:
FIG. 1A illustrates a pixel array of a conventional 1/4 WRGB color filter array;
FIG. 1B illustrates a pixel array of a conventional 2/4 WRGB color filter array;
FIG. 2 illustrates pixel arrays of several 3/4 WRGB color filter arrays in accordance with embodiments of the present invention;
FIG. 3 is a flow chart illustrating the steps of correcting pixel information of color pixels on a color filter array of an image sensor in accordance with an embodiment of the present invention;
FIG. 4 is a 7×7 distance factor table for a 3/4 WRGB color filter array in accordance with an embodiment of the present invention;
FIGS. 5A-5C illustrate a 3/4 WRGB color filter array with a selected area of 7×7 pixels of the color filter array in accordance with an embodiment of the present invention;
FIGS. 6A-6P illustrate how a red-color contribution (Raverage), a green-color contribution (Gaverage) and a blue-color contribution (Baverage) in a 3/4 WRGB color filter array are calculated in accordance with an embodiment of the present invention; and
FIGS. 7A-7C illustrate how a red-color contribution (Raverage), a green-color contribution (Gaverage) and a blue-color contribution (Baverage) in a 3/4 WRGB color filter array are calculated in accordance with another embodiment of the present invention.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
The present invention will now be described in detail with reference to the accompanying drawings, wherein the same reference numerals will be used to identify the same or similar elements throughout the several views. It should be noted that the drawings should be viewed in the direction of orientation of the reference numerals.
As embodied in the present invention, a color filter array of an image sensor includes a plurality of pixel arrays. Each pixel array consists of a four (4) N×N pixel units, N being an integer equal to or larger than 2. Each N×N pixel unit having a plurality of white pixels and at least one color pixel, the at least one color pixel including one or more red pixels, one or more green pixels, one or more blue pixels, or any combination thereof. The number of the at least one color pixel in each of the four (4) N×N pixel units is the same. The number of the at least one color pixel in each of the four (4) N×N pixel units is smaller than the number of the plurality of white pixels in each of the four (4) N×N pixel units.
FIG. 2 illustrates pixel arrays of several 3/4 WRGB color filter arrays in accordance with embodiments of the present invention. Each of the 3/4 WRGB color filter arrays has a plurality of pixel arrays. As shown in FIG. 2, each pixel array consists of a four (4) 2×2 pixel units, and each 2×2 pixel unit has three (3) white pixels and one (1) color (red, green or blue) pixel.
In another embodiments, the color filter array can be a 5/9 WRGB color filter array, a 6/9 WRGB color filter array, a 7/9 WRGB color filter array, an 8/9 WRGB color filter array, etc. For example, a 5/9 WRGB color filter array can have a plurality of pixel arrays, and each pixel array consists of a four (4) 3×3 pixel units, and each 3×3 pixel unit has five (5) white pixels and four (4) color (the combination of red, green, and/or blue) pixels. In particular, each pixel array (consisting of a four (4) 3×3 pixel units) consists of four (4) red pixels, eight (8) green pixels, four (4) blue pixels and twenty (20) white pixels. It should be noted that the present invention can also apply to other WRGB color filter arrays having N×N pixel units that are larger than 2×2 pixel units and 3×3 pixel units.
A 6/9 WRGB color filter array can have a plurality of pixel arrays, and each pixel array consists of a four (4) 3×3 pixel units, and each 3×3 pixel unit has six (6) white pixels and three (3) color (the combination of red, green, and/or blue) pixels. In particular, each pixel array (consisting of a four (4) 3×3 pixel units) consists of four (4) red pixels, four (4) green pixels, four (4) blue pixels and twenty four (24) white pixels, or consists of three (3) red pixels, six (6) green pixels, three (3) blue pixels and twenty four (24) white pixels.
A 7/9 WRGB color filter array can have a plurality of pixel arrays, and each pixel array consists of a four (4) 3×3 pixel units, and each 3×3 pixel unit has seven (7) white pixels and two (2) color (the combination of red, green, and/or blue) pixels. In particular, each pixel array (consisting of a four (4) 3×3 pixel units) consists of two (2) red pixels, four (4) green pixels, two (2) blue pixels and twenty eight (28) white pixels.
A 8/9 WRGB color filter array can have a plurality of pixel arrays, and each pixel array consists of a four (4) 3×3 pixel units, and each 3×3 pixel unit has eight (8) white pixels and one (1) color (red, green, or blue) pixel. In particular, each pixel array (consisting of a four (4) 3×3 pixel units) consists of one (1) red pixel, two (2) green pixels, one (1) blue pixel and thirty two (32) white pixels.
As mentioned, the more number of the white pixels in a color filter array, the higher the image sensitivity of the image sensor and the lower the image resolution of the image sensor. FIG. 3 is a flow chart illustrating the steps of correcting pixel information of color pixels on a color filter array of an image sensor in accordance with an embodiment of the present invention, thereby providing an image sensor that can provide higher image sensitivity without scarifying its image resolution.
As embodied in FIG. 3, the method of correcting pixel information of color pixels on a color filter array of an image sensor in accordance with an embodiment of the present invention includes:
establishing an M×M distance factor table having M×M distance factors (dfij) (Step S1);
selecting M×M pixels of the color filter array, wherein the M×M pixels of the color filter array cover at least two red pixels, at least two green pixels, at least two blue pixels, and a target pixel, and the target pixel is a center pixel of the M×M pixels of the color filter array (Step S2);
calculating a red-color contribution (Raverage) from the at least two red pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Rij) of each of the at least two red pixels (Step S3);
calculating a green-color contribution (Gaverage) from the at least two green pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Gij) of each of the at least two green pixels (Step S3);
calculating a blue-color contribution (Baverage) from the at least two blue pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Bij) of each of the at least two blue pixels (Step S3);
calculating at least one of a red-color pixel performance (fRij) of the target pixel, a green-color pixel performance (fGij) of the target pixel, and a blue-color pixel performance (fBij) of the target pixel, based on the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Baverage), and measured pixel information (W) of the target pixel (Step S4);
calculating at least one of a red-color correcting factor (TR) that is a ratio of the red-color pixel performance (fRij) to the red-color contribution (Raverage), a green-color correcting factor (TG) that is a ratio of the green-color pixel performance (fGij) to the green-color contribution (Gaverage), and a blue-color correcting factor (TB) that is a ratio of the blue-color pixel performance (fBij) to the blue-color contribution (Baverage) (Step S5); and
performing at least one of obtaining a corrected pixel information (Rfinal) of each of the at least two red pixels, by applying the red-color correcting factor (TR) to the measured pixel information (Rij) of each of the at least two red pixels; obtaining a corrected pixel information (Gfinal) of each of the at least two green pixels, by applying the green-color correcting factor (TG) to the measured pixel information (Gij) of each of the at least two green pixels; and obtaining a corrected pixel information (Bfinal) of each of the at least two blue pixels, by applying the blue-color correcting factor (TB) to the measured pixel information (Bij) of each of the at least two blue pixels (Step S6).
In particular, as shown in Step S1 of FIG. 3, an M×M distance factor table having M×M distance factors is established. Each of the M×M distance factors (4) corresponds to one of M×M pixels of the color filter array. The distance factor dfij located at the cross of the ith row and the jth column of the table is dij/dc.
FIG. 4 is a 7×7 (M×M) distance factor table for a 3/4 WRGB color filter array in accordance with an embodiment of the present invention. The 7×7 distance factor table has 7×7 distance factors, and each of the 7×7 distance factors (dfij) corresponds to one of 7×7 pixels of the color filter array.
In an embodiment of the present invention, the central distance factor dfc has a highest value among the distance factors in the M×M distance factor table, and the farther a distance factor in the M×M distance factor table is located away from the central distance factor, the lower a value of the distance factor in the M×M distance factor table.
For example, as embodied in FIG. 4, the central distance factor dfc (i.e., df44) in the 7×7 distance factor table is dc/dc (i.e., d44/d44)=16/16=1, and the distance factor df26=d26/dc=4/16 (i.e., the distance factor located at the cross of the 2nd row and the 6th column of the table).
In order to determine how the neighboring color pixels would contribute to a target pixel, an area of M×M pixels of the color filter array is selected, wherein the M×M pixels of the color filter array cover at least two red pixels, at least two green pixels, at least two blue pixels, and a target pixel, and the target pixel is a center pixel of the M×M pixels of the color filter array.
Taking a 3/4 WRGB color filter array (which has a plurality of pixel arrays; each pixel array consists of a four (4) 2×2 pixel units, and each 2×2 pixel unit has three (3) white pixels and one (1) color (red, green or blue) pixel), as shown in FIGS. 5A-5C) as an example, FIGS. 5A-5C illustrate that an area of 7×7 pixels of the color filter array is selected (i.e., the dash box). The selected 7×7 pixels of the color filter array cover four (4) red pixels, eight (8) green pixels, four (4) blue pixels, and thirty three (33) white pixels. The target (white) pixel TP is the center pixel of the selected M×M pixels of the color filter array. It should be noted that each color pixel in the color filter array is labeled as R, G, or B, and all non-labeled pixels are white pixels.
After the M×M distance factor table is established and the area of M×M pixels of the color filter array covering at least two red pixels, at least two green pixels, at least two blue pixels, and the target pixel is selected, a red-color contribution (Raverage) from the at least two red pixels to the target pixel in the M×M pixels of the color filter array is calculated by using the distance factors of the M×M distance factor table and measured pixel information (Rij) of each of the at least two red pixels, a green-color contribution (Gaverage) from the at least two green pixels to the target pixel in the M×M pixels of the color filter array is calculated by using the distance factors of the M×M distance factor table and measured pixel information (Gij) of each of the at least two green pixels, and a blue-color contribution (Baverage) from the at least two blue pixels to the target pixel in the M×M pixels of the color filter array is calculated by using the distance factors of the M×M distance factor table and measured pixel information (Bij) of each of the at least two blue pixels.
As embodied in FIG. 5A, the measured pixel information (Rij) of the four (4) red pixels is as follows: R54=200 lux, R94=220 lux, R58=210 lux, and R98=230 lux. Also, as embodied in FIG. 5B, the measured pixel information (Gij) of the eight (8) green pixels is as follows: G44=235 lux, G48=235 lux, G55=235 lux, G59=235 lux, G84=235 lux, G88=215 lux, G95=235 lux, and G99=215 lux, and as embodied in FIG. 5C, the measured pixel information (B1) of the four (4) blue pixels is as follows: B45=210 lux, B49=190 lux, B85=210 lux, and B89=190 lux. In addition, the measured pixel information (WTP) of the target pixel TP is 800 lux. It should be noted that the measured pixel information of the color pixels and the target pixel shown in FIGS. 5A-5C are simply used to illustrate how to calculate the color contribution from the color pixels in the selected M×M pixels to the target pixel, and in no event limits the scope of the present invention. In addition, since it is known in the art regarding how the pixel information is measured, no further detailed description will be made regarding how the pixel information is measured.
In an embodiment of the present invention, the step of calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel includes:
(a) assigning the M×M distance factor table to second M×M pixels of the color filter array, wherein one of the at least two red pixels corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the target pixel corresponds to a distance factor in the M×M distance factor table based on a relative location of the target pixel to the one of the at least two red pixels;
(b) multiplying the measured pixel information (Rij) of the one of the at least two red pixels with the distance factor corresponding to the target pixel repeating the steps (a) and (b) for each of the at least two red pixels; and
calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b) for each of the at least two red pixels, and B is a sum of the distance factor (dij) of the target pixel in each of the repeated steps (a).
Taking the 3/4 WRGB color filter array shown in FIG. 5A as an example, and applying the 7×7 distance factor table as shown in FIG. 4, FIGS. 6A-D illustrate how the red-color contribution (Raverage) from the four (4) red pixels to the target (white) pixel TP in the 7×7 pixels of the 3/4 WRGB color filter array is calculated, in accordance with an embodiment of the present invention.
As shown in FIG. 6A, the 7×7 distance factor table is assigned to 7×7 pixels of the 3/4 WRGB color filter array (step (a)), wherein one (i.e., the pixel labeled “16” in FIG. 6A) of the four (4) red pixels corresponds to a central distance factor (dfc=dc/dc=16/16) that is located at the center of the 7×7 distance factor table, and the target pixel corresponds to a distance factor (df13=d13/dc=3/16) in the 7×7 distance factor table based on a relative location of the target pixel to the one of the four (4) red pixels.
Then, the measured pixel information (R98: 230 lux) of the one (i.e., the pixel labeled “16” in FIG. 6A) of the four (4) red pixels is multiplied with the distance factor corresponding to the target pixel (i.e., 3/16) (step (b)), which can be presented as R98×dfTP=230 lux×3/16, where dfTP is df13.
The above-noted steps (a) and (b) are repeated for each of the four (4) red pixels, as embodied in FIGS. 6A-6D to obtain the following information:
R98×df13=230 lux×3/16 (see FIG. 6A);
R94×df17=220 lux×1/16 (see FIG. 6B);
R54×df57=200 lux×3/16 (see FIG. 6C); and
R58×df53=210 lux×9/16 (see FIG. 6D).
After the above-noted steps are repeated for each of the four (4) red pixels, the red-color contribution (Raverage) from the four (4) red pixels to the target pixel TP as a ratio of A to B is calculated, where A is a sum of the step (b) for each of the four (4) red pixels, and B is a sum of the distance factor (dfij) of the target pixel in each of the repeated steps (a). Therefore, the red-color contribution (Raverage) can be presented as follows:
Raverage=ΣRij×df/Σdf=(R98×df13+R94×df17+R54×df57+R58×df53)/(df13+df17+df57+df53)=(230 lux×3/16+220 lux×1/16+200 lux×3/16+210 lux×9/16)/(3/16+1/16+3/16+9/16)=212.5 lux.
Similarly, the green-color contribution (Gaverage) and the blue-color contribution (Baverage) can be calculated in the same manner as the red-color contribution (Raverage) (see FIGS. 6E-6L and 6M-6P).
Using the measured information in FIGS. 5A-5C, the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Baverage) are 212.5 lux, 230 lux and 200 lux, respectively. In particular, Gaverage=ΣGij×df/Σdf=(G44×df67+G48×df63+G55×df56+G59×df52+G84×df27+G88×df23+G95×df16+G99×df12)/(df67+df63+df56+df52+df27+d3 df16 df12)=(235 lux×2/16+235 lux×6/16+235 lux×6/16+235 lux×6/16+235 lux×2/16+215 lux×6/16+235 lux×2/16+215 lux×2/16)42/16+6/16+6/16+6/16+2/16+6/16+2/16+2/16)=230 lux (see FIGS. 6E-6L), and Baverage=ΣBij×df/Σdf=(B45×df66+B49×df62+B85×df26+B89×df22)/(df66+df62+df26+df22)=(210 lux×4/16+190 lux×4/16+210 lux×4/16+190 lux×4/16)/(4/16+4/16+4/16+4/16)=200 lux (see FIGS. 6M-6P).
In another embodiment of the present invention, the step of calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel includes:
(a′) assigning the M×M distance factor table to the M×M pixels of the color filter array, wherein the target pixel corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the at least two red pixels respectively correspond to two distance factors in the M×M distance factor table based on relative locations of the at least two red pixels to the target pixel;
(b′) multiplying the measured pixel information (Rij) of each of the at least two red pixels with a corresponding one of the two distance factors in the M×M distance factor table; and
calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b′) for each of the at least two red pixels, and B is a sum of the distance factor (dfij) of each of the at least two red pixels.
Taking the 3/4 WRGB color filter array shown in FIGS. 5A-5C as an example, and applying the 7×7 distance factor table as shown in FIG. 4, FIG. 7A illustrates how the red-color contribution (Raverage) from the four (4) red pixels to the target (white) pixel TP in the 7×7 pixels of the 3/4 WRGB color filter array is calculated, in accordance with this embodiment of the present invention.
As shown in FIG. 7A, the 7×7 distance factor table is assigned to the selected 7×7 pixels of the color filter array, wherein the target pixel corresponds to a central distance factor that is located at the center of the 7×7 distance factor table, and the four (4) red pixels respectively correspond to four (4) distance factors (i.e., df75, df71, df31, df35) in the 7×7 distance factor table based on relative locations of the four (4) red pixels to the target pixel TP.
Then, the measured pixel information (Rij, i.e., R98, R94, R54, R58) of each of the four (4) red pixels is multiplied with a corresponding one of the four (4) distance factors (i.e., df75, df71, df31, df35) in the 7×7 distance factor table, thereby obtaining the following information:
R98×df75=230 lux×3/16;
R94×df71=220 lux×1/16;
R54×df31=200 lux×3/16; and
R58×df35=210 lux×9/16.
Then, the red-color contribution (Raverage) from the four (4) red pixels to the target pixel TP as a ratio of A to B is calculated, where A is a sum of the step (b′) for each of the four (4) red pixels, and B is a sum of the distance factor (dfij) of each of the four (4) red pixels. Therefore, the red-color contribution (Raverage) can be presented as follows:
Raverage=ΣRij×df/Σdf=(R98×df75+R94×df71+R54×df31+R58×df35)/(df75+df71+df31+df35)=(230 lux×3/16+220 lux×1/16+200 lux×3/16+210 lux×9/16)/(3/16+1/16+3/16+9/16)=212.5 lux.
Similarly, the green-color contribution (Gaverage) and the blue-color contribution (Baverage) can be calculated in the same manner as the red-color contribution (Raverage) (see FIGS. 7B and 7C).
Using the measured information in FIGS. 5A-5C, the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Baverage) are 212.5 lux, 230 lux and 200 lux, respectively. In particular, Gaverage=ΣGij×df/Σdf=(G44×df21+G48×ff25+G55×df32+G59×df36+G84×df61+G88×df65+G95×df72+G99×df76)/(df21+df25+df32+df36+df61+df65+df72+df76)=(235 lux×2/16+235 lux×6/16+235 lux×6/16+235 lux×6/16+235 lux×2/16+215 lux×6/16+235 lux×2/16+215 lux×2/16)=230 lux (see FIG. 7B)/(2/16+6/16+6/16+6/16+2/16+6/16+2/16+2/16), and Baverage=ΣBij×df/Σdf=(B45×df22+B49×df26+B85×df62+B89×df66)/(df22+df26+df62+df66)=(210 lux×4/16+190 lux×4/16+210 lux×4/16+190 lux×4/16)/(4/16+4/16+4/16+4/16)=200 lux (see FIG. 7C).
Once the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Baverage) are calculated, a red-color pixel performance (fRij) of the target pixel is calculated based on the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Baverage) and the measured pixel information (W) of the target pixel.
In an embodiment, the red-color pixel performance (fRij) of the target pixel is fRij=W·Raverage/(Raverage+Gaverage+Baverage). Using the measured information in FIGS. 5A-5C and the calculated red-color contribution (Raverage) the calculated green-color contribution (Gaverage) and the calculated blue-color contribution (Baverage), the red-color pixel performance (fRij) of the target pixel is =800×212.5/(212.5+230+200)=264.59.
Similarly, a green-color pixel performance (fGij) of the target pixel is calculated based on the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Gaverage), and the measured pixel information (W) of the target pixel.
In an embodiment, the green-color pixel performance (fGij) of the target pixel is fGij=W·Gaverage/(Raverage+Gaverage+Baverage). Using the measured information in FIGS. 5A-5C and the calculated red-color contribution (Raverage), the calculated green-color contribution (Gaverage) and the calculated blue-color contribution (Baverage), the green-color pixel performance (fGij) of the target pixel is=800×230/(212.5+230+200)=286.38.
Similarly, a blue-color pixel performance (fBij) of the target pixel is calculated based on the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Baverage), and the measured pixel information (W) of the target pixel.
In an embodiment, the blue-color pixel performance (fBij) of the target pixel is fBij=W·Baverage/(Raverage+Gaverage+Baverage). Using the measured information in FIGS. 5A-5C and the calculated red-color contribution (Raverage), the calculated green-color contribution (Gaverage) and the calculated blue-color contribution (Baverage), the blue-color pixel performance (fBij) of the target pixel is =800×200/(212.5+230+200)=249.03.
Once the red-color pixel performance (fRij) of the target pixel is obtained, a red-color correcting factor (TR) can be calculated as a ratio of the red-color pixel performance (fRij) to the red-color contribution (Raverage), i.e., TR=fRij/Raverage. Using the example above, the red-color correcting factor (TR) is 264.59/212.5=1.245.
Similarly, once the green-color pixel performance (fGij) of the target pixel is obtained, a green-color correcting factor (TG) can be calculated as a ratio of the green-color pixel performance (fGij) to the green-color contribution (G average), i.e., TG=fGij/Gaverage. Using the example above, the green-color correcting factor (TG) is 286.38/230=1.245.
Similarly, once the blue-color pixel performance (fBij) of the target pixel is obtained, a blue-color correcting factor (TB) can be calculated as a ratio of the blue-color pixel performance (fBij) to the blue color contribution (Baverage), i.e., TB=fBij/Baverage. Using the example above, the blue-color correcting factor (TB) is 249.03/200=1.245.
Once the red-color correcting factor (TR) is obtained, a corrected pixel information (Rfinal) of each of the at least two red pixels can be obtained, by applying the red-color correcting factor (TR) to the measured pixel information (Rij) of each of the at least two red pixels.
In an embodiment, the corrected pixel information (Rfinal) is a multiplication of the measured pixel information (Rij) of each of the at least two red pixels and the red-color correcting factor (TR), i.e., Rij(final)=Rij(measured)×TR.
Using the example in FIGS. 5A-5C, a corrected pixel information (Rfinal) of each of the four (4) red pixels is as follows:
R54(final)=R54(measured)×TR=200 lux×1.245=249 lux;
R94(final)=R94(measured)×TR=220 lux×1.245=273.9 lux;
R58(final)=R54(measured)×TR=210 lux×1.245=261.45 lux; and
R98(final)=R54(measured)×TR=230 lux×1.245=286.35 lux.
Similarly, once the green-color correcting factor (TG) is obtained, a corrected pixel information (Gfinal) of each of the at least two green pixels can be obtained, by applying the green-color correcting factor (TG) to the measured pixel information (Gij) of each of the at least two green pixels.
In an embodiment, the corrected pixel information (Gfinal) is a multiplication of the measured pixel information (Gij) of each of the at least two green pixels and the green-color correcting factor (TG), i.e., Gij(final)=Gij(measured)×TG.
Using the example in FIGS. 5A-5C, a corrected pixel information (Gfinal) of each of the eight (8) green pixels is as follows:
G44(final)=G44(measured)×TG=235 lux×1.245=292.575 lux;
G48(final)=G48(measured)×TG=235 lux×1.245=292.575 lux;
G55(final)=G55(measured)×TG=235 lux×1.245=292.575 lux;
G59(final)=G59(measured)×TG=235 lux×1.245=292.575 lux;
G84(final)=G84(measured)×TG=235 lux×1.245=292.575 lux;
G88(final)=G88(measured)×TG=215 lux×1.245=267.675 lux;
G95(final)=G95(measured)×TG=235 lux×1.245=292.575 lux; and
G99(final)=G99(measured)×TG=215 lux×1.245=267.675 lux.
Similarly, once the blue-color correcting factor (TB) is obtained, a corrected pixel information (Bfinal) of each of the at least two blue pixels can be obtained, by applying the blue-color correcting factor (TB) to the measured pixel information (Bij) of each of the at least two blue pixels.
In an embodiment, the corrected pixel information (Bfinal) is a multiplication of the measured pixel information (Bij) of each of the at least two blue pixels and the blue-color correcting factor (TB), i.e., Bij(final)=Bij(measured)×TB.
Using the example in FIGS. 5A-5C, a corrected pixel information (Bfinal) of each of the four (4) blue pixels is as follows:
B45(final)=B45(measured)×TB=210 lux×1.245=261.45 lux;
B49(final)=B49(measured)×TB=190 lux×1.245=236.55 lux;
B85(final)=B85(measured)×TB=210 lux×1.245=261.45 lux; and
B89(final)=B89(measured)×TB=190 lux×1.245=236.55 lux.
By applying the red/green/blue-color correcting factor (TR/TG/TB) to the measured pixel information (Rij/Gij/Bij) of each of the at least two red/green/blue pixels in the selected M×M pixels, the final pixel information of the color pixels are more accurate. This color correcting factor can compensate the measured pixel information due to the increase of the number of the white pixels in the color filter array. Therefore, it can provide higher image sensitivity (by increasing the number of the white pixels in the color filter array) without scarifying its image resolution (by compensating the measured pixel information) of the image sensor.
In addition, although a 7×7 distance factor table is used in the illustrated embodiments, and an area of 7×7 pixels is selected in the illustrated 3/4 WRGB color filter array in the illustrated embodiments, a M×M distance factor table larger than a 7×7 distance factor table and an area of M×M pixels larger than 7×7 pixels can also be selected, as long as the M×M pixels can cover at least two red pixels, at least two green pixels and at least two blue pixels.
Furthermore, for a 5/9 WRGB color filter array, a 5×5 or larger distance factor table can used, and an area of 5×5 pixels or larger can be selected, as long as the area of 5×5 pixels or larger can cover at least two red pixels, at least two green pixels and at least two blue pixels. For the 6/9 WRGB color filter array, the 7/9 WRGB color filter array, or the 8/9 WRGB color filter array, the same principle (i.e., a M×M or larger distance factor table and an area of M×M pixels or larger can be selected, as long as the M×M pixels can cover at least two red pixels, at least two green pixels and at least two blue pixels) also applies.
The invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the following claims.

## Claims

1. A method for correcting pixel information of color pixels on a color filter array of an image sensor, the color filter array including a plurality of pixel arrays, each pixel array consisting of a four (4) N×N pixel units, N being an integer equal to or larger than 2, each N×N pixel unit having a plurality of white pixels and at least one color pixel, the at least one color pixel including one or more red pixels, one or more green pixels, one or more blue pixels, or any combination thereof, the number of the at least one color pixel in each of the four (4) N×N pixel units being the same, the number of the at least one color pixel in each of the four (4) N×N pixel units being smaller than the number of the plurality of white pixels in each of the four (4) N×N pixel units, the method comprising:
establishing an M×M distance factor table having M×M distance factors (dfij);
selecting M×M pixels of the color filter array, wherein the M×M pixels of the color filter array cover at least two red pixels, at least two green pixels, at least two blue pixels, and a target pixel, and the target pixel is a center pixel of the M×M pixels of the color filter array;
calculating a red-color contribution (Raverage) from the at least two red pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Rij) of each of the at least two red pixels;
calculating a green-color contribution (Gaverage) from the at least two green pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Gij) of each of the at least two green pixels;
calculating a blue-color contribution (Baverage) from the at least two blue pixels to the target pixel in the M×M pixels of the color filter array by using the distance factors of the M×M distance factor table and measured pixel information (Bij) of each of the at least two blue pixels;
calculating at least one of a red-color pixel performance (fRij) of the target pixel, a green-color pixel performance (fGij) of the target pixel, and a blue-color pixel performance (fBij) of the target pixel, based on the red-color contribution (Raverage), the green-color contribution (Gaverage) and the blue-color contribution (Baverage), and measured pixel information (W) of the target pixel;
calculating at least one of a red-color correcting factor (TR) that is a ratio of the red-color pixel performance (fRij) to the red-color contribution (Raverage), a green-color correcting factor (TG) that is a ratio of the green-color pixel performance (fGij) to the green-color contribution (Gaverage), and a blue-color correcting factor (TB) that is a ratio of the blue-color pixel performance (fBij) to the blue-color contribution (Baverage); and
performing at least one of
obtaining a corrected pixel information (Rfinal) of each of the at least two red pixels, by applying the red-color correcting factor (TR) to the measured pixel information (Rij) of each of the at least two red pixels;
obtaining a corrected pixel information (Gfinal) of each of the at least two green pixels, by applying the green-color correcting factor (TG) to the measured pixel information (Gij) of each of the at least two green pixels; and
obtaining a corrected pixel information (Bfinal) of each of the at least two blue pixels, by applying the blue-color correcting factor (TB) to the measured pixel information (Bij) of each of the at least two blue pixels.

2. The method of claim 1, wherein the step of calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel includes:
(a) assigning the M×M distance factor table to second M×M pixels of the color filter array, wherein one of the at least two red pixels corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the target pixel corresponds to a distance factor in the M×M distance factor table based on a relative location of the target pixel to the one of the at least two red pixels;
(b) multiplying the measured pixel information (Rij) of the one of the at least two red pixels with the distance factor corresponding to the target pixel;
repeating the steps (a) and (b) for each of the at least two red pixels; and
calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b) for each of the at least two red pixels, and B is a sum of the distance factor (dfij) of the target pixel in each of the repeated steps (a).

3. The method of claim 2, wherein the central distance factor has a highest value among the distance factors in the M×M distance factor table, and the farther a distance factor in the M×M distance factor table is located away from the central distance factor, the lower a value of the distance factor in the M×M distance factor table.

4. The method of claim 1, wherein the step of calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel includes:
(a) assigning the M×M distance factor table to the M×M pixels of the color filter array, wherein the target pixel corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the at least two red pixels respectively correspond to two distance factors in the M×M distance factor table based on relative locations of the at least two red pixels to the target pixel;
(b) multiplying the measured pixel information (Rij) of each of the at least two red pixels with a corresponding one of the two distance factors in the M×M distance factor table; and
calculating the red-color contribution (Raverage) from the at least two red pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b) for each of the at least two red pixels, and B is a sum of the distance factor (dfij) of each of the at least two red pixels.

5. The method of claim 4, wherein the central distance factor has a highest value among the distance factors in the M×M distance factor table, and the farther a distance factor in the M×M distance factor table is located away from the central distance factor, the lower a value of the distance factor in the M×M distance factor table.

6. The method of claim 1, wherein the step of calculating the green-color contribution (Gaverage) from the at least two green pixels to the target pixel includes:
(a) assigning the M×M distance factor table to second M×M pixels of the color filter array, wherein one of the at least two green pixels corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the target pixel corresponds to a distance factor in the M×M distance factor table based on a relative location of the target pixel to the one of the at least two green pixels;
(b) multiplying the measured pixel information (Gij) of the one of the at least two green pixels with the distance factor corresponding to the target pixel;
repeating the steps (a) and (b) for each of the at least two green pixels; and
calculating the green-color contribution (Gaverage) from the at least two green pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b) for each of the at least two green pixels, and B is a sum of the distance factor (dfij) of the target pixel in each of the repeated steps (a).

7. The method of claim 6, wherein the central distance factor has a highest value among the distance factors in the M×M distance factor table, and the farther a distance factor in the M×M distance factor table is located away from the central distance factor, the lower a value of the distance factor in the M×M distance factor table.

8. The method of claim 1, wherein the step of calculating the green-color contribution (Gaverage) from the at least two green pixels to the target pixel includes:
(a) assigning the M×M distance factor table to the M×M pixels of the color filter array, wherein the target pixel corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the at least two green pixels respectively correspond to two distance factors in the M×M distance factor table based on relative locations of the at least two green pixels to the target pixel;
(b) multiplying the measured pixel information (Gij) of each of the at least two green pixels with a corresponding one of the two distance factors in the M×M distance factor table; and
calculating the green-color contribution (Gaverage) from the at least two green pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b) for each of the at least two green pixels, and B is a sum of the distance factor (dfij) of each of the at least two green pixels.

9. The method of claim 8, wherein the central distance factor has a highest value among the distance factors in the M×M distance factor table, and the farther a distance factor in the M×M distance factor table is located away from the central distance factor, the lower a value of the distance factor in the M×M distance factor table.

10. The method of claim 1, wherein the step of calculating the blue-color contribution (Baverage) from the at least two blue pixels to the target pixel includes:
(a) assigning the M×M distance factor table to second M×M pixels of the color filter array, wherein one of the at least two blue pixels corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the target pixel corresponds to a distance factor in the M×M distance factor table based on a relative location of the target pixel to the one of the at least two blue pixels;
(b) multiplying the measured pixel information (Bij) of the one of the at least two blue pixels with the distance factor corresponding to the target pixel;
repeating the steps (a) and (b) for each of the at least two blue pixels; and
calculating the blue-color contribution (Baverage) from the at least two blue pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b) for each of the at least two blue pixels, and B is a sum of the distance factor (dfij) of the target pixel in each of the repeated steps (a).

11. The method of claim 10, wherein the central distance factor has a highest value among the distance factors in the M×M distance factor table, and the farther a distance factor in the M×M distance factor table is located away from the central distance factor, the lower a value of the distance factor in the M×M distance factor table.

12. The method of claim 1, wherein the step of calculating the blue-color contribution (Baverage) from the at least two blue pixels to the target pixel includes:
(a) assigning the M×M distance factor table to the M×M pixels of the color filter array, wherein the target pixel corresponds to a central distance factor that is located at the center of the M×M distance factor table, and the at least two blue pixels respectively correspond to two distance factors in the M×M distance factor table based on relative locations of the at least two blue pixels to the target pixel;
(b) multiplying the measured pixel information (B1) of each of the at least two blue pixels with a corresponding one of the two distance factors in the M×M distance factor table; and
calculating the blue-color contribution (Baverage) from the at least two blue pixels to the target pixel as a ratio of A to B, where A is a sum of the step (b) for each of the at least two blue pixels, and B is a sum of the distance factor (dfij) of each of the at least two blue pixels.

13. The method of claim 12, wherein the central distance factor has a highest value among the distance factors in the M×M distance factor table, and the farther a distance factor in the M×M distance factor table is located away from the central distance factor, the lower a value of the distance factor in the M×M distance factor table.

14. The method of claim 1, wherein the red-color pixel performance (fRij) of the target pixel is fRij=W·Raverage/(Raverage+Gaverage+Baverage).

15. The method of claim 1, wherein the corrected pixel information (Rfinal) of each of the at least two red pixels is a multiplication of the measured pixel information (Rij) of each of the at least two red pixels and the red-color correcting factor (TR).

16. The method of claim 1, wherein the green-color pixel performance (fGij) of the target pixel is fGij=W·Gaverage/(Raverage+Gaverage+Baverage).

17. The method of claim 1, wherein the corrected pixel information (Gfinal) of each of the at least two green pixels is a multiplication of the measured pixel information (Gij) of each of the at least two green pixels and the green-color correcting factor (TG).

18. The method of claim 1, wherein the blue-color pixel performance (fBij) of the target pixel is fBij=W·Baverage/(Raverage+Gaverage+Baverage).

19. The method of claim 1, wherein the corrected pixel information (Bfinal) of each of the at least two blue pixels is a multiplication of the measured pixel information (Bij) of each of the at least two blue pixels and the blue-color correcting factor (TB).