1. Field of the Invention
The present invention relates generally to image sensors, and specifically to a method for correcting column fixed pattern noise (FPN) in CMOS image sensors.
2. Description of the Related Art
Visible imaging systems implemented using CMOS image sensors reduce camera noise, cost and power while simultaneously improving resolution and capture rate. The most advanced and highest performance cameras use CMOS imaging System-on-Chip (iSoC) sensors that efficiently couple low-noise image detection and processing by using various supporting blocks integrated on a single chip.
On the other hand, CMOS iSoC's are prone to producing image artifacts that are by-products of the specific analog readout architecture used to capture the image. A common example of one such image artifact is column Fixed Pattern Noise (FPN), which arises when each column of pixels has a different fixed offset. When the peak-to-peak variation of such offsets is sufficiently high so as to make the columns visible in the still or video image, steps must be taken to correct it since column FPN can be most evident at nominal gain. Other artifacts include row FPN and pixel-to-pixel FPN; these can be similarly generated by amplifier offsets, but can also be created by the process of sampling reference noise at different times for each pixel or row. Pixel-to-pixel and row FPN are particularly evident in low light conditions wherein maximum sensor gain is necessary.
Various techniques are used to correct FPN in both the analog circuits located throughout the sensor's signal chain and in the downstream digital circuitry. In the latter case, the downstream circuits can be on-chip or off-chip, i.e., in the downstream camera electronics. An early example of an image sensor that used an external differential amplifier to subtract the stored FPN data from the two-dimensional sensor's video output is taught in U.S. Pat. No. 3,067,283.
Other prior art instead integrated FPN suppression in the iSoC by either analog or digital means. U.S. Pat. No. 5,892,540, for example, teaches a self-correcting column buffer that actively suppresses column offsets in the analog domain to the order of tens of microvolts as each pixel is read out at each column. While this methodology corrects each column buffer's dc offset, it does not correct offsets generated later in the signal processing chain. Nevertheless, the '540 patent improved on earlier FPN compensation methods that first determined FPN in the absence of the light, stored the offset terms, and then compensated for FPN while generating the video stream, such as both the '283 patent and U.S. Pat. No. 3,949,162. The '162 patent corrects the offsets in the analog domain after digitally acquiring the data.
It was determined that it is necessary to include dedicated optically black (OB) pixels (pixels shielded from light pickup) in the image sensor and that these should be located in the periphery surrounding the light-sensing area. OB pixels are useful to optimize black clamping and to properly facilitate fixed pattern noise compensation. U.S. Pat. No. 4,678,938 hence teaches column-wise and row-wise embodiments for reading OB pixels in a feedback-controlled manner to dynamically eliminate offsets in each column or row. U.S. Pat. No. 4,839,729 later improves the efficacy of the '938 patent by instead reading each line of active video at the same time as a stored line of OB video and using the differential amplifier scheme pioneered in the '283 patent to eliminate FPN. U.S. Pat. No. 6,788,340, later combined the various cited and other prior art to teach an integrated solution that could be included in a single iSoC. The '340 patent specifically combines optically black pixels, which are located at the periphery of the image sensor, with a digital controller and differential programmable gain amplifier 24. Nevertheless, the '340 patent does not teach specific means and an effective algorithm for correcting FPN. Instead, the focus of the '340 patent is to enable dynamic adjustment of the video to always use the largest possible ADC range and to optimize image brightness. U.S. Pat. No. 7,098,950 later improved on black clamp operation by not including defective pixels.
Column Fixed Pattern Noise offsets are determined in the present invention by estimating the specific column FPN using a set of optically black calibration pixels (OB pixels) within each column. However, there are several factors that can influence the effectiveness of FPN determination. Factors degrading efficacy include the amount of temporal noise in the OB pixels, the presence of random individual pixel offsets (pixel FPN), the quantity of available OB pixels per column, and the digital precision of the correction. These factors are mitigated by the present invention.
In calculating the column offsets, the influence of pixel temporal noise is eliminated by using a push-up/push-down approach in which small incremental adjustments are continuously made. Depending on the magnitude of the adjustment, this offers the most precise offset calculation, since the temporal noise is effectively filtered out. However, depending on how large the offset variations are, and on the number of available OB samples there are in each frame, it can take a long time (many frames) for this method to converge. Furthermore, video imaging systems usually incorporate some kind of dynamic gain adjustment so that the response of the sensor can be continuously adjusted to suit the scene conditions. The calculated column offsets may, depending on the readout architecture, become invalid by such gain adjustments, thereby requiring continual re-calculation.
In order to have a correction value that is always valid, an alternative approach is to take an average of the OB pixels within each column and perform a new calculation for each frame. In this case, the temporal noise has more influence on the precision of the calculation. Furthermore, the mean may be adversely affected by a few outlier pixels, i.e. pixels not falling within a Gaussian distribution of pixel offset, or those not adhering to a Gaussian temporal distribution themselves.
Understanding these drawbacks and limitations, the present invention teaches a method for quickly converging to the correct offsets to eliminate column FPN in the presence of other pattern noise, temporal noise, and flicker noise.
In general, the present invention is a method of column Fixed Pattern Noise (FPN) correction, which is a technique for quickly determining offset noise in an imaging sensor from a data stream including optically black pixels. Convergence speed is enhanced by iteratively converging on the optimal amount of push-up or push-down required to match the actual offset.
In one embodiment, the method comprises sampling a first optical black (OB) pixel level; calculating a difference between the first OB pixel level and a target level; storing the difference in a memory as an offset; setting a push size; sampling a next OB pixel level; reading the offset from memory; applying the offset to the next OB pixel level to form a modified next OB pixel level; determining whether the modified next OB pixel level is above or below the target level; wherein if the modified next OB pixel level is above the target level, then the offset value is pushed down by a push-size and written to memory; or wherein if the modified next OB pixel is below the target level, then the offset value is pushed up by a push-size and written to memory; comparing the push-size with a minimum step size; if the push-size is larger than the minimum step size, then reducing the push-size; and determining whether a last OB pixel has been sampled, and if not, then repeating sampling a next OB pixel.
The method may further comprise, after determining that a last OB pixel has not been sampled, repeating the steps of: sampling a next OB pixel level; reading the offset from memory; applying the offset to the next OB pixel level to form a modified next OB pixel level; determining whether the modified next OB pixel level is above or below the target level; wherein if the modified next OB pixel level is above the target level, then the offset value is pushed down by a push-size and written to memory; or if the modified next OB pixel is below the target level, then the offset value is pushed up by a push-size and written to memory; comparing the push-size with a minimum step size; wherein if the push-size is larger than the minimum step size, then reducing the push-size; and determining whether a last OB pixel has been sampled.
The target level can be calculated by averaging OB pixels at a beginning of a line, which have not had any column fixed pattern noise correction applied. The step of setting a push-size may comprise setting the push-size to a significance parameter, wherein the significance parameter is set in proportion to the average uncertainty of a first direct offset estimate. If the push-size is larger than the minimum step size, then the push-size is divided by two. After a last OB pixel has been sampled, an offset value in memory is applied to each signal pixel in a column. Also, the significance parameter may be scaled based on a gain setting.
The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements, and in which:
The following description is provided to enable any person skilled in the art to make and use the invention and sets forth the best modes contemplated by the inventor for carrying out the invention. Various modifications, however, will remain readily apparent to those skilled in the art. Any and all such modifications, equivalents and alternatives are intended to fall within the spirit and scope of the present invention.
The present invention offers a compromise between speed and precision for calculating column Fixed Pattern Noise (FPN) offsets in an imaging System-on-Chip (iSoC) sensor configured as shown, for example, in FIG. 1 from U.S. Pat. No. 7,098,950. The present correction technique is digital, and is applied after the pixel signal voltages have been digitized by an ADC (analog to digital converter).
Each line of analog video generated either within an iSoC or supplied by an imaging sensor with analog output is typically formed as shown in
The initial push-size is set to the significance parameter (described below). (step 4). The next OB pixel is then sampled (step 5), and the offset is read from memory (step 6). The offset is then added to the current OB pixel value (the offset is a signed value) (step 7).
This modified value is again compared to the target (step 8) and a decision is made as to whether the modified value is above or below the target value (step 9). If the offset value is below the target value, then the offset value is increased by the push-size (step 10), otherwise the offset value is decreased by the push-size (step 11). The new offset estimate is then written back to the memory (step 12).
The push-size is then compared with a minimum push-size (step 13). If the push-size is not equal to the minimum push-size, then the push-size is divided by two (step 14). If there are still more OB pixels to sample, (step 15), then the process repeats (step 5) for subsequent OB pixel samples with the push-size being progressively reduced until the minimal increment is reached (corresponding to the least significant bit of the memory).
The magnitude of the first step size (i.e. the push size which operates on the second OB sample) is referred to as the significance. The significance should be tuned in proportion to the average uncertainty of the first direct offset estimate. The greater the error in the first estimate, the greater the significance must be to neutralize the initial error. The significance is scaled in proportion to the sensor's gain setting so that it is scaled proportionally to the average uncertainty. Quantitatively, the mean error,
In practice, the optimal significance is set empirically for a particular gain, and it is scaled accordingly for each gain setting.
Changing the gain in the analog domain will change the magnitude of this number therefore the initial step size is a tunable, gain—dependent parameter. For simplicity of implementation, the reduction in push-size for each OB sample is a factor of two (i.e. a one shift to the right).
The process of making a direct write to the column offset memory, then pushing up and down on this value by a progressively smaller amount is referred to as a “tapering” process. For subsequent frames, the offsets are continuously pushed up or down by the minimal push-size until an event occurs (such as a change in gain) which merits new column offset calculations. Then, the tapering process is either automatically or manually triggered again.
The primary advantage of this approach is that within a single frame, a good estimate of the column offset is made which, unlike the average, is not as affected by outlier pixels (such as “hot” pixels having excess dark current compared to the mean, or “flashing” pixels having random telegraph noise that causes their levels to have relatively large positive and negative offsets). If an outlier OB pixel occurs early in the tapering process, a large push is made, the sign of which will be wrong 50% of the time. Since the push is not proportional, the remaining pushes within the taper (the sum of which is almost equal to the errant push) provide a recovery. If an outlier pixel effect occurs late in the tapering process, again the push may be in the wrong direction, but now the magnitude is inconsequential. Ultimately, after several frames of minimal pushes, the temporal noise is completely filtered out. Therefore, the technique still has the asymptotic accuracy of the continuous minimal push approach. Since the first OB pixel results in a direct, proportional write to memory, provision is made for the situation of the OB pixel being an outlier. For example, the option to utilize an alternative row of OB pixels for the sample may be provided.
Portions of the present invention may be conveniently implemented using a conventional general purpose or a specialized digital computer or microprocessor programmed according to the teachings of the present disclosure, as will be apparent to those skilled in the computer art.
Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art. The invention may also be implemented by the preparation of application specific integrated circuits or by interconnecting an appropriate network of conventional component circuits, as will be readily apparent to those skilled in the art based on the present disclosure.
Those skilled in the art will appreciate that various adaptations and modifications of the just described preferred embodiments can be configured without departing from the scope and spirit of the invention. Therefore, it is to be understood that, within the scope of the appended claims, the invention may be practiced other than as specifically described herein.
Number | Name | Date | Kind |
---|---|---|---|
3067283 | Petritz et al. | Dec 1962 | A |
3949162 | Malueg | Apr 1976 | A |
4678938 | Nakamura | Jul 1987 | A |
4839729 | Ando et al. | Jun 1989 | A |
5892540 | Kozlowski et al. | Apr 1999 | A |
6753913 | Bilhan et al. | Jun 2004 | B1 |
6788340 | Chen et al. | Sep 2004 | B1 |
7098950 | Yamamoto et al. | Aug 2006 | B2 |
20020033891 | Ying et al. | Mar 2002 | A1 |
20060044424 | Shirai et al. | Mar 2006 | A1 |
Number | Date | Country |
---|---|---|
04-310072 | Nov 1992 | JP |
10-285432 | Oct 1998 | JP |
2003-209713 | Jul 2003 | JP |
2003-348376 | Dec 2003 | JP |
2005-101985 | Apr 2005 | JP |
2006-025146 | Jan 2006 | JP |
2006-074172 | Mar 2006 | JP |
2006-157242 | Jun 2006 | JP |
2007-194899 | Aug 2007 | JP |
Entry |
---|
Search Report. |
Number | Date | Country | |
---|---|---|---|
20090278962 A1 | Nov 2009 | US |