The disclosed embodiments relate generally to digital imaging and, more particularly, to noise reduction methods and systems for imaging devices.
Imagers typically consist of an array of pixel cells containing photosensors. Each pixel cell produces a signal corresponding to the intensity of light impinging on its photosensor when an image is focused on the array by one or more lenses. These signals may be stored in a memory and displayed on a monitor, manipulated by software, printed, or otherwise used to provide information about the optical image. The magnitude of the signal produced by each pixel is substantially proportional to the amount of light impinging on its photosensor.
Several kinds of imagers are generally known. Complementary metal-oxide-semiconductor (“CMOS”) imagers and charge coupled device (“CCD”) imagers are among the most common. CMOS imagers are discussed, for example, in U.S. Pat. No. 6,140,630, U.S. Pat. No. 6,204,524, U.S. Pat. No. 6,310,366, U.S. Pat. No. 6,326,652, and U.S. Pat. No. 6,376,868, which are all commonly assigned to Micron Technology, Inc.
To allow an imager to capture a color image, the pixel cells must be able to separately detect color values of light, for example, red (R) light, green (G) light, and blue (B) light. A color filter array is typically placed in front of the array of pixel cells so each pixel cell measures light of the color of its respective filter. The most common type of color filter array, often referred to as a “Bayer filter,” is described in U.S. Pat. No. 3,971,065. Bayer filters consist of alternating red and green filters in a first row and alternating blue and green filters in a second row. This pattern is repeated throughout the array. Thus, in an imager employing a Bayer filter, one-half of the pixels are sensitive to green light, one-quarter are sensitive to red light, and the remaining one-quarter are sensitive to blue light.
To provide a color image, however, red, green, and blue values are required for every pixel location. Thus, the two “missing” color values at each pixel location must be estimated. For example, a pixel underlying a red portion of a Bayer filter directly measures red light but does not measure blue and green light. Therefore, blue and green values must be estimated for this red pixel location. Similarly, red and green values must be estimated for blue pixel locations, and red and blue values must be estimated for green pixel locations. This estimation process is often referred to as “demosaicing.”
New imager designs often contain more pixel cells than previous generation imagers in order to provide increased image resolution. To maintain small imager size, however, the size of each pixel cell is often reduced from one generation to the next. This reduces the photosensitive area associated with each pixel cell, making the image sensor more susceptible to noise, especially under low light conditions. Noise can be reduced by applying mathematical transforms, often called “filters,” to pixel values.
Prior art noise reduction techniques separately filter red, green, and blue pixel values. This can result in blurring or inefficient noise reduction. Therefore, an improved method of reducing noise in Bayer-domain images is desirable.
In the following detailed description, reference is made to the accompanying drawings, which form a part hereof and show by way of illustration specific embodiments of the invention. These embodiments are described in sufficient detail to enable those skilled in the art to practice them, and it is to be understood that the disclosed embodiments may be modified and that other embodiments may be utilized. Moreover, the progression of steps described herein is merely an example. The sequence of steps is not limited to that set forth herein and may be changed or reordered, with the exception of steps necessarily occurring in a certain order.
Embodiments describe noise reduction methods and systems for imaging devices having a pixel array having a plurality of pixels, each pixel representing one of a plurality of captured colors and having an associated captured color pixel value. Noise reduction methods filter a captured color pixel value for a respective pixel based on the captured color pixel values associated with pixels in a window of pixels surrounding the respective pixel. Disclosed embodiments provide a low cost noise reduction filtering process that takes advantage of the correlations among the red, green and blue color channels to efficiently remove noise while retaining image sharpness. A noise model can be used to derive a parameter of the noise reduction methods. The following example embodiments describe methods, devices, and systems for reducing noise in a Bayer-domain image having a plurality of red, blue, and green pixels representing the red, blue, and green colors of a Bayer filter, respectively.
The filtering process 100 (
The filtering process 100 for the red subject pixel 202 at step 101 comprises estimating a missing green value for each of the fifteen red pixels in the surrounding window 201.
According to
that is, the green value G at location (i,j) is the average of the green pixel values immediately to the left, right, above and below the red pixel at location (i,j).
Alternatively, if the red pixel is located on the top row of window 201 (e.g., red pixel 203), then the missing green value can be estimated as follows:
that is, the green value G at location (i,j) at the top of a window is the average of the green pixel values immediately to the left, right, and below the red pixel at location (i,j), and where the green pixel immediately below is weighted twice as heavily as the green pixels immediately to the left and right.
If the red pixel is located on the corner of window 201 (e.g., red pixel 204), then the missing green value can be estimated as follows:
that is, the green value G at location (i,j) at a corner of the window is the average of the green pixel values immediately to the left, right, and above the red pixel at location (i,j), and where the green pixel immediately above is weighted twice as heavily as the green pixels immediately to the left and right. Even though the green pixel immediately to the right of red pixel 204 is located outside of window 201, this green pixel is available during the demosaic process because the pixel circuits of an entire row in an imaging sensor are operated on at the same time.
In another embodiment, the missing green value for a red pixel is estimated by copying the sensed green value associated with the green pixel immediately to the left of the red pixel. As shown in
G(i,j) =G(i,j−1) (4)
that is, the green value G at location (i,j) is equal to the sensed green value associated with the green pixel immediately to the left of the red pixel at location (i,j). The demosaicing algorithm illustrated in
In yet another embodiment, the missing green value for a red pixel is estimated by copying the sensed green value associated with the green pixel immediately to the right of the red pixel. Other methods of estimating a green value G for a red pixel at location (i,j) can also be used.
Once the green value for each red pixel in the window surrounding a red subject pixel is estimated at step 101, a filtered difference value for the red subject pixel at location (r,c) is determined at step 102, as follows:
where R is the set of red pixels in the window, DR(i,j) denotes the difference value associated with a red pixel at location (i,j), and a(i,j) denotes a filter coefficient associated with location (i,j).
The difference value associated with the red pixel at location (i,j) is determined as follows:
D
R(i,j)=R(i,j)−G(i,j) (6)
that is, the difference value is the difference between the sensed red pixel value and the estimated green value for the red pixel at location (i,j).
The filter coefficients a(i,j) for Equation (5) are defined as follows:
where σr is a red channel noise level and p is a scaling coefficient. The red channel is the analog color digital processing channel for a red pixel and the red channel noise level σr can be derived using the noise model disclosed with reference to Equation (23). The scaling coefficient p is set to 3 in this example embodiment and may be set to other values depending on the desired sensitivity of the red pixel noise reduction filter.
Determination of a filtered sum value for the red subject pixel at location (r,c) at step 103 is similar to that of the filtered difference value:
where R is the set of red pixels in the window, SR(i,j) denotes the sum value associated with a red pixel at location (i,j), and b(i,j) denotes a filter coefficient associated with location (i,j).
The sum value associated with the red pixel at location (i,j) is determined as follows:
S
R(i,j)=R(i,j)+G(i,j) (9)
that is, the sum value is the sum of the sensed red pixel value and the estimated green value for the red pixel at location (i,j).
The filter coefficients b(i,j) for Equation (8) are defined as follows:
where σr is the same red channel noise level used in Equation (7) and q is a scaling coefficient, which is set to 3 in this example embodiment.
After determining the filtered difference value and the filtered sum value at steps 102 and 103, respectively, a replacement red value for the red subject pixel at location (r,c) can be obtained at step 104 as follows:
where {tilde over (D)}R(r,c) denotes the filtered difference value determined using Equation (5), and {tilde over (S)}R(r,c) denotes the filtered sum value determined using Equation (8). Once determined, the replacement red value {tilde over (R)}(r,c) replaces the sensed red value associated with the red subject pixel at location (r,c).
The filtering process for blue pixel noise reduction is similar to that for the red pixel. To process a blue subject pixel, a 5×9 surrounding window in the Bayer domain centered about the blue subject pixel is used.
Turning to
In another embodiment, the missing green value for a blue pixel is estimated by copying the sensed green value associated with the green pixel immediately to the right of the blue pixel. As shown in
G(i,j)=G(i,i+1) (12)
that is, the green value G at location (i,j) is equal to the sensed green value associated with the green pixel immediately to the right of the blue pixel at location (i,j). Other methods of estimating a green value for a blue pixel at location (i,j) can also be used.
Once a green value is estimated for each blue pixel in the window surrounding a blue subject pixel, a filtered difference value for the blue subject pixel at location (r,c) is determined at step 402, as follows:
where B is the set of blue pixels in the window, DB(i,j) denotes the difference value associated with a blue pixel at location (i,j), and a(i,j) denotes a filter coefficient associated with location (i,j).
The difference value associated with the blue pixel at location (i,j) is determined as follows:
D
B(i,j)=B(i,j)−G(i,j) (14)
that is, the difference value is the difference between the sensed blue pixel value and the estimated green value for the blue pixel at location (i,j).
The filter coefficients a(i,j) for Equation (13) are defined as follows:
where σb is a blue channel noise level and p is a scaling coefficient. The blue channel is the analog color digital processing channel for a blue pixel and the blue channel noise level σb can be derived using the noise model disclosed with reference to Equation (23). The scaling coefficient p is set to 3 in this example embodiment and may be set to other values depending on the desired sensitivity of the blue pixel noise reduction filter.
Determination of a filtered sum value for the blue subject pixel at location (r,c) at step 403 is similar to that of the filtered difference value:
where B is the set of blue pixels in the window, SB(i,j) denotes the sum value associated with a blue pixel at location (i,j), and b(i,j) denotes a filter coefficient associated with location (i,j).
The sum value associated with the blue pixel at location (i,j) is determined as follows:
S
B(i,j)=B(i,j)+G(i,j) (17)
that is, the sum value is the sum of the sensed blue pixel value and the estimated green value for the blue pixel at location (i,j).
The filter coefficients b(i,j) for Equation (16) are defined as follows:
where σb is the same blue channel noise level as that used in Equation (15) and q is a scaling coefficient, which is set to 3 in this example embodiment.
After determining the filtered difference and sum values, a replacement blue value for the blue subject pixel at location (r,c) is obtained at step 404 as follows:
where {tilde over (D)}B(r,c) denotes the filtered difference value calculated using Equation (13), and {tilde over (S)}B(r,c) denotes the filtered sum value calculated using Equation (16). Once determined, the replacement blue value replaces the sensed blue value for the blue pixel at location (r,c).
The filtering process for green pixel noise reduction is different from the filtering processes for red and blue pixels. To process a green subject pixel, green pixels within a 5×5 surrounding window in the Bayer domain centered about the green subject pixel are used.
where G is the set of green pixels in the window including the green subject pixel at location (r,c), G(i,j) denotes the sensed green value at row i={−2, 0, 2} and column j={−2, 0, 2}, and w(i,j) denotes a filter coefficient associated with location (i,j) defined as follows:
where σg is a green channel noise level and c1, c2 and c3 are scaling coefficients. The green channel is the analog color digital processing channel for a green pixel and the green channel noise level σg can be derived using the noise model disclosed below with reference to Equation (23). Scaling coefficients c1, c2 and c3 are set to equal 1, 2 and 3, respectively, in this example embodiment and each coefficient may be set to other values depending on the desired sensitivity of the green pixel noise reduction filter.
Noise level parameters σr, σb and σg determine the filter strength for the red, blue and green noise reduction filtering processes described above. Noise level parameters can be provided as system parameters that depend on sensor characteristics, analog gains, and/or exposure time. Although the following embodiment for determining a noise level parameter is described with reference to use with a CMOS imaging sensor, this is merely one example sensor that may be used. The embodiment described herein may also be used with other sensors, including those supporting CCD, and other sensors having a different readout architecture.
Because the quantity of charge collected in any given color pixel in a CMOS imaging sensor follows the Poisson distribution model, the standard deviation of the charge collected is determined as follows:
σ=K·°{square root over (I)} (22)
where K is a noise model coefficient and the noise level σ for the analog color digital processing channel for the color pixel is proportional to I, the square root of the number of incident photons striking the pixel.
Accordingly, noise level parameters for the noise reduction filtering processes described above can be determined using the following noise model:
σi=max(σ0,K·√{square root over (Ai·Ii)}) (23)
where i={red channel, blue channel, green channel}, σ0 is a noise floor, K is a noise model coefficient, σi is a noise level, Ii is an image pixel intensity, and Ai is an analog gain associated with the analog color digital processing color channel i.
where read_noise is a read noise expressed in e−, conv_gain is a conversion gain expressed in V/e−, sat_signal is a saturation signal expressed in V, and ADC_bit_depth is an analog-to-digital bit depth.
For the CMOS architecture, however, each column contains sampling and hold circuitry 907 that read a pixel reset signal Vrst and a pixel image signal Vsig for selected pixel circuits. The sampling and hold circuitry 907 contains sampling capacitors that have the capacity to store the Vrst and Vsig signals. A differential signal (Vrst−Vsig) is produced by differential amplifier 908 for each pixel. Each of the differential signals are then digitized by the analog-to-digital converter 909. The analog-to-digital converter 909 supplies digitized color pixel signals to an image processor 910, which forms a digital image output. The image processor 910 is responsible for image and color processing, which includes performing pixel processing operations, such as, for example, noise reduction filtering in accordance with the disclosed embodiments. Noise reduction filtering methods can be implemented by the image processor 910, for instance, before, during, or after the demosaic process. In one example embodiment, the demosaic process provides estimated green values for red pixels in a window surrounding a red subject pixel.
Although the imaging device 900 has been described with reference to use with a CMOS imaging sensor, this is merely one example sensor that may be used. Embodiments described herein may also be used with other sensors, including those supporting CCD, and other sensors having a different readout architecture. Additionally, raw imaging data can be output, stored and filtered elsewhere, for example, in a system as described in relation to
As shown in
Disclosed embodiments provide a low cost noise reduction filtering process that takes advantage of the correlations among the red, green and blue color channels to efficiently remove noise while retaining image sharpness. The disclosed embodiments can be implemented in hardware or software at low cost. That is, the methods described above can be implemented in an image processing circuit, which can be implemented as, for example, hardware logic, a programmed processor, a combination of the two, or with other signal processing circuits. The methods described above can be implemented in computer instructions and stored in a computer readable medium to perform the steps outlined above.
While embodiments have been described in detail in connection with the examples known at the time, it should be readily understood that they are not limited to such disclosed embodiments. Rather, they can be modified to incorporate any number of variations, alterations, substitutions, or equivalent arrangements not heretofore described. For instance, the noise reduction filtering methods may be used with color filters other than the Bayer filter, window sizes other than a rectangle (e.g., 5×9) and square (e.g., 5×5) may be used to determine a filtered color value for a subject pixel, and the scaling coefficient for a filter coefficient may be set to values other than 1, 2, or 3 depending on the desired sensitivity of the noise reduction filter. Accordingly, the claimed invention is not to be seen as limited by the foregoing description, but is only limited by the scope of the attached claims.