JP5455033B2 - Distance image input device and outside monitoring device - Google Patents

Distance image input device and outside monitoring device Download PDF

Info

Publication number
JP5455033B2
JP5455033B2 JP2009274207A JP2009274207A JP5455033B2 JP 5455033 B2 JP5455033 B2 JP 5455033B2 JP 2009274207 A JP2009274207 A JP 2009274207A JP 2009274207 A JP2009274207 A JP 2009274207A JP 5455033 B2 JP5455033 B2 JP 5455033B2
Authority
JP
Japan
Prior art keywords
parallax
image
imaging
distance
lens
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009274207A
Other languages
Japanese (ja)
Other versions
JP2011117787A (en
Inventor
禎郎 高橋
展弘 森田
剛 丸山
順 渡部
利道 萩谷
青木  伸
育夫 前田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009274207A priority Critical patent/JP5455033B2/en
Publication of JP2011117787A publication Critical patent/JP2011117787A/en
Application granted granted Critical
Publication of JP5455033B2 publication Critical patent/JP5455033B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Optical Distance (AREA)
  • Image Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Description

この発明は、被写体の画像から視差情報を求め、求めた視差情報から被写体までの距離を検出して撮像範囲にある被写体までの距離を認識する距離画像入力装置と車外監視装置に関するものである。   The present invention relates to a distance image input device and a vehicle exterior monitoring device that obtain parallax information from an image of a subject, detect a distance to the subject from the obtained parallax information, and recognize a distance to a subject in an imaging range.

被写体を撮影して被写体の画像を得る画像入力装置は、携帯機器、車載機器、医療機器や産業機器等における情報取得手段として有用である。また、被写体の二次元の画像情報のみならず、被写体までの距離や被写体の三次元形状など距離情報も同時に検知する距離画像入力装置への要求が高くなっている。   An image input device that captures an image of a subject to obtain an image of the subject is useful as an information acquisition unit in a portable device, an in-vehicle device, a medical device, an industrial device, or the like. In addition, there is an increasing demand for a distance image input device that simultaneously detects not only two-dimensional image information of a subject but also distance information such as a distance to the subject and a three-dimensional shape of the subject.

従来の距離画像情報を取得する距離画像入力装置は、特許文献1に示すようにステレオカメラが使用されている。この距離画像入力装置はレンズの光軸と略垂直な平面内に2台以上のカメラを設置し、それらのカメラによる画像の視差から三角測量の原理に基づき被写体までの距離や被写体の三次元形状を取得する。   As a conventional distance image input device for acquiring distance image information, a stereo camera is used as shown in Patent Document 1. In this distance image input device, two or more cameras are installed in a plane substantially perpendicular to the optical axis of the lens, and the distance to the subject and the three-dimensional shape of the subject based on the principle of triangulation from the parallax of the images from these cameras. To get.

この距離画像入力装置を任意の場所に設置することを可能にするためには装置の小型化と薄型化が望まれている。しかしながら特許文献1に示すように、2台以上のカメラを配置すると、装置の小型化には限界があり、また、配置の経時変動に伴う距離や形状の取得誤差が生じやすい。さらに、カメラを構成するレンズ群やイメージセンサに個体差があるため、それらのキャリブレーションの必要が生じる。このカメラ配置やカメラ個体差のキャリブレーションは製作コストや装置コストを増大させる原因となる。   In order to make it possible to install this distance image input device at an arbitrary place, it is desired to reduce the size and thickness of the device. However, as shown in Patent Document 1, when two or more cameras are arranged, there is a limit to downsizing the apparatus, and a distance and shape acquisition error is likely to occur due to the temporal variation of the arrangement. Furthermore, since there are individual differences in the lens groups and image sensors constituting the camera, it is necessary to calibrate them. This calibration of camera arrangement and individual camera difference causes an increase in manufacturing cost and apparatus cost.

この距離画像入力装置の小型化を図るため、特許文献2に示された距離画像入力装置は、一体形成した固定焦点の複数の光学ブロックを用い、装置を小型化するとともに明るさの確保を図っている。   In order to reduce the size of the distance image input device, the distance image input device disclosed in Patent Document 2 uses a plurality of integrally formed fixed-focus optical blocks to reduce the size of the device and ensure brightness. ing.

距離画像入力装置で正確な距離と画像の情報を取得するためには、焦点の合った画像を得ることは必須である。被写体までのあらゆる距離で焦点の合った画像を得るには、撮像装置のレンズを所定の被写体までの距離に合焦させる必要があり、特に被写体までの距離が短い接写の場合には、被写界深度が浅く、被写体までの距離の変化による画質変動が大きくなるため合焦機能の必要性はより高くなる。特許文献2に示すように、固定焦点の光学ブロックにより被写体の撮像を行うと、被写体までの距離によっては焦点の合った像が得られず、距離や形状の検出が困難になる場合がある。   In order to obtain accurate distance and image information with the distance image input device, it is essential to obtain a focused image. To obtain a focused image at any distance to the subject, it is necessary to focus the lens of the imaging device to the distance to the predetermined subject, especially in close-up shooting where the distance to the subject is short. Since the depth of field is shallow and the image quality variation due to the change in the distance to the subject increases, the necessity of the focusing function becomes higher. As shown in Patent Document 2, when a subject is imaged with a fixed focus optical block, a focused image may not be obtained depending on the distance to the subject, and it may be difficult to detect the distance and shape.

異なる被写体までの距離に焦点を合わせるため、特許文献3に示された撮像装置は、レンズとして液体レンズや液晶レンズを使用し、焦点距離変更を示す入力信号によりレンズの焦点距離を変化させている。また、特許文献4に示された距離画像入力装置は、焦点距離が等しい2つのレンズ系を有する複眼撮像系と、このレンズ系より焦点距離が長い2つのレンズ系を有する複眼撮像系を使用して異なる被写体までの距離に焦点を合わせて広角領域で近い距離までと狭角領域で遠い距離までの距離分布情報を得るようにしている。   In order to focus on the distance to different subjects, the imaging apparatus disclosed in Patent Document 3 uses a liquid lens or a liquid crystal lens as a lens, and changes the focal length of the lens by an input signal indicating a change in focal length. . In addition, the distance image input device disclosed in Patent Document 4 uses a compound eye imaging system having two lens systems having the same focal length and a compound eye imaging system having two lens systems having a longer focal length than the lens system. Focusing on the distances to different subjects, distance distribution information is obtained from near distances in the wide-angle area and far distances in the narrow-angle area.

特許文献3に示された撮像装置は、焦点調整手段として物理的な可動部を必要とするため、装置の小型化と高速化に限界があるとともにコストが増大するという短所がある。また、この撮像装置は距離の検出機能を有さない。   The image pickup apparatus disclosed in Patent Document 3 requires a physical movable part as a focus adjustment unit, and thus has a disadvantage in that there is a limit to downsizing and speeding up of the apparatus and an increase in cost. Further, this imaging apparatus does not have a distance detection function.

特許文献4に示された距離画像入力装置は小型化には限界があるとともに、レンズ系の配置やイメージセンサの個体差等に伴うキャリブレーションの問題が残存する。また、遠方の距離において広い範囲にある物体を検出することができず、車載用カメラへの応用としてはそれで十分でもマシンビジョンなどその他の応用には向かないという短所がある。   The distance image input device disclosed in Patent Document 4 has limitations in miniaturization, and calibration problems associated with the arrangement of lens systems and individual differences in image sensors remain. Further, it cannot detect an object in a wide range at a distant distance, and has a disadvantage that it is not suitable for other applications such as machine vision even if it is sufficient as an application for a vehicle-mounted camera.

この発明は、このような短所を改善し、画角が等しく、それぞれ異なる距離に焦点があった複数のステレオ画像ペアを取得して距離精度と位置精度が高い距離画像を検出することができるとともにコストを低減できる距離画像入力装置と車外監視装置を提供することを目的とするものである。   The present invention improves such disadvantages, and can acquire a plurality of stereo image pairs having the same angle of view and focused at different distances to detect a distance image with high distance accuracy and position accuracy. An object of the present invention is to provide a distance image input device and a vehicle exterior monitoring device that can reduce costs.

この発明の距離画像入力装置は、撮像装置と演算処理ユニットを有し、前記撮像装置は、被写体を撮像して、それぞれ異なる距離に焦点があった複数のステレオ画像を出力し、前記演算処理ユニットは、視差検出手段と視差合成手段及び距離算出手段を有し、前記視差検出手段は、前記撮像装置から出力する複数のステレオ画像がそれぞれ有する固有の特徴に基づいて視差を計算して視差情報を有する複数の視差画像を出力し、前記視差合成手段は、前記視差検出手段から出力する複数の視差画像を合成して合成視差画像を出力し、前記距離算出手段は、前記視差合成手段から出力する合成視差画像から被写体までの距離を算出して距離画像を出力し、前記撮像装置が、前記複数のステレオ画像を得るための複数組みの撮像レンズと、撮像素子とを有し、前記複数組みの撮像レンズは前記撮像素子側の焦点距離が組み間で互い略等しいことを特徴とする。
前記複数組みの撮像レンズは、組み間で互いにレンズサグが等しく曲率半径が異ることによって被写体側の焦点距離が異なり、各撮像レンズに一対一で対応する互いに有効径が略等しい複数の開口を有する開口アレイが、前記複数組みの撮像レンズの被写体側に設けられていることを特徴とする。
The distance image input device of the present invention includes an imaging device and an arithmetic processing unit, and the imaging device images a subject and outputs a plurality of stereo images each focused at different distances, and the arithmetic processing unit Includes a parallax detection unit, a parallax synthesis unit, and a distance calculation unit, and the parallax detection unit calculates the parallax based on the unique features of each of the plurality of stereo images output from the imaging device, and obtains the parallax information. A plurality of parallax images, the parallax synthesis unit outputs a synthesized parallax image by synthesizing the plurality of parallax images output from the parallax detection unit, and the distance calculation unit outputs from the parallax synthesis unit calculates the distance from synthetic parallax image to the subject and outputs a distance image, the imaging apparatus, the imaging lens of the plurality sets for obtaining said plurality of stereo images, the imaging element Has the door, said plurality of sets of the imaging lens is characterized in that each other substantially equal between the set focal length of the image pickup element side.
The plurality of sets of imaging lenses have a plurality of apertures corresponding to each imaging lens in a one-to-one correspondence and having substantially equal effective diameters because the lens sag is the same and the curvature radius is different between the sets, and the object side has a different focal length. An aperture array is provided on the subject side of the plurality of sets of imaging lenses.

前記視差検出手段で前記撮像装置から出力する複数のステレオ画像から視差を計算する固有の特徴は、各ステレオ画像の焦点が合う距離の範囲であることを特徴とする。   The unique feature of calculating the parallax from a plurality of stereo images output from the imaging device by the parallax detection means is a range of distances at which the stereo images are in focus.

また、前記視差検出手段は、焦点が合う距離の範囲に相当する視差の範囲において各ステレオ画像ペアの視差の計算を実行することを特徴とする。   In addition, the parallax detection unit performs a parallax calculation of each stereo image pair in a parallax range corresponding to a range of distances in focus.

前記撮像装置は、複数のレンズが各々曲率半径の異なる複数のステレオレンズから構成されてなるレンズアレイと、前記レンズアレイの像面側に設けられた、前記複数のステレオレンズのそれぞれにより結像される前記被写体の画像の集合である複眼像を撮像する撮像素子を有することを特徴とする。   The imaging device forms an image by each of a lens array in which a plurality of lenses are composed of a plurality of stereo lenses each having a different radius of curvature, and the plurality of stereo lenses provided on the image plane side of the lens array. And an imaging element that captures a compound eye image that is a set of images of the subject.

また、前記撮像装置の複数のステレオレンズはレンズサグを一定にしたまま曲率半径を変えたことを特徴とする。   Further, the plurality of stereo lenses of the imaging apparatus are characterized in that the radius of curvature is changed while keeping the lens sag constant.

この発明の車外監視装置は、前記距離画像入力装置と表示装置を有し、車両に搭載されることを特徴とする。   A vehicle exterior monitoring device according to the present invention includes the distance image input device and a display device, and is mounted on a vehicle.

この発明は、それぞれ異なる距離に焦点があった複数のステレオ画像を出力し、出力した複数のステレオ画像がそれぞれ有する固有の特徴に基づいて視差を計算して視差情報を有する複数の視差画像を出力し、出力した複数の視差画像を合成した合成視差画像から被写体までの距離を算出して距離画像を出力するから、被写体の位置と距離精度の高い距離画像を得ることができる。   The present invention outputs a plurality of stereo images each focused on different distances, calculates a parallax based on a unique feature of each of the plurality of output stereo images, and outputs a plurality of parallax images having parallax information Since the distance to the subject is calculated from the synthesized parallax image obtained by synthesizing the plurality of output parallax images, the distance image is output, so that a distance image with high accuracy of the position of the subject can be obtained.

また、複数のステレオ画像から視差を計算する固有の特徴として各ステレオ画像の焦点が合う距離の範囲にするから、被写体の位置と距離精度の高い距離画像を得ることができる。   In addition, since each stereo image is in a distance range where the stereo image is focused as a unique feature for calculating the parallax from a plurality of stereo images, a distance image with high accuracy of the position of the subject and the distance can be obtained.

さらに、焦点が合う距離の範囲に相当する視差の範囲において各ステレオ画像ペアの視差を計算するから、被写体の位置と距離精度の高い距離画像を得ることができる。   Furthermore, since the parallax of each stereo image pair is calculated in the parallax range corresponding to the range of the in-focus distance, it is possible to obtain a range image with high accuracy of the position of the subject.

また、撮像装置を複数のレンズが各々曲率半径の異なる複数のステレオレンズから構成されてなるレンズアレイと、複数のステレオレンズのそれぞれにより被写体の複眼像を撮像する撮像素子を有するから、異なる距離に焦点を合わせることができ、可動部無しに深い被写界深度を実現可能とする低コストで薄型の距離画像入力装置を提供することができる。   In addition, since the imaging apparatus has a lens array in which a plurality of lenses are composed of a plurality of stereo lenses each having a different radius of curvature, and an imaging element that captures a compound eye image of the subject by each of the plurality of stereo lenses, the imaging device has different distances. It is possible to provide a low-cost and thin distance image input device that can be focused and can realize a deep depth of field without a movable part.

さらに、撮像装置の複数のステレオレンズをレンズサグを一定にしたまま曲率半径を変えることにより、各ステレオレンズの有効径をほぼ一定にすることができ、レンズ有効径の相違による不具合を排除できる。   Furthermore, by changing the radius of curvature of the plurality of stereo lenses of the image pickup device while keeping the lens sag constant, the effective diameter of each stereo lens can be made substantially constant, and problems due to differences in the effective lens diameter can be eliminated.

また、この発明の距離画像入力装置を車外監視装置に使用することにより、遠距離の被写体から近距離の被写体のステレオ画像を得ることができ、広い距離範囲に対して高精度な距離測定を行うことができる。   In addition, by using the distance image input device of the present invention for an out-of-vehicle monitoring device, a stereo image of a short-distance subject can be obtained from a long-distance subject, and highly accurate distance measurement is performed over a wide distance range. be able to.

この発明の距離画像入力装置の構成図である。It is a block diagram of the distance image input device of this invention. 距離画像入力装置の被写体方向からみた配置図である。FIG. 6 is a layout view of the distance image input device as viewed from the subject direction. ステレオレンズによるMTFの変化特性図である。It is a change characteristic figure of MTF by a stereo lens. レンズサグと有効径の変化を示す模式図である。It is a schematic diagram which shows a lens sag and the change of an effective diameter. 距離画像入力装置で撮像した画像から距離画像を得る処理を示すフローチャートである。It is a flowchart which shows the process which acquires a distance image from the image imaged with the distance image input device. 撮像した複眼像を示す図である。It is a figure which shows the imaged compound eye image. 第1の視差画像から第4の視差画像を合成する処理を示すフローチャートである。It is a flowchart which shows the process which synthesize | combines a 4th parallax image from a 1st parallax image. 距離画像入力装置を用いた車外監視装置の構成図である。It is a block diagram of the monitoring apparatus outside a vehicle using a distance image input device.

図1はこの発明の距離画像入力装置の構成図である。距離画像入力装置1は、撮像装置2と演算処理ユニット3を有する。   FIG. 1 is a block diagram of a distance image input apparatus according to the present invention. The distance image input device 1 includes an imaging device 2 and an arithmetic processing unit 3.

撮像装置2は、レンズアレイ4と遮光壁5と開口アレイ6と基板8に実装された撮像素子7及び筐体9を有する。レンズアレイ4は、図1と図2の被写体方向からみた配置図に示すように、偶数、例えば第1の撮像レンズ411と第2の撮像レンズ412と第3の撮像レンズ421と第4の撮像レンズ422と第5の撮像レンズ431と第6の撮像レンズ432と第7の撮像レンズ441と第8の撮像レンズ442の8つがアレイ状に配列されている。第1の撮像レンズ411から第8の撮像レンズ442は、被写体側のレンズ面40aと像面側のレンズ面40bの2面からなり、レンズ面40aとレンズ面40bがセットになって被写体の像を像面上で結像させる。遮光壁5は、金属や樹脂等の撮像光線に対して不透明な材料からなり、レンズアレイ4における隣接する撮像レンズ間での光線のクロストーク(混線)を防止するための遮光用隔壁を形成するものであり、図2に示すように、レンズアレイ4の第1の撮像レンズ411から第8の撮像レンズ442にそれぞれ対応して矩形の孔があけられており、孔と孔の間の壁が隔壁として作用する。この遮光壁5はレンズアレイ4の像側の面と接着されている。開口アレイ6は、板状部材に第1の撮像レンズ411から第8の撮像レンズ442のそれぞれに対応して円形孔6aが設けられ、第1の撮像レンズ411から第8の撮像レンズ442の絞りとして作用する。この開口アレイ6はレンズアレイ4の被写体側の面の平面部に設けられた突起部4aを介してレンズアレイ4に接着されている。撮像素子7は、例えばCMOSセンサからなり、第1の撮像レンズ411から第8の撮像レンズ442を通った光を入射して撮像される被写体の画像データを演算処理ユニット3に出力する。筐体9はレンズアレイ4の被写体側の面に被写体側の端部が接着され、レンズアレイ4と遮光壁5及び開口アレイ6を保持した状態で基板5の撮像素子7側の面に接着されている。   The imaging device 2 includes a lens array 4, a light shielding wall 5, an aperture array 6, an imaging device 7 mounted on a substrate 8, and a housing 9. The lens array 4 is an even number, for example, the first imaging lens 411, the second imaging lens 412, the third imaging lens 421, and the fourth imaging, as shown in the layout diagrams viewed from the subject direction in FIGS. Eight lenses, a lens 422, a fifth imaging lens 431, a sixth imaging lens 432, a seventh imaging lens 441, and an eighth imaging lens 442 are arranged in an array. The first imaging lens 411 to the eighth imaging lens 442 are composed of two surfaces, a lens surface 40a on the object side and a lens surface 40b on the image surface side, and the lens surface 40a and the lens surface 40b are set as an image of the object. Is imaged on the image plane. The light shielding wall 5 is made of a material opaque to imaging light such as metal or resin, and forms a light shielding partition for preventing crosstalk (crosstalk) of light between adjacent imaging lenses in the lens array 4. As shown in FIG. 2, rectangular holes are formed corresponding to the first imaging lens 411 to the eighth imaging lens 442 of the lens array 4, and the wall between the holes is Acts as a septum. The light shielding wall 5 is bonded to the image side surface of the lens array 4. The aperture array 6 is provided with circular holes 6 a corresponding to the first imaging lens 411 to the eighth imaging lens 442 in the plate member, and the apertures of the first imaging lens 411 to the eighth imaging lens 442 are provided. Acts as The aperture array 6 is bonded to the lens array 4 via a protrusion 4a provided on a plane portion of the surface of the lens array 4 on the subject side. The image sensor 7 is composed of, for example, a CMOS sensor, and outputs image data of a subject to be imaged by entering light that has passed from the first imaging lens 411 through the eighth imaging lens 442. The housing 9 is bonded to the surface of the lens array 4 on the object side and bonded to the surface of the substrate 5 on the image sensor 7 side while holding the lens array 4, the light shielding wall 5, and the aperture array 6. ing.

この撮像装置2のレンズアレイ4について説明する。第1の撮像レンズ411から第8の撮像レンズ442は異なる曲率半径のレンズ面40aとレンズ面40bを有し、相互に異なる被写体距離に焦点を合わせるように曲率半径が設定されている。このレンズアレイ4を構成する第1の撮像レンズ411と第2の撮像レンズ412は曲率半径が略同一のレンズ面40aとレンズ面40bを有し、第1の撮像レンズ411と第2の撮像レンズ412がペアになって第1のステレオカメラレンズを構成し、第1の撮像レンズ411と第2の撮像レンズ412に対応する撮像素子7の画素領域と併せて第1のステレオカメラを構成している。第3の撮像レンズ421と第4の撮像レンズ422も曲率半径が略同一のレンズ面40aとレンズ面40bを有し、ペアになって第2のステレオカメラレンズを構成し、対応する撮像素子7の画素領域と併せて第2のステレオカメラを構成し、第5の撮像レンズ431と第6の撮像レンズ432も曲率半径が略同一のレンズ面40aとレンズ面40bを有し、ペアになって第3のステレオカメラレンズを構成し、対応する撮像素子7の画素領域と併せて第3のステレオカメラを構成し、第7の撮像レンズ441と第8の撮像レンズ442も曲率半径が略同一のレンズ面40a,40bを有し、ペアになって第4のステレオカメラレンズを構成し、対応する撮像素子7の画素領域と併せて第4のステレオカメラを構成している。   The lens array 4 of the imaging device 2 will be described. The first imaging lens 411 to the eighth imaging lens 442 have lens surfaces 40a and 40b having different radii of curvature, and the radii of curvature are set so as to focus on different object distances. The first imaging lens 411 and the second imaging lens 412 constituting the lens array 4 have a lens surface 40a and a lens surface 40b having substantially the same radius of curvature, and the first imaging lens 411 and the second imaging lens. 412 is paired to form a first stereo camera lens, and together with the pixel area of the image sensor 7 corresponding to the first imaging lens 411 and the second imaging lens 412, the first stereo camera is configured. Yes. The third imaging lens 421 and the fourth imaging lens 422 also have a lens surface 40a and a lens surface 40b having substantially the same radius of curvature, and form a second stereo camera lens as a pair, and the corresponding imaging device 7 The fifth imaging lens 431 and the sixth imaging lens 432 also have a lens surface 40a and a lens surface 40b having substantially the same radius of curvature, and form a pair. A third stereo camera lens is configured, and a third stereo camera is configured together with the corresponding pixel region of the image sensor 7. The seventh imaging lens 441 and the eighth imaging lens 442 also have substantially the same radius of curvature. It has lens surfaces 40a and 40b and forms a fourth stereo camera lens as a pair, and together with the corresponding pixel region of the image sensor 7, it forms a fourth stereo camera.

このレンズアレイ4の第1のステレオレンズを構成する第1の撮像レンズ411と第2の撮像レンズ412は、図2に示すように、第3のステレオレンズを構成する第5の撮像レンズ431と第6の撮像レンズ432の両側に等間隔D1で1列に配置され、第2のステレオレンズを構成する第3の撮像レンズ421と第4の撮像レンズ422は第4のステレオレンズを構成する第7の撮像レンズ441と第8の撮像レンズ442の両側に等間隔D1で1列に配置され、1列に配置された第1の撮像レンズ411等と第3の撮像レンズ421等も間隔D1を隔てて配置されている。この第1の撮像レンズ411と第2の撮像レンズ412の間隔D2=3*D1が第1のステレオカメラの基線長となり、第3の撮像レンズ421と第4の撮像レンズ422の間隔D2が第2のステレオカメラの基線長となり、第5の撮像レンズ431と第6の撮像レンズ432の間隔D1が第3のステレオカメラの基線長となり、第7の撮像レンズ441と第8の撮像レンズ442の間隔D1が第4のステレオカメラの基線長となる。この基線長D2の第1の撮像レンズ411と第2の撮像レンズ412で構成する第1のステレオカメラと第3の撮像レンズ421と第4の撮像レンズ422で構成する第2のステレオカメラが遠距離用となり、基線長D1の第5の撮像レンズ431と第6の撮像レンズ432で構成する第3のステレオカメラと第7の撮像レンズ441と第8の撮像レンズ442で構成する第4のステレオカメラが近距離用となる。   As shown in FIG. 2, the first imaging lens 411 and the second imaging lens 412 that constitute the first stereo lens of the lens array 4 are the same as the fifth imaging lens 431 that constitutes the third stereo lens. The third imaging lens 421 and the fourth imaging lens 422 that constitute the second stereo lens are arranged in a line at equal intervals D1 on both sides of the sixth imaging lens 432, and the fourth imaging lens 422 constitutes the fourth stereo lens. The seventh imaging lens 441 and the eighth imaging lens 442 are arranged in one row at equal intervals D1, and the first imaging lens 411 and the third imaging lens 421 arranged in one row also have the interval D1. They are spaced apart. The distance D2 = 3 * D1 between the first imaging lens 411 and the second imaging lens 412 is the baseline length of the first stereo camera, and the distance D2 between the third imaging lens 421 and the fourth imaging lens 422 is the first. And the distance D1 between the fifth imaging lens 431 and the sixth imaging lens 432 becomes the baseline length of the third stereo camera, and the seventh imaging lens 441 and the eighth imaging lens 442 The interval D1 is the baseline length of the fourth stereo camera. The first stereo camera constituted by the first imaging lens 411 and the second imaging lens 412 having the baseline length D2 and the second stereo camera constituted by the third imaging lens 421 and the fourth imaging lens 422 are far away. A fourth stereo composed of a third stereo camera composed of a fifth imaging lens 431 and a sixth imaging lens 432 having a baseline length D1, and a seventh imaging lens 441 and an eighth imaging lens 442. The camera is for short distance use.

このレンズアレイ4を構成する第1のステレオレンズから第4のステレオレンズによるスルーフォーカスMTF(Modulation Transfer Function)の例を図3に示す。図3においてA4,A3,A2,A1は各ステレオレンズに対応するスルーフォーカスMTF曲線(ここでは被写体距離に伴うMTF変化)を表しており、各ステレオレンズで焦点の合う被写体距離が異なるためMTFがピークとなる被写体距離が異なっている。被写体距離が数mmオーダーで短くなると被写界深度は非常に浅くなり、わずかの焦点ずれで大きくMTFが低下して像がぼける。被写体距離が遠くなるにつれ被写界深度は深くなっていき、スルーフォーカスMTF曲線A1では一定距離以上は無限遠まで像がぼけないですむ。したがって図3に示すように、一定レベルの閾値THでスルーフォーカスMTF曲線A1〜A4が交差するようにレンズアレイ4の第1のステレオレンズから第4のステレオレンズを設計し、被写体距離に応じて適したMTFを有するステレオレンズによる被写体の縮小像(以下、個眼像という)や画素を選択することにより、数mmオーダーの至近距離から無限遠まで被写体に焦点を合わせることができる。このスルーフォーカスMTF曲線A1〜A4が閾値THと交差する被写体距離をそれぞれK,L,M,Nとする。   FIG. 3 shows an example of through focus MTF (Modulation Transfer Function) by the first to fourth stereo lenses constituting the lens array 4. In FIG. 3, A4, A3, A2, and A1 represent through-focus MTF curves corresponding to each stereo lens (in this case, MTF change according to subject distance). The subject distance at the peak is different. When the subject distance is shortened on the order of several millimeters, the depth of field becomes very shallow, and a slight defocus causes a large MTF to decrease and blur the image. As the subject distance increases, the depth of field increases, and the through focus MTF curve A1 does not blur the image to infinity beyond a certain distance. Therefore, as shown in FIG. 3, the fourth stereo lens is designed from the first stereo lens of the lens array 4 so that the through-focus MTF curves A1 to A4 intersect at a certain level threshold TH, and according to the subject distance. By selecting a reduced image (hereinafter referred to as a single-eye image) or pixels of a subject using a stereo lens having an appropriate MTF, the subject can be focused from a close range of several millimeters to infinity. The subject distances where the through focus MTF curves A1 to A4 intersect the threshold value TH are K, L, M, and N, respectively.

第1の撮像レンズ411から第8の撮像レンズ442は、曲率半径の設定に加えて焦点距離は全て略等しくなるように設計されている。それにより第1の撮像レンズ411から第8の撮像レンズ442による光学倍率は被写体距離のみによっておよそ規定されるため、第1の撮像レンズ411から第8の撮像レンズ442による像は合焦(ボケ)のレベルが相互で異なっても画像のサイズは一定となる。したがって撮像装置2で取得した複眼像の中から焦点の合った個眼像のみを選択抽出したり、焦点の合った画素のみを抽出したりする際に、第1の撮像レンズ411から第8の撮像レンズ442による像サイズの相違を考慮しないですみ、また取得後の像を用いてなんらかの情報認識をする場合においても像サイズの相違の考慮は不要となる。   The first imaging lens 411 to the eighth imaging lens 442 are designed so that the focal lengths are substantially equal in addition to the setting of the radius of curvature. Accordingly, since the optical magnification of the first imaging lens 411 to the eighth imaging lens 442 is approximately defined only by the subject distance, the image from the first imaging lens 411 to the eighth imaging lens 442 is in focus (blur). The size of the image is constant even if the levels are different from each other. Therefore, when selecting only the focused single-eye image from the compound eye image acquired by the imaging device 2 or extracting only the focused pixel, the first imaging lens 411 to the eighth eye It is not necessary to consider the difference in image size due to the imaging lens 442, and it is not necessary to consider the difference in image size even when some information recognition is performed using the acquired image.

レンズの焦点距離を略一定にしたままレンズの曲率を変えたときの屈折面の厚さであるレンズサグとレンズ有効径の変化の様子を図4(a)〜(c)に示す。図4(a)に示すように、レンズ面40aのレンズサグta、有効径da、レンズ面40bのレンズサグtb、有効径dbの状態からレンズ面40aとレンズ面40bの曲率を変えた場合、有効径da,dbを不変とした場合は、図4(b)に示すように、レンズ面40aとレンズ面40bのレンズサグta,tbをレンズサグta1,tb1と変える必要がある。このようにレンズサグを変えるとレンズ間にレンズサグの相違に基づく高低差を設けるなど形状が複雑になる。一方、レンズサグta,tbを不変とした場合は、図4(c)に示すように有効径da,daを有効径da1,db1と変える必要がある。このように有効径を変えるとレンズ間で有効径に起因する光学特性、例えばレンズのカットオフ周波数や明るさが変わるため、被写体の画像を取得後にそれらの条件を合わせる調整が必要となり、取り扱いが複雑になる。   FIGS. 4A to 4C show how the lens sag and the lens effective diameter change when the curvature of the lens is changed while keeping the focal length of the lens substantially constant. As shown in FIG. 4A, when the curvature of the lens surface 40a and the lens surface 40b is changed from the state of the lens sag ta, the effective diameter da of the lens surface 40a, the lens sag tb of the lens surface 40b, and the effective diameter db, the effective diameter is changed. When da and db are not changed, it is necessary to change the lens sag ta and tb of the lens surface 40a and the lens surface 40b to lens sag ta1 and tb1, as shown in FIG. If the lens sag is changed in this way, the shape becomes complicated, such as providing a height difference based on the difference in lens sag between the lenses. On the other hand, when the lens sag ta and tb are not changed, it is necessary to change the effective diameters da and da to the effective diameters da1 and db1 as shown in FIG. Changing the effective diameter in this way changes the optical characteristics due to the effective diameter between lenses, for example, the cutoff frequency and brightness of the lens.Therefore, it is necessary to adjust the conditions after obtaining the image of the subject. It becomes complicated.

そこでレンズアレイ4は第1の撮像レンズ411から第8の撮像レンズ442のレンズサグを一定にしたまま曲率半径を変え、略等しい有効径を有する開口アレイ6をレンズアレイ4の被写体側に設けることにより、第1の撮像レンズ411から第8の撮像レンズ442の有効径が略一定となるようにして、レンズ有効径の相違に起因した不具合を排除している。レンズアレイ4の第1の撮像レンズ411から第8の撮像レンズ442と開口アレイ6とは第1の撮像レンズ411から第8の撮像レンズ442によっては接触する位置が異なってくるが、レンズアレイ4の平面部に設けた突起部4cによりレンズアレイ4と開口アレイ6を接触させることにより、開口アレイ6が傾いてレンズアレイ4に接着される等の不具合を取り除いている。   Therefore, the lens array 4 changes the radius of curvature while keeping the lens sag of the first imaging lens 411 to the eighth imaging lens 442 constant, and provides an aperture array 6 having substantially the same effective diameter on the subject side of the lens array 4. In addition, the effective diameters of the first imaging lens 411 to the eighth imaging lens 442 are made substantially constant, so that problems caused by the difference in effective lens diameter are eliminated. Although the first imaging lens 411 to the eighth imaging lens 442 and the aperture array 6 of the lens array 4 are in contact with each other depending on the first imaging lens 411 to the eighth imaging lens 442, the lens array 4 The lens array 4 and the aperture array 6 are brought into contact with each other by the projection 4c provided on the flat surface portion, thereby eliminating problems such as the aperture array 6 being inclined and adhered to the lens array 4.

撮像装置2を被写体方向から観察すると、図2に示すように、第1の撮像レンズ411から第8の撮像レンズ442において実線で示された円は開口アレイ6の円形孔(有効径)6aを表し、その直径は一定である。また、破線で示された円は無効領域も含めたレンズ面40aの直径を表し、点線で示された円はレンズ面40bの直径を表す。第1のステレオレンズから第4のステレオレンズで曲率半径が異なり、かつ第1の撮像レンズ411から第8の撮像レンズ442のレンズサグが一定になるようにしているため、第1の撮像レンズ411から第8の撮像レンズ442で破線と点線で示された円の直径は相違している。   When the imaging device 2 is observed from the subject direction, as shown in FIG. 2, the circles indicated by solid lines in the first imaging lens 411 to the eighth imaging lens 442 are circular holes (effective diameters) 6 a of the aperture array 6. And its diameter is constant. A circle indicated by a broken line represents the diameter of the lens surface 40a including the invalid area, and a circle indicated by a dotted line represents the diameter of the lens surface 40b. Since the radius of curvature is different from the first stereo lens to the fourth stereo lens and the lens sag of the first imaging lens 411 to the eighth imaging lens 442 is constant, the first imaging lens 411 The diameters of the circles indicated by the broken line and the dotted line in the eighth imaging lens 442 are different.

演算処理ユニット3は画像キャプチャー部11と画像補正部12と第1のステレオカメラから第4のステレオカメラに対応した4組の視差検出部13a〜13dと視差合成部14及び距離算出部15を有する。画像キャプチャー部11は撮像装置2の撮像素子7から入力する複眼像を第1の撮像レンズ411を通った光による第1の個眼像511と、第2の撮像レンズ412を通った光による第2の個眼像512と、第3の撮像レンズ421を通った光による第3の個眼像521と、第4の撮像レンズ422を通った光による第4の個眼像522と、第5の撮像レンズ431を通った光による第5の個眼像531と、第6の撮像レンズ432を通った光による第6の個眼像532と、第7の撮像レンズ441を通った光による第7の個眼像541と、第8の撮像レンズ442を通った光による第8の個眼像542に分離して出力する。画像補正部12は画像キャプチャー部11から入力する第1の個眼像511から第8の個眼像542の歪み補正を行って出力する。視差検出部13aは画像補正部12から入力する第1の個眼像511と第2の個眼像512から視差を検出して第1の視差画像51を得て出力し、視差検出部13bは第3の個眼像521と第4の個眼像522から視差を検出して第2の視差画像52を得て出力し、視差検出部13cは第5の個眼像531と第6の個眼像532から視差を検出して第3の視差画像53を得て出力し、視差検出部13dは第7の個眼像541と第8の個眼像542から視差を検出して第4の視差画像54を得て出力する。視差合成部14は視差検出部13a〜13dから入力する第1の視差画像51から第4の視差画像54を合成して視差合成画像を出力する。距離算出部15は視差合成部14から入力する視差合成画像から被写体距離を算出して距離画像を出力する。   The arithmetic processing unit 3 includes an image capture unit 11, an image correction unit 12, four sets of parallax detection units 13 a to 13 d corresponding to the first to fourth stereo cameras, a parallax synthesis unit 14, and a distance calculation unit 15. . The image capture unit 11 converts the compound eye image input from the image sensor 7 of the imaging device 2 into a first single-eye image 511 by light passing through the first imaging lens 411 and a first eye by light passing through the second imaging lens 412. The second single-eye image 512, the third single-eye image 521 by light passing through the third imaging lens 421, the fourth single-eye image 522 by light passing through the fourth imaging lens 422, and the fifth A fifth single-eye image 531 by light passing through the imaging lens 431, a sixth single-eye image 532 by light passing through the sixth imaging lens 432, and a first single-eye image 532 by light passing through the seventh imaging lens 441. 7 single-eye images 541 and an eighth single-eye image 542 by light that has passed through the eighth imaging lens 442 are output separately. The image correction unit 12 performs distortion correction on the first single-eye image 511 to the eighth single-eye image 542 input from the image capture unit 11 and outputs the result. The parallax detection unit 13a detects the parallax from the first single-eye image 511 and the second single-eye image 512 input from the image correction unit 12, obtains and outputs the first parallax image 51, and the parallax detection unit 13b The parallax is detected from the third single-eye image 521 and the fourth single-eye image 522 to obtain and output the second parallax image 52, and the parallax detection unit 13 c has the fifth single-eye image 531 and the sixth single-eye image 531. The parallax is detected from the eye image 532 to obtain and output the third parallax image 53, and the parallax detection unit 13d detects the parallax from the seventh single-eye image 541 and the eighth single-eye image 542, and outputs the fourth parallax. A parallax image 54 is obtained and output. The parallax synthesis unit 14 synthesizes the fourth parallax image 54 from the first parallax image 51 input from the parallax detection units 13 a to 13 d and outputs a parallax synthesis image. The distance calculation unit 15 calculates a subject distance from the parallax composite image input from the parallax synthesis unit 14 and outputs a distance image.

次に、距離画像入力装置1の撮像装置2で撮像した画像により距離画像を得る処理を図5のフローチャートを参照して説明する。   Next, a process for obtaining a distance image from an image captured by the imaging device 2 of the distance image input device 1 will be described with reference to a flowchart of FIG.

撮像装置2の第1の撮像レンズ411から第8の撮像レンズ442を通った光を入射して撮像素子7で被写体の画像を取得し、取得した複眼像50を演算処理ユニット3の画像キャプチャー部11に出力する(ステップS1)。この撮像素子7で取得した画像は、図6に示すように、第1の撮像レンズ411から第8の撮像レンズ442に対応した第1の個眼像511と第2の個眼像512と第3の個眼像521と第4の個眼像522と第5の個眼像531と第6の個眼像532と第7の個眼像541及び第8の個眼像542を有する複眼像50になる。この場合は平面の写真を撮影したもので被写体はある一定の距離にある。図6において第1の個眼像511から第8の個眼像542の周辺で黒くなっている領域は遮光壁5で影となっている領域である。第1の撮像レンズ411から第8の撮像レンズ442の焦点距離はほぼ等しいため第1の個眼像511から第8の個眼像542の撮像範囲の大きさはほぼ等しい。一方、第1の個眼像511から第8の個眼像542で焦点の合う被写体距離は曲率半径により異なるため、第1の個眼像511から第8の個眼像542の合焦状態は、第1の撮像レンズ411と第2の撮像レンズ412のペアと、第3の撮像レンズ421と第4の撮像レンズ422のペアと、第5の撮像レンズ431と第6の撮像レンズ432のペア及び第7の撮像レンズ441と第8の撮像レンズ442のペアごとで異なっている。そして第1の撮像レンズ411と第2の撮像レンズ412のペアで撮像した第1の個眼像511と第2の個眼像512の焦点が合っている。立体物を撮影する場合は、第1の個眼像511から第8の個眼像542で焦点が合っている部分と焦点が合っていない部分が混在する。   The light passing through the eighth imaging lens 442 from the first imaging lens 411 of the imaging device 2 is incident to acquire an image of the subject with the imaging device 7, and the acquired compound eye image 50 is obtained as an image capture unit of the arithmetic processing unit 3. 11 (step S1). As shown in FIG. 6, the image acquired by the imaging device 7 includes a first single-eye image 511, a second single-eye image 512, and a first single-eye image 512 corresponding to the first imaging lens 411 to the eighth imaging lens 442. 3 eye images 521, 4 eye images 522, 5 eye images 531, 6 eye images 532, 7 eye images 541, and 8 eye images 542. 50. In this case, a plane photograph is taken and the subject is at a certain distance. In FIG. 6, a black area around the first individual image 511 to the eighth individual image 542 is an area shaded by the light shielding wall 5. Since the focal lengths of the first imaging lens 411 to the eighth imaging lens 442 are substantially equal, the imaging ranges of the first single-eye image 511 to the eighth single-eye image 542 are substantially equal. On the other hand, since the subject distance in focus differs from the first single-eye image 511 to the eighth single-eye image 542 depending on the radius of curvature, the in-focus state of the first single-eye image 511 to the eighth single-eye image 542 is , A pair of the first imaging lens 411 and the second imaging lens 412, a pair of the third imaging lens 421 and the fourth imaging lens 422, and a pair of the fifth imaging lens 431 and the sixth imaging lens 432 The pair of the seventh imaging lens 441 and the eighth imaging lens 442 is different for each pair. Then, the first single-eye image 511 and the second single-eye image 512 captured by the pair of the first imaging lens 411 and the second imaging lens 412 are in focus. When photographing a three-dimensional object, a portion that is in focus and a portion that is not in focus are mixed in the first eye image 511 to the eighth eye image 542.

画像キャプチャー部11は撮像素子7から入力した複眼像50を第1の個眼像511から第8の個眼像542にそれぞれ分離し、分離した第1の個眼像511から第8の個眼像542を画像補正部12に出力する(ステップS2、S3)。画像補正部12は入力した第1の個眼像511から第8の個眼像542を、レンズの工作精度や組み付け精度によるカメラ固有の内部パラメータ、外部パラメータ等を利用して画像の歪み補正を行い、補正した第1の個眼像511と第2の個眼像512のペアを視差検出部13aに出力し、第3の個眼像521と第4の個眼像522のペアを視差検出部13bに出力し、第5の個眼像531と第6の個眼像532のペアを視差検出部13cに出力し、第7の個眼像541と第8の個眼像542のペアを視差検出部13dに出力する(ステップS4)。この画像補正部12で歪み補正を行うカメラ固有の内部パラメータ及び外部パラメータはZhangの手法("A flexible new technique for camera calibration"。 IEEE Transactions on Pattern Analysis and Machine Intelligence、 22(11):1330-1334、 2000)等を用いることで求めることができる。   The image capture unit 11 separates the compound eye image 50 input from the image sensor 7 from the first single-eye image 511 to the eighth single-eye image 542, and separates the first single-eye image 511 to the eighth single-eye image. The image 542 is output to the image correction unit 12 (steps S2 and S3). The image correction unit 12 corrects the distortion of the input first eye image 511 to the eighth eye image 542 using internal parameters, external parameters, etc. specific to the camera according to the working accuracy and assembly accuracy of the lens. The pair of the corrected first single-eye image 511 and the second single-eye image 512 is output to the parallax detection unit 13a, and the pair of the third single-eye image 521 and the fourth single-eye image 522 is detected. Output to the unit 13b, output a pair of the fifth single-eye image 531 and the sixth single-eye image 532 to the parallax detection unit 13c, and set a pair of the seventh single-eye image 541 and the eighth single-eye image 542 to It outputs to the parallax detection part 13d (step S4). The camera-specific internal parameters and external parameters for which distortion correction is performed by the image correction unit 12 are Zhang's technique ("A flexible new technique for camera calibration". IEEE Transactions on Pattern Analysis and Machine Intelligence, 22 (11): 1330-1334 , 2000) etc.

視差検出部13aは入力した第1の個眼像511と第2の個眼像512から視差を検出して第1の視差画像51を視差合成部14に出力する。画像補正を行った第1の個眼像511と第2の個眼像512では、各画像における被写体の対応する点が被写体の距離に応じて水平方向にずれている。そのずれている位置を検出してずれ量を求めることにより視差を検出できる。この視差計算にはブロックマッチングという手法を利用する。ブロックマッチングでは、図6に示すように、第1の個眼像511の小さな領域511a、例えば縦4画素×横4画素分を切り出し、それに対応する第2の個眼像512の領域を検索するため第2の個眼像512の小さな領域512aを切り出して評価値を算出する。この評価値としては2つの領域511a,512a間で輝度差の総和(SAD:Sum of Absolute Difference)や、輝度差の2乗和(SSD:Sum of Squared Difference)などを求める。この場合、第2の個眼像512の領域512aの位置を所定の範囲内で移動させて、それぞれの位置でSADやSSDの極小値を与える切り出し位置を検索することにより画像間の位置ずれを画素単位で求めることができる。画素単位の視差では精度が不足することが多いので画素未満(サブピクセル)の視差も推定する。この推定には等角直線フィッティングやパラボラフィッティングを用いるのが一般的である。また、SADやSSDを計算するために用いるデータは輝度ではなく、輝度を微分(例えばDOG)した値を用いることも可能である。このようにして全画素に対するサブピクセルレベルの視差が計算され視差画像として検出される。ここで視差画像の各画素は第1の個眼像511の各画素と対応している。また、視差が検出できなかった画素については視差を零とする。   The parallax detection unit 13 a detects parallax from the input first eye image 511 and the second eye image 512 and outputs the first parallax image 51 to the parallax synthesis unit 14. In the first single-eye image 511 and the second single-eye image 512 that have undergone image correction, the corresponding points of the subject in each image are shifted in the horizontal direction according to the distance of the subject. The parallax can be detected by detecting the shifted position and obtaining the shift amount. For this parallax calculation, a technique called block matching is used. In block matching, as shown in FIG. 6, a small area 511a of the first single-eye image 511, for example, 4 pixels in the vertical direction × 4 pixels in the horizontal direction is cut out, and the corresponding area of the second single-eye image 512 is searched. Therefore, a small area 512a of the second single-eye image 512 is cut out and an evaluation value is calculated. As the evaluation value, a sum of luminance differences (SAD: Sum of Absolute Difference) between two regions 511a and 512a, a sum of squares of luminance differences (SSD: Sum of Squared Difference), and the like are obtained. In this case, the position of the region 512a of the second single-eye image 512 is moved within a predetermined range, and a position shift between images is searched by searching for a cutout position that gives a minimum value of SAD or SSD at each position. It can be obtained in pixel units. Since parallax in units of pixels often lacks accuracy, parallax of less than a pixel (sub-pixel) is also estimated. For this estimation, it is common to use equiangular line fitting or parabolic fitting. In addition, the data used for calculating SAD and SSD may be a value obtained by differentiating luminance (for example, DOG) instead of luminance. In this way, the sub-pixel level parallax for all pixels is calculated and detected as a parallax image. Here, each pixel of the parallax image corresponds to each pixel of the first single-eye image 511. In addition, the parallax is set to zero for pixels for which parallax could not be detected.

同様にして視差検出部13bは入力した第3の個眼像521と第4の個眼像522から視差を検出して第2の視差画像52を視差合成部14に出力し、視差検出部13cは入力した第5の個眼像531と第6の個眼像532から視差を検出して第3の視差画像53を視差合成部14に出力し、視差検出部13dは入力した第7の個眼像541と第8の個眼像542から視差を検出して第4の視差画像54を視差合成部14に出力する(ステップS5,S6)。この視差検出部13a〜13bで視差を検出するとき、全く同じように視差を計算するのではなく、視差を計算するための画像切り出し位置の範囲を焦点が合う距離の範囲にそれぞれ設定する。例えば、第1の個眼像511において位置(x,y)を中心とした大きさ(dx,dy)の領域511aに対してブロックマッチングを行うための第2の個眼像512の領域512aは(x+s1−cx,y−cy)から(x+s2+cx,y+cy)を対角線の頂点とした矩形の内部の点を中心とした大きさ(dx,du)の範囲とする。ここで、cxとcyは正の値,例えば2である。この値は極小値を検出するためのマージンとして必要である。また、s1とs2の設定を下記表に示す。   Similarly, the parallax detection unit 13b detects the parallax from the input third eye image 521 and the fourth eye image 522, and outputs the second parallax image 52 to the parallax synthesis unit 14, and the parallax detection unit 13c. Detects the parallax from the input fifth single-eye image 531 and the sixth single-eye image 532 and outputs the third parallax image 53 to the parallax synthesis unit 14, and the parallax detection unit 13 d receives the input seventh image The parallax is detected from the eye image 541 and the eighth single-eye image 542, and the fourth parallax image 54 is output to the parallax synthesizer 14 (steps S5 and S6). When parallax is detected by the parallax detectors 13a to 13b, the parallax is not calculated in exactly the same manner, but the range of the image cutout position for calculating the parallax is set to the range of the in-focus distance. For example, in the first single-eye image 511, the region 512a of the second single-eye image 512 for performing block matching on the region 511a having the size (dx, dy) centered on the position (x, y) is Let (x + s1-cx, y-cy) to (x + s2 + cx, y + cy) be a range of size (dx, du) centered on a point inside the rectangle with the diagonal vertex. Here, cx and cy are positive values, for example, 2. This value is necessary as a margin for detecting the minimum value. The settings of s1 and s2 are shown in the following table.

Figure 0005455033
Figure 0005455033

このs1とs2は、それぞれ計測を実施する視差の最小値と最大値であり、それぞれ計測できる被写体距離の最大値と最小値とに一対一で対応する。ここで、表に示される視差は焦点距離1mm、基線長D1=1mm、基線長D2=3mm、撮像素子7の画素サイズ6μmの場合に下記(1))式を用いて計算される。
被写体距離=基線長×焦点距離/(視差×画素サイズ) (1)
このようにして第1の個眼像511と第2の個眼像512のペアと、第3の個眼像521と第4の個眼像522のペアと、第5の個眼像531と第6の個眼像532のペア及び第7の個眼像541と第8の個眼像542のペアにおける視差を計算することができる。
These s1 and s2 are the minimum value and the maximum value of parallax at which measurement is performed, respectively, and correspond one-to-one to the maximum value and minimum value of the subject distance that can be measured. Here, the parallax shown in the table is calculated using the following equation (1)) when the focal length is 1 mm, the base length D1 = 1 mm, the base length D2 = 3 mm, and the pixel size of the image sensor 7 is 6 μm.
Subject distance = baseline length x focal length / (parallax x pixel size) (1)
In this way, a pair of the first single-eye image 511 and the second single-eye image 512, a pair of the third single-eye image 521 and the fourth single-eye image 522, the fifth single-eye image 531, The parallax in the sixth single-eye image 532 pair and the seventh single-eye image 541 and the eighth single-eye image 542 pair can be calculated.

