The present invention relates to an imaging apparatus equipped with multiple imaging systems that image the same photographic object from different viewpoints.
In recent years, an imaging apparatus, such as a digital still camera, and a digital camcorder has made a progress toward high performance and high quality. One of the factors to decide an image quality of the captured image is a dynamic range. The dynamic range in a camera is a ratio of the discernible lowest brightness to the discernible highest brightness. The dynamic range of an imaging device, such as a CCD and a CMOS, mounted on a general digital camera that is currently commercially available in the market, is approximately 2,000:1 at the most. On the one hand, a minimum brightness to maximum brightness ratio for a photographic object is 100,000:1 or more depending on a scene, and in a case of imaging such a scene, there is a problem in that when an exposure is adjusted to a light portion, a blocked-up shadow results from a shortage of an amount of light in a dark portion, and when the exposure is adjusted to the dark portion, a blown-out highlight results from a saturation in the light portion.
It is necessary to expand the dynamic range in order to prevent an image quality from deteriorating due to the blocked-up shadow and the blown-out highlight. Except for the expansion of the dynamic range of the sensor itself, for example, a technology is disclosed in PTL 1, in which the dynamic range is expanded by combining multiple images with different exposures. In this method, because the image is captured multiple times with the same imaging system, deviations occur in the multiple images used in the combination in a case where the photographic object is a moving object, thereby causing a problem of a difficulty with the combination.
Furthermore, to avoid the deviations when imaging the moving photographic object, for example, a multiple-views-type camera is proposed in PTL 2, which combines images which are obtained by imaging the photographic with the multiple imaging systems at the same time. The multiple-views-type camera includes a CCD that receives flux of light of a photographic object image and thus takes a photograph, and multiple photographing optical systems for guiding the photographic object to the CCD. In the multiple-views-type camera, optical filters, different in visible light transmissivity, are installed in the multiple photographing optical systems, respectively, and the multiple photographing optical systems take photographs of the multiple photographic object images at the same time.
However, the method disclosed in PTL 2, described above, has the following problems. That is, each imaging system is set to a different exposure by equipping each imaging system with the filter, different in visible light transmissivity, but because the visible light transmissivity of the filter is fixed, an exposure difference in each imaging system is not necessarily suitable for a scene to be imaged. Furthermore, in a case where the multiple images, different in viewpoint, are used in the combination, a parallax occurs between the multiple images. For example, the closer the photographic object is to the front, the greater the parallax, and the farther the photographic object from the front, the smaller the parallax. However, because the parallax is not considered in the method disclosed in PTL 2, when the multiple images different in viewpoint are simply combined, there is a likelihood that a deviation in position will occur in each photographic object image and thus the combination will not be well made.
With the above-described actual situations in mind, an object of the present invention is to provide an imaging apparatus that is capable of obtaining a high image quality combination image with a proper exposure while expanding a dynamic range.
To solve the problems described above, first technological means according to the present invention includes multiple imaging systems, a parallax calculation unit that calculates parallaxes of multiple images which are captured by the multiple imaging systems, a determination unit that determines a lightness-level relationship and a positional relationship of a photographic object in the multiple images, an exposure control unit that is able to control the multiple imaging systems to respective different exposures based on a result of the determination by the determination unit, and an image combination unit that combines the multiple images based on the parallaxes and the exposures.
In second technological means according to the first technological means, in a case where the determination unit determines that a light photographic object and a dark photographic object are arranged on the left side and on the right side, the exposure control unit performs control in such a manner that an exposure of the one imaging system is adjusted to the light photographic object and an exposure of the other imaging system is adjusted to the dark photographic object.
In third technological means according to the second technological means, the multiple images are configured from a first image that is captured by the one imaging system with the exposure being adjusted to the light photographic object and a second image that is captured by the other imaging system with the exposure being adjusted to the dark photographic object, the parallax calculation unit calculates the parallax from the first image and the second image, and the image combination unit combines the images by defining any one of the first image and the second image as a reference image, and by using a pixel value of the reference image with respect to a region in which the pixel value of the reference image is within a predetermined range, or using a pixel value of a region corresponding to the region of the other image with respect to a region in which the pixel value of the reference image is not within the predetermined range, when combining the images based on the parallax calculated by the parallax calculation unit.
In fourth technological means according to the first technological means, in a case where the determination unit determines that the light photographic object and the dark photographic object are arranged to the front and to the rear, the exposure control unit performs control in such a manner that the exposure control unit adjusts the exposure of the imaging system that captures a reference image defined as a reference when combining the multiple images, to the photographic object in the background and adjusts the exposure of the other imaging system to the photographic object in the foreground.
In fifth technological means according to the fourth technological means, the multiple images are configured from a first image that is captured by the imaging system that captures the image defined as the reference with the exposure being adjusted to the photographic object in the background and a second image that is captured by the other imaging system with the exposure being adjusted to the photographic object in the foreground, the parallax calculation unit calculates the parallax from the first image and the second image, and the image combination unit combines the images by using a pixel value of the first image with respect to a region in which the pixel value of the first image is within a predetermined range, or using a pixel value of a region corresponding to the region of the second image with respect to a region in which the pixel value of the first image is not within the predetermined range, when combining the images based on the parallax calculated by the parallax calculation unit.
In sixth technological means according to the first technological means, the determination unit determines that the light photographic object and the dark photographic object are alternately arranged in the depth direction, the exposure control unit performs control in such a manner that the exposure control unit adjusts the exposure of the imaging system that captures the image defined as a reference when combining the multiple images, to the photographic object different in lightness from the photographic object in the front, and adjusts the exposure of the other imaging system to the photographic object in the front.
In seventh technological means according to the sixth technological means, the multiple images are configured from a first image that is captured by the imaging system that captures the image defined as the reference with the exposure being adjusted to the photographic object different in lightness from the photographic object in the front and a second image that is captured by the other imaging system with the exposure being adjusted to the photographic object in the front, the parallax calculation unit calculates the parallax from the first image and the second image, and the image combination unit combines the images by using a pixel value of the first image with respect to a region in which the pixel value of the first image is within a predetermined range, or using a pixel value of a region corresponding to the region of the second image with respect to a region in which the pixel value of the first image is not within the predetermined range, when combining the images based on the parallax calculated by the parallax calculation unit.
In eighth technological means according to any one of the second, fourth, and sixth technological means, the exposure control unit controls the multiple imaging systems to the same exposure, the parallax calculation unit calculates the parallaxes of the multiple images captured by the multiple imaging systems that are controlled to the same exposure by the exposure control unit, the determination unit determines the lightness-level relationship of each photographic object based on the pixel values of the multiple pixels and determines a positional relationship of each photographic object based on the parallax of each photographic object calculated by the parallax calculation unit.
According to the present invention, when capturing multiple images different in viewpoint, a high image quality combination image with an exposure adjusted from a dark portion to a light portion can be obtained while expanding a dynamic range, by properly controlling the exposure for each imaging system depending on a photographic object and combining the obtained multiple images based on the parallax.
Suitable embodiments relating to an imaging apparatus according to the present invention are described below referring to the accompanying drawings.
That is, the determination unit 4 determines the lightness-level relationship of each photographic object and the positional relationship of each photographic object with respect to the two or more photographic objects included in the same photographic object. The exposure control unit 5 controls the multiple imaging systems 2 with the different exposures, based on the result of the determination by the determination unit 4. The parallax calculation unit 3 calculates the parallaxes from the multiple image captured by the multiple imaging system 2 controlled with the different exposures in the exposure control unit 5. The image combination unit 6 combines the multiple images, based on the parallaxes calculated in the parallax calculation unit 3.
Next, the determination unit 4 obtains, for example, pixel values (RGB values) from the information on the left image and the information on the right image input by the imaging systems 2L and 2R, determines the lightness-level relationship of each photographic object, based on the obtained pixel values, and determines the positional relationship (called the arrangement relationship) of each photographic object, based on the parallax of each photographic object calculated in the parallax calculation unit 3 (Step S3). With regard to the lightness-level relationship of each photographic object, the relatively light photographic object and the relatively dark photographic object can be determined by converting the pixel values (RGB) of each photographic object to Y values (YCbCr) and, for example, performing a comparison with an average value of lightness for each photographic object. Furthermore, with regard to the arrangement relationship of each photographic object, from the relationship that the photographic object on the front side is substantially large in parallax and the photographic object in the rear side is substantially small in parallax, it can be determined that when the parallaxes of the photographic objects are different, the photographic objects are arranged in the front and in the rear, and when the parallaxes of the photographic objects are the same, the photographic objects are arranged on the left side and on the right side, when viewed from the imaging systems 2L and 2R.
Next, in a case where the result of the determination by the determination unit 4 (Step S4) is that the light photographic object and the dark photographic object are arranged on the left side and on the right side (in a case where the left side is light and the right side is dark, in the drawings), the exposure control unit 5 adjusts the exposure of one imaging system to the light photographic object and adjusts the exposure of the other imaging system to the dark photographic object (Step S5). Furthermore, in a case where it is determined that the light photographic object and the dark photographic object are arranged in the front and in the rear (in a case where the front side is light and the rear side is dark, in the drawings), the exposure control unit 5 adjusts the exposure of one imaging system to the light photographic object in the background (or to the dark photographic object), and adjusts the exposure of the other imaging system to the dark photographic object in the foreground (or to the light photographic object) (Step S6). Then, the same photographic object is imaged by the imaging systems 2L and 2R that are controlled with the different exposures in Step S5 or Step S6. The information on the left image and the information on the right image obtained by imaging the same photographic object are input to the parallax calculation unit 3 and the image combination unit 6.
Then, the parallax calculation unit 3 calculates the parallax of each photographic object from the information on the left image and the information on the right image input by the imaging systems 2L and 2R (Step S7). Then, the image combination unit 6 combines, two items of information, the information on the left image and the information on the right image input by the imaging systems 2L and 2R, into one image, based on the parallax of each photographic object calculated in the parallax calculation unit 3 (Step S8). In the flowchart, in Step S1, the imaging systems 2L and 2R are set to the same exposure, but a purpose of doing this is to correctly calculate the parallax and set the exposure suitable for the imaging systems 2L and 2R based on the calculated parallax. Furthermore, the parallax that is used in the image combining processing in Step S8 is calculated from the left and right images captured at the different exposures in each frame. In other words, for the initial frame only, the imaging is performed at the same exposure to set the exposure suitable for each imaging system, and further the imaging is performed to obtain the combination image based on the determined exposures that are different from one imaging system to another. That is, the imaging is performed two times, but because the imaging at the same exposure is not necessary after the second frame, only-one-time-imaging at the exposures that are different from one imaging system to another is possible.
According to a first embodiment of the present invention, in a case where the determination unit 4 determines that the light photographic object and the dark photographic object are arranged on the left side and on the right side, the exposure control unit 5 performs the control in such a manner as to adjust the exposure of one imaging system to the light photographic object and adjusts the exposure of the other imaging system to the dark photographic object. Moreover, the determination unit 4, as described in the flowchart in
Then, the same photographic object is imaged by the imaging systems 2L and 2R controlled with the different exposures as described above. Accordingly, the multiple images used in the image combination are configured from a first image that is captured by one imaging system with the exposure being adjusted to the light photographic object, and a second image that is captured by the other imaging system with the exposure being adjusted to the dark photographic object. A parallax calculation unit 3 calculates the parallax from the first image and the second image. When combining the image based on the parallax calculated by the parallax calculation unit 3, the image combination unit 6 defines any one of the first image and the second image as a reference image, and combines the images by using a pixel value of the reference image with respect to a region in which the pixel value of the reference image is within a predetermined range, or by using a pixel value of a region corresponding to a region of the other image with respect to a region in which the pixel value of the reference image is not within the predetermined range. The first embodiment is described below, with a specific example illustrated.
So, according to the present embodiment, both of the captured images are combined by capturing the image by adjusting the exposure of one imaging system 2L to the light photographic object 10a, and by capturing the image by adjusting the exposure of the other imaging system 2R to the dark photographic object 10b, and thus the image is made to be obtained that is adjusted to the proper exposure and that has not the blown-out highlight and the blocked-up shadow from the light portion to the dark portion.
Next, a method of calculating the parallax used in the image combination is described. The parallax is present in the image captured with the imaging system 2L and 2R that are different in viewpoint, as the positions of the photographic objects are different in the image 2L1 and the image 2R1 in
As the method of calculating the parallax, for example, the block matching method is present as a well-known technique. The block matching method is a method by which a degree of similarity between the images is evaluated. In the block matching method, a certain region is selected from one image, a region that is most similar to that region is selected from the other image, and a gap in position between the region selected from one image and the region selected from the other image, which has the highest degree of similarity, is defined as the parallax. Various evaluation functions are used in evaluating the degree of similarity. For example, there is a method, called a sum of absolute difference (SAD), in which a region where a sum of absolute value of a difference between the pixel values of both of the images or between brightness values of both of the images is minimized is selected as a region that has the highest degree of similarity.
At this point, in a case where the block matching is performed by using the brightness values and the pixel values of the images captured with the different exposure settings, considering the exposure difference, the matching may be performed after compensating the brightness value or the pixel value of one image in such a manner that points corresponding to the two images are consistent in lightness. For example, in a case where the exposure difference ΔEV between the image 2L1 and the image 2R1 is 2 exposure values (EV), and the pixel values of both of the images are linear with respect to an amount of light entering a sensor, the pixels corresponding to the two images can be made consistent in lightness by multiplying the pixel value of the image 2L1 by an exponent ΔEV to the base of 2.
Next, the method of combining the images is described. In a case of the combination of the multiple images different in exposure, any one of the images is defined as the reference image, and the pixel value of the reference image is used with respect to a region imaged at the proper exposures in the reference image and the pixel value of the region corresponding to the region of the other image is used with respect to a region in which the exposure is not proper in the reference image. As a result, the images captured at the proper exposures from the bright portion to the dark portion can be combined. For example, in a case where the image 2L1 and the image 2R1 in
As a method of determining whether or not the image is captured at the proper exposure in the reference image is as follows. For example, a case where the image is in 8 bits (a maximum pixel value is 255), a case where a maximum value of the pixel value RGB is, for example, 250 or above, or a case where a minimum value of the pixel value RGB is, for example, 5 or below can be determined as a case where the exposure is not proper. With regard to a threshold value for determining whether or not the exposure is proper, the proper threshold value may be set considering the specification, the characteristics and the like of the imaging system. Moreover, when combining the images, the exposure difference needs to be considered like in a case where the parallax is calculated using the block matching method. For example, in a case where the pixel of the image 2R1 is used in the combination, the pixel corresponding to the image 2L1 can be made consistent in lightness by dividing the pixel value of the image 2R1 by the exponent ΔEV to the base of 2.
Here, the calculation of the parallax using the block matching is described in more detail. As described, in a case where, at the time of the image combination, the parallax is calculated according to the block matching method, by using the pixel values of the images captured at the different exposure settings, the matching may be performed after compensating the brightness value or the pixel value of one image in such a manner that the points corresponding to both of the images are consistent in lightness, considering the exposure difference. However, in a case where the exposure difference between both of the images is great, problems described below occurs.
Therefore, in order to calculate the correct parallax at the time of the image combination, it is desirable preferable that the exposure at the time of the image capture be properly controlled in such a manner that the blocked-up shadow region or the blown-out highlight region does not occur if possible in both of the imaging systems. Specifically, it is considered that the exposure difference between both of the imaging systems is controlled to be small, in such a manner that a portion in which the imaging-possible brightness ranges overlap in both of the imaging systems is increased. Moreover, the lightness and the parallax (distance) of each photographic object are necessary to set the proper exposure with respect to both of the imaging systems. For this reason, according to the present embodiment, first, both of the imaging systems 2L and 2R are set to the same exposure, and thus the same photographic object is imaged and the lightness and the parallax of each photographic object from the obtained left and right captured images are calculated. Then, the exposures of both of the imaging systems 2L and 2R are properly controlled to be adjusted to the scene, based on the calculated lightness and the parallax. In this manner, the more correct parallax can be obtained by setting the same exposure.
Moreover, with respect to the region having a likelihood of the parallax not being correctly calculated, like the blown-out highlight region and the blocked-up shadow region, for example, the parallax may be calculated by an interpolation using the parallax value of the region that is determined as a region in which the parallax is correctly calculated in the adjacent region.
Moreover, in a case where the scene to be imaged changes suddenly, there is a likelihood that the parallax will be difficult to calculate, and the setting of the exposure will not become proper. Then, in the case where the scene to be imaged changes suddenly, after once the imaging systems 2L and 2R are adjusted to the same exposure setting and the lightness and the parallax are calculated, each of the exposures of the imaging systems 2L and 2R may be again properly set.
According to a second embodiment of the present invention, in a case where a determination unit 4 determines that a light photographic object and a dark photographic object are arranged in the front and in the rear, an exposure control unit 5 performs control in such a manner as to adjust an exposure of one imaging system to a photographic object in the background and adjust an exposure of the other imaging system to a photographic object in the foreground. Then, the same photographic object is imaged by imaging systems 2L and 2R that are controlled to the different exposures. Accordingly, multiple images used in an image combination are configured from a first image that is imaged by one imaging system with the exposure being adjusted to the photographic object in the background, and a second image that is imaged by the other imaging system with the exposure being adjusted to the photographic object in the foreground. A parallax calculation unit 3 calculates the parallax from the first image and the second image. When combining the image based on the parallax calculated by the parallax calculation unit 3, the image combination unit 6 defines the first image as a reference image, and combines the images by using a pixel value of the reference image with respect to a region in which the pixel value of the reference image is within a predetermined range, or by using a pixel value of a region corresponding to a region of the second image with respect to a region in which the pixel value of the reference image is not within the predetermined range. The second embodiment is described below with a specific example illustrated.
However, in the combination image 2LR2 in
In contrast,
That is, in
As described above, in a case where the two photographic objects different in lightness are present in the front and in the rear, the avoidance of the deterioration in the image quality due to the occlusion at the time of the image combination may be possible by capturing the image by adjusting the exposure of the imaging system defined as the reference to the photographic object at a great distance and by capturing the image by adjusting the exposure of the other imaging system to the photographic object at a short distance.
Next, the setting method in a case where the two photographic objects different in lightness are present in the front and in the rear is described. As described above, in the case where the two photographic objects different in lightness are present in the front and in the rear, the image combination without the deterioration in the image quality can be performed by capturing the image by adjusting the exposure of the imaging system defined as the reference to the photographic object at a great distance (on the background) and by adjusting the exposure of the other imaging system to the photographic object at a short distance (on the foreground). At this time, information on the lightness of the photographic object and information on a distance to the photographic object are necessary.
The lightness, for example, is calculated by using RAW data that have a linear value with respect to an amount of light entering a CCD sensor, and a brightness value of lightness can be approximately calculated. Furthermore, the lightness may be calculated by using the pixel value (RGB value) of the image. In a case of using the pixel value, it is not easy to calculate the precise brightness, but because knowledge of a trend in a lightness level of the photographic object can be obtained, the pixel value is sufficient as information necessary when setting the exposure. Furthermore, a light measurement sensor may be used such as a brightness photometer.
For example, there is a method of calculating the information on the distance by using a distance measurement sensor, or the parallax. In a case of using the parallax, for example, in a case where the image is captured by arranging the two imaging systems in such a manner that light axes of the two imaging systems are parallel to each other, the closer the photographic object is to the front, the greater the parallax, and the farther the photographic object from the front, the smaller the parallax, and the parallax of the photographic object at infinity becomes zero. Therefore, a front-rear relationship of the photographic object can be determined by the level of the parallax. Furthermore, when a specification for the imaging system, such as a focal point distance, and a pixel pitch of a sensor is well-known, the distance to the photographic object can be calculated from the parallax value.
Next, a method of setting the exposure of the imaging system based on the information on the lightness of the photographic object and the information on the distance to the photographic object is described. According to the present embodiment, since the exposure of the imaging system defined as the reference is adjusted to the background and the exposure of the other imaging system is adjusted to the foreground, for example, a certain parallax value may be divided into the foreground and the background, as threshold values, based on the information, the average value of lightness in each parallax.
Furthermore, the division into the foreground and the background may be made based on the information on the average parallax in each lightness.
According to a third embodiment of the present invention, in a case where a determination unit 4 determines that a light photographic object and a dark photographic object are alternately arranged in the depth direction, an exposure control unit 5 performs control in such a manner as to adjust an exposure of one imaging system to a light photographic object and adjust an exposure of the other imaging system to a dark photographic object. Then, the same photographic object is imaged by imaging systems 2L and 2R that are controlled to the different exposures. Accordingly, multiple images used in an image combination are configured from a first image that is captured by one imaging system with the exposure being adjusted to the light photographic object, and a second image that is captured by the other imaging system with the exposure being adjusted to the dark photographic object. A parallax calculation unit 3 calculates the parallax from the first image and the second image. When combining the image based on the parallax calculated by the parallax calculation unit 3, an image combination unit 6 defines one image of the first image and the second image, in which the exposure is adjusted to the second photographic object from the front, as a reference image, and combines the images by using a pixel value of the reference image with respect to a region in which the pixel value of the reference image is within a predetermined range, or by using a pixel value of a region corresponding to a region of the other image with respect to a region in which the pixel value of the reference image is not within the predetermined range. The third embodiment is described below with a specific example illustrated.
Furthermore, an image 2L3′ in
Here, one part of the dark photographic object 12b becomes a shadow of the light photographic object 12a, and one part of the light photographic object 12c becomes a shadow of the dark photographic object 12b. At this time, because the region 12bL has the blocked-up shadow in the image 2L3, the pixel value of the region 12bR of the image 2R3 is preferably used, but the blown-out highlight region 12aR is present and the corresponding pixel is not present in one part of the region 12bR of the image 2R3. Therefore, when the image 2L3 and the image 2R3 in
That is, in
In contrast,
Furthermore, the image 2L3′ in
Here, as in the example in
That is, in
As described above, it can be said that even in a case where the image is captured by adjusting the exposure of the imaging system 2L to the dark photographic object 12b and by adjusting the exposure of the imaging system 2R to the light photographic objects 12a and 12c, or even in a case where the image is captured by adjusting the exposure of the imaging system 2L to the light photographic objects 12a and 12c and by adjusting the exposure of the imaging system 2R to the dark photographic object 12b, there is a likelihood that the occlusion will occur at the time of the image combination, and the image quality will deteriorate. However, as illustrated in
Furthermore, as opposed to the example in
The embodiments described above is also applied to a large scale integration (LSI) that is an integrated circuit mounted on the imaging apparatus. That is, each function block of the imaging apparatus may be individually built into a chip, and one part or all of the function blocks may be integrated into a chip. Furthermore, a technique of the integrated circuit is not limited to LSI, and the integrated circuit for the function block may be realized as a dedicated circuit or a general-purpose processor. For example, processing, such as the parallax calculation, the determination, the exposure control and the image combination can be realized as hardware processing, such as a field programmable gate array (FPGA) and an application specific integrated circuit (ASIC), or as software processing by a microcomputer.
Number | Date | Country | Kind |
---|---|---|---|
2010-272130 | Dec 2010 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2011/076142 | 11/14/2011 | WO | 00 | 6/6/2013 |