The invention relates to the correction of couplet defects in image sensors. The term couplet defect is used herein to denote the presence of two defective pixels adjacent each other in any direction in a given image plane, which can be a color plane, for example.
To produce a color sensitive image sensor, the pixels in the image sensor's pixel array are made to have different sensitivities to different frequencies of incident light, with the chosen frequencies corresponding to particular colors. A common way of achieving this is to overlay the image sensor's pixel array with a color filter array so that each pixel is overlaid with a material with specific transmission characteristics so that the pixel can be thought of as being responsive to a particular color. Usually one color is overlaid per pixel. As a short-hand notation, a red pixel is referred to as a pixel that is sensitive to incident light having a frequency in the red part of the visible spectrum of light, with similar notations used for other colors. The specific frequency responses will vary according to the type of material used, among other factors.
There are various well known patterns to use when depositing the color filter material. For each pattern, it is possible and common to separate the output of the sensor into groups of component colors. Each of these groups forms a color plane. The number of color planes and also how they are mapped onto the sensor is dependent on the color pattern used.
Unless specifically indicated otherwise, the term neighboring pixels as used herein is taken to mean that the two pixels are adjacent in a given color plane to which they both belong, rather than necessarily being physically adjacent.
To illustrate this point,
Also, pixels which are not neighbors on the image plane will become neighbors in color space. For example, G(2,2) and G(3,2) are not physically adjacent on the image sensor, but are neighbors after separation into color planes.
Various manufacturers use four color filters in a 2×2 grid. One of the greens is replaced with a similar, but slightly different color. This increases the color performance of the system but with only a marginal degradation in luminance detail. This technique is illustrated in
As well has 2×2 structures of color, it is also possible to have stripes of color. An example is shown in
Image sensors commonly have defective pixels. If the number of these is small, their effect can be minimized electronically. This can be done for isolated pixel defects by use of a filtering algorithm during use of the image sensor, i.e., on the fly (reference EP1003332A). Another such technique (reference EP05250101.2) uses a scythe filter which operates over a 3×3 pixel kernel and sorts the pixels into an order based on their magnitude. Essentially, defective pixels are considered to be stuck at either dark or light, and therefore will lie at either end of a magnitude sorted list. These can then be replaced with the nearest value pixel.
However, in the case of a couplet defect, both pixels are within the kernel of operation of the filtering algorithm, and the defects are not corrected, as the replacement pixel is of the same magnitude as the identified defective pixel.
In view of the foregoing background, an object of the present invention is to overcome or mitigate problems associated with a couplet defect.
This and other objects, advantages and features in accordance with the present invention are provided by a method of correcting for pixel defects in the output of an image sensor comprising the steps of performing a preliminary filtering operation which operates on couplet defects wherein two adjacent pixels in a given image plane are defective. The preliminary filtering operation may comprise replacing the signal value of a first pixel in the couplet with a corrected signal value, and thereafter performing a main filtering operation on the signal resulting from the preliminary filtering operation.
The corrected signal value in the preliminary filtering operation may be the value of a neighboring non-defective pixel. Performing a preliminary filtering operation may comprise identifying the scanning direction of a readout process, and based on the identification, choosing a pixel value from a pixel preceding the first pixel in the direction of scanning as the corrected signal value.
The pixel preceding the first pixel in the direction of scanning may be defined by a coordinate shift. The coordinate shift with respect to the first pixel may correspond to a translation in the opposite direction along the row to the direction in which the rows are sequentially being scanned.
Performing a preliminary filtering operation may comprise, for a couplet in which the first pixel is on a border of the origin side in the direction of scanning, choosing a pixel value from a pixel proceeding the first pixel in the direction of scanning as the corrected signal value. The pixel proceeding the first pixel in the direction of scanning may be defined by a coordinate shift.
The coordinate shift with respect to the first pixel may correspond to a translation along the direction in which the rows are being scanned. Couplet defects may be identified at manufacture and their location may be stored in a memory. The memory may comprise a non-volatile memory forming part of the image sensor.
The main filtering operation may comprise obtaining a central pixel value and a plurality of neighboring pixel values, determining the average value of each opposing pair of pixel values, comparing each average value with the central pixel value, and replacing the central pixel value with the average value which is closest to the central pixel value.
A second aspect of the invention is directed to a signal processing system for use with an image sensor having a pixel array. The system may comprise preliminary filter means or preliminary filter for receiving image data and main filter means or main filter connected to receive the output of the preliminary filter.
The preliminary filter may be operative to perform a preliminary filtering operation which operates on couplet defects wherein two adjacent pixels in a given image plane are defective. The preliminary filtering operation may comprise replacing the signal value of a first pixel in the couplet with a corrected signal value. The main filter may be operative to perform a main filtering operation on the signal resulting from the preliminary filtering operation.
The corrected signal value in the preliminary filtering operation may be the value of a neighboring non-defective pixel. The preliminary filter may be configured for identifying the scanning direction of a readout process, and for choosing a pixel value from a pixel preceding the first pixel in the direction of scanning as the corrected signal value.
Choosing a pixel value may comprise defining a coordinate shift. The coordinate shift with respect to the first pixel may correspond to a translation in the opposite direction along the row to the direction in which the rows are sequentially being scanned.
The preliminary filter may be configured for identifying whether a couplet is on a border of the origin side in the direction of scanning, and for choosing a pixel value from a pixel proceeding the first pixel in the direction of scanning as the corrected signal value. Choosing a pixel value from a pixel proceeding the first pixel in the direction of scanning may comprise defining a coordinate shift.
The coordinate shift with respect to the first pixel may correspond to a translation along the direction in which the rows are being scanned. The system may further comprise a memory for storing locations of couplet defects. The memory may comprise a non-volatile memory for forming part of the image sensor.
The main filter may carry out the steps of obtaining a central pixel value and a plurality of neighboring pixel values, determining the average value of each opposing pair of pixel values, comparing each average value with the central pixel value, and replacing the central pixel value with the average value which is closest to the central pixel value.
Another aspect of the invention is directed to an image sensor comprising a pixel array, control means or a controller for operating the pixel array to produce an image data stream, and a system for operating on the image data stream. The image sensor may be formed as a single chip. In further aspects, a corresponding mobile communications device, webcam, optical mouse or video camera may be provided.
An embodiment of the invention will now be described, by way of example only, with reference to the drawings, in which:
Referring to
It will be assumed in the following description that the image source 10 comprises red, green and blue pixels arranged in a Bayer pattern. This is by way of example only, and it will be apparent that the invention may be applied to other pixel patterns and to black-and-white image signals.
The image signal from the image source 10 is fed sequentially through three circuits: a processing circuit 12, a preliminary filter 14, and a main filter 16. The last of these may be any known arrangement for removing the effect of defective pixels. One example is the scythe filter as described in EP05250101.2. The operation of this can be summarized as comprising the steps of obtaining a central pixel value and a plurality of neighboring pixel values; determining the average value of each opposing pair of pixel values; comparing each average value with the central pixel value; and replacing the central pixel value with the average value which is closest to the central pixel value.
Each of the circuits 12-16 is provided with a register bank 18 controlled by a host/arbitration unit 20 via an imaging control bus 22. The processing circuit 12 operates to read out image data from the image source 10 and convert this into a standard image or video signal.
During this conventional operation, the pixel array is scanned for readout in a raster fashion. It is to be appreciated that the terms describing the relative positions of pixels in an array are a normal choice adopted for convenience of description. In general, the pixels are thought of as being arranged in rows and columns, and the array is described as having top and bottom rows and left and right sides. The following description refers to a notional pixel array as viewed from the perspective of the image source in
In a normal course of operation, successive rows of pixels are scanned from a left side (the origin side) of the pixel array to a right side (the destination side) of the pixel array, progressing from top to bottom. It is also possible for successive columns to be scanned in this way.
However, sometimes the user of a device that incorporates the image sensor wishes to read out a flipped image, i.e., one that is inverted horizontally, vertically or both. During a horizontal flip mode, the pixel array is instead read out from the right side (the origin side) to the left side (the destination side), again from top to bottom, while during a vertical flip mode the pixel array is instead read out from bottom to top.
The switching of the readout between regular operation and one or more of horizontal and vertical flip modes is controlled in a well known manner by varying timing control signals that are sent to the readout circuitry.
Before shipping an image sensor to a customer, the batch of sensors need to be tested to make sure they are compliant with various requirements. As part of these known test procedures, pixel defects are identified. This may be, for example, by locating pixels which remain at a dark or a light value under varying conditions. Single defects can be removed by the above mentioned filtering techniques, but the existence of too many couplet defects means that the image sensor has to be discarded.
The preliminary filter 14 of
The preliminary filter 14 acts to replace a first defective pixel value in the couplet with a corrected pixel value, derived from a neighboring pixel value in the row of the pixel value to be replaced, and preferably by a duplication of the neighboring pixel's value as that of the replaced pixel value. The other defective pixel value in the couplet is ignored by the preliminary filter, leaving it to be corrected by the more sophisticated and accurate main filter 16.
The neighboring pixel value is chosen to be a value that is known not to represent a defective pixel, that is, the value is valid for the purposes of the preliminary filter 14. It is important that the preliminary filter 14 acts on the first pixel value of the couplet because of the sequential nature of the filters 14, 16. The filtered outputs of the preliminary filter 14 are the inputs for the main filter 16, and so as the pixel array is scanned, the first pixel value in the couplet needs to be dealt with so that the second value is replaced correctly by the main filter 16.
In a first embodiment, the pixel locations of both pixels in the couplet are stored to be input to the preliminary filter 14, preferably along with the locations of other single defects. The neighboring pixel value is then known to be valid because its location is not stored.
In an alternative embodiment, the pixel locations of only one pixel in the couplet are stored to be input to the preliminary filter 14. This pixel value is taken from the first pixel in the couplet, that is, the pixel of the couplet that is read out before the other pixel of the couplet. In this sense, the first pixel in the couplet is thought of as preceding the other pixel in the couplet.
These and further aspects will now be discussed with reference to the specific embodiment shown in
The preliminary filter 14 operates to replace the first pixel value with a pixel value 30 in the same color plane that precedes the first pixel of the couplet, usually the adjacent pixel in that row as shown in
The second pixel 28 is then left uncorrected in order to be dealt with by the main filter 16. The correction by the preliminary filter 14 is an approximate value, and so it would not be desirable to correct for both pixel values in the couplet in this way. However, one of the defective pixel values needs to be corrected in order for the main filter 16 to perform its function.
For a specific couplet, the identity of the first pixel may depend on the direction of scanning, and this needs to be taken into account by the preliminary filter 14. This is illustrated in
However, if the preliminary filter 14 is still to look two pixels to the left, the pixel 26 would be chosen as the replacement value, which would not give the desired effect. The predetermined coordinate position from which the preliminary filter 14 obtains the replacement pixel value is therefore in this case set to be equivalent to shifting two pixels to the right, to the adjacent pixel value 36 in the same color plane as the first pixel 28. Thus, the integrity of the preliminary filter is maintained.
The direction 32, 34 of scanning is encoded in a command given to the readout circuitry in a known manner. This command signal is also relayed as an input to the preliminary filter 14. On the basis of the command signal, the preliminary filter 14 then switches to a mode to select a differing predetermined coordinate shift in order to ensure that the chosen pixel to replace the first pixel value in the couplet is taken from the preceding pixel value in the relevant color plane, rather than from the proceeding pixel value, which can be the second pixel in the couplet.
This system is to be implemented the same way regardless of the orientation of the couplet, that is, whether the pixels in the couplet are horizontally, vertically or diagonally arranged. In any of the cases, the first pixel is still defined in the same way and the preliminary filter 14 operates in the same manner.
In a further possible modification, the preliminary filter 14 can be improved by taking border effects into account. The situation for a regular scan, with the direction of scanning shown by arrow 32, is shown in
It can be seen from
Similarly, border effects can be taken into account for a flipped scan, as shown in
It can be seen from
Therefore, in order to take into account border effects for a flipped scan pattern, the preliminary filter is further encoded with an algorithmic step such that if the horizontal coordinate of the pixel is equal to the highest row number (indicating a right side border pixel), the predetermined coordinate shift is set to be four pixels to the left. Otherwise, the coordinate shift is two to the right as normal for flipped scanning.
While the above examples have been described with reference to rows of the pixel array, it is to be appreciated that the above could also be applied in a similar fashion to the array's columns, wherein the right and left borders would be referred to instead as top and bottom borders.
As mentioned above, the locations of the defective pixel values which are discovered during manufacture form the basis for defining the scope of operation of the preliminary filter 14. These locations can be stored in any suitable memory 24, either off chip or on chip. The memory 24 may suitably comprise an on-chip non-volatile memory (NVM) 24. The NVM only needs to be large enough to store the locations of the pixels in the couplets. When the image sensor is operated, the coordinates of the first pixels of any defective couplets are copied into local register space on power-up. The first pixel locations will be a one-half subset of the locations stored on the memory 24. When the image sensor is to be operated in a regular scanning mode, a first subset of pixel locations will correspond to the first pixels of each couplet, but if the image sensor is to be operated in a flipped scanning mode, a second subset of pixel locations will correspond to the first pixels of each couplet.
The present invention therefore provides many advantages. The main filter 16 can be any suitable form of defect correction mechanism. By performing a preliminary filtering, this removes ambiguities from the input to the main filter and thus improves its operation. The invention enables image sensors to provide acceptable performance even with a level of defects which would have led to rejection in the prior art. The yield of the manufacturing process is thus improved. Improvements and modifications can be made to the above without departing from the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
06270054 | May 2006 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
7034873 | Mendis et al. | Apr 2006 | B2 |
7375749 | Hattori | May 2008 | B2 |
7444037 | Kita | Oct 2008 | B2 |
7602987 | Kuramoto | Oct 2009 | B2 |
20050047658 | Kita | Mar 2005 | A1 |
20050195297 | Kita | Sep 2005 | A1 |
20060152530 | Smith | Jul 2006 | A1 |
Number | Date | Country |
---|---|---|
0635973 | Jan 1995 | EP |
1343311 | Sep 2003 | EP |
9527367 | Oct 1995 | WO |
2004110053 | Dec 2004 | WO |
Number | Date | Country | |
---|---|---|---|
20070285535 A1 | Dec 2007 | US |