視差合成部14は視差検出部13a〜13dから入力する第1の視差画像51〜第4の視差画像54を合成して距離算出部15に出力する(ステップS7)。この第1の視差画像51〜第4の視差画像54を合成するとき、視差検出部13aから入力する第1の視差画像51に視差検出部13b〜13dから入力する第2の視差画像52〜第4の視差画像54の値をマッピングしていく。具体的には、図7のフローチャートに示すように、視差検出部13bから入力する第2の視差画像52の座標(x,y)における視差をα(≠0)としたとき、視差検出部13aから入力する第1の視差画像51の座標(x,y−α*D1/D2)の視差が零の場合に値αをその座標に設定する(ステップS11〜S15)。第2の視差画像52の全画素について前述の処理を行った後(ステップS16)、視差検出部13cから入力する第3の視差画像53の座標(x,y)における視差がβ(≠0)としたとき、第1の視差画像51の座標(x+β)の視差が零の場合に値(β*D2/D1)をその座標に設定する(ステップS17〜S20)。第3の視差画像53の全画素について前述の処理を行った後(ステップS21)、視差検出部13dから入力する第4の視差画像54の座標(x,y)における視差γ(≠0)としたとき、第1の視差画像51の座標(x+γ,y−γ)の視差が零場合に値(γ*D2/D1)をその座標に設定する(ステップS22〜S25)。第4の視差画像54の全画素について前述の処理を行ったら処理を終了する。但し、視差α、β、γは小数点以下の値を持つので、第1の視差画像51の座標計算に用いられるときには4捨5入をして整数として扱う。このようにして第1の視差画像51〜第4の視差画像54を合成することができる。   The parallax synthesizer 14 synthesizes the first parallax image 51 to the fourth parallax image 54 input from the parallax detectors 13a to 13d and outputs them to the distance calculator 15 (step S7). When the first parallax image 51 to the fourth parallax image 54 are combined, the second parallax image 52 to the second parallax image 52 to the second parallax image 51 that are input from the parallax detection units 13 b to 13 d to the first parallax image 51 that is input from the parallax detection unit 13 a. The values of the four parallax images 54 are mapped. Specifically, as shown in the flowchart of FIG. 7, when the parallax at the coordinates (x, y) of the second parallax image 52 input from the parallax detection unit 13b is α (≠ 0), the parallax detection unit 13a When the parallax of the coordinates (x, y−α * D1 / D2) of the first parallax image 51 input from is zero, the value α is set to the coordinates (steps S11 to S15). After performing the above-described processing on all the pixels of the second parallax image 52 (step S16), the parallax at the coordinates (x, y) of the third parallax image 53 input from the parallax detection unit 13c is β (≠ 0). When the parallax of the coordinate (x + β) of the first parallax image 51 is zero, the value (β * D2 / D1) is set to that coordinate (steps S17 to S20). After performing the above-described processing for all the pixels of the third parallax image 53 (step S21), the parallax γ (≠ 0) at the coordinates (x, y) of the fourth parallax image 54 input from the parallax detection unit 13d Then, when the parallax of the coordinates (x + γ, y−γ) of the first parallax image 51 is zero, the value (γ * D2 / D1) is set to the coordinates (steps S22 to S25). When the above-described processing is performed on all the pixels of the fourth parallax image 54, the processing ends. However, since the parallaxes α, β, and γ have values after the decimal point, they are rounded off to the nearest whole number when used for coordinate calculation of the first parallax image 51. In this way, the first parallax image 51 to the fourth parallax image 54 can be synthesized.

