This application claims benefit of the Japanese Patent Application No. 2007-298854 filed on Nov. 19, 2007, the entire content of which is hereby incorporated by reference.
1. Technical Field
The present invention relates to an imaging apparatus that uses an imaging device to detect light focused by various types of lenses, such as a fisheye lens and a wide-angle lens, enlarges some of image signals detected by the imaging device, corrects distortion, and displays an image on a display screen.
2. Related Art
An imaging apparatus that uses a camera including a fisheye lens or an optical lens and an imaging device to capture an external image and displays the image on a display device has been used for security or vehicles. In particular, in an imaging apparatus for a vehicle, a camera is attached to the body of the vehicle and captures an external image in the wide range. However, the distortion of an image detected by an imaging device of a camera using a fisheye lens or a wide-angle lens is increased as a field angle from the optical axis of the lens is increased.
Therefore, JP-A-2000-324386 discloses a technique that calculates the distortion of an image captured by a camera and corrects the distortion of the image. However, JP-A-2000-324386 does not disclose a method of calculating the distortion. Since the image captured by the camera using the fisheye lens or the wide-angle lens has a three-dimensional depth, a three-dimensional geometric process is needed to calculate the distortion of the image, which results in an increase in the amount of computation. In addition, a large load is applied to a CPU in order to continuously calculate the distortion of the image captured by the camera using the fisheye lens or the wide-angle lens.
JP-A-2004-40411 discloses a display system which includes a conversion table that corrects the distortion of a curved image and uses the conversion table to convert the curved image captured by a camera into display data.
However, in this method, the conversion table corresponds to only a section having a predetermined size that is disposed at a predetermined position of the image captured by the camera. Therefore, when a plurality of sections is extracted from the image captured by the camera and then displayed on a display device, it is necessary to prepare the conversion table for each of the sections. That is, since the conversion table corresponds to a predetermined region of the image captured by the camera, the conversion table has low compatibility. For example, when the angle at which the camera is attached deviates from the original position and the actual image is different from the image of a predetermined section in the conversion table, it is difficult to exactly correct the captured image.
Japanese Patent No. 3300334 discloses a technique in which a matching table corresponding to a display region is prepared in advance, and pixels of images captured by a plurality of cameras are displayed to correspond to predetermined coordinates in the matching table. Similar to the disclosure of JP-A-2004-40411, the arrangement disclosed in Japanese Patent No. 3300334 can correct only the distortion of an image in a predetermined section.
In addition, since the corrected image is subjected to plane development, the overall field angle of the image is decreased.
According to an aspect of the invention, an imaging apparatus includes: a lens; an imaging device that detects light focused by the lens at a plurality of detection points; and an image processing unit that generates image data for displaying an image on a display screen having a predetermined area, on the basis of image signals detected at the detection points of the imaging device. The image processing unit performs image processing to enlarge a section, which is a portion of the image captured by the imaging device, and display the enlarged image on the display screen, and in the image processing, the enlargement ratio of a field angle varies depending on the place in the section.
The imaging apparatus according to the above-mentioned aspect of the invention extracts a portion of the image captured by an imaging device of a camera using, for example, a fisheye lens or a wide-angle lens, and changes the enlargement ratio of the field angle of the extracted image depending on the place, thereby enlarging a portion of the captured image and reducing the other portions. In this way, it is possible to display an image with little distortion on a display screen.
The enlargement ratio of the field angle of a portion of the image is calculated from a change function. Therefore, it is possible to correct the distortion of a captured image with a minimum amount of computation.
A portion of the image captured by the imaging device of the camera is converted into a central projection image, and then the pixels of the display screen correspond to the detection points of the imaging device. Therefore, it is possible to accurately correct the distortion of a portion of the captured image with a simple operation and display the corrected image on the display screen.
As a result, according to the above-mentioned aspect of the invention, it is possible to reduce the distortion of an image and obtain a wide-angle display image by enlarging an interest region of the image detected by a lens, such as a fisheye lens or a wide-angle lens, and reducing the other regions.
An imaging apparatus 10 includes a fisheye camera 11. For example, the fisheye camera 11 is attached to the body of a vehicle 1. In the embodiment shown in
As shown in
Image signals (brightness signals) detected at the detection points of the imaging device 13 are converted into digital image signals by an image detecting unit 14, and then transmitted to an image processing unit 15. A memory 16, serving as a storage unit, is attached to the image processing unit 15, and the image processing unit 15 and the memory 16 are controlled by a control unit 17. The image processing unit 15 processes the digital image signals transmitted from the image detecting unit 14. The control unit 17 has a CPU as a main component, and can control both the image processing unit 15 and a display driver 18. Image data obtained by the image processing unit 15 is transmitted to the display driver 18, and an image is displayed on a display panel 19, such as a liquid crystal display panel provided in the vehicle.
These types of fisheye lenses can be represented by one model equation given below, using the image height ra as r(θi):
r(θi)=k1θi+k2θi3+k3θi5+k4θi7+ . . . .
In this embodiment, a polynomial, which is the model equation of the fisheye lens from which an arbitrary high-order term is omitted, is stored in the memory 16. For example, the memory 16 stores the following polynomial:
r(θi)=k1θi+k2θi3.
However, the degree of the polynomial may be arbitrarily set.
r=f·tan θ.
The model of the central projection shown in
In this case, the enlargement ratio of the field angle varies depending on the distance from the optical axis O1. For example, the field angle of a region close to the optical axis O1 is increased. As the distance from the optical axis O1 is increased, the enlargement ratio is decreased or gradually reduced. Alternatively, as the distance from the optical axis O1 is increased, the enlargement ratio may be gradually increased.
This image processing makes it possible to increase the enlargement ratio of an interest region of an image to be displayed as the display image 30 or a region including necessary information and to gradually decrease the enlargement ratio of the field angle of the region as the distance from the region is increased.
In the example shown in
In
For example, the change function T(x) shown in
Similarly, the memory 16 stores a change function T(y) of the field angle in the Y-axis direction. The change function T(y) of the field angle in the Y-axis direction has a different curvature from the change function T(x) of the field angle in the X-axis direction.
When the change functions T(x) and T(y) are used to perform image processing, it is possible to change the enlargement ratio of the field angle of an image depending on the place, and gradually change the direction in which the field angle of the image is enlarged, depending on the place.
The change function T(x) shown in
The change function T(x) is generated by determining the enlargement ratios of a plurality of points on the basis of the position, the area, and the enlargement ratio of the section 30a, which is a portion of the captured image 20, and linking points indicating the plurality of enlargement ratios into a parametric curve, such as a B spline curve. That is, the positional information of the plurality of enlargement ratios and a function of the parametric curve are stored in the memory 16. In this way, it is possible to store the change function T(x) shown in
The first image processing method is performed as follows. In the first image processing method, correspondences between the image signals (brightness signal) detected at the detection points of the imaging device 13 and the pixels Pi of the display screen 19a of the display panel 19 shown in
First, the X-axis coordinate of the pixel Pi is substituted into the horizontal axis of the change function T(x) shown in
In the example shown in
Then, the positions rx and ry of a display point of the display image are calculated from a focal length f corresponding to the enlargement ratio of the display image, the field angle αx, and the field angle αy.
For example, the normalized field angles αx and αy of the captured image are used to calculate an image forming position on an image surface Ha in the central projection that does not follow the distortion shown in
rx=f·tan(αx), and
ry=f·tan(αy).
As described above, it is possible to find the zenith angle θi and the azimuth angle Φi shown in
Then, the zenith angle θi and the azimuth angle Φi are substituted into the model equation of the fisheye lens 12 used for the fisheye camera 11 to calculate the image signal (brightness signal) of a detection point on the captured image 20 shown in
r(θi)=k1·θi+k2·θi3,
mx=r(θi)·cos(Φi), and
my=r(θi)·sin(Φi).
r(θi)(=k1θi+k2θi3+k3θi5+k4θi7+ . . . ) may have any order as long as it is a polynomial in which an arbitrary high-order term is omitted.
The above-mentioned process is performed on all the pixels Pi of the display screen 19a.
In the above-mentioned first image processing method, the image formed on the imaging device 13 of the fisheye camera 11 is converted into a central projection image. In this way, it is possible to correct the distortion of the enlarged display image 30 shown in
In contrast, in the above-mentioned image processing method, as shown in
The use of the change functions makes it possible to directly convert the image captured by the fisheye camera into a central projection image, and correct an excessively large region or an excessively small region to obtain the display image 30 with high visibility.
A second image processing method is performed to obtain a uniform aspect ratio of an image, such as the display image 30A shown in
The second image processing method uses the change function T(x) that determines an enlargement ratio in the X-axis direction, which is shown in
In the second image processing method, the positional information of the pixel Pi of the display screen 19a is substituted into the change function T(x) in the X-axis direction to calculate the normalized field angle αX in the X-axis direction, similar to the first image processing method.
In addition, the positional information of the pixel Pi is substituted into the change function T(y) in the Y-axis direction to calculate the normalized field angle αy in the Y-axis direction. However, the X-axis coordinate of the pixel is substituted into the differential function T′(x) to calculate a differential correction value. When the field angle of each pixel Pi in the Y-axis direction is calculated, the differential correction value at the X-axis coordinate of the pixel Pi is added to the field angle αy calculated by the change function T(y) to obtain a normalized field angle αy′ after the aspect ratio is corrected. The differential correction value is obtained by multiplying the differential function T′(x) by a predetermined coefficient.
That is, the aspect ratio is corrected such that, as the amount of distortion in the X-axis direction is increased, the field angle in the Y-axis direction is increased. The obtained normalized field angles αx and αy′ are used to calculate the coordinates rx and ry of an image point on the central projection image, and the coordinates (mx, my) of a detection point corresponding to the pixel Pi on the captured image 20 are calculated from the zenith angle θi and the azimuth angle Φi. This correction process makes it possible to obtain a display image 30A having a corrected aspect ratio shown in
The memory 16 stores the change function T1(x) shown in
The enlargement ratio may be changed by a simple switching process of switching the change function used for image processing between the change function T1(x) shown in
In addition, a change function Tm(x) in the X-axis direction shown in
That is, the change function Tm(x) in the X-axis direction shown in
In
The generation of the enlarged images shown in
In the above-described embodiment, a camera using the fisheye lens is used as an example, but the invention is not limited thereto. For example, the invention may use a wide-angle lens that has a field angle of about 60° or more and generates visible distortion at the edge of a detected image. In the invention, the wide-angle lens includes the fisheye lens.
Number | Date | Country | Kind |
---|---|---|---|
2007-298854 | Nov 2007 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5185667 | Zimmermann | Feb 1993 | A |
RE36207 | Zimmermann et al. | May 1999 | E |
6005611 | Gullichsen et al. | Dec 1999 | A |
6833843 | Mojaver et al. | Dec 2004 | B2 |
20030103063 | Mojaver et al. | Jun 2003 | A1 |
Number | Date | Country |
---|---|---|
1 580 0986 | Sep 2005 | EP |
09-048282 | Feb 1997 | JP |
2000-324386 | Nov 2000 | JP |
3300334 | Apr 2002 | JP |
2004-040411 | Feb 2004 | JP |
Number | Date | Country | |
---|---|---|---|
20090128686 A1 | May 2009 | US |