This application claims priority to Japanese Patent Applications No. 2013-030717 filed on Feb. 20, 2013, and No. 2013-078655 filed on Apr. 4, 2013, the entire disclosure of which is incorporated by reference herein.
The present disclosure relates to image processors represented by imaging devices such as digital cameras and video cameras (camcorders) for capturing consecutive images.
Many complementary metal oxide semiconductor (CMOS) imaging elements use a rolling shutter technique for allowing exposure to sequentially start for each horizontal line (hereinafter referred to as “line”), and sequentially reading image signals of respective lines to form a frame. In the imaging element using the rolling shutter technique, the starting time and ending time of the exposure period differ for each line. Therefore, if an external flash etc. is used during a period that is shorter than one frame period, a band of high luminance (a flash band) may appear on an output image of the imaging element.
International Patent Publication No. WO 2010/100866 discloses a technique for compensating for a flash band by adding image signals of two consecutive frames affected by flash.
The present disclosure provides an image processor that can reduce an adverse effect due to flash regardless of performing a shutter operation or not.
An image processor of the present disclosure processes consecutive images, and includes: a determiner configured to determine whether each image of the consecutive images is a flash band image a part of which is affected by a flash; and a compensator configured to, if a first image is determined as the flash band image by the determiner, generate a third image which is supposed where the third image is fully affected by a flash by using a second image which is not determined as the flash band image, and output the third image instead of the first image.
The image processor of the present disclosure can reduce or eliminate the effects of a flash band regardless of performing a shutter operation or not.
Embodiments are described in detail below with reference to the attached drawings. However, unnecessarily detailed description may be omitted. For example, detailed description of well-known techniques or description of the substantially same elements may be omitted. Such omission is intended to prevent the following description from being unnecessarily redundant and to help those skilled in the art easily understand it.
Inventor(s) provides the following description and the attached drawings to enable those skilled in the art to fully understand the present disclosure. Thus, the description and the drawings are not intended to limit the scope of the subject matter defined in the claims.
First, an imaging device in a first embodiment will be described. A technique for compensating for a flash band in the present disclosure is applied to an image processor, and in this embodiment, the imaging device will be described as one example of the image processor.
The imager 110 has a CMOS image sensor (imaging elements), a sensor drive circuit, and an analog/digital converter. The imager 110 converts light from an object into electric signals by photoelectric conversion, and supplies the flash band detector 120 and the flash band compensator 130 with an image signal In as a digital image signal.
The flash band detector 120 detects presence or absence of a flash band based on the image signal In input from the imager 110, and outputs flash band determination information J showing presence or absence of a flash band, and a flash band level L to the flash band compensator 130. The flash band level L means luminance of a flash band. In this embodiment, if there is a flash band, the flash band determination information J is expressed as follows: J=1. If there is no flash band, the flash band determination information J is expressed as follows: J=0. The flash band detector 120 sets a threshold value and detects presence or absence of a flash band, and a thin flash band can be neglected and the flash band determination information J can be considered as 0.
The flash band compensator 130 outputs an images Out depending on presence or absence of a flash band by utilizing the image signal In of the imager 110, the flash band determination information J and the flash band level L of the flash band detector 120.
The memory 131 refers to flash band determination information J output from the flash band detector 120, and stores and outputs an image signal M of the latest frame, in which no flash band occurs, of previous frames.
The pseudo-flash generator 132 outputs an image Out in which a flash band is compensated for based on the image signal M, output from the memory 131, of the frame in which no flash band occurs, and the flash band determination information J and the flash band level L output from the flash band detector 120.
If the flash band determination information J is 0, the pseudo-flash generator 132 does not process anything, and outputs the image signal M output from the memory 131 without any change.
If the flash band determination information J is 1, the pseudo-flash generator 132 generates pseudo-flash for the output M output from the memory 131.
In order to generate a pseudo-flash image, the pseudo-flash generator 132 performs an offset process and a gain process for the output M from the memory 131.
A gain value to be multiplied and an offset value to be added are changed depending on luminance of an input image M. In view of the properties that when an object colored with black or white is lighted, the black object is less likely to reflect light while the white object is more likely to reflect light, the gain value to be multiplied is reduced if the luminance is smaller, while the gain value to be multiplied is increased if the luminance is larger. The gain value corresponding to a level of the luminance signal is multiplied for each pixel. The gain value is also changed depending on a flash band level L output from the flash band detector 120. The output value of each pixel can be expressed as follows:
YO=YI×GY×GL+OY
where YI is the luminance level of each input pixel, YO is the luminance level of each output pixel, GY is the gain value corresponding to luminance, GL is the gain value corresponding to the flash band level L, and OY is the offset value corresponding to the luminance level.
Next, examples of the operation of the imaging device will be described.
The technique for adding image signals of two consecutive frames in International Patent Publication No. WO 2010/100866 cannot correct such a flash band occurring in only one frame.
The flash band detector 120 outputs portions of flash band determination information J1-J4 with respect to In1-In4 output from the imager 110. In the case of
The image M including no flash band output from the memory 131 is input into the pseudo-flash generator 132. In the case of
As a result, as shown in the outputs of
The technique for adding image signals of two consecutive frames in International Patent Publication No. WO 2010/100866 can correct the complementary flash bands as shown in
The present disclosure can solve this problem as described below.
The flash band detector 120 outputs portions of flash band determination information J1-J4 with respect to In1-In4 (
The flash band compensator 130 refers to flash band determination information J output from the flash band detector 120 in the memory 131, and outputs an image M including no flash band. In the case of
The image M including no flash band and output from the memory 131 is input into the pseudo-flash generator 132. In the case of
As a result, as shown in the outputs of
The flash band detector 120 outputs portions of flash band determination information J1-J4 with respect to In1-In4 (
The flash band compensator 130 refers to flash band determination information J output from the flash band detector 120 in the memory 131, and outputs an image M including no flash band. In the case of
The image M including no flash band output from the memory 131 is input into the pseudo-flash generator 132. In the case of
As a result, as shown in the output of
The imaging device 100 in this embodiment can correct flash bands even if the flash bands are non-complementary flash bands occurring under an environment with a shutter operation.
As described above, the first embodiment has been described as example techniques disclosed in the present application. However, the techniques according to the present disclosure are not limited to this embodiment, but are also applicable to embodiments where modifications, substitutions, additions, and omissions are made as appropriate. In addition, elements described in the first embodiment may be combined to provide a different embodiment.
Here, other embodiments will be now described.
In the first embodiment, the example has been described where the flash band compensation technique of the present disclosure is applied to an imaging device as one example of an image processor. However, the flash band compensation technique of the present disclosure is also applicable to image processors such as computers.
In the first embodiment, the case has been described where the gain value corresponding to luminance and the flash band level L is multiplied or the offset value corresponding to luminance and the flash band level L is added. However, the gain value or the offset value may be constant. A flash image may be generated by using a lookup table, not the addition or multiplication. GY has been described as the gain value whose level corresponds to a level of a luminance signal. However, GY may be a gain value whose level corresponds to a level of, e.g., color signals such as RGB.
In the first embodiment, the case has been described where the flash band detector 120 does not detect full-frame flash. If the full-frame flash can be detected, a pseudo-flash process may not be performed when an output image M output from the memory 131 corresponds to a frame to which full-frame flash is emitted.
In the first embodiment, the flash band compensator 130 performs a pseudo-flash process with respect to all the frames in which J is 1. However, the pseudo-flash process does not have to be performed with respect to all the frames in which J is 1. For example, if three or more frames in which J is 1 are consecutively provided, no pseudo-flash process is performed after the third frame, and image signals of frames after the third frame may be output without any change in view of reduction of uncomfortable viewing due to a temporary halt of the consecutive images.
The number of the frames used for the pseudo-flash process is optional. It is possible to use a frame posterior to the frame that is to be compensated for. However, it is convenient to use a frame prior to the frame that is to be compensated for rather than the posterior frame.
Various embodiments have been described above as example techniques of the present disclosure, in which the attached drawings and the detailed description are provided.
As such, elements illustrated in the attached drawings or the detailed description may include not only essential elements for solving the problem, but also non-essential elements for solving the problem in order to illustrate such techniques. Thus, the mere fact that those non-essential elements are shown in the attached drawings or the detailed description should not be interpreted as requiring that such elements be essential.
Since the embodiment described above is intended to illustrate the techniques in the present disclosure, it is intended by the following claims to claim any and all modifications, substitutions, additions, and omissions that fall within the proper scope of the claims appropriately interpreted in accordance with the doctrine of equivalents and other applicable judicial doctrines.
The present disclosure provides a pseudo-flash image that can be replaced for a flash band image, and therefore, is applicable to image processors that output images in which realistic flash remains in news scene etc. The present disclosure is also applicable to image processors that correct a flash band even if a shutter is provided to reduce flicker.
Number | Date | Country | Kind |
---|---|---|---|
2013-030717 | Feb 2013 | JP | national |
2013-078655 | Apr 2013 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6580829 | Hurst et al. | Jun 2003 | B1 |
20020047936 | Tojo | Apr 2002 | A1 |
20020176010 | Wallach et al. | Nov 2002 | A1 |
20060018653 | Kido | Jan 2006 | A1 |
20060083299 | Kitajima | Apr 2006 | A1 |
20060152634 | Yeh et al. | Jul 2006 | A1 |
20070140356 | Wada | Jun 2007 | A1 |
20080232765 | Patten et al. | Sep 2008 | A1 |
20090245386 | Chen et al. | Oct 2009 | A1 |
20100091141 | Martinez et al. | Apr 2010 | A1 |
20100110225 | Wada et al. | May 2010 | A1 |
20110001849 | Wada et al. | Jan 2011 | A1 |
20110273591 | Fukushima | Nov 2011 | A1 |
20110317029 | Fukui et al. | Dec 2011 | A1 |
20120026359 | Fukushima et al. | Feb 2012 | A1 |
20120188403 | Gomita | Jul 2012 | A1 |
20130208149 | Kamiya | Aug 2013 | A1 |
Number | Date | Country |
---|---|---|
2010100866 | Sep 2010 | WO |
Number | Date | Country | |
---|---|---|---|
20140232908 A1 | Aug 2014 | US |