距離算出部15は視差合成部14から入力する合成視差画像から(1)式により被写体距離を算出して距離画像を得る。この距離検出の分解能は被写体距離が短くなるほど高くなり、長くなるほど低下する。また、被写体距離が短くなると視差が大きくなるため、個眼像のペア間で重複する領域が減少し、距離情報を取得できる視野が狭くなる。それらの点を考慮し、基線長がD2と長いことに起因して視差がより大きく、距離分解能がより高い第1の撮像レンズ411と第2の撮像レンズ412のペアと、第3の撮像レンズ421と第4の撮像レンズ422のペアについて、焦点の合う被写体距離が長くなるように曲率半径を設定し、基線長が短い第5の撮像レンズ431と第6の撮像レンズ432のペアと、第7の撮像レンズ441と第8の撮像レンズ442のペアについて、焦点の合う被写体距離が短くなるように曲率半径を設定している。したがって遠方にある被写体に対してはより高い分解能で距離画像を取得することができ、近くにある被写体に対しては広い視野で距離画像を取得することができる。   The distance calculating unit 15 calculates a subject distance from the combined parallax image input from the parallax combining unit 14 by the equation (1) to obtain a distance image. The distance detection resolution increases as the subject distance decreases and decreases as the subject distance increases. In addition, since the parallax increases as the subject distance decreases, the overlapping area between pairs of single-eye images decreases, and the field of view from which distance information can be acquired is narrowed. Considering these points, a pair of the first imaging lens 411 and the second imaging lens 412 having a larger parallax and higher distance resolution due to the long base line length of D2, and a third imaging lens The curvature radius is set so that the in-focus subject distance becomes long with respect to the pair of the fourth imaging lens 422 and the fourth imaging lens 422, and the fifth imaging lens 431 and the sixth imaging lens 432 having a short baseline length, The radius of curvature is set so that the subject distance in focus is shortened for the pair of the seventh imaging lens 441 and the eighth imaging lens 442. Therefore, a distance image can be acquired with a higher resolution for a distant subject, and a distance image can be acquired with a wide field of view for a nearby subject.

