The invention relates to the acquisition of color images from a sensor comprising a plurality of photosites, with the sensor having a plurality of spectral sensitivities specific to each photosite.
Increasing sensor resolution (meaning the number of useful pixels per unit of surface area) poses a major problem. Currently, resolutions of 10 megapixels for a surface area of a few square millimeters are being achieved for cameras within the visible spectrum. Of course, this problem can affect other wavelengths (infrared, ultraviolet).
With the increase in resolution, the surface area of the sensitive part of the sensor (the photosites) is drastically reduced. The amount of light reaching a sensor photosite is proportional to the square of its surface area. It is therefore reduced by a base-2 exponential compared to the reduction in photosite surface area. In the visible spectrum, sensors are currently being created with signal-to-noise ratios that no longer allow obtaining satisfactory images under normal light conditions. In the field of digital photography, it is therefore desirable to increase the amount of light reaching the sensor.
In the case of color image sensors in the visible spectrum, the pixels are “colored” by adding an array of three color filters (Red, Green, Blue) or four color filters (Red, Green, Blue, Emerald) to the surface of the sensor. In this manner, a particular color component is assigned to each pixel. The most popular of the color filter arrays is called the Bayer filter mosaic, as illustrated in
Such an array is used to “color” each pixel or photosite of the image sensor with one of the colors R, G, or B, determined by the pattern of the color filter array. Then a color image (having the three color components at each pixel as represented in FIG. 1) is reconstructed from an image formed of a mosaic of the colors red, green and blue.
The main disadvantage of this approach to capturing color images is that the color filters absorb part of the light, which reduces the amount of light reaching the photosite. In addition, the construction of these filters requires several additional operations in the production line.
This invention improves the situation.
To do so, it first proposes a method for the acquisition of color images by a sensor comprising a plurality of photosites having spectral sensitivities which may differ between photosites. In the invention, the method makes use of means for digitally processing signals from the photosites, such digital processing comprising in particular the application to these signals of a spatial-chromatic transfer function taking into account a diversity in the spectral sensitivities of photosites, the sensor then being without a physical color filter array.
The invention thus proposes replacing a physical filtering, using color filters, with a digital processing of signals from the sensor.
First, the spectral transmission characteristics of the photosites must be known and the invention then additionally relates to a method for the spectral calibration of a color image sensor, the sensor comprising a plurality of photosites having spectral sensitivities that may differ between photosites.
Such a method then comprises the following steps:
The invention also relates to a computer program, comprising instructions for implementing the above method for color image acquisition when it is executed by a processor. An example embodiment of an algorithm for such a program can be represented by the end of the flowchart in
The invention also relates to a module for processing digital images from a color image sensor comprising a plurality of photosites, and comprising means for implementing the above image acquisition method. The invention also relates to a system comprising such a module and a sensor connected to this module. The sensor is advantageously without a physical color filter array. Such a system integrating this module is very schematically represented in
The invention also relates to a computer program, comprising instructions for implementing the method for spectral calibration of a sensor as defined above, when it is executed by a processor. An example of an algorithm for such a program can be represented by the beginning of the flowchart represented in
Other features and advantages of the invention will be apparent from reading the following description of some embodiments provided as examples, and the attached drawings in which:
a illustrates the form of a captured image matrix X′ before the reconstruction transformation in the sense of the invention, used to obtain the transformed matrix Y′ of
b represents the form of the matrix so transformed Y′,
The invention proposes using the natural dispersion that exists between the photosites of a sensor to permit the sensor to distinguish between the different wavelengths. This dispersion is, of course, random and unpredictable in principle. It is therefore understood that each sensor has its own natural dispersion, subject to manufacturing variations for example.
Even so, the sensor can formally be considered as consisting of many color filters having random and randomly distributed spectral sensitivities. One approach of the invention then consists of reconstructing a color image from the actual image acquired by the sensor, by first defining a model for images captured by the sensor, as described below.
An image sensor without a color filter array can formally be considered a matrix of photosites having a random response to wavelength and a spatial arrangement that is also random. To determine the spectral information output by such a sensor, the invention proposes using hyperspectral images for which a light intensity I(i,j,λ) for each pixel is known beforehand (for example measured) in each wavelength.
From such hyperspectral images I(i,j,λ), it is possible to simulate an image X(i, j) obtained with a chosen spectral sensitivity R(λ), by modulating the gain for each of the composite images of the corresponding hyperspectral image. In practice, the hyperspectral images are defined for finite domains for the wavelength. In particular, there is often hyperspectral image information in 31 wavelengths in the visible spectrum, typically between 400 and 700 nm at 10 nm intervals. The equation for the image then is written as:
In practice, purely random functions are not chosen for the spectral sensitivity R(λ).
For example, silicon has a specific spectral sensitivity. Spectral sensitivity is highly dependent on the photosite manufacturing process, however. Techniques exist to reduce this dispersion, such as regular doping between photosites for example.
To simplify the generation of photosite simulation and control the degree of photosite dispersion, one example embodiment uses Gaussian functions of photosite spectral sensitivity, as follows:
The parameters k, μ and σ are chosen randomly for each photosite. Thus a sensor is simulated having random color sensitivity functions. To restrict the sensitivity functions, intervals of variation for these parameters are chosen as follows:
Thus, to summarize these characteristics in more generic terms, a spectral calibration function fi,j(λ) is defined for each photosite i,j in order to modulate the intensity as a function of the wavelength of each pixel of a reference image (for example from a database) in order to construct this reference image as “seen” by the sensor. This modulation amounts to calculating, for each matrix element Xi,j in the image matrix X, an expression of the type:
where:
The sensor therefore has a sensitivity function in a particular wavelength for each pixel. An example of different spectral sensitivities of photosites of a sensor have been illustrated in
After this first step, it is then possible to model the acquisition of a color image by this sensor, using a hyperspectral image according to the above equation (1). Different sensor configurations can be used for this purpose, with values of:
However, in principle the sensitivity functions of the sensor are unknown. It is therefore appropriate to calibrate each of the pixels to determine its corresponding function. For this purpose, a calibration step is provided which consists, for example, of using a monochromator MON, as represented in
Such a device allows measuring the response of each pixel of the sensor for a set of monochromatic wavelengths. This provides a sensitivity image for all pixels in the sensor for each wavelength in said set.
As the image was captured by the sensor at random spectral sensitivities, the color image then needs to be reconstructed. The reconstruction for example of three colors RGB of pixel (i, j) (RGB for Red, Green, Blue, or possibly four colors Cyan, Magenta, Yellow, Black) preferably occurs using neighboring pixels within a rectangular surrounding area (“neighborhood”) of size vh×vw in the image captured by the sensor. Each of the neighboring pixels of pixel (i, j) provides richer spatial and spectral information than the one pixel (i, j).
For each pixel (i, j), consider a reconstruction kernel H of size 3×vhvw (or 4×vhvw for four colors) which allows reconstructing RGB color “values” (for example intensities) in the following manner:
Y=XH (3),
In principle, in order to initially estimate the kernel H (referred to below as the “reconstruction filter”), a database of reference images is used in which the vectors X and Y are known, and the kernel H is given by the following formula (where Xt indicates the transpose of the matrix X):
H=Xt·Y·(Xt·X)−1 (4)
Preferably, a database of hyperspectral images is used, for example of n=8 images, and the reconstruction filters are calculated for these images.
The principle has been described above. In practice, the first step consists of constructing the RGB image from the hyperspectral image, using the following relation:
Y=IA (5)
This image is in the form of a vector Y and is constructed as illustrated in
Thus the three-dimensional matrix Im contains, for each pixel in a next row H and next column W, the light intensity (or energy or other) of this pixel at a next wavelength P.
During a first step S51, a reference image, for example taken from a database, is initially in the form of this three-dimensional matrix Im. The intensity data as a function of wavelength, contained in the matrix Im, are therefore known for this reference image. Next, a transformation of this three-dimensional matrix to a two-dimensional matrix is conducted by aligning each column h1, h2 of the matrix Im end to end into a single column, for each next wavelength P. A two-dimensional matrix I is thus obtained containing P columns (for example 31 columns at 10 nm intervals between 400 and 700 nm) and HW rows (therefore the total number of pixels in the image). A next step consists of constructing a matrix A, with 3 columns for “Red” R, “Green” G, and “Blue” B, in which the portions with cross-hatching are non-zero matrix coefficients (having a value of “1” for example), and the other coefficients are, for example, zero. The matrix A therefore enables a transformation from a representation with P spectral components (for example 31) to a representation with 3 RGB color components (or in a variant, 4 colors: cyan, magenta, yellow, black for example).
Once this matrix A is constructed in step S52, the matrix Y is formed such that Y=IA in step S53, by simple matrix multiplication. One will then observe that it is possible to deduce from matrix Y a three-dimensional matrix ImRGB representing the RGB colors (“3” axis) specific to each pixel of the image. This matrix Y is then used as the reference for calculating the reconstruction filters as described below.
We will now refer to
Step S61 is identical to step S51 of
In the next step S63, the image J to be sampled by the sensor using the matrix S representative of the sensor and the matrix I representative of the hyperspectral image is calculated in the following manner:
where the symbol indicates a product of coefficient Si,j of matrix S and coefficient Ii,j in matrix I, these products for i,j then being summed over P (for example over 31 wavelengths). The matrix J obtained in step S64 is then a single column with HW coefficients. From this, a matrix J having the dimensions of the image H·W is redetermined. Then in step S65, a new matrix X can be constructed by extracting and concatenating the pixels from each neighborhood of size hv×wv of the image J. This neighborhood serves as input when calculating the filters H. Such processing amounts to considering a neighborhood around each element of matrix J (therefore each pixel), as represented at the end of step S64.
Next, the filters H are calculated as illustrated in
Hi=(Xit·Xi)−1·Xit·Yi
(the symbol Xt indicating the matrix transpose of X).
Thus, for each pixel i of the image corresponding to each of the photosites of the sensor, a reconstruction filter Hi is obtained for the three colors RGB (step S73) and for a neighborhood hv×wv, around this pixel i. The reconstruction matrix Hi is then optimized by least squares.
As indicated above, to reduce the calculations, a neighborhood 20×20 in size can be chosen which is then duplicated up to the size of the image. This method only applies, however, to sensors of any size if there are sufficient hyperspectral images to conduct the reconstruction filter training. In the first tests conducted, eight images were sufficient because several portions of each one are used for the training. These images are 800 pixels by 800 pixels in size, and as the neighborhood is 20 pixels by 20 pixels, each image provides 1600 samples of 20×20.
The size of the neighborhood that must be used to best reconstruct the images has been optimized. The application of the reconstruction method to several neighborhood sizes, as illustrated in
To measure the effect of the training database on the result of the reconstruction, only 7 of the 8 images are used to calculate the filters. The reconstruction filters are then applied to the eighth image. Therefore the image which is not used to calculate the reconstruction filters is successively chosen and the reconstruction is applied to it. A measurement of the difference between the RGB image calculated directly from the hyperspectral image and the one calculated using the hyperspectral image sampled by the sensor, expressed as the peak signal-to-noise ratio PSNR, shows satisfactory results, as does a measurement of the variance in the quality of reconstruction of the image not used to calculate the filters, as illustrated in the following table.
The influence of parameters k, μ and σ on the reconstruction quality can be evaluated. To do this, first the variability of parameter μ is reduced between 550 and 560 nanometers, with k and σ respectively varying between 0 and 1 and 50 and 200. The average PSNR ratio obtained is 26.3, this time using all images to calculate the reconstruction filter.
It is apparent that, even when the sensitivity functions did not vary in wavelength, it remained possible to reconstruct the colors effectively, probably due to the variation in spectral widths of the sensitivity functions.
The reconstruction result when the variance of the Gaussian of the sensitivity functions does not vary, σ being defined as between 100 and 101, k and σ being respectively between 0.5 and 1 and 450 and 670 nm, gives a PSNR ratio of 28.2.
For k between 0.9 and 1, the PSNR ratio obtained is 28.7.
By simultaneously restricting μ to between 550 and 560 nm and σ to between 100 and 101, but with parameter k having a wide range of between 0.1 and 1, the most unfavorable reconstruction is obtained because the sensitivity functions are all almost identical, with a greatly varying gain. In principle, the gain variation reduces the color reconstruction capabilities. The PSNR ratio obtained in this configuration is 25.6 (although the colors then appear faded compared to the other parameter choices).
Thus, in the method of the invention, the color is reconstructed using the natural variability that exists between photosites. The sensor without a physical color filter array acts like a sensor having sensitivity functions that are random and are randomly distributed across the sensor. For this purpose, the image reconstruction method in the sense of the invention uses:
Conducted tests show that this type of processing of signals from the sensor can provide satisfactory color reconstruction qualities.
Image capture systems currently being developed, based for example on carbon nanotubes, do not propose defining a spectral sensitivity for each photosite. Such systems are based on doping nanotubes with organic particles, which is difficult to control with precision. In this case, these sensors will behave like a random matrix of photosites with random spectral sensitivities, which it will then be advantageous to process using the method of the invention.
In
For the spectral calibration, let us consider a color sensor for images of H×W pixels, the sensor to be calibrated therefore containing H×W photosites.
The first step a), denoted S91 in
A next step b), denoted S92, consists of constructing a first matrix system X, from at least one standard image (reference image, for example from a database) of dimensions H×W and of known light intensity levels at each pixel for at least K colors, said system comprising:
Here, it is understood that said modulation may correspond to the scalar product of specific matrices “”, followed by the sum over all wavelengths to ultimately yield a two-dimensional matrix X, as described above in an example with reference to
Then for the same standard image, in a step c) denoted S93 in
In an example embodiment, this step c) corresponds to constructing the matrix Y obtained by the product Y=IA of
Recall that a possible implementation of this step consists of determining the matrix A according to the above step a), and in particular:
In step d), denoted S94 in
The calibration matrix system H then represents the abovementioned spatial-chromatic transfer “function”.
Thus, from a first current matrix system X′ constructed by applying step b) to a current image captured by the sensor, an actual distribution of color intensity levels can be obtained according to a second current matrix system Y′ for each pixel of this current image, and such that H·X′=Y′.
Again referring to
In a first step a′), denoted S95 in
The general appearance of this matrix X′ has been represented in
In a next step b′), the calibration matrix system H is applied to the first matrix system X′ in order to obtain in step S96 a second matrix system Y′, such that H·X′=Y′, the second matrix system Y′ comprising:
The general appearance of this matrix Y′ is represented in
The term “matrix system” is used here because said first and second matrix systems (X and Y or X′ and Y′) may be three-dimensional. For example, for the systems X and Y used for the calibration method (the calibration of the sensor), a third dimension may be specific to an index for a standard image among a plurality of standard images in a database, as described above (for example 8 images of a database). One can then establish a first matrix X and a second matrix Y averaged over the set of images in the database.
As was seen with reference to
Recall that for each photosite, one can initially obtain an intensity value for the signal from the photosite for P successive wavelengths within a chosen spectral range (for example the visible spectrum between 400 and 700 nm, but also possibly in the infrared for infrared imaging). A set of P obtained signal intensities then forms said spectral calibration function fi,j(λ). Thus, as described above with reference to the example embodiment of
Now with reference to
Of course, the invention is not limited to the embodiment described above as an example; it extends to other variants.
Limited neighborhoods h·w or n·m (for hv·wv) were described above, of smaller dimensions than the sensor or the total image. This approach reduces the complexity of the calculations, particularly if a “sensor portion” has the randomness characteristics of the sensor as a whole, or if the image is sufficiently rich in local spectral contrast. However, as a variant, these “neighborhoods” may respectively correspond to the entire sensor or entire image.
A 3 color RGB matrix transformation was described above with reference to
An actual measurement of the spectral functions of sensor photosites was described above. As a variant, a standard “sensor portion” could be defined, defining a random pattern typical of the manufacturing conditions for a given sensor series. It is then sufficient to obtain these data from a manufacturer in order to implement the method of the invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 10 52997 | Apr 2010 | FR | national |
| Filing Document | Filing Date | Country | Kind | 371c Date |
|---|---|---|---|---|
| PCT/FR2011/050887 | 4/18/2011 | WO | 00 | 5/21/2013 |
| Publishing Document | Publishing Date | Country | Kind |
|---|---|---|---|
| WO2011/131898 | 10/27/2011 | WO | A |
| Number | Name | Date | Kind |
|---|---|---|---|
| 5272518 | Vincent | Dec 1993 | A |
| 6160922 | Hayashi | Dec 2000 | A |
| 6395576 | Chang et al. | May 2002 | B1 |
| 7009639 | Une et al. | Mar 2006 | B1 |
| 7667750 | Goto et al. | Feb 2010 | B2 |
| 8144320 | Potuluri et al. | Mar 2012 | B2 |
| 8218208 | Hayashi | Jul 2012 | B2 |
| 8780356 | Saari et al. | Jul 2014 | B1 |
| 20010019361 | Savoye | Sep 2001 | A1 |
| 20060231913 | Wilsey et al. | Oct 2006 | A1 |
| 20060256214 | MacLean et al. | Nov 2006 | A1 |
| 20070279501 | Goto et al. | Dec 2007 | A1 |
| 20080118181 | Potuluri et al. | May 2008 | A1 |
| 20100039642 | Bahatt et al. | Feb 2010 | A1 |
| 20110206291 | Kashani et al. | Aug 2011 | A1 |
| 20120133765 | Matherson et al. | May 2012 | A1 |
| 20120212738 | Bahatt et al. | Aug 2012 | A1 |
| 20120293801 | Kanai et al. | Nov 2012 | A1 |
| 20140132778 | Holub | May 2014 | A1 |
| 20140176729 | Saari et al. | Jun 2014 | A1 |
| 20140293091 | Rhoads et al. | Oct 2014 | A1 |
| Entry |
|---|
| International Search Report dated Aug. 8, 2011 for Application No. PCT/FR2011/050887. |
| Sakoglu, Unal, “Signal-processing strategies for spectral tuning and chromatic nonuniformity correction for quantum-dot IR sensors”, The University of New Mexico, Jun. 2006, Albuquerque, NM. |
| Number | Date | Country | |
|---|---|---|---|
| 20130258114 A1 | Oct 2013 | US |