This application claims the benefit of Japanese Patent Application No. 2010-125195 filed on May 31, 2010 in Japan, the contents of which are incorporated herein by reference.
The invention relates to an imaging apparatus for imaging a plurality of differently exposed images with parallax, and more particularly to an imaging apparatus having functions of measuring the distance to a subject and of generating a wide dynamic range image into which a plurality of images are combined.
In recent years, the use of digital cameras has been rapidly increasing in a wide range of applications such as security, infrastructure, and safety as is typified by surveillance cameras, in-vehicle cameras, and the like. Unlike performance requirements for digital cameras for general home use (e.g. high image quality and high resolution), use in such applications requires, for example, a wide dynamic range for reliably imaging a subject without the shadow and highlight details being lost under any circumstances and, for sensing purposes, a distance measurement function of measuring the distance to a subject.
A common way to generate a wide dynamic range image is to combine a plurality of images taken at different exposures, and there have been previously proposed a variety of techniques. A common technique to use a plurality of images with parallax to measure the distance to a subject in the images is to perform matching on the subject between the images and apply the principle of triangulation to the imaged position of the subject in each image. There also have been previously proposed a variety of methods for matching between images.
Various techniques have thus been independently proposed for generating wide dynamic range image and for measuring distance, while there have also been proposed techniques for performing both generation of a wide dynamic range image and measurement of distance from a plurality of differently exposed images with parallax. For example, an imaging apparatus described in Patent document 1 has a means of imaging a plurality of equally exposed images with parallax and a plurality of differently exposed images without parallax. This imaging apparatus measures the distance to a subject from the former images and generates a wide dynamic range image from the latter images, thereby providing both distance information and a wide dynamic range image.
Patent document 1: Japanese Patent Laid-Open Application No. 2003-18617
However, the conventional technique requires two equally exposed images with parallax for measuring the distance to a subject, two differently exposed images without parallax for generating a wide dynamic range image, and therefore at least 4 images in total.
Supposing that the images are taken by a common stereo camera, which can take two equally exposed images with parallax in one frame picture, images will therefore be taken in the tth frame at a given time at an exposure n, and be taken in the next (t+1)th frame at an exposure m. Distance information can then be determined from two images taken in the same frame. However, generation of a wide dynamic range image requires that an image taken in the tth frame and an image taken in the (t+1)th frame be combined, so there is a time lag in the imaging between the two images to be combined. There would be a problem of occurrence of a blurred image due to motion in a scene where a subject moves.
In a case where a stereo camera is used that can take two differently exposed images with parallax in one frame picture, images will be taken by a camera A at an exposure n and by a camera B at an exposure m in the tth frame at a given time, and be taken by the camera A at the exposure m and by the camera B at the exposure n in the (t+1)th frame. A wide dynamic range image can then be generated from two images taken in the same frame. However, distance measurement is performed with images taken in different frames, and therefore there is a time lag in the imaging. There would be a problem of not capable of correctly calculating the distance to a subject in a scene where a subject moves, as the subject moves between frames.
A purpose of the invention made for solving the conventional problems is to provide an imaging apparatus and imaging method that perform generation of a wide dynamic range image and measurement of the distance to a subject at the same time.
An imaging apparatus of the invention comprises: an imager for imaging with a plurality of imaging devices at different exposures to generate differently exposed images with parallax; an image brightness adjuster for adjusting the brightness of a plurality of images imaged by the imager, based on the exposure used for imaging each image; a matching unit for using a plurality of brightness-adjusted images with parallax to perform matching between the images, and determining matching information that specifies areas corresponding to one another between the images with parallax; a distance calculator for determining the distance to a given subject based on matching information on areas constituting an image of the subject; a position corrector for correcting positions in an image with parallax so as to eliminate the parallax from the image with parallax, based on the matching information; and a wide dynamic range image generator for combining a plurality of differently exposed images in which positions are corrected by the position corrector, and thereby generating an image having a wider dynamic range than images imaged by the imager.
The invention has a great advantage of being able to perform generation of a wide dynamic range image and measurement of the distance to a subject at the same time.
There are other aspects of the invention as described below. This disclosure of the invention therefore intends to provide part of the aspects of the invention and does not intend to limit the scope of the invention described and claimed herein.
The following is a detailed description of the invention. The embodiments described below are only examples of the invention, and the invention can be varied in various aspects. Therefore, the specific configurations and functions disclosed below do not limit the claims.
An imaging apparatus of the embodiment comprises: an imager for imaging with a plurality of imaging devices at different exposures to generate differently exposed images with parallax; an image brightness adjuster for adjusting the brightness of a plurality of images imaged by the imager, based on the exposure used for imaging each image; a matching unit for using a plurality of brightness-adjusted images with parallax to perform matching between the images, and determining matching information that specifies areas corresponding to one another between the images with parallax; a distance calculator for determining the distance to a given subject based on matching information on areas constituting an image of the subject; a position corrector for correcting positions in an image with parallax so as to eliminate the parallax from the image with parallax, based on the matching information; and a wide dynamic range image generator for combining a plurality of differently exposed images in which positions are corrected by the position corrector, and thereby generating an image having a wider dynamic range than images imaged by the imager.
In this configuration, generation of a wide dynamic range image and measurement of the distance to a subject can be performed at the same time.
The imaging apparatus of the embodiment has a configuration in which the image brightness adjuster adjusts the brightness of images using the ratio of exposures used for imaging each image.
In this configuration, images with parallax whose difference in brightness caused by a difference in exposure is adjusted can be obtained from a plurality of differently exposed images with parallax.
The imaging apparatus of the embodiment has a configuration in which: the imager images and thereby generates differently exposed first and second images with parallax; the image brightness adjuster generates an adjusted first image that is the first image whose brightness is adjusted based on the exposure of the second image and an adjusted second image that is the second image whose brightness is adjusted based on the exposure of the first image; and the matching unit performs matching between the first image and the adjusted second image to determine first matching information, performs matching between the adjusted first image and the second image to determine second matching information, and integrates the first matching information and the second matching information to determine the matching information.
This configuration allows the matching information to be appropriately generated by using the first and second matching information.
The imaging apparatus of the embodiment has a configuration in which the matching unit, for an area whose corresponding area is not determined by the matching between the first image and the adjusted second image nor by the matching between the adjusted first image and the second image, determines the correspondence relation by an interpolation process using correspondence information on an area surrounding the area concerned.
This configuration allows the matching information to be determined also for an area whose complete correspondence relation is not determined by matching between images whose image brightness is adjusted, by interpolating matching information on the surrounding area.
An imaging method of the embodiment comprises the steps of: imaging with a plurality of imaging devices at different exposures to generate differently exposed images with parallax; adjusting the brightness of a plurality of imaged images based on the exposure used for imaging each image; using a plurality of brightness-adjusted images with parallax to perform matching between the images, and determining matching information that specifies areas corresponding to one another between the images with parallax; determining the distance to a given subject based on matching information on areas constituting an image of the subject; correcting positions in an image with parallax so as to eliminate the parallax from the image with parallax, based on the matching information; and combining a plurality of differently exposed images in which positions are corrected in the position correction step, and thereby generating an image having a wider dynamic range than the imaged images.
A program of the embodiment has a configuration for, in order to generate images based on a plurality of images with parallax imaged at different exposures, causing a computer to execute the steps of: adjusting the brightness of a plurality of images based on the exposure used for imaging each image; using a plurality of brightness-adjusted images with parallax to perform matching between the images, and determining matching information that specifies areas corresponding to one another between the images with parallax; determining the distance to a given subject based on matching information on areas constituting an image of the subject; correcting positions in an image with parallax so as to eliminate the parallax from the image with parallax, based on the matching information; and combining a plurality of differently exposed images in which positions are corrected in the position correction step, and thereby generating an image having a wider dynamic range than the imaged images.
In this configuration, the imaging method and program of the embodiment can generate a wide dynamic range image and measure the distance to a subject at the same time. Various configurations of the imaging apparatus of the embodiment can be applied to the imaging method and program of the embodiment.
Now, an imaging apparatus of an embodiment of the invention will be described with reference to the drawings.
The camera 100 comprises a lens 10, an aperture 11, an imaging device 12, an A/D converter 13, and a picture signal processor 14. The camera 100 adjusts the aperture and shutter speed (not shown) so as to achieve an exposure (exposure m) specified by the exposure controller 30, and takes an image. Light incident from a subject through the lens 10 is restricted by the aperture 11 to form an image on the imaging device 12. The imaging device 12 photoelectrically converts the formed image and outputs the analog signal. The A/D converter 13 converts the analog signal outputted from the imaging device 12 to a digital signal. The picture signal processor 14 performs signal processing for generating a picture signal from the A/D-converted digital signal. The picture signal processor 14 performs brightness signal generation, color signal generation, aperture signal generation, and other signal processing, as well as OB subtraction, white balance adjustment, noise reduction, and other common picture signal processing.
The camera 101 has the same configuration as the camera 100. The camera 101 adjusts the aperture and shutter speed so as to achieve an exposure (exposure n) specified by the exposure controller 30, and takes an image.
The exposure controller 30 for controlling the exposure of the cameras 100 and 101 will next be described. First, a usual exposure control method will be described with reference to
The picture brightness value is compared to the predetermined target brightness value and, if the picture brightness value is smaller than the target brightness value, the exposure for a frame t+1 (exposure b) is set to b>a so that the frame t+1 becomes brighter than the frame t. As the imaging operation, the exposure is increased by opening up the aperture or setting the shutter speed slower so that the exposure becomes larger. Conversely, if the picture brightness value is larger than the target brightness value, the exposure for the frame t+1 is set to b<a so that the frame t+1 becomes darker than the frame t. As the imaging operation, the exposure is decreased by stopping down the aperture or setting the shutter speed faster. If the picture brightness value is equal to the target brightness value, the exposure a is an appropriate exposure and therefore the exposure for the frame t+1 is set to b=a. This is the general exposure control.
In the embodiment, differently exposed images are combined to generate a wide dynamic range image in which subjects ranging from bright subjects to dark subjects can be imaged, so the cameras 100 and 101 are set to exposures different from each other.
As a result, for example, a subject like the sun whose highlight details are lost due to its extreme brightness with the camera 100 becomes able to be imaged at an appropriate brightness with the camera 101. Conversely, a subject like a tree or person which can be imaged at an appropriate brightness with the camera 100 is imaged dark with the camera 101. Since the camera 100 performs the previously-described usual exposure control to determine the exposure mt+1 for the next frame t+1 but the exposure of the camera 101 can be calculated with reference to the exposure of the camera 100, the camera 101 does not perform the usual exposure control but determines the exposure by nt+1=mt+1/(the specified ratio) based on the exposure mt+1 determined by the camera 100. While a wider dynamic range image can be generated as the specified ratio becomes larger, there are problems in some aspects such as image quality due to the need to combine much differently exposed images, and it is required to establish a moderate specified ratio in consideration of both the expansion of the dynamic range and the adverse effect of image quality degradation.
By combining the two images imaged in such a brightness relation, a wide dynamic range image can be generated in which subjects ranging from bright subjects to dark subjects are imaged at an appropriate brightness.
Returning to
Returning to
The matching unit 21 performs image matching between two images, an image (exposure m) and an image (corresponding to the exposure m), and the matching unit 22 performs image matching between two images, an image (exposure n) and an image (corresponding to the exposure n). That is, matching is performed between images with parallax imaged at equal exposures. A known method is applied here as the technique of matching between two images, and the invention is not limited to a particular matching technique. This matching can establish the correspondence of pixels between images. The information showing this correspondence is called matching information. The result of the matching performed between the image (exposure m) and the image (corresponding to the exposure m) is referred to as matching information m, and the result of the matching performed between the image (exposure n) and the image (corresponding to the exposure n) is referred to as matching information n. The matching interpolator 23 integrates and interpolates the matching information m and n, thereby generating matching information ALL for each pixel in the images.
The matching interpolator 23 judges whether matching information is determined for the target pixel p or not (s12) and, if the matching information has already been determined, goes on to the process for the next pixel (s15). If the matching information has not been determined, the matching interpolator 23 searches for a pixel surrounding the target pixel p and whose matching information has been determined (s13), determines the matching information on the target pixel p by interpolating the matching information on the surrounding pixel, and provides the target pixel p with the matching information determined by the interpolation (s14). Since this allows the matching information to be determined for the target pixel p, the matching interpolator 23 goes on to the process for the next pixel (s15). When the matching interpolator 23 has finished processing all pixels as the target pixel, the matching interpolator 23 ends the process (s16). At the end of the process, a state is achieved in which all pixels are provided with matching information.
The distance calculator 31 then uses the image imaged by the camera 100 and the matching information ALL to calculate the distance from the camera 100 to a subject in the image. Since the cameras 100 and 101 are horizontally installed a predetermined distance apart in advance, the distance can be determined by applying a known triangulation method as the method of calculating the distance to a subject. The matching information may also be applied to the image imaged by the camera 101 and to a wide dynamic range image generated by the wide dynamic range image generator 32 as well, so the image is not limited to the image imaged by the camera 100.
The wide dynamic range image generator 32 combines the two images, i.e. the image imaged by the camera 100 (exposure m) and the image imaged by the camera 101 and in which positions are corrected by the position corrector 24 (exposure n), to generate a wide dynamic range image that is an image separately imaged at appropriate brightness levels of the exposures m and n (see
As seen above, the imaging apparatus of the embodiment can perform generation of a wide dynamic range image and measurement of the distance to a subject at the same time by generating virtually equally exposed images from differently exposed images with parallax taken at the same time.
In the imaging apparatus of the embodiment described above, the image exposure changers 200 and 201, the image parallax corrector 300, the distance calculator 31, and the wide dynamic range image generator 32 may be implemented by executing a program on a computer. Such a program is included in the scope of the invention.
While there have been described what are at present considered to be preferred embodiments of the invention, various modifications and variations may be made thereto, and it is intended that appended claims cover all such modifications and variations as fall within the true spirit and scope of the invention.
As stated above, the imaging apparatus according to the invention has a great advantage of being able to perform generation of a wide dynamic range image and measurement of the distance to a subject at the same time from differently exposed images with parallax taken at the same time, and is useful for sensing-type camera systems or the like that require a wide dynamic range image and distance information.
1: Imaging apparatus
10: Lens
11: Aperture
12: Imaging device
13: A/D converter
14: Picture signal processor
15: Image brightness adjuster
16, 17: Image buffer
21, 22: Matching unit
23: Matching interpolator
24: Position corrector
30: Exposure controller
31: Distance calculator
32: Wide dynamic range image generator
100, 101: Camera
200, 201: Image exposure changer
300: Image parallax corrector
Number | Date | Country | Kind |
---|---|---|---|
2010-125195 | May 2010 | JP | national |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2010/004813 | Jul 2010 | US |
Child | 13238405 | US |