この距離画像入力装置1を用いた車外監視装置20を図8に示す。車外監視装置20は車両21に搭載され車外の所定範囲内の物体を撮像し、撮像した画像から車外の物体を認識して監視するものであり、距離画像入力装置1とコンピュータ22及び表示装置23を有する。距離画像入力装置1は車両21のルームミラーの後段など運転者の視野を遮らない位置に配置され、撮像した被写体の画像から距離画像をコンピュータ22に出力する。コンピュータ22は入力した距離画像から道路形状や複数の立体物の三次元位置を高速で検出し、その検出結果に基づいて先行車や障害物を特定して衝突警報の判断処理等を行い、認識された物体が自車両21の障害物となる場合、運転者の前方に設置された表示装置23に表示して運転者に対する警告を行う。また、図示しないアクチュエータ類を制御する外部装置を接続することにより車体の自動衝突回避制御等が可能となっている。   A vehicle exterior monitoring device 20 using the distance image input device 1 is shown in FIG. The vehicle outside monitoring device 20 is mounted on the vehicle 21 to image an object within a predetermined range outside the vehicle, and recognize and monitor the object outside the vehicle from the captured image. The distance image input device 1, the computer 22, and the display device 23 are monitored. Have The distance image input device 1 is disposed at a position that does not block the driver's field of view, such as the rear stage of the rear mirror of the vehicle 21, and outputs a distance image from the captured subject image to the computer 22. The computer 22 detects a road shape and a three-dimensional position of a plurality of three-dimensional objects at high speed from the input distance image, identifies a preceding vehicle or an obstacle based on the detection result, performs a judgment process of a collision warning, and the like. When the detected object becomes an obstacle of the host vehicle 21, a warning is given to the driver by displaying it on the display device 23 installed in front of the driver. Further, by connecting an external device for controlling actuators (not shown), it is possible to perform automatic collision avoidance control of the vehicle body.

