1. Field
This invention relates to the field of digital image processing, particularly the reduction of row noise in CMOS image sensors.
2. Related Art
Complementary Metal Oxide Semiconductor (CMOS) image sensors suffer from row noise that is usually due to the random noise that shifts the voltage level(s) in Analog-to-Digital Converter (ADC) and is a well know problem within the field of digital imaging. The shift in voltage level affects the ADC slope and ADC output by creating an offset consistent in the entire row of pixels. Row noise is seen as randomly distributed horizontal lines that appear to be relatively darker or lighter than the surrounding background. The noise becomes much more apparent to the eye due to the high correlation of pixels along the horizontal.
In U.S. patent (U.S. Pat. No. 6,646,681 B1) Macy, this problem is attacked by a row-by-row based offset correction mechanism. This method estimates the offset caused by random level shifts in the ADC converter by passing through the entire row and the several rows above and below to collect statistics as depicted in
Row noise reduction based on row-by-row correction is very sensitive to the errors in the estimation of the offset. Since the estimated offset is determined for an entire row at a time the possibility for visible image defects and error is increased. The estimation of the offset is susceptible to characteristics of other noise possibly present and the content of the scene being imaged. Any error will look noticeably worse because of the linear correlation of the corrected pixels and the human eyes tendency to impose linear patterns onto a image.
In addition to its high-sensitivity to offset estimation error, the row-by-row method of row-noise correction has several other significant drawbacks associated with a CMOS imager design, operation and image quality. Such row-noise reduction methods require that the entire row of pixels be stored in memory during a statistical analysis step thus increasing the amount of physical memory required, the time spent processing the data and the cost to manufacture. Since a row-by-row method passes all lines and pixels of a sensor as if they have uniform color response, it is inappropriate for use with CMOS sensors with Color Filter Arrays (CFA). CFAs, such as the so-called Bayer pattern, pass only one color at each pixel. Since most image sensors have a higher sensitivity to red light than to green or blue light, the response of a pixel with a red filter will be much higher than that of a pixel with a either a blue or green filter even if there is an equal level of red and blue/green signal. Due to this drawback, row-by-row noise correction can only be applied after an interpolation or demosaic step that can dramatically change the statistics required to estimate the offset.
A method for reducing row noise in complementary-metal-oxide-semiconductor (CMOS) image sensors is disclosed. Row noise offset is determined on a pixel-by-pixel basis by collecting statistics within a two-dimension region surrounding a central pixel. This methodology provides for two main advantages over determining row noise offset on a row-by-row basis; reduction of required on chip memory and reduction of sensitivity to offset estimation. The reduced requirement of on chip memory can lower the overall cost to produce the image sensor and the reduced sensitivity to offset estimation improves image quality by reducing the apparent correlation of row noise.
The current invention, in contrast to the row-by-row method of row-noise correction, compensates for row noise on a pixel-by-pixel basis using a two dimensional (2D) region of pixels surrounding each pixel from which to gather statistics. By working on a pixel-by-pixel basis, the current invention is effective on sensors with and without Color Filter Arrays (CFA's). In the case of a sensor with a CFA, the raw pre-interpolation data of one or more color components is surveyed to gather statistics from which offset estimates can be made. In one embodiment of the current invention, the Green channel data of a Bayer Pattern CFA, as depicted in
According to one embodiment of the current invention, a 2u+1 pixel by 2v+1 pixel region is defined around each pixel, thus alleviating the need to store the entire row of data in a line buffer. In
In one embodiment of the current invention as depicted
Offset(i)=Awindow(i)−Aline(i).
Once the estimated offset is calculated, it is applied to the Gi and the pixel at (i+1). In
Gi=Gi+Offset(i)
B(i+1)=B(i+1)+Offset(i)
In one embodiment of the current invention the algorithm for estimating the offset for each pixel first finds the averages of Green pixels in each row separately inside the region Wi, i.e. A1, . . . , A(2u+1), where A1 is the average of Green pixels in the top row of Wi, and A(2u+1) is the average of Green pixels at the bottom row of the Wi. Then the median, Md(i), of A1, . . . , A(2u+1) values is found.
Md(i)=median(A1, . . . , A(2u+1))
The offset is then estimated to be:
Offset(i)=Md(i)−A(u+1)(i)
Once the estimated offset is calculated, it is applied to the Gi and the pixel at (i+1) as described above.
In one embodiment of the current invention an additional “Edge Detection Step and Offset Update” step is added after the algorithm for estimating the offset of each pixel as depicted in
Offset(i)=α*Offset(i)
Where α is a predetermined value that controls the blur at the edges. Setting α to zero will leave the Gi and the pixel at (i+1) as they are.
Foregoing described embodiments of the invention are provided as illustrations and descriptions. They are not intended to limit the invention to precise form described. In particular, it is contemplated that functional implementation of invention described herein may be implemented equivalently in hardware, software, firmware, and/or other available functional components or building blocks, and that networks may be wired, wireless, or a combination of wired and wireless. Other variations and embodiments are possible in light of above teachings, and it is thus intended that the scope of invention not be limited by this Detailed Description, but rather by Claims following.
Number | Name | Date | Kind |
---|---|---|---|
4783840 | Song | Nov 1988 | A |
4975864 | Sendall et al. | Dec 1990 | A |
5471240 | Prager et al. | Nov 1995 | A |
6646681 | Macy et al. | Nov 2003 | B1 |
6718069 | Mollov et al. | Apr 2004 | B2 |
7084912 | Chieh | Aug 2006 | B2 |
20060192864 | Mauritzson | Aug 2006 | A1 |