This invention deals with photographic images, in particular, taking pictures with the help of sensors and an electronic shutter. It can be used for taking pictures in low light conditions and when there is no high-aperture optics.
Today there is a wide diversity of small-size mobile photo devices which are either detachable or built into other appliances such as cellular telephones which allow for taking pictures of various objects. High-aperture optics for low light conditions cannot be used in such devices because of the strict size and weight limitations.
There are two well known ways of obtaining pictures in low light conditions when high-aperture optics are not applied. They can be used either separately or in combination:
1. Longer exposure time, sometimes, when necessary, in combination with optical or digital image stabilizers (‘Exposure in digital photography,’ Chris Weston. ISBN 978-5-9794-0235-2, 978-2-940378-29-6).
This method has a weakness: in case of long exposure and when picture is taken with a hand-held camera which is not anchored solidly during the exposure, the resulting image is blurry, fuzzy and not sharp. Using additional mechanical devices (such as a tripod) does not meet mobility requirements. This weakness is partially compensated with a digital or optical image stabilizer. However, such devices make cameras larger. In addition, the weakness of the first method, which cannot be eliminated by the use of image stabilizers, is the fact that moving objects in the scene appear blurred.
2. Intensive amplification in the data reading path from the sensor (equivalent to increased sensitivity value) (‘Exposure in digital photography,’ Chris Weston. ISBN 978-5-9794-0235-2, 978-2-940378-29-6).
The weakness of the second method is in amplification of not only brightness of an image, but also noise from the sensor and image reading/digitalization path. There are methods to suppress noise afterwards, however, they inevitably make certain details in the image disappear, too.
There are descriptions of a procedure for receiving several (a series of) exposures from the sensor comprising the following stages (http://www.aptina.com/products/image sensors/—data table for contemporary sensors; http://www.aptina.com/assets/downloadDocument.do?id=373—detailed description of a sensor with an electronic shutter: mt9p013):
The weakness of the above picture taking method is in exposures being scattered over time, which worsens the quality of display of moving objects after exposures are fused.
The method of image enhancement described in U.S. Pat. No. 450,346 is closest to proposed invention. This method suggests that two frames are used as input images and one of these images has an improved signal/noise ratio, however, with certain distortions. The method uses low-frequency data from the first image and high-frequency data from the second one. Additional logic is used to determine the threshold frequency for the two images. The frequency can change adaptively over the image region depending on the image characteristics. This method is used in the following way to reduce spurious signals in an image:
The weakness of this method is blurriness in the image which cannot be eliminated. If there are moving objects in the scene, images taken by this method with exposures separated in time will inevitably contain artifacts.
The goal of the invention is to obtain high-quality images with mobile photo devices without use of high-aperture optics or any other additional devices.
The solution to the task is as follows:
The proposed method of enhancing photo images consists of two stages:
Stage One
Method 1.
The reading mode illustrated in
As a result, two images are produced: the first with the exposure time T1 (let us call it A), the second with the exposure time T2 (let us call it B).
This data readout mode is preferable; however it is only possible when there is non-destructive readout access to the sensor pixels.
Method 2.
The data reading mode illustrated in
This readout method produces images which are similar to those which were obtained by the mode illustrated in
Images A and B are transferred to the second phase for further processing. When the total time of the exposure plus the time required for resetting the sensor before exposure is negligibly small in comparison with the dynamics of the scene photographed, in order to get the best result several pairs of images are built during the first stage (A1 B1; A2 B2; . . . ), with follow-up selection of the best pair during the second stage.
Properties of images obtained during the first stage:
Images obtained after the first stage have different exposure times. T1<T2, so exposure of image A is shorter than exposure of image B. It was identified that the optimal ratio is T1=T2/5. In other words, the exposure of image A should be five times shorter. With such an exposure time ratio:
Stage Two
Selection of the Best Pair of Images
Once several pairs of images are obtained in the first stage, the best pair must be selected for further processing. The blurriness level in image B has the greatest impact on further processing. The sharper image (B1 or B2 or B . . . ) is selected in the following way:
Y=R*0.2989+G*0.587+B*0.114
2. Calculation of the sum of squares of the brightness gradient in both images:
Gx
x,y
=Y
x−1,y−1
−Y
x+1,y−1
−Y
x+1,y+1+2Yx−1,y−2Yx+1,y
Gy
x,y
=Y
x−1,y−1
+Y
x+1,y−1
−Y
x−1,y+1
−Y
x+1,y+1+2Yx,y−1−2Yx,y+1
G=Σ
x,y(Gxx,y* Gxx,y+Gyx,y*Gyx,y)
Where:
3. The image should have the highest G value.
Once the best pair is identified, there are two images available:
A—the sharper image but with the higher noise level;
B—possibly the fuzzier image but with the lower noise level.
Noise Reduction in Image A (Filtering).
Besides useful data (exposed scene), image A contains spurious noise. Low-noise data in image B can help filter the useful signal from noise in image A. This method is different from known methods of filtering out noise by using a single image because the second image (B) is used to separate noise from useful signal. That helps to separate noise and useful signal to the optimal extent and to leave the useful signal intact.
The filtering procedure can be applied either to the brightness component or to the luminance and chrominance components or to each color channel (R, G, B) individually.
The procedure described below reduces noise in image A with the help of data in image B:
With the exception of areas with the lowest frequencies (which do not undergo filtering), the coefficient filtering algorithm for each area is as follows:
C′
i
B
=C
i
B
·Att
B
Such a filtering procedure involving transfer to the frequency domain is optimal because it can help compensate for slight movement of objects in the scene which are usually present in real photographic conditions.
Getting the Final Image
Once noise has been suppressed, image A has two images with different exposure times and low noise levels. However, the image with the longer exposure time may be fuzzy (not sharp). Fusion of these two images into a single image produces the final image with an expanded dynamic range.
Some shadowed areas of image A might not accumulate sufficient charge to display details in the image, in which case image B can be used to fill such areas. Despite the high probability of image B being fuzzy, it may still allow for displaying in the final image some shadowed details of the scene.
Fusion of images occurs as described in the literature (“Exposure Fusion”, Tom Mertens, Jan Kautz and Frank Van Reeth. In “Proceedings of Pacific Graphics, 2007”) allowing for getting the final image without the need to use intermediate HDR representation. In this process, each incoming image undergoes pyramidal decomposition and each level of the decomposition involves a simple summing of images with weights identified by the function which assigns weights based on proximity of the exposure of a given area of an image to the optimal exposure.
The proposed invention makes it possible to get high-quality images through the use of devices with sensors with an electronic shutter which enable the use of a special exposure mode as described above. Today an electronic shutter is used in most cellular phones with built-in cameras. This invention can be used on cameras with mechanical shutters as well, but the quality of images will not be as high. It is noteworthy that the proposed solution can be used in combination with image stabilizers. In this case, the technologies harmonically supplement one another and allow for expanding the exposure range that can produce a sharp image. The proposed solution does not require modification of the design of the sensor.
Number | Date | Country | Kind |
---|---|---|---|
2009127932 | Jul 2009 | RU | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/RU2010/000119 | 3/19/2010 | WO | 00 | 1/17/2012 |