1;距離画像入力装置、2;撮像装置、3;演算処理ユニット、4;レンズアレイ、
5;遮光壁、6;開口アレイ、7;撮像素子、8;基板、9;筐体、
11;画像キャプチャー部、12;画像補正部、13;視差検出部、
14;視差合成部、15;距離算出部、20;車外監視装置。
411;第1の撮像レンズ、412;第2の撮像レンズ、
421;第3の撮像レンズ、422;第4の撮像レンズ、
431;第5の撮像レンズ、432;第6の撮像レンズ、
441;第7の撮像レンズ、442;第8の撮像レンズ。
1; distance image input device, 2; imaging device, 3; arithmetic processing unit, 4; lens array,
5; light shielding wall, 6; aperture array, 7; imaging element, 8; substrate, 9;
11; Image capture unit, 12; Image correction unit, 13; Parallax detection unit,
14; parallax composition unit; 15; distance calculation unit; 20;
411; first imaging lens; 412; second imaging lens;
421; a third imaging lens, 422; a fourth imaging lens,
431; fifth imaging lens, 432; sixth imaging lens,
441; seventh imaging lens; 442; eighth imaging lens.

特開2007−263669号公報JP 2007-263669 A 特開2003−143459号公報Japanese Patent Laid-Open No. 2003-143459 特開2006−217131号公報JP 2006-217131 A 特開2008−286527号公報JP 2008-286527 A

