The invention relates generally to the field of solid state imager devices, and more particularly to a method and apparatus for noise reduction in a solid state imager device.
Solid state imagers, including charge coupled devices (CCD), CMOS imagers and others, have been used in photo imaging applications. A solid state imager circuit includes a focal plane array of pixel cells, each one of the cells including a photosensor, which may be a photogate, photoconductor or a photodiode having a doped region for accumulating photo-generated charge.
One of the most challenging problems for solid state image sensors is noise reduction, especially for sensors with a small pixel size. The effect of noise on image quality increases as pixel sizes continue to decrease and may have a severe impact on image quality. Specifically, noise impacts image quality in smaller pixels because of reduced dynamic range. One of the ways of solving this problem is by improving fabrication processes; the costs associated with such improvements, however, are high. Accordingly, engineers often focus on other methods of noise reduction.
Two exemplary methods that may be used for image denoising are briefly discussed herein. The first method includes the use of local smoothing filters, which work by applying a local low-pass filter to reduce the noise component in the image. Typical examples of such filters include averaging, medium and Gaussian filters. One problem associated with local smoothing filters is that they do not distinguish between high frequency components that are part of the image and those created due to noise. As a result, these filters not only remove noise but also blur the edges of the image.
A second group of denoising methods work in the spatial frequency domain. These methods typically first convert the image data into a frequency space (forward transform), then filter the transformed image and finally convert the image back into the image space (reverse transform). Typical examples of such filters include DFT filters and wavelength transform filters. However, the utilization of these filters for image denoising is impeded by the large volume of calculations required to process the image data. Additionally, block artifacts and oscillations may result from the use of these filters to reduce noise. Further, these filters are best implemented in a YUV color space (Y is the luminance component and U and V are the chrominance components). Accordingly, there is a need and desire for an efficient image denoising method and apparatus which do not blur the edges of the image.
The invention, in various exemplary embodiments, relates to a method and apparatus that allows for image denoising in an imaging device.
In accordance with exemplary embodiments of the invention, a method and implementing apparatus selects an image correction kernel, which includes neighboring pixel pairs for an identified pixel, determines average output signal values for pixel pairs in the correction kernel, determines the difference between the average values and the identified pixel's value, compares the difference values to a threshold and incorporates selected average pixel pair values into the identified pixel's value for pixel pairs having difference values equal to or less than a threshold value.
The foregoing and other advantages and features of the invention will be more readily understood from the following detailed description of the invention provided below with reference to the accompanying drawings, in which:
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 in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention, and it is to be understood that other embodiments may be utilized, and that structural, logical, and electrical changes may be made without departing from the spirit and scope of the present invention. The progression of processing steps described is exemplary of the embodiments of the invention; however, the sequence of steps is not limited to that set forth herein and may be changed as is known in the art, with the exception of steps necessarily occurring in a certain order.
The term “pixel,” as used herein, refers to a photo-element unit cell containing a photosensor device and associated structures for converting photons to an electrical signal. For purposes of illustration, a single representative three-color pixel array is illustrated in the figures and description herein. However, the invention may be applied to monochromatic imagers as well as to imagers for sensing fewer than three or more than three color components in an array. Accordingly, the following detailed description is not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims.
In addition, it should be understood that, taken alone, a pixel generally does not distinguish one incoming color of light from another and its output signal represents only the intensity of light received, not any identification of color. However, pixels 80, as discussed herein, are referred to by color (i.e., “red pixel,” “blue pixel,” etc.) when a color filter 81 (
Figures,
In the illustrated examples, it is assumed that the pixel arrays 100, 110 are associated with a Bayer pattern color filter array 82 (
According to exemplary embodiments of the invention, to denoise pixels, the present invention utilizes signal values of the four nearest neighbor pairs of the identified pixel 32a, 32b. The identified pixel 32a, 32b is the pixel currently being processed. The neighboring pixels are collectively referred to herein as an image kernel, shown in
In
With reference to
At an initial step 201, the pixel 32a being processed is identified. Next, at step 202 the kernel 101a is selected/identified. After the associated kernel 101a is selected for the pixel 32a, each of the kernel pixels symmetrically located around the pixel 32a are paired and the average value Apair for each pair is calculated during step 203. The pixel pairs for kernel 101a are 10 and 54; 12 and 52; 30 and 34; and 50 and 14. As can be seen, the pairs comprise pixels that are on opposite sides of the identified pixel 32a. For example, for pixel pair 12, 52, the average value A1252=(P12+P52)/2 is calculated.
At step 204, for each pair of pixels, a difference value Dpair between the pixel pair average value and the pixel being processed 32a is computed. For example, for pixel pair 12, 52, the difference D1252=|A1252−P32| is calculated. Next at step 205, the difference values Dpair of all pairs are compared with a threshold value TH. The threshold value TH may be preselected, for example, using noise levels from current gain settings, or using other appropriate methods.
Next at step 206, the average values Apair of the pixel pairs having difference values Dpair less than or equal to the threshold value TH are averaged with the pixel value P32a. For example, if only difference values D1252, D3034 for pixel pairs 12, 52 and 30, 34 are less than or equal to the threshold TH, the average values A1252 and A3034 are added to P32a and the sum is divided by 3 to denoise the value of P32a. In one exemplary embodiment, the value of P32a is calculated using four average values and/or the value original value of P32a when all four difference values are less than or equal to the threshold. In this embodiment, if the difference value Dpair is less than or equal to the threshold, the average value of the pair is added to the sum otherwise the value of P32a is added instead. Accordingly, if all four of the pairs of nearest neighbors are less than or equal to the threshold, the original value of P32a is not used to calculate the denoised value of P32a. However, if, for example, only two of the difference values are less than or equal to the threshold, the value of P32a is used two times to calculate the denoised value of P32a (i.e., P32a=Apair1+Apair2+P32a+P32a). Generally, averaging a number of values which is to a power of two (e.g., averaging 2, 4, 8, values etc.) is easy to calculate and apply in imagers. Accordingly, it easier to implement the invention by averaging a number of values which is a power of two. However, the invention is not limited to these implementations and may be implemented using any suitable number of values.
The method described herein may be carried out on each pixel signal as it is processed. As pixels values are denoised, the values of previously denoised pixels may be used to denoise other pixel values. Thereby, when the method described herein and the values of previously denoised pixels are used to denoise other pixels, the method and apparatus is implemented in a partially recursive manner. However, the invention is not limited to this implementation and may be implemented in a fully recursive (pixels are denoised using values from other denoised pixels) or non-recursive manner (no pixels having been denoised are used to denoise subsequent pixels).
The method 200 described above may also be implemented and carried out, as discussed above, on pixel 32b and associated image correction kernel 101b. For example, in step 202 the kernel 101b is selected/identified. After the associated kernel 101b is selected for pixel 32b, each of the kernel pixels symmetrically located around pixel 32b are paired and the average value Apair for each pair is calculated during step 203. The pixel pairs for kernel 101b are 30 and 34; 12 and 52; 21 and 43; and 41 and 23. The remaining steps 204-206 are carried out as discussed above.
The above described embodiments may not provide sufficient denoising to remove spurious noise (i.e., noise greater than 6 standard deviations). Accordingly, the invention is better utilized when implemented after the image data has been processed by a filter which will remove spurious noise.
The is not restricted to the above described embodiments. For example, a program embodying the method may be stored on a carrier medium which may include RAM, floppy disk, data transmission, compact disk, etc. and then be executed by an associated processor. For example, the invention may be implemented as a plug-in for existing software applications or it may used on its own. The invention is not limited to the carrier mediums specified herein and the invention may be implemented using any carrier medium as known in the art.
A sample and hold circuit 261 associated with the column driver 260 reads a pixel reset signal Vrst and a pixel image signal Vsig for selected pixels of the array 240. A differential signal (Vrst−Vsig) is produced by differential amplifier 262 for each pixel and is digitized by analog-to-digital converter 275 (ADC). The analog-to-digital converter 275 supplies the digitized pixel signals to an image processor 280 which forms and may output a digital image. The image processor 280 has a circuit that is capable of performing the method 200 (
System 1100, for example a camera system, generally comprises a central processing unit (CPU) 1102, such as a microprocessor, that communicates with an input/output (I/O) device 1106 over a bus 1104. Imaging device 300 also communicates with the CPU 1102 over the bus 1104. The processor-based system 1100 also includes random access memory (RAM) 1110, and can include removable memory 1115, such as flash memory, which also communicate with the CPU 1102 over the bus 1104. The imaging device 300 may be combined with a processor, such as a CPU, digital signal processor, or microprocessor, with or without memory storage on a single integrated circuit or on a different chip than the processor.
While the invention has been described in detail in connection with exemplary embodiments known at the time, it should be readily understood that the invention is not limited to such disclosed embodiments. Rather, the invention can be modified to incorporate any number of variations, alterations, substitutions or equivalent arrangements not heretofore described, but which are commensurate with the spirit and scope of the invention. For example, the methods can be used with pixels in other patterns than the described Bayer pattern, and the correction kernels would be adjusted accordingly. In addition, the invention is not limited to the type of imager device in which it is used. Thus, the invention is not to be seen as limited by the foregoing description, but is only limited by the scope of the appended claims.