Claims (7)

撮像装置と演算処理ユニットを有し、
前記撮像装置は、被写体を撮像して、それぞれ異なる距離に焦点があった複数のステレオ画像を出力し、
前記演算処理ユニットは、視差検出手段と視差合成手段及び距離算出手段を有し、
前記視差検出手段は、前記撮像装置から出力する複数のステレオ画像がそれぞれ有する固有の特徴に基づいて視差を計算して視差情報を有する複数の視差画像を出力し、
前記視差合成手段は、前記視差検出手段から出力する複数の視差画像を合成して合成視差画像を出力し、
前記距離算出手段は、前記視差合成手段から出力する合成視差画像から被写体までの距離を算出して距離画像を出力し、
前記撮像装置が、前記複数のステレオ画像を得るための複数組みの撮像レンズと、撮像素子とを有し、前記複数組みの撮像レンズは前記撮像素子側の焦点距離が組み間で互い略等しいことを特徴とする距離画像入力装置。
Having an imaging device and an arithmetic processing unit;
The imaging device images a subject and outputs a plurality of stereo images each focused at different distances;
The arithmetic processing unit includes a parallax detection unit, a parallax synthesis unit, and a distance calculation unit,
The parallax detection means calculates a parallax based on a unique feature of each of a plurality of stereo images output from the imaging device, and outputs a plurality of parallax images having parallax information,
The parallax synthesis unit synthesizes a plurality of parallax images output from the parallax detection unit and outputs a synthesized parallax image,
The distance calculating means calculates a distance from the synthesized parallax image output from the parallax synthesizing means to the subject and outputs a distance image ;
The imaging apparatus includes a plurality of sets of imaging lenses for obtaining the plurality of stereo images and imaging elements, and the plurality of sets of imaging lenses have substantially the same focal length between the imaging elements. A distance image input device characterized by the above.
前記複数組みの撮像レンズは、組み間で互いにレンズサグが等しく曲率半径が異ることによって被写体側の焦点距離が異なり、各撮像レンズに一対一で対応する互いに有効径が略等しい複数の開口を有する開口アレイが、前記複数組みの撮像レンズの被写体側に設けられていることを特徴とする請求項1記載の距離画像入力装置。  The plurality of sets of imaging lenses have a plurality of apertures corresponding to each imaging lens in a one-to-one correspondence and having substantially equal effective diameters because the lens sag is the same and the curvature radius is different between the sets, and the object side has a different focal length. The range image input apparatus according to claim 1, wherein an aperture array is provided on a subject side of the plurality of sets of imaging lenses. 前記視差検出手段で前記撮像装置から出力する複数のステレオ画像から視差を計算する固有の特徴は、各ステレオ画像の焦点が合う距離の範囲であることを特徴とする請求項1又は2記載の距離画像入力装置。 The distance according to claim 1 or 2 , wherein the unique feature of calculating parallax from a plurality of stereo images output from the imaging device by the parallax detection means is a range of distances at which each stereo image is focused. Image input device. 前記視差検出手段は、焦点が合う距離の範囲に相当する視差の範囲において各ステレオ画像ペアの視差の計算を実行することを特徴とする請求項1乃至3のいずれかに記載の距離画像入力装置。 The distance image input device according to any one of claims 1 to 3, wherein the parallax detection unit performs a parallax calculation of each stereo image pair in a parallax range corresponding to a range of distances in focus. . 前記撮像装置は、複数のレンズが各々曲率半径の異なる複数のステレオレンズから構成されてなるレンズアレイと、前記レンズアレイの像面側に設けられた、前記複数のステレオレンズのそれぞれにより結像される前記被写体の画像の集合である複眼像を撮像する撮像素子を有することを特徴とする請求項1乃至のいずれかに記載の距離画像入力装置。 The imaging device forms an image by each of a lens array in which a plurality of lenses are composed of a plurality of stereo lenses each having a different radius of curvature, and the plurality of stereo lenses provided on the image plane side of the lens array. distance image input device according to any one of claims 1 to 4, characterized in that it comprises an imaging device for imaging a compound eye image a set of the subject image that. 前記撮像装置の複数のステレオレンズはレンズサグを一定にしたまま曲率半径を変えたことを特徴とする請求項記載の距離画像入力装置。 6. The distance image input device according to claim 5, wherein the plurality of stereo lenses of the imaging device have a curvature radius changed with a lens sag constant. 請求項1乃至のいずれかに記載の距離画像入力装置と表示装置を有し、車両に搭載されることを特徴とする車外監視装置。 An out-of-vehicle monitoring device comprising the distance image input device according to any one of claims 1 to 6 and a display device and mounted on a vehicle.
JP2009274207A 2009-12-02 2009-12-02 Distance image input device and outside monitoring device Expired - Fee Related JP5455033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009274207A JP5455033B2 (en) 2009-12-02 2009-12-02 Distance image input device and outside monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009274207A JP5455033B2 (en) 2009-12-02 2009-12-02 Distance image input device and outside monitoring device

Publications (2)

Publication Number Publication Date
JP2011117787A JP2011117787A (en) 2011-06-16
JP5455033B2 true JP5455033B2 (en) 2014-03-26

Family

ID=44283298

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009274207A Expired - Fee Related JP5455033B2 (en) 2009-12-02 2009-12-02 Distance image input device and outside monitoring device

Country Status (1)

Country Link
JP (1) JP5455033B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012103109A (en) * 2010-11-10 2012-05-31 Panasonic Corp Stereo image processing device, stereo image processing method and program
JP4937404B1 (en) * 2010-12-21 2012-05-23 株式会社東芝 Image processing apparatus and image processing method
JP5762211B2 (en) * 2011-08-11 2015-08-12 キヤノン株式会社 Image processing apparatus, image processing method, and program
WO2015159791A1 (en) * 2014-04-16 2015-10-22 コニカミノルタ株式会社 Distance measuring device and distance measuring method
JP2016053849A (en) * 2014-09-03 2016-04-14 ソニー株式会社 Image processor and image processing method, and solid-state imaging device
JP2016065744A (en) * 2014-09-24 2016-04-28 シャープ株式会社 Imaging device and imaging method
JP6882016B2 (en) * 2017-03-06 2021-06-02 キヤノン株式会社 Imaging device, imaging system, imaging device control method, and program
JP7369094B2 (en) * 2020-05-29 2023-10-25 株式会社日立製作所 Distance measurement system and distance measurement method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0974572A (en) * 1995-09-06 1997-03-18 Matsushita Electric Ind Co Ltd Stereo camera device
JP2000032354A (en) * 1998-07-09 2000-01-28 Sony Corp Image pickup device
JP2003143459A (en) * 2001-11-02 2003-05-16 Canon Inc Compound-eye image pickup system and device provided therewith
JP2003346130A (en) * 2002-05-22 2003-12-05 Saibuaasu:Kk Three-dimensional information processor and three- dimensional information processing method
JP4545503B2 (en) * 2004-07-14 2010-09-15 オリンパス株式会社 Image generating apparatus and method
JP4403172B2 (en) * 2006-12-22 2010-01-20 富士フイルム株式会社 File generation method and apparatus, and stereoscopic image display control method and apparatus
JP2008286527A (en) * 2007-05-15 2008-11-27 Panasonic Corp Compound eye distance measuring device

Also Published As

Publication number Publication date
JP2011117787A (en) 2011-06-16

Similar Documents

Publication Publication Date Title
JP5455033B2 (en) Distance image input device and outside monitoring device
US10863164B2 (en) Stereo camera and method of controlling stereo camera
JP5273356B2 (en) Compound eye image input device and distance measuring device using the same
EP2336816B1 (en) Imaging device
JP5549230B2 (en) Ranging device, ranging module, and imaging device using the same
JP6510551B2 (en) Image pickup optical system, image pickup apparatus and distance measurement system
EP2372651B1 (en) Image pickup apparatus and range determination system
JP5440903B2 (en) Imaging device, stereo camera device, and vehicle exterior monitoring device
KR20150101749A (en) Device for estimating three-dimensional shape of object and method thereof
JP2011182176A (en) Wide viewing angle image processing method, and wide viewing angle image photographing device
JP2011149931A (en) Distance image acquisition device
JP5549283B2 (en) Distance acquisition device
US20200213574A1 (en) Stereo Image Processing Device
JP5375531B2 (en) Distance image acquisition device and distance image acquisition processing method
JP2007295113A (en) Imaging apparatus
JP7288226B2 (en) ranging camera
JP2019032409A5 (en)
US11595631B2 (en) Imaging device, image capturing optical system, and movable apparatus
JP2014202661A (en) Range finder
JP7180177B2 (en) STEREO CAMERA SYSTEM, MOVING OBJECT AND METHOD OF FORMING STEREO CAMERA DEVICE
JP5545527B2 (en) Distance image acquisition device
JP6983740B2 (en) Stereo camera system and distance measurement method
JP5925109B2 (en) Image processing apparatus, control method thereof, and control program
JP2013044893A (en) Compound-eye imaging device, and distance image acquisition device
CN212586269U (en) Multi-view detection device and system for display panel

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121005

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130430

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130510

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130708

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131213

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131226

R151 Written notification of patent or utility model registration

Ref document number: 5455033

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees