JP4270386B2 - Moving body moving amount calculation device - Google Patents

Moving body moving amount calculation device Download PDF

Info

Publication number
JP4270386B2
JP4270386B2 JP2004234945A JP2004234945A JP4270386B2 JP 4270386 B2 JP4270386 B2 JP 4270386B2 JP 2004234945 A JP2004234945 A JP 2004234945A JP 2004234945 A JP2004234945 A JP 2004234945A JP 4270386 B2 JP4270386 B2 JP 4270386B2
Authority
JP
Japan
Prior art keywords
image
plane
vpp
calculating
moving
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.)
Active
Application number
JP2004234945A
Other languages
Japanese (ja)
Other versions
JP2006053755A (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.)
Honda Motor Co Ltd
Tokyo Institute of Technology NUC
Original Assignee
Honda Motor Co Ltd
Tokyo Institute of Technology NUC
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 Honda Motor Co Ltd, Tokyo Institute of Technology NUC filed Critical Honda Motor Co Ltd
Priority to JP2004234945A priority Critical patent/JP4270386B2/en
Publication of JP2006053755A publication Critical patent/JP2006053755A/en
Application granted granted Critical
Publication of JP4270386B2 publication Critical patent/JP4270386B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、移動体と静止物とが混在する環境下において自車両の速度計測をするための移動体移動量算出装置に関する。   The present invention relates to a moving body moving amount calculation device for measuring the speed of a host vehicle in an environment where a moving body and a stationary object coexist.

自動車等の移動体の誘導において、走行可能な道路平面領域を検出し、あるいは、走行環境に存在する障害物を検出する方法は、レーザレーダ、超音波、ミリ波レーダ等を利用する方法と、画像を利用する方法とに大別することができる。   In the guidance of a moving body such as an automobile, a method for detecting a road plane area that can be traveled or detecting an obstacle present in the travel environment includes a method using laser radar, ultrasonic waves, millimeter wave radar, and the like, It can be roughly divided into methods using images.

レーザレーダやミリ波レーダを用いる検出方法では、一般に装置が高価であり、また、十分な空間分解能が得られないという問題がある。また、超音波を用いる検出方法では、遠くの計測が困難であって、空間分解能も低いという問題がある。   In the detection method using laser radar or millimeter wave radar, there is a problem that the apparatus is generally expensive and sufficient spatial resolution cannot be obtained. In addition, the detection method using ultrasonic waves has a problem in that it is difficult to measure far and the spatial resolution is low.

一方、画像を用いる方法では、単眼による方法と、複眼を用いる方法とに分けることができる。従来、画像を用いる方法の多くは単眼、すなわち、1つの視点から得られる画像を用いるもので、主に、高速道路等の整備された環境で用いることを想定し、路面の白線(例えば分離線や中央線)等を検出することにより、走行領域を検出している。しかしながら、白線等の存在が保証されず、また路面の色やパターンがさまざまであるような一般道や駐車場等では、単眼画像から得られる濃度パターンのみから、走行可能領域と障害物を安定に区別することは困難である。   On the other hand, the method using an image can be divided into a method using a single eye and a method using a compound eye. Conventionally, most of the methods using an image use a single eye, that is, an image obtained from one viewpoint, and are mainly used in a developed environment such as an expressway, and white lines (for example, separation lines) And the center line) are detected to detect the travel area. However, in general roads and parking lots where the presence of white lines etc. is not guaranteed, and the road surface colors and patterns vary, only the density pattern obtained from the monocular image can be used to stabilize the driveable area and obstacles. It is difficult to distinguish.

これに対して、複眼、すなわち、ステレオ画像を利用する検出方法では、原理的には環境の3次元構造を利用できるため、より安定に走行環境を認識できる可能性がある。特に、走行可能な領域は空間中でほぼ平面であるとみなせることから、画像間の射影変換行列を算出し、この射影変換行列により一方の画像を2次元射影変換して他方の画像に重畳させ、画像同士の重なり具合から、平面領域か否か、あるいは、障害物か否かを検出する方法が提案されている(特許文献1、非特許文献1参照)。   On the other hand, in the detection method using compound eyes, that is, a stereo image, since the three-dimensional structure of the environment can be used in principle, there is a possibility that the driving environment can be recognized more stably. In particular, since the travelable area can be regarded as almost a plane in the space, a projective transformation matrix between images is calculated, and one image is two-dimensionally projected and superimposed on the other image using this projective transformation matrix. A method for detecting whether or not the image is a planar region or an obstacle from the overlapping state of images has been proposed (see Patent Document 1 and Non-Patent Document 1).

ところで、車両等の移動体では、自車の速度を計測することが一般的に行われているが、近時の制御装置の電子化にともなって種々の複雑な運行制御が可能となってきているが、より高度な制御を行うために自車両の速度計測を一層高精度に行うことが望まれている。   By the way, in a moving body such as a vehicle, it is generally performed to measure the speed of the own vehicle, but various complicated operation control has become possible with the recent digitization of control devices. However, in order to perform more advanced control, it is desired to measure the speed of the host vehicle with higher accuracy.

一方、従来技術によれば、自車両の速度計測には、車速センサやヨーレートセンサ等を利用しているが、これらのセンサでは車輪のスリップやセンサ誤差の影響が大きく、計測精度が低い。 On the other hand, according to the prior art, the speed measurement of the vehicle, although utilizing speed sensors and a yaw rate sensor or the like, greatly affected by slip or sensor error wheel in these sensors, a low measurement accuracy.

このような観点から、カメラで撮像した画像を道路平面上の映像パターンに変換した上で、車両の速度を検出する移動量推定装置が提案されている(例えば、特許文献2参照)。   From this point of view, a movement amount estimation device that detects the speed of a vehicle after converting an image captured by a camera into a video pattern on a road plane has been proposed (for example, see Patent Document 2).

特開2000−293693号公報JP 2000-293893 A 特開2003−178309号公報JP 2003-178309 A ホイング−ヤング・シャム(Heung‐Yeung Shum)、リチャード・セーリスキ(Richard Szeliski),「“パノラミック・イメージ・モザイク”テクニカル・レポート(“Panoramic Image Mosaics”Technical report)」、1997年、エム・エス・アール−テイー・アール−97−23,マイクロソフト・リサーチ(MSR−TR−97‐23,Microsoft Research)Heung-Yung Shum, Richard Szeliski, “Panoramic Image Mosaics” Technical Report, 1997, RM -TAR-97-23, Microsoft Research (MSR-TR-97-23, Microsoft Research)

しかしながら、前記特許文献2では、画像を用いて自車両の運動を計測するためには、撮影対象が静止していることが前提条件となる。そのため、画像中に移動物体が含まれている場合や、画像中の静止している領域が判別できない場合には、自車両の速度計測が困難であり、しかも計算負荷が大きい。   However, in Patent Document 2, in order to measure the motion of the host vehicle using an image, it is a precondition that the shooting target is stationary. Therefore, when a moving object is included in the image, or when a stationary area in the image cannot be determined, it is difficult to measure the speed of the host vehicle, and the calculation load is heavy.

本発明はこのような課題を考慮してなされたものであり、移動体と静止物とが混在する環境下においても正確に速度計測をすることができる移動体移動量算出装置を提供することを目的とする。   The present invention has been made in consideration of such problems, and provides a moving body moving amount calculation apparatus capable of accurately measuring speed even in an environment where a moving body and a stationary object are mixed. Objective.

発明に係る移動体移動量算出装置は、移動体周辺を撮像する複数の撮像手段と、
前記複数の撮像手段による画像の道路平面に対する射影変換行列を動的に推定する射影変換行列推定手段と、
前記複数の撮像手段による画像から道路平面領域を抽出する第一の道路平面領域抽出手段と、
前記射影変換行列推定手段にて推定された射影変換行列を分解することにより前記道路平面に対するカメラの位置姿勢パラメータを算出する平面パラメータ算出手段と、
前記位置姿勢パラメータを用いて前記道路平面を上方から見た仮想投影面画像を生成する仮想投影面画像作成手段と、
前記仮想投影面画像中の道路平面領域を抽出する第二の道路平面領域抽出手段と、
前記第二の道路平面領域抽出手段によって抽出された前記仮想投影面画像中の道路平面領域の異なる時刻間での移動量を算出する移動量算出手段とを備えることを特徴とする(請求項記載の発明)。
A moving body movement amount calculating apparatus according to the present invention includes a plurality of imaging means for imaging the periphery of a moving body,
A projection transformation matrix estimation means for dynamically estimating a projection transformation matrix for a road plane of an image by the plurality of imaging means;
First road plane area extraction means for extracting a road plane area from images by the plurality of imaging means;
Plane parameter calculation means for calculating a position and orientation parameter of the camera with respect to the road plane by decomposing the projection conversion matrix estimated by the projection conversion matrix estimation means;
Virtual projection plane image creation means for generating a virtual projection plane image when the road plane is viewed from above using the position and orientation parameters;
Second road plane area extracting means for extracting a road plane area in the virtual projection plane image;
Characterized in that it comprises a movement amount calculating means for calculating an amount of movement between the different times that the road plane area of the virtual projection plane in the image extracted by the second road plane area extraction means (claim 1 Described invention).

このように、射影変換行列より平面姿勢パラメータを算出し、それを用いて仮想投影面画像を作成してその平面領域の移動量を算出しているため、移動量をより高精度に算出できる。また、仮想投影面画像の平面領域のみを用いて時刻間の移動量を算出することにより、移動体と静止物とが混在する環境下においても正確に速度計測をすることができる。しかも、平面領域のみを用いることにより、高さのある物体等を除外して算出できるので、高さに基づく速度検出の誤差を低減することが可能となる。 As described above, the plane attitude parameter is calculated from the projective transformation matrix, and the virtual projection plane image is created using the calculated plane attitude parameter, and the movement amount of the plane area is calculated. Therefore, the movement amount can be calculated with higher accuracy. Also, by calculating the amount of movement between times using only the plane area of the virtual projection plane image, it is possible to accurately measure the speed even in an environment where a moving object and a stationary object coexist. In addition, by using only the plane area, it is possible to calculate by excluding a height object or the like, so that it is possible to reduce an error in speed detection based on the height.

さらに、本発明に係る移動体移動量算出装置は、移動体周辺を撮像する複数の撮像手段と、
前記複数の撮像手段による画像から道路平面領域を抽出する道路平面領域抽出手段と、
また、前記移動量算出手段によって算出された異なる時刻間での移動量を用いて移動体の速度を算出する移動体速度算出手段を備えるようにしてもよい(請求項記載の発明)。これにより、算出された誤差の少ない移動量を用いて移動体の移動量を算出するため、より正確な速度の算出が可能となる。
Furthermore, the moving body movement amount calculating device according to the present invention includes a plurality of imaging means for imaging the periphery of the moving body,
Road plane area extraction means for extracting a road plane area from images by the plurality of imaging means;
Moreover, you may make it provide the moving body speed calculation means which calculates the speed of a moving body using the moving amount between the different time calculated by the said moving amount calculation means (invention of Claim 2 ). Thereby, since the movement amount of the moving body is calculated using the calculated movement amount with a small error, it is possible to calculate the speed more accurately.

また、前記複数の撮像手段から得られた画像から物体を抽出する物体抽出手段と、
前記移動体に対する前記物体の相対速度を算出する相対速度算出手段と、
前記移動体速度算出手段による移動体の速度と前記相対速度算出手段による物体の相対速度を用いて前記物体の絶対速度を算出する絶対速度算出手段と、
前記絶対速度算出手段による算出結果を用いて物体が静止物体か移動物体かを判別する判別手段とを備えるようにしてもよい(請求項記載の発明)。
An object extracting means for extracting an object from images obtained from the plurality of imaging means;
A relative speed calculating means for calculating a relative speed of the object with respect to the moving body;
Absolute speed calculating means for calculating the absolute speed of the object using the speed of the moving body by the moving body speed calculating means and the relative speed of the object by the relative speed calculating means;
A determination unit that determines whether the object is a stationary object or a moving object using a calculation result obtained by the absolute velocity calculation unit may be provided (the invention according to claim 3 ).

正確な自車速度を用いて物体の絶対速度を算出することにより、該物体が静止物体であるか否かをより正確に判別することができる。   By calculating the absolute speed of the object using the accurate own vehicle speed, it is possible to more accurately determine whether or not the object is a stationary object.

また、前記移動量算出手段は、異なる時刻間での前記仮想投影面画像を勾配法に基づくマッチング処理を行い、求められたずれ量から移動量を算出するようにしてもよい(請求項記載の発明)。 Further, the movement amount calculating means, different said virtual projection plane images between time performs matching processing based on the gradient method, may be calculated the movement amount from the shift amount determined (claim 4, wherein Invention).

本発明に係る移動体移動量算出装置によれば、仮想投影面画像の平面領域のみを用いて時刻間の移動量を算出するため、移動体と静止物とが混在する環境下においても正確に速度計測をすることができる。しかも、平面領域のみを用いることにより、高さのある物体等を除外して算出できるので、速度検出の誤差を低減することができる。さらに、道路平面に対して平行な仮想投影面画像により移動量を算出するため、車両の姿勢変化や振動による影響を受けることなく移動量を正しく算出できる。   According to the moving body moving amount calculating apparatus according to the present invention, since the moving amount between the times is calculated using only the plane area of the virtual projection plane image, the moving object moving amount calculating apparatus accurately even under the environment where the moving body and the stationary object coexist. Speed measurement is possible. In addition, by using only the planar area, it is possible to calculate by excluding a height object or the like, so that the speed detection error can be reduced. Furthermore, since the amount of movement is calculated from a virtual projection plane image parallel to the road plane, the amount of movement can be calculated correctly without being affected by changes in the posture of the vehicle or vibrations.

図1は、本発明の移動体移動量算出装置が適用される実施形態の車両10を示す。車両10のウインドシールド上部の左右には、車両10が走行する道路平面領域を含む画像を撮像する一対の撮像手段である基準カメラ12及び参照カメラ14が固定配置される。基準カメラ12及び参照カメラ14は、共通の撮像領域が設定されたCCDカメラ等からなるステレオカメラであり、これらには、撮像した画像を処理することで道路平面領域と障害物となる可能性のある物体とを検出する演算処理装置16が接続される。なお、以下の説明では、基準カメラ12によって撮像された画像を基準画像と称し、参照カメラ14によって撮像された画像を参照画像と称する。   FIG. 1 shows a vehicle 10 according to an embodiment to which a moving body movement amount calculating apparatus of the present invention is applied. A reference camera 12 and a reference camera 14 which are a pair of imaging means for capturing an image including a road plane area where the vehicle 10 travels are fixedly arranged on the left and right above the windshield of the vehicle 10. The reference camera 12 and the reference camera 14 are stereo cameras including a CCD camera or the like in which a common imaging area is set, and these may be a road plane area and an obstacle by processing captured images. An arithmetic processing unit 16 that detects a certain object is connected. In the following description, an image captured by the standard camera 12 is referred to as a standard image, and an image captured by the reference camera 14 is referred to as a reference image.

図2は、演算処理装置16の機能構成ブロックを示す。演算処理装置16は、基準カメラ12によって撮像した基準画像を処理する画像処理部18と、参照カメラ14によって撮像した参照画像を処理する画像処理部20と、所定の撮像時間間隔で撮像された基準画像及び参照画像を記憶する画像記憶部22とを備える。   FIG. 2 shows a functional configuration block of the arithmetic processing unit 16. The arithmetic processing unit 16 includes an image processing unit 18 that processes a standard image captured by the standard camera 12, an image processing unit 20 that processes a reference image captured by the reference camera 14, and a standard captured at a predetermined imaging time interval. And an image storage unit 22 for storing images and reference images.

また、演算処理装置16は、演算制御部24を備え、演算制御部24には、画像記憶部22、パラメータ記憶部26、射影変換行列算出部28、平面パラメータ算出部30、平面領域抽出部32、物体検出部34、物体相対速度算出部36、仮想投影面画像生成部38、自車速度算出部40、物体絶対速度算出部42及び表示処理部44が接続される。   The arithmetic processing device 16 includes an arithmetic control unit 24. The arithmetic control unit 24 includes an image storage unit 22, a parameter storage unit 26, a projective transformation matrix calculation unit 28, a plane parameter calculation unit 30, and a plane region extraction unit 32. , An object detection unit 34, an object relative speed calculation unit 36, a virtual projection plane image generation unit 38, a host vehicle speed calculation unit 40, an object absolute speed calculation unit 42, and a display processing unit 44 are connected.

パラメータ記憶部26は、演算に必要な初期値パラメータ、前回の演算や演算中に算出された各パラメータを記憶する。射影変換行列算出部28は、参照画像中の道路平面領域を基準画像中の道路平面領域に2次元射影変換する射影変換行列を算出する。平面パラメータ算出部30は、道路平面の法線ベクトル及び基準カメラ12の光学中心から道路平面までの距離を平面パラメータとして算出する。平面領域抽出部32は、基準画像と射影変換行列によって射影変換した参照画像とを用いて、車両10が走行可能な道路平面領域を抽出する。物体検出部34は、道路平面領域外の領域に存在する物体を検出する。物体相対速度算出部36は、抽出された物体の車両10に対する相対速度ベクトルを算出する。仮想投影面画像生成部38は、抽出された道路平面領域を実際の道路面に平行な仮想平面に投影した仮想投影面(VPP)画像(VPP:Virtual Projection Plane)を生成する。自車速度算出部40は、VPP画像上で車両10の自車速度ベクトルを算出する。物体絶対速度算出部42は、車両10に対する物体の相対速度ベクトルと車両10の自車速度ベクトルとから、各物体の絶対速度ベクトルを算出する。表示処理部44は、上記の各演算結果をディスプレイに表示する処理を行うとともに、演算結果に基づいて必要に応じた警告等の報知を行う。   The parameter storage unit 26 stores an initial value parameter necessary for the calculation and each parameter calculated during the previous calculation or calculation. The projective transformation matrix calculating unit 28 calculates a projective transformation matrix for performing two-dimensional projective transformation from a road plane area in the reference image to a road plane area in the standard image. The plane parameter calculation unit 30 calculates the normal vector of the road plane and the distance from the optical center of the reference camera 12 to the road plane as plane parameters. The plane area extraction unit 32 extracts a road plane area in which the vehicle 10 can travel using the base image and the reference image obtained by projective transformation using the projective transformation matrix. The object detection unit 34 detects an object that exists in an area outside the road plane area. The object relative speed calculation unit 36 calculates a relative speed vector of the extracted object with respect to the vehicle 10. The virtual projection plane image generation unit 38 generates a virtual projection plane (VPP) image (VPP: Virtual Projection Plane) obtained by projecting the extracted road plane area onto a virtual plane parallel to the actual road plane. The own vehicle speed calculation unit 40 calculates the own vehicle speed vector of the vehicle 10 on the VPP image. The object absolute speed calculation unit 42 calculates the absolute speed vector of each object from the relative speed vector of the object with respect to the vehicle 10 and the own vehicle speed vector of the vehicle 10. The display processing unit 44 performs a process of displaying each calculation result on the display, and notifies a warning or the like as necessary based on the calculation result.

本発明の移動体移動量算出装置が適用される車両10及び演算処理装置16は、基本的には以上のように構成されるものであり、次に、図3に示すフローチャートに基づき、演算処理装置16による処理の全体の流れを説明する。   The vehicle 10 and the arithmetic processing device 16 to which the moving body moving amount calculating device of the present invention is applied are basically configured as described above. Next, based on the flowchart shown in FIG. The overall flow of processing by the device 16 will be described.

先ず、基準カメラ12及び参照カメラ14により、車両10が走行する道路平面領域を含む基準画像及び参照画像を所定の時間間隔で撮像し、画像処理部18、20において所定の画像処理を行った後、画像記憶部22に各時間毎の画像情報として記憶させる(ステップS0)。   First, a standard image and a reference image including a road plane area where the vehicle 10 travels are captured at predetermined time intervals by the standard camera 12 and the reference camera 14, and predetermined image processing is performed in the image processing units 18 and 20. Then, it is stored in the image storage unit 22 as image information for each time (step S0).

次に、射影変換行列算出部28において、パラメータ記憶部26に記憶されている初期値パラメータを用いて、参照画像中の道路平面領域を基準画像中の道路平面領域に2次元射影変換する射影変換行列を動的に算出する(ステップS1)。   Next, the projective transformation matrix calculation unit 28 uses the initial value parameters stored in the parameter storage unit 26 to perform the two-dimensional projective transformation from the road plane area in the reference image to the road plane area in the reference image. A matrix is dynamically calculated (step S1).

平面領域抽出部32は、ステップS1で算出した射影変換行列を用いて、基準画像から道路平面領域を抽出する(ステップS2)。   The plane area extraction unit 32 extracts a road plane area from the reference image using the projective transformation matrix calculated in step S1 (step S2).

平面パラメータ算出部30は、道路平面の法線ベクトル及び基準カメラ12の光学中心から道路平面までの距離を平面パラメータとして算出する(ステップS3)。   The plane parameter calculator 30 calculates the normal vector of the road plane and the distance from the optical center of the reference camera 12 to the road plane as plane parameters (step S3).

次に、物体検出部34は、ステップS3で算出した平面パラメータを用いて、ステップS2で抽出した道路平面領域を道路面上に変換して自分の車両10以外の障害物となる可能性のある物体を検出し、若しくは、ステップS2で抽出した道路平面領域以外の領域に対してステレオ計測することにより物体を検出する(ステップS4)。   Next, the object detection unit 34 may convert the road plane area extracted in step S2 onto the road surface using the plane parameter calculated in step S3, and may become an obstacle other than its own vehicle 10. The object is detected by detecting the object or performing stereo measurement on an area other than the road plane area extracted in step S2 (step S4).

物体相対速度算出部36は、抽出された各物体の時間毎の位置変化から、車両10に対する各物体の相対速度ベクトルを算出する(ステップS5)。   The object relative speed calculation unit 36 calculates a relative speed vector of each object with respect to the vehicle 10 from the position change of each extracted object for each time (step S5).

さらに、仮想投影面画像生成部38は、ステップS3で算出した道路平面の傾きである法線ベクトルを用いて、道路面を上方から見た画像である仮想投影面(VPP)画像を生成する(ステップS6)。   Further, the virtual projection plane image generation unit 38 generates a virtual projection plane (VPP) image that is an image obtained by viewing the road surface from above using the normal vector that is the inclination of the road plane calculated in step S3 ( Step S6).

そして、自車速度算出部40は、ステップS6で生成されたVPP画像の各時刻での位置から車両10の自車速度ベクトルを算出する(ステップS7)。   Then, the host vehicle speed calculation unit 40 calculates the host vehicle speed vector of the vehicle 10 from the position at each time of the VPP image generated in step S6 (step S7).

さらに、物体絶対速度算出部42は、ステップS5で算出した物体の相対速度ベクトルと、ステップS7で算出した車両10の自車速度ベクトルとを用いて、各物体の絶対速度ベクトルを算出する(ステップS8)。   Further, the object absolute speed calculation unit 42 calculates the absolute speed vector of each object using the relative speed vector of the object calculated in step S5 and the own vehicle speed vector of the vehicle 10 calculated in step S7 (step S7). S8).

なお、表示処理部44は、以上のようにして抽出した道路平面領域、障害物となる可能性のある物体、車両10及び物体の絶対速度等をディスプレイに表示するとともに、例えば、車両10と物体との相対的な位置関係、速度関係に基づき、必要に応じて警告等の報知を行うことができる。   The display processing unit 44 displays the road plane area extracted as described above, an object that may be an obstacle, the vehicle 10, the absolute speed of the object, and the like on the display. Based on the relative positional relationship and the speed relationship, a warning or the like can be notified as necessary.

次に、本実施形態をステップ毎に詳細に説明する。   Next, this embodiment will be described in detail step by step.

先ず、本発明に用いられる道路平面領域の抽出及び2次元射影変換の原理を説明する。なお、以下の説明において、同次座標は、文章中では、符号に記号「^」を付加して表し、数式中では、符号の上に記号「〜」を付加して表すものとする。また、射影変換された画像については、文章中では、符号に記号「′」を付加して表し、数式中では、符号の上に記号「〜」を付加して表すものとする。   First, the principle of road plane region extraction and two-dimensional projective transformation used in the present invention will be described. In the following description, the homogeneous coordinates are expressed by adding a symbol “^” to a symbol in a sentence, and expressed by adding a symbol “˜” above a symbol in a mathematical expression. In addition, a projective-transformed image is represented by adding a symbol “′” to a symbol in a sentence, and represented by adding a symbol “˜” above a symbol in a mathematical expression.

図4に示すように、空間中にある平面(道路平面ともいう)Π上の観測点M1が基準画像Ib及び参照画像Irに投影されるとき、基準画像Ib上での同次座標をm^b、参照画像Ir上での同次座標をm^rとすると、各同次座標m^b、m^rは、(1−1)式に示すように、2次元射影変換によって関係付けられることはよく知られている。 As shown in FIG. 4, when an observation point M1 on a plane (also referred to as a road plane) in the space is projected onto the standard image I b and the reference image I r , homogeneous coordinates on the standard image I b the m ^ b, the homogeneous coordinates on the reference image I r When m ^ r, the homogeneous coordinates m ^ b, m ^ r, as shown in equation (1-1), two-dimensional projective transformation It is well known that

Figure 0004270386
(「〜」は、定数倍の不定性を許して等しいものとする。)
Figure 0004270386
("~" Shall be equal by allowing a constant multiple of indefiniteness.)

ここで、Hは3×3の射影変換行列である。また、図4において、Oは基準カメラ12の光学中心、O′は参照カメラ14の光学中心、Rは基準カメラ座標系から参照カメラ座標系への回転行列、tは、参照カメラ座標系において参照カメラ14の光学中心から基準カメラ12の光学中心へ向かう並進ベクトル、dは基準カメラ12の光学中心Oと平面Πとの距離、nは平面Πの法線ベクトルである。   Here, H is a 3 × 3 projective transformation matrix. In FIG. 4, O is the optical center of the reference camera 12, O 'is the optical center of the reference camera 14, R is a rotation matrix from the reference camera coordinate system to the reference camera coordinate system, and t is referenced in the reference camera coordinate system. A translation vector from the optical center of the camera 14 toward the optical center of the reference camera 12, d is a distance between the optical center O of the reference camera 12 and the plane Π, and n is a normal vector of the plane Π.

道路等の走行可能な領域は、空間中でほぼ平面であると見なすことができれば、参照画像Irに対して適切な射影変換を施すことにより、平面の部分に対して基準画像Ibに一致するような画像を得ることができる。一方、平面上にない物体は、射影変換した際に画像が一致しないため、その物体の領域は走行可能な領域でない、あるいは、障害物となり得る領域であると判断することができる。したがって、平面の拡がりを算出することにより、走行可能な領域及び障害物となる物体の検出が可能となる。 If it can be considered that the area where the road can travel can be considered to be almost a plane in the space, the reference image I r is subjected to an appropriate projective transformation to match the reference image I b with respect to the plane portion. An image can be obtained. On the other hand, an object that is not on a plane does not match the image when projective transformation is performed, so that the area of the object can be determined not to be a travelable area or an area that can be an obstacle. Therefore, by calculating the spread of the plane, it is possible to detect a region where the vehicle can travel and an object that becomes an obstacle.

<ステップS0>
基準画像Ib及び参照画像Irに係る画像情報を取得する。
<Step S0>
Image information relating to the reference image I b and the reference image I r is acquired.

基準カメラ12及び参照カメラ14を用いて画像を撮像し、各画像間の明るさの違い等を除くため、画像処理部18及び20において、各画像にLOG(Laplacian of Gaussian)フィル夕をかける。また、LOGフィルタを掛けた画像は、コントラストが低いため、さらに、ヒストグラム平坦化処理を施す。これらの処理が施された基準画像Ib及び参照画像Irとその原画像は、画像記憶部22に記憶される。 In order to take an image using the reference camera 12 and the reference camera 14, and to remove differences in brightness between the images, the image processing units 18 and 20 apply a LOG (Laplacian of Gaussian) fill to each image. Further, since the image to which the LOG filter is applied has a low contrast, a histogram flattening process is further performed. The base image I b and the reference image I r subjected to these processes and the original image are stored in the image storage unit 22.

<ステップS1>
射影変換行列算出部28において、画像記憶部22に記憶された基準画像Ib及び参照画像Irを用いて、路面に対する射影変換行列Hを動的に推定する。
<Step S1>
The projection transformation matrix calculation unit 28 dynamically estimates the projection transformation matrix H for the road surface using the standard image I b and the reference image I r stored in the image storage unit 22.

すなわち、基準画像Ib内のある領域RIで、射影変換行列Hを微少量変化させ、以下の(1−2)式の評価関数E(H)を最小化する射影変換行列Hを、繰り返し最適化によって推定する。 That is, the projection transformation matrix H that changes the projection transformation matrix H by a small amount in a certain region R I in the reference image I b and minimizes the evaluation function E (H) of the following equation (1-2) is repeated. Estimate by optimization.

Figure 0004270386
Figure 0004270386

なお、Ib(m^b)、Ir(Hm^b)は、同次座標m^b、Hm^bにおける基準画像Ib及び参照画像Irの輝度値を表す。 Note that I b (m b ) and I r (Hm b ) represent the luminance values of the base image I b and the reference image I r at the homogeneous coordinates m b and Hm b .

上記の推定には、適当に真値に近い初期値としての射影変換行列Hと、領域RI(本発明では、以後「計算領域」と呼ぶ。)とを必要とする。そこで、時系列情報を利用し、以下に述べる手順により、射影変換行列Hと計算領域RIとを求める。 The above estimation requires a projective transformation matrix H as an initial value appropriately close to a true value and a region R I (hereinafter referred to as “calculation region” in the present invention). Therefore, when utilizing the sequence information, by the procedures described below, determining the projective transformation matrix H and calculated area R I.

すなわち、同時刻における基準画像Ib及び参照画像Ir間の射影変換行列HSと、連続する時間で取得した2つの基準画像Ib間の射影変換行列Hmと、基準画像Ibに対する計算領域RIとを求める。そして、ある時刻tにおける射影変換行列H(Hs,Hm)の推定の際には、前時刻(t−1)までの推定結果を利用する。 That is, the projection transformation matrix H S between the base image I b and the reference image I r at the same time, the projection transformation matrix H m between two base images I b acquired at successive times, and the calculation for the base image I b A region R I is obtained. Then, when estimating the projective transformation matrix H (H s , H m ) at a certain time t, the estimation result up to the previous time (t−1) is used.

先ず、連続する基準画像Ib(t−1)、Ib(t)間の射影変換行列Hm(t)を(1−2)式に基づく繰り返し最適化によって推定する。このとき、射影変換行列Hm(t)の初期値としては、前時刻に推定された射影変換行列Hm(t−1)を、また、計算領域RIの初期値としては、基準画像Ib(t−1)に対して前時刻で求められている計算領域RI(t−1)を用いることができる。 First, a projective transformation matrix H m (t) between successive reference images I b (t−1) and I b (t) is estimated by iterative optimization based on equation (1-2). At this time, as the initial value of the projective transformation matrix H m (t), the projective transformation matrix H m estimated before time a (t-1), also as an initial value of the calculation area R I is the reference image I The calculation region R I (t−1) obtained at the previous time with respect to b (t−1) can be used.

次に、求められた射影変換行列Hm(t)を用いて、前時刻の計算領域RI(t−1)を変換することにより、現時刻における計算領域RI(t)の予測値を求める。 Next, by using the obtained projective transformation matrix H m (t), the predicted value of the calculation region R I (t) at the current time is converted by converting the calculation region R I (t−1) of the previous time. Ask.

基準画像Ib及び参照画像Ir間の射影変換行列HS(t)は、前時刻において推定された射影変換行列HS(t−1)を初期値とし、射影変換行列Hm(t)から求めた計算領域RI(t)を用いて、(1−2)式に基づく繰り返し最適化によって推定する。 The projection transformation matrix H S (t) between the reference image I b and the reference image I r has the projection transformation matrix H S (t−1) estimated at the previous time as an initial value, and the projection transformation matrix H m (t). The calculation region R I (t) obtained from the above is used for estimation by iterative optimization based on the equation (1-2).

このように、時系列画像を用いた連続推定において、十分に真値に近い初期値としての射影変換行列Hと計算領域RIとを用いて、時刻tにおける基準画像Ib及び参照画像Ir間の動的な射影変換行列HS(以下、射影変換行列Hという。)を安定して推定することができる。 Thus, when in the continuous estimation using series images, using well the projective transformation matrix H as an initial value close to the true value and the calculation region R I, the reference image at time t I b and the reference image I r It is possible to stably estimate a dynamic projection transformation matrix H S (hereinafter referred to as a projection transformation matrix H).

次に、(1−2)式を用いた繰り返し最適化(濃度勾配法)による射影変換行列Hの推定方法について詳細に説明する。   Next, a method for estimating the projection transformation matrix H by iterative optimization (concentration gradient method) using the expression (1-2) will be described in detail.

濃度勾配法は、2つの画像の一方を微小量変化させ、画像の重なり具合(濃度差)を表す評価関数を最小化することにより、画像が最も重なるような射影変換行列Hの変化量を推定する方法である。   In the density gradient method, one of the two images is changed by a small amount, and the evaluation function representing the degree of overlap (density difference) of the images is minimized to estimate the amount of change in the projective transformation matrix H where the images overlap most. It is a method to do.

座標x(x,y)における参照画像Irの輝度値をIr(x)とすると、適当な射影変換行列Hにより射影変換された参照画像Ir′は、次の(1−3)式で表される。なお、参照画像Irの上の「〜」は、射影変換された後の画像を表し、xの上の「〜」は、座標x(x,y)の同次座標を表す。 Assuming that the luminance value of the reference image I r at the coordinate x (x, y) is I r (x), the reference image I r ′ subjected to projective transformation by an appropriate projective transformation matrix H is expressed by the following equation (1-3): It is represented by Incidentally, "-" on the reference image I r denotes an image after being projective transformation, "~" on the x represents the homogeneous coordinates of the coordinates x (x, y).

Figure 0004270386
Figure 0004270386

なお、射影変換行列Hは、3×3のパラメータを要素とする自由度8(1パラメータを固定)の行列とする。   The projective transformation matrix H is a matrix having 8 degrees of freedom (one parameter is fixed) having 3 × 3 parameters as elements.

射影変換行列Hの8つのパラメータを微小量変化させたとき、射影変換された参照画像Ir′上の座標x(x,y)が座標x″(x″,y″)に変化するものとすると、

Figure 0004270386
(「〜」は、定数倍の不定性を許して等しいものとする。)の関係が得られる。なお、Iは3×3の単位行列、DXは射影変換行列Hの各パラメータの微小変化量をパラメータとする3×3の微小変化行列とする。 When the eight parameters of the projective transformation matrix H are changed by a minute amount, the coordinate x (x, y) on the reference image I r ′ obtained by the projective transformation changes to the coordinate x ″ (x ″, y ″). Then
Figure 0004270386
("~" Is assumed to be equal by allowing indefiniteness of a constant multiple). Note that I is a 3 × 3 unit matrix, and D X is a 3 × 3 minute change matrix whose parameter is the minute change amount of each parameter of the projective transformation matrix H.

(1−3)、(1−4)式の関係を用いて(1−2)式の評価関数E(H)を書き替えると、射影変換された参照画像Ir′と基準画像Ibとの重なり状態を示す評価関数E(H)は、射影変換行列Hの微小変化行列DXのパラメータを変数として、

Figure 0004270386
(「i」は、画素番号を表す。)
と表すことができる。なお、dXは、微小変化行列DXのパラメータをベクトルで表したものである。 When the evaluation function E (H) in the expression (1-2) is rewritten using the relationship of the expressions (1-3) and (1-4), the projective transformation of the reference image I r ′ and the base image I b The evaluation function E (H) indicating the overlapping state of the projection transformation matrix H with the parameter of the minute change matrix D X as a variable
Figure 0004270386
(“I” represents a pixel number.)
It can be expressed as. Here, d X represents the parameter of the minute change matrix D X as a vector.

(1−5)式をテーラ展開して一次近似すると、評価関数E(dX)は、

Figure 0004270386
(「≒」は、(1−5)式の一次近似の範囲で等しいものとする。)
となる。 When the equation (1-5) is Taylor-expanded and linearly approximated, the evaluation function E (d X ) is
Figure 0004270386
(“≈” is assumed to be equal within the range of the linear approximation of equation (1-5).)
It becomes.

(1−6)式の評価関数E(dX)を最小化するベクトルdXは、評価関数E(dX)をベクトルdXで微分し、その微分値を0とおいて、

Figure 0004270386
を解くことにより求めることができる。 The vector d X that minimizes the evaluation function E (d X ) of the expression (1-6) is obtained by differentiating the evaluation function E (d X ) by the vector d X and setting the differential value to 0.
Figure 0004270386
Can be obtained by solving

この場合、gi(輝度勾配)、ei(輝度差分)は、基準画像Ib及び射影変換された参照画像Ir′から算出され、ヤコビアンJdXiは、座標x(x,y)から算出できる。したがって、ベクトルdXは、最小二乗法を用いて(1−7)式から求めることができる。 In this case, g i (luminance gradient) and e i (luminance difference) are calculated from the base image I b and the projective transformed reference image I r ′, and the Jacobian J dXi is calculated from the coordinates x (x, y). it can. Therefore, the vector d X can be obtained from the expression (1-7) using the least square method.

以上のようにして求めたベクトルdX、すなわち、微小変化行列DXを用いて、射影変換行列Hを次の(1−8)式にしたがって更新する。なお、Iは、3×3の単位行列とする。 Using the vector d X obtained as described above, that is, the minute change matrix D X , the projective transformation matrix H is updated according to the following equation (1-8). Note that I is a 3 × 3 unit matrix.

Figure 0004270386
Figure 0004270386

そして、(1−8)式で求めた射影変換行列Hを用いて、再び(1−6)式の評価関数E(dX)の値を算出する処理を繰り返し、評価関数E(dX)の値が所定の値以下に収束したときの射影変換行列Hを所望の射影変換行列Hとする。 Then, the process of calculating the value of the evaluation function E (d X ) of the expression (1-6) is repeated again using the projective transformation matrix H obtained by the expression (1-8) to evaluate the evaluation function E (d X ). The projection transformation matrix H when the value of converges below a predetermined value is defined as a desired projection transformation matrix H.

<ステップS2(第一の道路平面領域抽出手段)>
平面領域抽出部32において、ステップS1で推定した射影変換行列Hを用いて、車両10が走行可能な道路平面領域を抽出する。この抽出処理について、図5を参照して説明する。
<Step S2 (first road plane area extracting means)>
In the plane area extraction unit 32, a road plane area in which the vehicle 10 can travel is extracted using the projective transformation matrix H estimated in step S1. This extraction process will be described with reference to FIG.

ステップS0でLOGフィルタ処理及びヒストグラム平坦化処理が施された参照画像Irに対して、ステップS1で推定した射影変換行列Hが作用され、射影変換画像Ir′が生成される。 The projection transformation matrix H estimated in step S1 is applied to the reference image I r that has been subjected to the LOG filter processing and the histogram flattening processing in step S0, and a projection transformation image I r ′ is generated.

次いで、ステップS0でLOGフィルタ処理及びヒストグラム平坦化処理が施された基準画像Ibと、生成された射影変換画像Ir′との差分画像(Ir′−Ib)を求める。 Next, a difference image (I r ′ −I b ) between the reference image I b subjected to the LOG filter process and the histogram flattening process and the generated projective transformation image I r ′ is obtained in step S0.

この場合、平面上に存在する点は、基準画像Ibに正確に投影されるため、差分画像(Ir′−Ib)における輝度値は小さくなる。一方、平面上にない点の差分画像(Ir′−Ib)における輝度値は大きくなる。したがって、所定の閾値を設定して差分画像(Ir′−Ib)を2値化することにより、道路平面領域Πfを抽出することができる。 In this case, since the point existing on the plane is accurately projected on the reference image I b , the luminance value in the difference image (I r ′ −I b ) becomes small. On the other hand, the luminance value in the difference image (I r ′ −I b ) at a point that is not on the plane increases. Therefore, the road plane area Π f can be extracted by setting a predetermined threshold value and binarizing the difference image (I r ′ −I b ).

<ステップS3>
平面パラメータ算出部30において、ステップS1で推定した射影変換行列Hを用いて、平面Πの平面パラメータである法線ベクトルn及び基準カメラ12の光学中心Oから平面Πまでの距離dを求める。
<Step S3>
In the plane parameter calculation unit 30, the normal vector n, which is the plane parameter of the plane 法, and the distance d from the optical center O of the reference camera 12 to the plane Π are obtained using the projection transformation matrix H estimated in step S1.

図4に示す関係において、基準カメラ座標系から参照カメラ座標系への回転行列R、参照カメラ14の光学中心から基準カメラ12の光学中心へ向かう並進ベクトルt、基準カメラ12及び参照カメラ14の内部パラメータAb、Arを用いて、射影変換行列Hは、

Figure 0004270386
と表される。なお、kは、0でない係数であって、画像から得られた射影変換行列Hに定数倍の自由度が存在することを表す。内部パラメータAb、Arが既知であるとすると、次の(3−2)式が成立する。 In the relationship shown in FIG. 4, the rotation matrix R from the reference camera coordinate system to the reference camera coordinate system, the translation vector t from the optical center of the reference camera 14 to the optical center of the reference camera 12, the inside of the reference camera 12 and the reference camera 14 Using the parameters A b and A r , the projective transformation matrix H is
Figure 0004270386
It is expressed. Note that k is a coefficient that is not 0, and represents that the projective transformation matrix H obtained from the image has a degree of freedom that is a constant multiple. If the internal parameters A b and A r are known, the following equation (3-2) is established.

Figure 0004270386
Figure 0004270386

そこで、射影変換行列H′を特異値分解する。U、Vを正規直交行列、Σを射影変換行列H′の特異値σ1〜σ3(σ1≧σ2≧σ3>0)を要素とする対角行列として、射影変換行列H′は、

Figure 0004270386
と書き替えることができる。なお、
Figure 0004270386
である。 Therefore, the singular value decomposition is performed on the projective transformation matrix H ′. U and V are orthonormal matrices, Σ is a diagonal matrix whose elements are singular values σ 1 to σ 31 ≧ σ 2 ≧ σ 3 > 0) of the projective transformation matrix H ′, and the projective transformation matrix H ′ is ,
Figure 0004270386
Can be rewritten. In addition,
Figure 0004270386
It is.

(3−2)、(3−3)式から、

Figure 0004270386
となる。 From the expressions (3-2) and (3-3),
Figure 0004270386
It becomes.

ここで、

Figure 0004270386
とすると、次の(3−7)式が得られる。 here,
Figure 0004270386
Then, the following expression (3-7) is obtained.

Figure 0004270386
Figure 0004270386

基準カメラ座標系の基底ベクトル(e1,e2,e3)を導入し、

Figure 0004270386
とすると、(3−7)式から得られる3つのベクトル方程式と、n、n′が単位ベクトル、Vが正規直交ベクトル、R′がノルム変化のない回転行列であることから、次の(3−9)式が得られる。 Introducing base vectors (e 1 , e 2 , e 3 ) of the reference camera coordinate system,
Figure 0004270386
Then, since three vector equations obtained from the equation (3-7), n and n ′ are unit vectors, V is an orthonormal vector, and R ′ is a rotation matrix having no norm change, the following (3 -9) is obtained.

Figure 0004270386
Figure 0004270386

(3−9)式をn12、n22、n32の連立方程式と考えれば、0でない解を持つには、行列式が0であるから、

Figure 0004270386
となる。 Considering the equation (3-9) as simultaneous equations of n 12 , n 22 and n 32 , the determinant is 0 to have a non-zero solution.
Figure 0004270386
It becomes.

そこで、射影変換行列H′の特異値σ1〜σ3が、
(I) 重解を持たない場合(σ1≠σ2≠σ3
(II) 重解を持つ場合(σ1=σ2≠σ3 又は σ1≠σ2=σ3
(III) 3重解を持つ場合(σ1=σ2=σ3
に場合分けして考える。(I)及び(II)の場合は、k=±σ1若しくはk=±
σ3とすると、(3−9)式から算出されるn′が単位ベクトルであることに矛盾する。したがって、いずれの場合でもk=±σ2として求められることになる。また、k=−σ2の場合は2台のカメラ(基準カメラ12及び参照カメラ14)が平面を挟むような配置となるため除外され、kはσ2として求められることになる。なお、(III)の3重解の場合は、2台の基準カメラ12及び参照カメラ14の光学中心が一致し、回転のみの場合であるため、除外する。
Therefore, the singular values σ 1 to σ 3 of the projective transformation matrix H ′ are
(I) When there are no multiple solutions (σ 1 ≠ σ 2 ≠ σ 3 )
(II) When there are multiple solutions (σ 1 = σ 2 ≠ σ 3 or σ 1 ≠ σ 2 = σ 3 )
(III) Case with triple solution (σ 1 = σ 2 = σ 3 )
Think separately. In the case of (I) and (II), k = ± σ 1 or k = ±
When σ 3 , it contradicts that n ′ calculated from the expression (3-9) is a unit vector. Therefore, in any case, k = ± σ 2 is obtained. Further, in the case of k = −σ 2 , the two cameras (the base camera 12 and the reference camera 14) are arranged so as to sandwich the plane, so that k is determined as σ 2 . Note that the triple solution (III) is excluded because the optical centers of the two reference cameras 12 and the reference camera 14 coincide with each other and only rotate.

(I)及び(II)の場合、(3−9)式より、n′は、

Figure 0004270386
として求まる。 In the case of (I) and (II), from the formula (3-9), n ′ is
Figure 0004270386
It is obtained as

σ1≠σ2≠σ3のとき、n2′=0であるから、

Figure 0004270386
を得る。すなわち、R′は、e2の回りの回転行列である。したがって、次の(3−13)、(3−14)、(3−15)式を得る。 Since n 2 ′ = 0 when σ 1 ≠ σ 2 ≠ σ 3 ,
Figure 0004270386
Get. That is, R ′ is a rotation matrix around e 2 . Therefore, the following equations (3-13), (3-14), and (3-15) are obtained.

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

(II)の場合、σ1=σ2(又は、σ2=σ3)として、(3−13)式から、

Figure 0004270386
となり、
Figure 0004270386
Figure 0004270386
となる。 In the case of (II), as σ 1 = σ 2 (or σ 2 = σ 3 ), from the equation (3-13),
Figure 0004270386
And
Figure 0004270386
Figure 0004270386
It becomes.

ここで、(3−11)式におけるε1、ε2の符号の違いにより、4つの解の候補が存在する。この4つの候補のうち、「平面上の点が画像に映る」条件を満たすn′を選択することで2つの候補に絞り込む。さらに、基準カメラ12及び参照カメラ14の位置関係が撮影中に変化しない条件を加え、解を一意に決定する。 Here, there are four solution candidates due to the difference in the sign of ε 1 and ε 2 in the equation (3-11). Of these four candidates, n ′ that satisfies the condition “a point on the plane appears in the image” is selected to narrow down to two candidates. Further, a condition is uniquely determined by adding a condition that the positional relationship between the base camera 12 and the reference camera 14 does not change during photographing.

以上のようにして、(3−11)、(3−13)、(3−15)式、又は、(3−18)式で求めたR′、t′/d、n′を(3−6)式に代入することにより、回転行列Rと、平面パラメータを構成するt/d及び法線ベクトルnとが求められる。なお、並進ベクトルtの長さ|t|(基準カメラ12及び参照カメラ14間の距離)は、設計値や実測値から予め求めることができるため、得られたt/dから、平面パラメータである距離dを求めることができる。   As described above, R ′, t ′ / d, and n ′ calculated by the equations (3-11), (3-13), (3-15), or (3-18) are expressed as (3- By substituting into the equation (6), the rotation matrix R, t / d and normal vector n constituting the plane parameter are obtained. Since the length | t | (distance between the base camera 12 and the reference camera 14) of the translation vector t can be obtained in advance from a design value or an actual measurement value, it is a plane parameter from the obtained t / d. The distance d can be obtained.

ところで、上述した平面パラメータの算出方法(ステップS3)では、基準カメラ12及び参照カメラ14間の回転行列R及び並進ベクトルtが変動することを前提としているが、これらが車両10に対して固定されているとすれば、予め求めた回転行列R及び並進ベクトルtを用いて、以下に示す方法により、平面パラメータを迅速に算出することができる。   In the plane parameter calculation method (step S3) described above, it is assumed that the rotation matrix R and the translation vector t between the base camera 12 and the reference camera 14 fluctuate, but these are fixed with respect to the vehicle 10. If so, the plane parameter can be quickly calculated by the following method using the rotation matrix R and the translation vector t obtained in advance.

この場合、回転行列R及び並進ベクトルtは、例えば、基準カメラ12及び参照カメラ14を車両10に固定した後、整備場のように、車両10を停止させた理想的な環境下で高精度に求めておくことが可能である。そして、走行中等の任意の時刻に算出した平面の射影変換行列Hから平面パラメータを求める際、理想的な環境下で求めた高精度な回転行列R及び並進ベクトルtを用いるため、平面の射影変換行列Hが誤差を含む場合であっても、平面パラメータの精度を悪化させることなく算出することができる。   In this case, the rotation matrix R and the translation vector t can be obtained with high accuracy in an ideal environment in which the vehicle 10 is stopped after the base camera 12 and the reference camera 14 are fixed to the vehicle 10 and then the vehicle 10 is stopped. It is possible to ask for it. Then, when the plane parameter is obtained from the plane projection transformation matrix H calculated at any time such as during traveling, the plane projection transformation is used because the highly accurate rotation matrix R and translation vector t obtained in an ideal environment are used. Even if the matrix H includes an error, it can be calculated without deteriorating the accuracy of the plane parameter.

そこで、先ず、車両10を停止させた状態において、基準カメラ12及び参照カメラ14によって平面Πを撮像し、例えば、ステップS1の処理によって射影変換行列Hを推定する。次いで、上述した平面パラメータの算出手法を用いて回転行列R及び並進ベクトルtの単位ベクトルteを求める。すなわち、(3−6)式及び(3−13)、(3−14)式を用いて回転行列Rを求める。また、(3−6)式及び(3−15)式、又は、(3−18)式を用いてt/dを求め、このt/dを正規化し、並進ベクトルtの単位ベクトルteを、

Figure 0004270386
として求める。並進ベクトルtの長さ|t|(基準カメラ12及び参照カメラ14間の距離)は、設計値や実測値から予め求めることができるため、(3−19)式の単位ベクトルteに|t|を掛けることで、並進ベクトルtが求められる。 Therefore, first, in a state where the vehicle 10 is stopped, the plane camera 12 and the reference camera 14 capture an image of the plane eyelid, and for example, projective transformation matrix H is estimated by the process of step S1. Then, determine a unit vector t e of the rotation matrix R and translation vector t with the calculation method of the plane parameters described above. That is, the rotation matrix R is obtained using the equations (3-6), (3-13), and (3-14). Furthermore, (3-6) and (3-15) below, or obtains the t / d using (3-18) wherein the t / d is normalized, the unit vector t e of the translation vector t ,
Figure 0004270386
Asking. The length of the translation vector t | t | (the distance between the base camera 12 and the reference camera 14), it is possible to determine in advance from the design value and the actual measurement values, (3-19) where the unit vector t e of | t By multiplying |, the translation vector t is obtained.

ここで、ステップS1の処理で射影変換行列Hを高精度に推定できるようにするため、画像の重なり具合を評価し易いような模様を付けた十分広い面積を持つ平面Πを用意するとよい。また、平面Πの向きを変えて上記方法により回転行列R及び並進ベクトルtを求め、その結果を平均化して回転行列R及び並進ベクトルtを一層高精度に求めるとよい。   Here, in order to be able to estimate the projective transformation matrix H with high accuracy in the process of step S1, it is preferable to prepare a plane plane having a sufficiently wide area with a pattern that makes it easy to evaluate the degree of image overlap. Further, the rotation matrix R and the translation vector t are obtained by the above method while changing the direction of the plane Π, and the results are averaged to obtain the rotation matrix R and the translation vector t with higher accuracy.

このようにして算出された回転行列R及び並進ベクトルtは、パラメータ記憶部26に記憶される。並進ベクトルtは、単位ベクトルteとベクトルの大きさ|t|とに分けて記憶させてもよい。回転行列R及び並進ベクトルtは、前記のようにして算出する代わりに、その他のキャリブレーション方法を利用して算出し、あるいは、基準カメラ12及び参照カメラ14の位置関係を直接計測して求めることもできる。 The rotation matrix R and the translation vector t calculated in this way are stored in the parameter storage unit 26. The translation vector t may be stored separately as a unit vector t e and a vector magnitude | t |. Instead of calculating the rotation matrix R and the translation vector t as described above, the rotation matrix R and the translation vector t are calculated using another calibration method, or are obtained by directly measuring the positional relationship between the reference camera 12 and the reference camera 14. You can also.

次いで、車両10の走行中等の任意の時刻において、動的な射影変換行列Hを算出する(ステップS1)。   Next, a dynamic projective transformation matrix H is calculated at an arbitrary time such as when the vehicle 10 is traveling (step S1).

(3−2)式を変形して、

Figure 0004270386
の関係が得られる。法線ベクトルnは単位ベクトル、|t|/dはスカラであるので、(3−20)式で算出したベクトルを正規化することで、平面Πの法線ベクトルnを求めることができる。 (3-2)
Figure 0004270386
The relationship is obtained. Since the normal vector n is a unit vector and | t | / d is a scalar, the normal vector n of the plane plane can be obtained by normalizing the vector calculated by the equation (3-20).

また、並進ベクトルtの長さ|t|は、設計値や実測値から分かっているため、基準カメラ12の光学中心から平面Πまでの距離dは、次の(3−21)式から算出することができる。   Further, since the length | t | of the translation vector t is known from the design value and the actual measurement value, the distance d from the optical center of the reference camera 12 to the plane plane is calculated from the following equation (3-21). be able to.

Figure 0004270386
Figure 0004270386

このように、予め求めた回転行列R及び並進ベクトルtを用いることにより、任意の方法で推定した射影変換行列Hから、法線ベクトルn及び距離dを迅速に算出することができる。   As described above, by using the rotation matrix R and the translation vector t obtained in advance, the normal vector n and the distance d can be quickly calculated from the projective transformation matrix H estimated by an arbitrary method.

さらに、基準カメラ12及び参照カメラ14間の回転行列R及び並進ベクトルtが予め求められている場合、射影変換行列H及び平面パラメータ(法線ベクトルn、距離d)を、これらの既知のパラメータを用いて迅速且つ高精度に求めることができる。   Further, when the rotation matrix R and the translation vector t between the reference camera 12 and the reference camera 14 are obtained in advance, the projective transformation matrix H and the plane parameters (normal vector n, distance d) are represented by these known parameters. It can be obtained quickly and with high accuracy.

すなわち、(3−1)式を書き替えると、射影変換行列Hは、

Figure 0004270386
と展開することができる。なお、射影変換行列Hは、構成するパラメータから算出されるため、定数倍の不定性を示す係数kを1とすることができる。この場合、射影変換行列Hの第1項は、並進ベクトルtが既知であるため定数であり、第2項はn/dの変数となる。したがって、第2項を推定することで、射影変換行列Hを求めることができる。 That is, when rewriting equation (3-1), the projective transformation matrix H is
Figure 0004270386
And can be expanded. Since the projective transformation matrix H is calculated from the constituent parameters, the coefficient k indicating indefiniteness of a constant multiple can be set to 1. In this case, the first term of the projective transformation matrix H is a constant because the translation vector t is known, and the second term is an n / d variable. Therefore, the projection transformation matrix H can be obtained by estimating the second term.

そこで、n/dを微少量変化させたときの射影変換行列Hの微小変化行列をDとすると、

Figure 0004270386
である。なお、n″=n/dとし、その微小変化量をδn″とする。 Therefore, let D be the minute change matrix of the projective transformation matrix H when n / d is changed by a small amount.
Figure 0004270386
It is. Note that n ″ = n / d and the minute change amount is δn ″.

微小変化行列Dをn/dの微小変化量δn″に書き替え、(1−5)式に対応する評価関数E(δn″)をテーラ展開して一次近似すると、

Figure 0004270386
(「≒」は、(1−5)式の一次近似の範囲で等しいものとする。)
となる。 When the minute change matrix D is rewritten to the minute change amount δn ″ of n / d, and the evaluation function E (δn ″) corresponding to the expression (1-5) is Taylor-expanded and linearly approximated,
Figure 0004270386
(“≈” is assumed to be equal within the range of the linear approximation of equation (1-5).)
It becomes.

(1′−3)式の評価関数E(δn″)を最小化する微小変化量δn″は、評価関数E(δn″)を微小変化量δn″で微分し、その微分値を0とする微小変化量δn″として求めることができる。この場合、gi(輝度勾配)、ei(輝度差分)は、基準画像Ib及び参照画像Irから算出され、ヤコビアンJdXiは、座標x(x,y)から算出され、ヤコビアンJδn″は、基準カメラ12及び参照カメラ14の内部パラメータAb、Ar、並進ベクトルtから算出できる。したがって、微小変化量δn″は、最小二乗法を用いて、

Figure 0004270386
から求めることができる。 The minute change amount δn ″ that minimizes the evaluation function E (δn ″) in the equation (1′-3) is obtained by differentiating the evaluation function E (δn ″) with the minute change amount δn ″ and setting the differential value to zero. In this case, g i (luminance gradient) and e i (luminance difference) are calculated from the base image I b and the reference image I r , and the Jacobian J dXi is represented by coordinates x ( x, y), and the Jacobian Jδ n ″ can be calculated from the internal parameters A b and A r of the reference camera 12 and the reference camera 14 and the translation vector t. Therefore, the minute change amount δn ″ is calculated using the least square method.
Figure 0004270386
Can be obtained from

以上のようにして求めた微小変化量δn″から、(1′―2)式を用いて射影変換行列Hの微小変化行列Dを求め、射影変換行列Hを次の(1′−5)式にしたがって更新する。   From the minute change amount δn ″ obtained as described above, the minute change matrix D of the projective transformation matrix H is obtained using the equation (1′-2), and the projective transformation matrix H is expressed by the following equation (1′-5). Update according to

Figure 0004270386
Figure 0004270386

また、微小変化量δn″を前回の演算で求めたn″(=n/d)に加算し、次の(1′−6)式にしたがって更新する。   Further, the minute change amount δn ″ is added to n ″ (= n / d) obtained in the previous calculation, and is updated according to the following equation (1′-6).

Figure 0004270386
Figure 0004270386

そして、(1′−5)式で求めた射影変換行列Hと、(1′−6)で求めたn″とを用いて、再び(1′−3)式の評価関数E(δn″)の値を算出する処理を繰り返し、評価関数E(δn″)の値が所定の値以下に収束したときの射影変換行列Hを所望の射影変換行列Hとする。   Then, the evaluation function E (δn ″) of the equation (1′-3) is used again by using the projective transformation matrix H obtained by the equation (1′-5) and the n ″ obtained by the equation (1′-6). The process of calculating the value of is repeated, and the projection transformation matrix H when the value of the evaluation function E (δn ″) converges to a predetermined value or less is set as a desired projection transformation matrix H.

さらに、射影変換行列Hが収束した際のn″から、平面パラメータである法線ベクトルn及び距離dは、

Figure 0004270386
Figure 0004270386
として求めることができる。 Further, from n ″ when the projective transformation matrix H converges, the normal vector n and the distance d which are plane parameters are:
Figure 0004270386
Figure 0004270386
Can be obtained as

このように、予め求めた回転行列R及び並進ベクトルtを用いることにより、射影変換行列Hを迅速且つ高精度に推定できるとともに、法線ベクトルn及び距離dを射影変換行列Hから直ちに算出することができる。   Thus, by using the rotation matrix R and the translation vector t obtained in advance, the projection transformation matrix H can be estimated quickly and with high accuracy, and the normal vector n and the distance d are immediately calculated from the projection transformation matrix H. Can do.

<ステップS4>
ステップS4は物体を検出する処理であり、図6に示すステップS41〜ステップS46のサブルーチン処理からなる。
<Step S4>
Step S4 is a process for detecting an object, and includes a subroutine process of steps S41 to S46 shown in FIG.

ステップS41において、基準カメラ12及び参照カメラ14によって、立体領域をステレオ計測し、物体の各エッジ点のワールド座標Cwを求める。   In step S41, the three-dimensional region is measured in stereo by the base camera 12 and the reference camera 14, and the world coordinates Cw of each edge point of the object are obtained.

ステップS42において、ワールド座標Cwの高さ方向の座標Yw(図7参照)に基づき、平面からの高さにより物体の候補点を抽出する。具体的には、図7に示すように、平面からの高さがTmin(例えば、20cm)以上であってTmax(例えば、2.5m)未満の空間に存在する候補点(Tmin≦Yw<Tmax)を抽出する。これにより、道路上に設けられた歩道橋、トンネルの入口部、看板等の少なくとも一部が除外され、他の車両やガードレール等の車両10の走行に関わり合いのあり得る部分のみが抽出されやすくなる。これにより、図7の候補点Paは抽出され、候補点Pbは除外される。   In step S42, object candidate points are extracted based on the height from the plane based on the height coordinate Yw (see FIG. 7) of the world coordinates Cw. Specifically, as shown in FIG. 7, candidate points (Tmin ≦ Yw <Tmax) present in a space whose height from the plane is Tmin (for example, 20 cm) or more and less than Tmax (for example, 2.5 m). ). As a result, at least a part of the pedestrian bridge provided on the road, the entrance of the tunnel, the signboard, etc. is excluded, and only parts that can be related to the traveling of the vehicle 10 such as other vehicles and guardrails can be easily extracted. . Thereby, the candidate point Pa of FIG. 7 is extracted, and the candidate point Pb is excluded.

また、車幅方向であるXw方向及び前後方向であるZw方向についても、所定範囲内に制限して候補点の抽出を行うようにしてもよい。これにより、車両10が通過する可能性のない箇所に対して無駄な投票処理を行うことが防止され、計算量を低減することができる。この場合、例えば、図8に示すようにx方向については−10〜10m、z方向については0〜40mの範囲に制限するとよい。   Further, candidate points may be extracted by limiting the Xw direction, which is the vehicle width direction, and the Zw direction, which is the front-rear direction, within a predetermined range. As a result, it is possible to prevent unnecessary voting processing from being performed on a portion where the vehicle 10 is not likely to pass through, thereby reducing the amount of calculation. In this case, for example, as shown in FIG. 8, the x direction may be limited to −10 to 10 m, and the z direction may be limited to a range of 0 to 40 m.

ステップS43において、物体の各候補点をそのXw、Zw座標に応じて図8に示す投票面50上に設けた一定サイズの桝目(セル)単位に投射する。投票面50は、ワールド座標系の直交する2軸である座標Xwと座標Zw(図16参照)の座標面として表される。このとき、同物体のセルに対して複数の候補点が重複して投射される場合には、その重複数を記録する。このように重複数を考慮しながら候補点を投射する処理を投票と呼び、重複数を投票数と呼ぶ。投票の処理では、前記ステップS42においてTmin未満の点及びTmax以上の点が予め除外されているため、歩道橋、トンネルの入口部、看板等に対応する点の投票数は0又は十分に小さい値となる。なお、図8及び図9に示す投票面50は、説明上の模式的なものであって、他の図5等とは関連付けられていない。   In step S43, each candidate point of the object is projected in units of cells (cells) of a certain size provided on the voting surface 50 shown in FIG. 8 according to the Xw and Zw coordinates. The voting plane 50 is represented as a coordinate plane of coordinates Xw and coordinates Zw (see FIG. 16) that are two orthogonal axes in the world coordinate system. At this time, when a plurality of candidate points are projected onto the cell of the same object, the overlap number is recorded. In this way, the process of projecting candidate points while considering the overlapping number is called voting, and the overlapping number is called the number of votes. In the voting process, points less than Tmin and points greater than or equal to Tmax are excluded in advance in step S42, so the number of votes of points corresponding to footbridges, tunnel entrances, signboards, etc. is 0 or a sufficiently small value. Become. The voting surface 50 shown in FIGS. 8 and 9 is a schematic diagram for explanation, and is not associated with other FIG. 5 and the like.

ステップS44において、投票面50上に投票された候補点を隣接する群毎にグループ分けするクラスタリング処理を行う。クラスタリング処理によって分けられた群をクラスタと呼ぶ。クラスタリング処理としては、最短距離法(Nearest Neighbor Method)を挙げることができ、最短距離法で用いる特徴量としては幅(座標Xw)及び奥行き(座標Zw)を用いるとよい。このようなクラスタリング処理によれば、検出物体のモデルが不要であって、種々の形状の物体を検出することができる。   In step S44, a clustering process is performed for grouping the candidate points voted on the voting surface 50 into adjacent groups. A group divided by the clustering process is called a cluster. As the clustering process, the nearest distance method can be cited, and the width (coordinate Xw) and the depth (coordinate Zw) are preferably used as the feature quantities used in the shortest distance method. According to such clustering processing, a model of a detection object is not necessary, and objects of various shapes can be detected.

このステップS44のクラスタリング処理によって、例えば、図9に示すように、投票面50上で3つのクラスタ52a、52b及び52cが得られる。   By the clustering process in step S44, for example, as shown in FIG. 9, three clusters 52a, 52b and 52c are obtained on the voting surface 50.

なお、ステレオ計測における対応探索のミス(マッチングミス)によるノイズを除去することを目的として、クラスタリング処理を行った後にクラスタに対して膨張収縮処理を行うようにしてもよい。物体をステレオ計測する際にマッチングミスがあると、計測される3次元位置には誤差が生じるため、計測された物体形状には凹凸(ノイズ)が生じ、このノイズによりクラスタ形状が異なることがある。膨張収縮処理では、膨張により凹凸部をつなげ、収縮により元の大きさに戻すため、ノイズの影響を抑えた形状にすることができる。   Note that the expansion / contraction process may be performed on the cluster after performing the clustering process for the purpose of removing noise due to a correspondence search error (matching error) in stereo measurement. If there is a matching mistake when measuring an object in stereo, an error occurs in the measured three-dimensional position, so that the measured object shape has irregularities (noise), and the cluster shape may differ due to this noise. . In the expansion / contraction process, the uneven portions are connected by expansion and returned to the original size by contraction, so that it is possible to obtain a shape that suppresses the influence of noise.

ステップS45において、クラスタリング処理によって分けられた各クラスタ52a、52b、52cが物体であるか又はノイズであるかを判断し、ノイズによるクラスタを除去する。   In step S45, it is determined whether each cluster 52a, 52b, 52c divided by the clustering process is an object or noise, and the cluster due to noise is removed.

具体的には、先ず、得られた各クラスタ52a、52b及び52cに対してそれぞれ合計投票数を求める。つまり、クラスタ52aの合計投票数は38であり、クラスタ52bの合計投票数は21であり、クラスタ52cの合計投票数は3である。また、各クラスタ52a、52b及び52cにおける面積上の重心gの奥行きである座標Zwの値Zgを基準とした閾値Thzと各合計投票数とを比較し、合計投票数が閾値Thz以下であるクラスタはノイズであるとして除去する。閾値Thzは以下の(4−1)式で表される。   Specifically, first, the total number of votes is obtained for each of the obtained clusters 52a, 52b and 52c. That is, the total number of votes for the cluster 52a is 38, the total number of votes for the cluster 52b is 21, and the total number of votes for the cluster 52c is 3. Further, the threshold Thz based on the value Zg of the coordinate Zw that is the depth of the center of gravity g on the area in each of the clusters 52a, 52b and 52c is compared with the total number of votes, and the total number of votes is equal to or less than the threshold Thz. Is removed as noise. The threshold Thz is expressed by the following equation (4-1).

Figure 0004270386
Figure 0004270386

ここで、Kgは係数であって、例えば、1m先に物体が存在するとした場合の最小の合計投票数である。(4−1)式は、画像中に映し出される物体の面積が距離の二乗に反比例して小さくなるという現象に基づいて設定されている。   Here, Kg is a coefficient, and is, for example, the minimum total number of votes when an object is present 1 m ahead. Equation (4-1) is set based on the phenomenon that the area of the object projected in the image becomes smaller in inverse proportion to the square of the distance.

このような、ステップS45の処理によって、例えば、合計投票数の少ないクラスタ52cはノイズとして除去される。また、歩道橋、トンネルの入口部、看板等の合計投票数が小さい物体もノイズとして除去される。   By such processing in step S45, for example, the cluster 52c having a small total number of votes is removed as noise. Also, objects with a small total number of votes, such as footbridges, tunnel entrances, and signboards, are also removed as noise.

ノイズが除去された投票面は、図5の例に則してより実際に近いデータとして示すと、図10に示すようになり、この投票面50が所定の記憶部に記録される。図10から明らかなように、この投票面50には、比較的近い前方で車線変更を行っているトラックに対応したクラスタ54aと、該トラックより前方を走る乗用車に対応したクラスタ54bと、ガードレールに対応したクラスタ54cが抽出されている。また、投票面50には、設計者の確認用に座標Xw、座標Zw及び自車である車両10が模式的に示されている。   The voting surface from which the noise has been removed is shown as data closer to the actual in accordance with the example of FIG. 5, as shown in FIG. 10, and this voting surface 50 is recorded in a predetermined storage unit. As is apparent from FIG. 10, the voting surface 50 includes a cluster 54a corresponding to a truck whose lane is changed relatively near ahead, a cluster 54b corresponding to a passenger car traveling ahead of the truck, and a guardrail. A corresponding cluster 54c is extracted. In addition, the voting surface 50 schematically shows the coordinates Xw, the coordinates Zw, and the vehicle 10 that is the host vehicle for the designer's confirmation.

ステップS46において、残ったクラスタ54a〜54cを物体として認識し、対応する物体位置領域を切り出して、所定の記憶部に記憶する。   In step S46, the remaining clusters 54a to 54c are recognized as objects, and the corresponding object position areas are cut out and stored in a predetermined storage unit.

ステップS4(図3参照)の物体抽出処理はこのようなステップS41〜S46により構成されているが、各ステップについて以下さらに詳細に説明する。   The object extraction process in step S4 (see FIG. 3) includes such steps S41 to S46. Each step will be described in more detail below.

ステップS41は、図11に示すステップS411〜ステップS417のサブルーチン処理からなる。   Step S41 includes a subroutine process of steps S411 to S417 shown in FIG.

ステップS411(基準画像特徴点抽出手段)において、基準画像Ibからエッジ及び特徴点を抽出するソーベルフィルタ処理を行う。このソーベルフィルタ処理とは、画像輪郭抽出のためのフィルタ処理であって、画素毎にその近傍の画素に所定の係数をそれぞれ乗算し、結果を合計する処理であって、垂直方向、水平方向の二つの係数行列を用いてこの処理を行う。 Step S411 in (reference image feature point extracting means), it performs a Sobel filtering process for extracting edges and feature points from the reference image I b. This Sobel filter process is a filter process for image contour extraction, which is a process of multiplying the neighboring pixels for each pixel by a predetermined coefficient, and summing the results, and in the vertical and horizontal directions. This processing is performed using two coefficient matrices.

すなわち、自動車のように、表面が鏡面反射している物体は、見る角度によって反射光が変化するため、同じ点を左右の画像で観測しても輝度が異なってしまう。そのため、左右の画像間での領域ベースマッチングがうまく行かず、ステレオ距離計測が不正確となることがある。そこで、テクスチャレスな部分や鏡面反射している部分はステレオマッチングをせずに、エッジ部分のみステレオマッチングを行い、距離の計測をする。そのため、先ず入力画像にソーベルフィルタ処理を行い、エッジや特徴点を抽出し、この後二値化し、図12に示すエッジ画像60を作成する。図12から明らかなように、この時点のエッジ画像60には、路面の白線等の物体検出の処理には無関係な部分も抽出されている。   That is, an object whose surface is specularly reflected, such as an automobile, changes in reflected light depending on the viewing angle, and therefore the brightness differs even if the same point is observed in the left and right images. For this reason, region-based matching between the left and right images may not be successful, and stereo distance measurement may be inaccurate. Therefore, the distance is measured by performing stereo matching only for the edge portion without performing stereo matching for the textureless portion or the specularly reflected portion. Therefore, first, Sobel filtering is performed on the input image to extract edges and feature points, and then binarized to create an edge image 60 shown in FIG. As is apparent from FIG. 12, the edge image 60 at this time also extracts a portion unrelated to the object detection process such as a white line on the road surface.

なお、図12では、説明の便宜上エッジ画像60を模式的に示しており、実際には、図13で示すような画像データが得られる。   In FIG. 12, the edge image 60 is schematically shown for convenience of explanation, and actually, image data as shown in FIG. 13 is obtained.

ステップS412において、白線等の道路平面にあるエッジは検出対象ではないため、エッジ画像60から道路平面領域抽出処理(ステップS2)で得られた平面領域Πf(図5参照)の部分を除去する処理を行う。具体的には、エッジ画像60と平面領域Πfとの二値的な排他処理を行い図14に示す修正エッジ画像62を得る。この際、エッジ画像60における上部の所定幅の領域や下部のボンネットの領域等は検出対象がないことが明らかであって、しかもこれらの領域はエッジ画像60上の場所が固定されていることから、これらの部分に対しても所定の領域指定手段により除去する。 In step S412, since the edge on the road plane such as a white line is not a detection target, the portion of the plane area Π f (see FIG. 5) obtained by the road plane area extraction process (step S2) is removed from the edge image 60. Process. Specifically, a binary exclusion process is performed on the edge image 60 and the planar region Π f to obtain a corrected edge image 62 shown in FIG. At this time, it is clear that there is no detection target in the upper predetermined width region, the lower bonnet region, or the like in the edge image 60, and furthermore, these regions have fixed positions on the edge image 60. These portions are also removed by a predetermined area designating means.

なお、エッジ画像60から平面部分が完全に取り除けなくとも、後述するように車両10の通過する空間に限定した処理を行うので、検出対象として誤検出されることはない。   Even if the plane portion cannot be completely removed from the edge image 60, the processing is limited to the space through which the vehicle 10 passes as will be described later, so that it is not erroneously detected as a detection target.

ステップS413において、修正エッジ画像62上に残った各エッジ点に対応する参照画像Ir上の探索範囲としてのエピポーララインEPを設定する(図15参照)。エピポーララインEPは、修正エッジ画像62上におけるエッジ点の参照画像Ir上に対応する点を含む直線として、参照カメラ14の内部パラメータ、基準カメラ12の内部パラメータ、参照カメラ14と基準カメラ12との回転行列R及び並進ベクトルtに基づいて算出されるが、詳しくは後述する。 In step S413, it sets the epipolar line EP as a search range on the reference image I r corresponding to each edge point remaining on the corrected edge image 62 (see FIG. 15). Epipolar line EP as a straight line including the points corresponding to the reference image I r of the edge points on the corrected edge image 62, the internal parameters of the reference camera 14, the internal parameters of the reference camera 12, the reference camera 14 and the reference camera 12 Is calculated based on the rotation matrix R and the translation vector t, which will be described in detail later.

ステップS414において、道路平面領域抽出処理(ステップS2)で得られた平面領域Πfに射影変換行列の逆行列をかけて参照画像Ir上における参照平面領域Πfrを求めて、参照画像Ir上に投影する。 In step S414, a reference plane region Π fr on the reference image I r is obtained by multiplying the plane region 逆f obtained by the road plane region extraction process (step S2) by the inverse matrix of the projective transformation matrix to obtain the reference image I r. Project above.

ステップS415において、参照画像Ir上におけるエピポーララインEPから参照平面領域Πfrの部分を除去する処理を行い、エピポーララインEPは非平面領域に限定される。 In step S415, performs a process of removing part of the reference plane area [pi fr from the epipolar line EP on the reference image I r, epipolar line EP is limited to non-planar region.

ステップS416において、エッジ点に対応する基準画像Ib上の小領域に対して、参照画像IrのエピポーララインEP上で領域ベースマッチング処理を行う。この領域ベースマッチング処理とは、基準画像Ibにおけるエッジ点を中心とした小さいマッチングウィンドウを作成し、該マッチングウィンドウと参照画像IrにおけるエピポーララインEP上の小ウィンドウとの類似度の計算を順次行う処理である。領域ベースマッチング処理によって最も類似度の高い点がエッジ点の対応点(ウィンドウ)として求められる。 In step S416, the small area in the reference image I b corresponding to the edge point, it performs area-based matching process on the epipolar line EP in the reference image I r. This region-based matching process creates a small matching window centered on the edge point in the base image I b and sequentially calculates the similarity between the matching window and the small window on the epipolar line EP in the reference image I r . This is the process to be performed. A point having the highest similarity is obtained as a corresponding point (window) of the edge point by the region-based matching process.

この際、先ず、基準画像Ibから参照画像Irへ領域ベースマッチング処理を行い、計算された類似度を閾値と比較し、マッチングが成功したと判断されたとき、今度は参照画像Irから基準画像Ibへ領域ベースマッチングを行い、先の基準画像Ibの点に一致した場合に、マッチングが成立すると判断する。このような領域ベースマッチングを行うことで、繰り返しパターンによるマッチングミスを抑えることができる。ここで用いる閾値としては、類似度の最大値に対する第1閾値と、類似度の最大値から類似度の2番目の最大値との差に基づく第2閾値を設けて判断してもよい。 At this time, first, region-based matching processing is performed from the base image I b to the reference image I r , the calculated similarity is compared with a threshold value, and when it is determined that the matching is successful, this time, from the reference image I r It performs region based matching to the reference image I b, if they match the terms of the previous reference image I b, it is determined that the matching is established. By performing such region-based matching, matching errors due to repeated patterns can be suppressed. The threshold value used here may be determined by providing a first threshold value for the maximum similarity value and a second threshold value based on the difference between the maximum similarity value and the second maximum similarity value.

類似度の計算には、例えば、正規化相互相関関数(ZNCC)を類似度関数として用いることができる。正規化相互相関関数ではパターンの類似度を計算しているため、基準画像Ibと参照画像Irとに全体的な輝度のオフセットずれがある場合であってもマッチングのミスが発生しにくい。正規化相互相関関数は、次の(4−2)式により求められる。 For the calculation of the similarity, for example, a normalized cross correlation function (ZNCC) can be used as the similarity function. Since the normalized cross-correlation function calculates the pattern similarity, even if there is an overall luminance offset shift between the base image I b and the reference image I r , a matching error is unlikely to occur. The normalized cross correlation function is obtained by the following equation (4-2).

Figure 0004270386
Figure 0004270386

ここで、Ib、Irはそれぞれ基準画像と参照画像を示し、Rはウィンドウ領域を示す。またxはウィンドウ内のピクセルの位置を示す。また、u及びvはそれぞれ基準画像、参照画像のウィンドウの基準位置を示す。 Here, I b and I r indicate a standard image and a reference image, respectively, and R indicates a window area. X indicates the position of the pixel in the window. U and v represent the standard positions of the standard image and reference image windows, respectively.

また、基準画像Ib及び参照画像Irの種類や必要な計算速度等に基づいて他の類似度関数(SSD(2乗残差和)、NSSD及びSAD(絶対値和)等)を用いてもよい。 Further, based on the types of the reference image I b and the reference image I r , the required calculation speed, and the like, other similarity functions (SSD (Square Residual Sum), NSSD, SAD (Absolute Value Sum), etc.) are used. Also good.

このステップS416における領域ベースマッチング処理は、基準画像Ibに関しては平面領域Πfが除かれた部分のエッジ点のみが処理対象となり、一方、参照画像Irに関してはエピポーララインEP上のうち参照平面領域Πfrが除かれた部分のみが処理対象となる。したがって、計算負荷が大幅に削減されるとともに、平面領域の点を検出してしまうことがない。また、計算負荷が低減されることから、計算のためのハードウェアに関して低廉化を図ることができる。 Region-based matching process in step S416, only the edge points of the portion where the plane area [pi f is removed with respect to the reference image I b is processed, whereas, with respect to the reference image I r reference plane of the epipolar line EP Only the part from which the region Π fr is removed is processed. Therefore, the calculation load is greatly reduced, and a point in the planar area is not detected. In addition, since the calculation load is reduced, the hardware for calculation can be reduced.

ステップS417(第一の物体位置算出手段)において、領域ベースマッチングの成立した基準画像Ib上の点(ウィンドウ)と参照画像Ir上の点(ウィンド)に基づいて、三角測量の原理に基づくステレオ計測により対応する点のカメラ座標Ccを計算する。 In step S417 (first object position calculating means), based on the established criteria image I b on the point (window) and the point on the reference image I r of region-based matching (window), the principle of triangulation The camera coordinate Cc of the corresponding point is calculated by the stereo measurement based on it.

ステップS418において、カメラ座標Ccを自車である車両10を基準としたワールド座標Cwに変換する。具体的には、図16に示すように、カメラ座標系を基準カメラ12の光学中心を原点とし、光軸を座標軸Zcとして含む直交座標Xc、Yc、Zcと表す。また、ワールド座標系は座標軸Ywを法線ベクトルn方向に、座標軸Xw、Zwを平面Π上に設けた直交座標系Xw、Yw、Zwと表す。なお、座標軸Zwは車両の前後方向とし、原点は、車両に対する物体位置を求める際に基準とする車両の特定位置(の平面Π上の位置)とする。さらに、ワールド座標系の原点からカメラ座標系の原点へ向かうベクトルを[twx、twy、twz]t=twとして表す(twyは距離dに等しい)。各パラメータをこのように表したとき、ワールド座標Cwは、以下の(4−3)式で表される。 In step S418, the camera coordinates Cc are converted into world coordinates Cw based on the vehicle 10 as the vehicle. Specifically, as shown in FIG. 16, the camera coordinate system is represented as orthogonal coordinates Xc, Yc, Zc including the optical center of the reference camera 12 as the origin and the optical axis as the coordinate axis Zc. In the world coordinate system, the coordinate axis Yw is represented in the normal vector n direction, and the coordinate axes Xw, Zw are represented as an orthogonal coordinate system Xw, Yw, Zw provided on a plane surface. The coordinate axis Zw is the vehicle front-rear direction, and the origin is the specific position of the vehicle (a position on the plane) used as a reference when determining the object position with respect to the vehicle. Further, a vector from the origin of the world coordinate system to the origin of the camera coordinate system is expressed as [twx, twy, twz] t = tw (twy is equal to the distance d). When each parameter is expressed in this way, the world coordinate Cw is expressed by the following equation (4-3).

Figure 0004270386
Figure 0004270386

ここで、法線ベクトルnを(4−4)式で表したとき、回転行列Rwは、(4−5)式で表される。 Here, when the normal vector n is expressed by the equation (4-4), the rotation matrix R w is expressed by the equation (4-5).

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

なお、説明を簡単にするために、図11のフローチャートでは、ステップS413〜ステップS418の処理を直列的に示したが、実際上、修正エッジ画像62に表される各エッジ点毎にステップS413〜ステップS418を実行し、対応するワールド座標Cwを求める。   In order to simplify the description, in the flowchart of FIG. 11, the processing of step S413 to step S418 is shown in series, but in practice, step S413 to step S413 for each edge point represented in the corrected edge image 62. Step S418 is executed to obtain the corresponding world coordinates Cw.

このようにして、修正エッジ画像62上の各エッジ点は奥行きである座標軸Zwに基づいて、例えば、図17に示すような奥行き画像64として表すことができる。この奥行き画像64では、座標軸Zwの値(又はワールド座標系の原点からの距離)に応じた大きさの点が示されている。各点は、座標軸Zwの値に応じて色の変化するグラデーション状の点で表してもよい。奥行き画像64は設計者の動作確認のために供されるものであり実際上は設けなくてもよいが、該奥行き画像64を生成するために必要なワールド座標Cwは所定の記憶部に記録しておく。   In this way, each edge point on the corrected edge image 62 can be represented as a depth image 64 as shown in FIG. 17, for example, based on the coordinate axis Zw that is the depth. In the depth image 64, a point having a size corresponding to the value of the coordinate axis Zw (or the distance from the origin of the world coordinate system) is shown. Each point may be represented by a gradation-like point whose color changes according to the value of the coordinate axis Zw. The depth image 64 is provided for checking the operation of the designer and may not be provided in practice. However, the world coordinates Cw necessary for generating the depth image 64 are recorded in a predetermined storage unit. Keep it.

上述したように、ステップS41の処理(ステップS411〜S418)によれば、基準画像Ib及び参照画像Irに基づいて、物体のエッジ点毎にワールド座標Cwを求めることができる。この際、平面領域Πfを除外した部分について処理を行うので、計算負荷の低減が図られる。このうち、ステップS413〜S416は参照画像対応部探索手段ということができる。 As described above, according to the process of step S41 (step S411~S418), based on the reference image I b and the reference image I r, it is possible to determine the world coordinates Cw for each object edge points. At this time, since the process for the portion excluding the plane area [pi f, the reduction of computational load is achieved. Among these, steps S413 to S416 can be referred to as reference image corresponding unit search means.

<ステップS5>
ステップS5は物体の相対速度を算出する処理であり、図18に示すステップS51〜ステップS55のサブルーチン処理からなる。
<Step S5>
Step S5 is a process for calculating the relative speed of the object, and includes a subroutine process of steps S51 to S55 shown in FIG.

ステップS51において、連続する時刻の基準画像Iから物体領域の重なり割合Rateを算出する。 In step S51, it calculates the overlap ratio Rate of the object region from the reference image I b in successive times.

ステップS52において、連続する時刻における物体の重心移動距離Lgを算出する。   In step S52, the center-of-gravity movement distance Lg of the object at successive times is calculated.

ステップS53(同一物体判定手段)において、重なり割合Rate及び重心移動距離Lgに基づいて閾値判定による同一物体の判定を行う。   In step S53 (same object determination means), the same object is determined by threshold determination based on the overlap ratio Rate and the gravity center moving distance Lg.

ステップS54において、物体の位置を高精度に求めるため再計算して位置ベクトルPtを求める。 In step S54, it obtains a position vector P t recalculated to determine the position of the object with high precision.

ステップS55において、位置ベクトルPtに基づいて、物体の相対速度ベクトルVobst−relを算出する。 In step S55, on the basis of the position vector P t, and calculates the object relative velocity vector V obst-rel.

ステップS5(図3参照)はこのようなステップS51〜S55により構成されているが、各ステップについて以下さらに詳細に説明する。なお、ステップS51〜S55についての説明では、検出された各物体のうち、基準画像Iにおけるトラック70(図5参照)に対する処理を例示的に説明するが、他の検出物体である乗用車72やガードレール74についても同様の処理が行われる。ステップS51は、図19に示すステップS511〜ステップS517のサブルーチン処理からなる。 Step S5 (see FIG. 3) is composed of such steps S51 to S55. Each step will be described in more detail below. In the description of the steps S51 to S55, among the object detected, but the processing for the reference image I tracks in b 70 (see FIG. 5) will be exemplified, passenger 72 Ya is the other detected object Similar processing is performed for the guard rail 74. Step S51 includes a subroutine process of steps S511 to S517 shown in FIG.

ステップS511において、前時刻のステップS517で記憶されたテンプレート80aを所定の記憶領域から呼び出す。ここで、テンプレート80aとは投票面50(図20参照)におけるクラスタ54aに対応したトラック70の基準画像Ibにおける像を領域指定して記録したものであり、例えば、平面から1.5mの高さの領域として記録されている。 In step S511, the template 80a stored in step S517 at the previous time is called from a predetermined storage area. Here, the template 80a is an image in which the image of the reference image Ib of the track 70 corresponding to the cluster 54a on the voting surface 50 (see FIG. 20) is specified and recorded, for example, a height of 1.5 m from the plane. It is recorded as the area.

概念的には、図20に示すように、点P0は、投票面50上の点であり、光学中心Oから一定角度で走査し、クラスタ54aに当たる点とする。点P0に基づいてワールド座標Cwが計算できる。点Prを点P0と同じ幅位置と奥行位置であり、且つ道路平面Π上の点とする。点Prは、道路平面Π上の点であることから高さが0である。点Pxは、点P0と同じ幅位置と奥行位置であり、且つ道路平面Πから1.5mの高さをもつ点とする。次に点Pr、Pxを用いてカメラ座標Ccに変換する。カメラ座標Ccに変換後、透視投影行列を用いて基準画像Ib上の座標に変換すればよい。このようにして前時刻のクラスタ54aに対応したテンプレート80aが求められて、記録されている。同様に、乗用車72に対応した前時刻のクラスタ54b及びガードレール74に対応した前時刻のクラスタ54cに対しても図21に示すテンプレート80b及びテンプレート80cが記録されている。 Conceptually, as shown in FIG. 20, the point P0 is a point on the voting plane 50, and is a point that scans from the optical center O at a constant angle and hits the cluster 54a. World coordinates Cw can be calculated based on the point P0. Point Pr has the same width position and depth position as point P0, and is a point on the road plane. Since the point Pr is a point on the road plane, the height is zero. The point Px has the same width position and depth position as the point P0 and has a height of 1.5 m from the road plane ridge. Next, it converts into the camera coordinate Cc using the points Pr and Px. After conversion to the camera coordinate Cc, it may be converted into coordinates on the reference image I b with a perspective projection matrix. In this way, the template 80a corresponding to the cluster 54a at the previous time is obtained and recorded. Similarly, the template 80b and the template 80c shown in FIG. 21 are also recorded for the cluster 54b of the previous time corresponding to the passenger car 72 and the cluster 54c of the previous time corresponding to the guardrail 74.

また、前記ステップS418で各物体の高さが求められていることから、各テンプレート80a、80b及び80cの高さは求められた物体の高さに応じて設定してもよい。   Further, since the height of each object is obtained in step S418, the heights of the templates 80a, 80b, and 80c may be set according to the obtained object height.

ステップS512において、現時刻のメインルーチン処理におけるステップS0で取得した基準画像Ibを読み出す。なお、ここではLOGフィルタやヒストグラム平坦化などの処理を施す前の原画像を用いるものとする。 In step S512, it reads out the reference image I b acquired at step S0 in the main routine processing of the current time. Here, it is assumed that an original image before performing processing such as LOG filter and histogram flattening is used.

ステップS513(テンプレートマッチング手段)において、各テンプレート80aを用いて、現時刻に取得した基準画像Ib上でテクスチャに基づくテンプレートマッチングを行い、類似度の最も高い位置に各テンプレート80aを移動させる。テンプレートマッチングの具体的手法としては、前記のZNCC(4−2)式や、SSD、SAD等を用いたマッチングを挙げることができる。 In step S513 (template matching unit), with each template 80a, template matching is performed based on the texture on the reference image I b acquired to the current time, moving each template 80a to the highest point of the similarity. As a specific method of template matching, there is a matching using the above-described ZNCC (4-2) formula, SSD, SAD or the like.

ステップS514において、前記ステップS46で記録したデータに基づいて、現時刻に求められたクラスタ54aを呼び出す。   In step S514, the cluster 54a obtained at the current time is called based on the data recorded in step S46.

ステップS515(物体位置領域算出手段)において、呼び出したクラスタ54aに対してそれぞれ対応する物体位置領域82aを求める。この物体位置領域82aは前記ステップS511で説明した手順によって求められる。物体位置領域82aは、平面的なクラスタ54aに基づいて求める方法以外にも、図17に示されるような奥行き画像64における各エッジ点の3次元的な空間位置に基づいて求める方法を採ってもよい。   In step S515 (object position area calculating means), an object position area 82a corresponding to the called cluster 54a is obtained. The object position area 82a is obtained by the procedure described in step S511. The object position area 82a may be determined based on the three-dimensional spatial position of each edge point in the depth image 64 as shown in FIG. 17 in addition to the method based on the planar cluster 54a. Good.

ステップS516(重なり割合算出手段)において、前記ステップS513で移動したテンプレート80aと、前記ステップS515で求められた物体位置領域82aとの重なり割合Rateを次の(5−1)式で算出する。   In step S516 (overlap ratio calculating means), the overlap ratio Rate between the template 80a moved in step S513 and the object position area 82a obtained in step S515 is calculated by the following equation (5-1).

Figure 0004270386
Figure 0004270386

ここで、Rt-1は、移動したテンプレート80aの領域であり、Rtは、対応する物体位置領域82aである。また、∩は領域の重なり部分を示す演算子であり、min(Rt-1、Rt)はRt-1とRtの面積の小さいいずれか一方を選択する関数である。 Here, R t-1 is the area of the moved template 80a, and R t is the corresponding object position area 82a. Further, ∩ is an operator that indicates the overlapping portion of the regions, and min (R t−1 , R t ) is a function that selects one of R t−1 and R t having a small area.

(5−1)式によれば、移動したテンプレート80aと物体位置領域82aが完全に一致する場合にはRate=1となり、一致する部分が全くない場合にはRate=0となる。また、概念的には、図21に示すように、基準画像Ib上でテンプレートを示すRt-1と物体位置領域を示すRtに対して重複する部分Rt-1∩Rtの割合を求めることになる。 According to equation (5-1), Rate = 1 when the moved template 80a and the object position area 82a completely match, and Rate = 0 when there is no matching portion. Further, conceptually, as shown in FIG. 21, the ratio of overlapping portions R t-1 ∩R t against R t indicating the R t-1 and the object position area showing the template on the reference image I b Will be asked.

重なり割合Rateが所定の閾値Tha(0<Tha<1)以上である場合には、対応する前時刻の投票面50におけるクラスタと現時刻の投票面50におけるクラスタを同一物体に基づくものであると仮判定されてトラッキングされる。トラッキングとは、異なった時刻に得られたクラスタの対応付けを行う処理であり、これにより物体の動作が検出可能となる。   When the overlapping rate Rate is equal to or greater than a predetermined threshold Tha (0 <Tha <1), the corresponding cluster on the voting surface 50 at the previous time and the cluster on the voting surface 50 at the current time are based on the same object. Temporarily determined and tracked. Tracking is a process of associating clusters obtained at different times, and thereby the motion of the object can be detected.

ステップS517において、前記ステップS515で求められた物体位置領域82aを新たなテンプレート80aとして所定の記憶部に記録する。この新たなテンプレート80aは、前記のとおり次回処理時のステップS511で呼び出される。   In step S517, the object position area 82a obtained in step S515 is recorded in a predetermined storage unit as a new template 80a. This new template 80a is called in step S511 in the next process as described above.

このように、ステップS51(ステップS511〜S517)においては、テンプレート80aに基づいてテンプレートマッチングを行うとともに、投票面50のクラスタ54aから物体位置領域82aを求めるため、2重のトラッキング処理を行っており、これらの結果の重なり割合Rateを求めてトラッキング処理の信頼性を高めている。実際には、このステップS51で求めたトラッキングの関連づけはステップS53で最終的に確認される。   Thus, in step S51 (steps S511 to S517), template matching is performed based on the template 80a, and double tracking processing is performed to obtain the object position area 82a from the cluster 54a of the voting surface 50. The reliability of tracking processing is increased by obtaining the overlapping rate Rate of these results. Actually, the tracking association obtained in step S51 is finally confirmed in step S53.

次に、ステップS52の処理内容について説明する。ステップS52は、図22に示すステップS521〜ステップS524のサブルーチン処理からなる。   Next, the processing content of step S52 is demonstrated. Step S52 includes a subroutine process of steps S521 to S524 shown in FIG.

ステップS521において、前記ステップS46で記録したデータに基づいて、現時刻に求められたクラスタ54aを呼び出す。   In step S521, the cluster 54a obtained at the current time is called based on the data recorded in step S46.

ステップS522(物体重心位置算出手段)において、クラスタ54aの現時刻の重心gTを求めて、図10に示すように投票面50に記録する。 In step S522 (object center-of-gravity position calculating means), the center of gravity g T at the current time of the cluster 54a is obtained and recorded on the voting surface 50 as shown in FIG.

ステップS523において、前時刻にステップS533を実行したときに記録したクラスタ54aの前時刻の重心gOを読み出す。 In step S523, the center of gravity g O of the previous time of the cluster 54a recorded when step S533 was executed at the previous time is read.

ステップS524(物体重心間移動量算出手段)において、図10に示すように、クラスタ54aの重心gOと重心gTとの重心移動距離Lgを算出する。 In step S524 (object center-of-gravity movement amount calculation means), as shown in FIG. 10, the center-of-gravity movement distance Lg between the center of gravity g O and the center of gravity g T of the cluster 54a is calculated.

このように、ステップS52(ステップS521〜S524)においては、クラスタ54aの前時刻の重心gOと現時刻の重心gTとの重心移動距離Lgを求めており、短時間の移動距離として合理的なもののクラスタ同士を対応づけることができる。実際には、このステップS52で求めたトラッキングの関連づけは次のステップS53で最終的に確認される。 As described above, in step S52 (steps S521 to S524), the center-of-gravity moving distance Lg between the center of gravity g O at the previous time and the center of gravity g T at the current time of the cluster 54a is obtained, which is reasonable as a short-time moving distance. It is possible to associate clusters of things. Actually, the tracking association obtained in step S52 is finally confirmed in the next step S53.

次に、ステップS53の処理内容について説明する。ステップS53は、図23に示すステップS531〜ステップS534のサブルーチン処理からなる。   Next, the processing content of step S53 will be described. Step S53 includes the subroutine processing of steps S531 to S534 shown in FIG.

ステップS531において、対応する物体毎に、前記ステップS516で求めた重なり割合Rateと閾値Thaとを比較し、Rate≧ThaであればステップS532へ移り、Rate<ThaであればステップS534へ移る。   In step S531, for each corresponding object, the overlap ratio Rate obtained in step S516 is compared with the threshold value Tha. If Rate ≧ Tha, the process proceeds to step S532, and if Rate <Tha, the process proceeds to step S534.

ステップS532において、対応する物体毎に、前記ステップS524で求めた重心移動距離Lgと閾値Thbとを比較し、Lg≦ThbであればステップS533へ移り、Lg>ThbであればステップS534へ移る。この閾値Thbは、自車の走行速度と対向車の走行速度を考慮して、処理上の演算周期に物体が移動可能な合理的な距離として固定値で設定されている。   In step S532, the gravity center moving distance Lg obtained in step S524 is compared with the threshold Thb for each corresponding object. If Lg ≦ Thb, the process proceeds to step S533, and if Lg> Thb, the process proceeds to step S534. This threshold value Thb is set as a fixed value as a reasonable distance that the object can move in the processing calculation period in consideration of the traveling speed of the host vehicle and the traveling speed of the oncoming vehicle.

ステップS533においては、対応付けられた2つの物体は同一物体であるとして確定認識され、記録される。また、重心goをgo←gTとして入れ替えて所定の記憶部に記憶する。 In step S533, the two associated objects are confirmed and recorded as the same object and recorded. Further, the center of gravity g o is replaced as g o ← g T and stored in a predetermined storage unit.

一方、ステップS534においては、対応付けられた2つの物体は別物体であったものとして認識される。この場合、対応付けられなかった物体については、画像の前後関係に基づいて撮像範囲内に入ってきた新たな物体として認識する登録処理を行い、又は撮像範囲から抜け出た物体として所定の削除処理を行う。   On the other hand, in step S534, the two associated objects are recognized as being different objects. In this case, a registration process for recognizing an object that has not been associated as a new object that has entered the imaging range based on the context of the image or a predetermined deletion process as an object that has left the imaging range is performed. Do.

このように、ステップS53(ステップS531〜S534)においては、前記ステップS52までの処理で対応付けられた2つの物体について、重なり割合Rateと重心移動距離Lgに基づいて、同一物体か否かの確認を一層確実に行うことができる。   As described above, in step S53 (steps S531 to S534), it is confirmed whether or not the two objects associated in the processing up to step S52 are the same object based on the overlapping rate Rate and the gravity center moving distance Lg. Can be performed more reliably.

なお、このステップS531〜S534は、予め仮に対応付けられた2つの物体に対して行うものとして説明したが、前時刻検出の各物体と、現時刻検出の各物体に対して総当たり的に行って、対応付けを行ってもよい。   In addition, although this step S531-S534 was demonstrated as what is performed with respect to two objects temporarily matched beforehand, it is performed brute force with respect to each object of the previous time detection, and each object of the present time detection. The association may be performed.

また、ステップS532で用いられる閾値Thbは固定値であるものとして説明したが、車両10から重心gOまでの座標Zw方向の距離Zgに基づいて変化する関数としての閾値Th(Zg)を閾値判定に用いてもよい。この場合、ある物体の重心gOまでの座標Zw方向の距離がZg1であったとすると、閾値はTh(Zg1)として表される。また同様に、閾値を自車速|VV|に基いて変化する関数としての閾値Th(|VV|)を閾値判定に用いてもよい。 Further, the threshold value Thb used in step S532 has been described as a fixed value, but the threshold value Th (Zg) as a function that changes based on the distance Zg in the coordinate Zw direction from the vehicle 10 to the center of gravity g O is determined as a threshold value. You may use for. In this case, if the distance in the coordinate Zw direction to the center of gravity g O of an object is Zg1, the threshold value is expressed as Th (Zg1). Similarly, the threshold Th (| V V |) as a function that changes based on the vehicle speed | V V | may be used for threshold determination.

次に、ステップS54及びステップS55の処理内容について説明する。ステップS54は、図24に示すステップS541〜ステップS544からなり、ステップS55は、図26に示すステップS551〜S553からなる。   Next, the processing content of step S54 and step S55 is demonstrated. Step S54 includes steps S541 to S544 illustrated in FIG. 24, and step S55 includes steps S551 to S553 illustrated in FIG.

ステップS541(注目点決定手段)において、基準画像Ibにおける物体の注目点Pcを特定する。この注目点Pcは、ステップS513のテンプレートマッチングにより移動したテンプレート80aの領域内に設定し、例えば、テンプレート80aの中心点や、物体の角部などの特徴的な点として特定すると、常に物体上の略同一点に特定される。 In step S541 (target point determination means), it identifies the attention point Pc of the object in the reference image I b. This attention point Pc is set in the region of the template 80a moved by template matching in step S513, and for example, if it is specified as a characteristic point such as the center point of the template 80a or the corner of the object, the attention point Pc is always on the object. It is specified at substantially the same point.

ステップS542において、注目点Pcに対応させたエピポーララインEPを参照画像Ir上に設定する。このとき、クラスタ54aを利用することで、トラック70までの概略距離を算出できることから、これに基づいてエピポーララインEPを必要十分な程度に短く設定できる。 In step S542, it sets the epipolar line EP that is corresponding to the attention point Pc on the reference image I r. At this time, since the approximate distance to the track 70 can be calculated by using the cluster 54a, the epipolar line EP can be set as short as necessary based on this.

クラスタを利用した注目点Pcの概略距離の算出方法を説明する。先ず、クラスタ54aの重心gT(図10参照)よりZw座標を求める。これを注目点PcのZw座標に仮設定し、注目点Pcの画像座標(upc,vpc)とともに、次の(5−2)式に代入して対応するXw座標を算出する。ここで、λは定数倍の自由度を表す。 A method for calculating the approximate distance of the attention point Pc using the cluster will be described. First, the Zw coordinate is obtained from the center of gravity g T (see FIG. 10) of the cluster 54a. This is temporarily set as the Zw coordinate of the target point Pc, and the corresponding Xw coordinate is calculated by substituting it into the following equation (5-2) together with the image coordinates ( upc , v pc ) of the target point Pc. Here, λ represents a constant multiple degree of freedom.

Figure 0004270386
Figure 0004270386

こうして求めた投票面50上の位置(Xw,Zw)と基準カメラの位置(twx,twz)を通る直線を設定し、その直線に沿ってクラスタ54aの点を探索して、車両10に最も近い点のZw座標を注目点Pcの概略距離とすればよい。   A straight line passing through the position (Xw, Zw) on the voting surface 50 thus obtained and the position (twx, twz) of the reference camera is set, and the point of the cluster 54a is searched along the straight line, and is closest to the vehicle 10 The Zw coordinate of the point may be the approximate distance of the point of interest Pc.

ステップS543において、前記ステップS416と同様に注目点Pcに対応する基準画像Ib上の点に対して、参照画像IrのエピポーララインEP上で領域ベースマッチング処理を行う。 In step S543, with respect to a point on the reference image I b which correspond to similar attention point Pc and the step S416, it performs area-based matching process on the epipolar line EP in the reference image I r.

ステップS544(第二の物体位置算出手段)において、前記ステップS417と同様に、マッチングの成立した基準画像Ib上の点と参照画像Ir上の点に基づいて、ステレオ計測によって対応する点のカメラ座標Ccを計算する。さらに、前記ステップS418と同様に、求められたカメラ座標Ccをワールド座標Cwに変換する。求められた物体の位置であるワールド座標Cwは、図25に示すように、投票面50上において2次元的な位置ベクトルPtとして表す。 In step S544 (second object position calculating unit), similarly to the step S417, on the basis of the point on the established reference image I b and reference point on the image I r matching, corresponding points by stereo measurement Camera coordinates Cc are calculated. Further, as in step S418, the obtained camera coordinates Cc are converted into world coordinates Cw. World coordinates Cw is the position of the determined object, as shown in FIG. 25, represented as a two-dimensional position vector P t on the voting plane 50.

次に、図26のステップS551において、物体の前時刻に検出した位置ベクトルPt-1を読み出す。この位置ベクトルPt-1は、前時刻処理時のステップS553で所定の記憶部に記録されている。 Next, in step S551 in FIG. 26, the position vector P t−1 detected at the previous time of the object is read out. This position vector P t-1 is recorded in a predetermined storage unit in step S553 at the time of previous time processing.

ステップS552(物体移動ベクトル算出手段)において、次の(5−3)式により物体の相対速度ベクトル(移動ベクトル)Vobst−relを算出する。 In step S552 (object movement vector calculation means), the relative velocity vector (movement vector) V obst-rel of the object is calculated by the following equation (5-3).

Figure 0004270386
Figure 0004270386

ここで、Δtは処理の演算周期であり、単位時間あたりの位置ベクトルPtの変化として相対速度ベクトルVobst−relが求められる。 Here, Δt is an operation cycle of processing, and a relative velocity vector V obst-rel is obtained as a change in the position vector P t per unit time.

ステップS553において、次回の処理に供するために、位置ベクトルPtをPt-1←Ptと代入して記憶部に記録する。ここで記録する位置ベクトルPtは、ステップS517において新たなテンプレート80aとして記憶した物体位置領域82aに対して、ステップS541〜S544と同様の処理を行い更新したものである。 In step S553, in order to provide the next processing, and records in the storage unit the position vector P t by substituting the P t-1 ← P t. Position vector P t to be recorded here, with respect to object position area 82a which stores as a new template 80a in step S517, it is obtained by updating performed similarly to step S541~S544.

このようなステップS54及びS55の処理によれば、エピポーララインEPを十分に短く設定していることから、ステップS543における領域ベースマッチングでマッチングミスの発生する頻度が十分に低くなり物体の距離を一層正確に算出することができる。また、注目点Pcは常に物体上の略同一点に設定されることから、幅方向(座標Xw方向)の移動を含めて物体の経時的な相対移動を示す相対速度ベクトルVobst−relを正確に算出することができる。 According to the processing in steps S54 and S55, since the epipolar line EP is set sufficiently short, the frequency of occurrence of a matching error in the region-based matching in step S543 is sufficiently low, and the object distance is further increased. It can be calculated accurately. In addition, since the point of interest Pc is always set at substantially the same point on the object, the relative velocity vector V obst-rel indicating the relative movement of the object with time including the movement in the width direction (coordinate Xw direction) is accurately calculated. Can be calculated.

この結果、トラック70、乗用車72及びガードレール74の相対速度ベクトルVobst−relであるベクトルVr1、Vr2及びVr3が、図25に示すようにベクトル表示される。図25から明らかなように、ベクトルVr1からはトラック70が左方向に向かって進路変更していることが判断され、ベクトルVr2からは乗用車72が前方に向かって車両10よりもやや速い速度で進行していることが判断される。また、ベクトルVr3からは静止物であるガードレール74が車両10の進行方向と逆方向に相対的に移動していることが判断される。なお、図25における自車速度ベクトルVVはステップS6及びS7において求められる。 As a result, vectors Vr1, Vr2, and Vr3, which are relative velocity vectors V obst-rel of the truck 70, the passenger car 72, and the guard rail 74, are displayed as vectors as shown in FIG. As is clear from FIG. 25, it is determined from the vector Vr1 that the truck 70 has changed its course in the left direction, and from the vector Vr2, the passenger car 72 travels forward at a slightly higher speed than the vehicle 10. It is determined that Further, it is determined from the vector Vr3 that the guard rail 74, which is a stationary object, is moving in the direction opposite to the traveling direction of the vehicle 10. In addition, the own vehicle speed vector V V in FIG. 25 is obtained in steps S6 and S7.

次に、エピポーララインの設定方法について説明する。ステレオ3次元計測をするためには基準画像Ibに映る観測点M1の位置と参照画像Irに映る観測点M1の位置をそれぞれ求める必要がある。図27に示すように、観測点M1は基準画像Ib上の点mbに投影されており、点mbは観測点M1と基準カメラ12の光学中心Oを通る直線Le上に存在する。直線Le上の点を探せば、観測点M1を見つけることができ、参照画像Ir上に投影される直線LeがエピポーララインEPとなる。つまり、基準画像Ib上に投影された観測点M1を参照画像Irと対応をつけるには、参照画像Ir中でのエピポーララインEP上を探索すればよいこととなる。なお、図27における点M0及びM2は、同一の点mbに投影される他の点であって直線Le上の点である。 Next, an epipolar line setting method will be described. To a stereo 3-dimensional measurement is required to determine the position of the observation point M1 reflected in the position and the reference image I r of the observation points M1 appearing in the reference image I b, respectively. As shown in FIG. 27, the observation point M1 is projected to a point m b on the base image I b, the point m b existing on the straight line Le passing through the optical center O of the observation point M1 and the reference camera 12. To look for points on the straight line Le, can find observation points M1, linear Le projected onto the reference image I r becomes epipolar line EP. That is, the reference image I b observation point projected on the M1 and the reference image I r to give the support, so that the epipolar on line EP in a reference image I r may be searched. Incidentally, the point M0 and M2 in FIG. 27 is a point on the line Le A in other respects to be projected to the same point m b.

このエピポーラ拘束の関係式を求める。参照カメラ座標Xrと基準カメラ座標Xbの間には、前記の回転行列R及び並進ベクトルtを用いて、Xr=R・Xb+tの関係が成り立つ。   The relational expression of this epipolar constraint is obtained. A relationship of Xr = R · Xb + t is established between the reference camera coordinate Xr and the standard camera coordinate Xb using the rotation matrix R and the translation vector t.

このとき、基準カメラ12の正規化画像座標X^ba、参照カメラ14の正規化画像座標X^ra及び並進ベクトルtは同一平面上に存在する。すなわち、スカラ三重積が0になるので、

Figure 0004270386
となる。 At this time, the normalized image coordinates X ^ ba of the standard camera 12, the normalized image coordinates X ^ ra of the reference camera 14, and the translation vector t exist on the same plane. That is, since the scalar triple product is zero,
Figure 0004270386
It becomes.

ただし、

Figure 0004270386
と表すことにする。ただし、t1、t2、t3は並進ベクトルtの要素を示す。ここで、正規化画像座標と画像座標との関係より、m^b=AbX^ba、m^r=ArX^raを代入して整理すると、基礎行列(Fundamental Matrix)Fは次の(5−6)式及び(5−7)式で表される。 However,
Figure 0004270386
It will be expressed as Here, t1, t2, and t3 indicate elements of the translation vector t. Here, the relationship between the normalized image coordinates and image coordinates, m ^ b = A b X ^ ba, and rearranging by substituting m ^ r = A r X ^ ra, the fundamental matrix (Fundamental Matrix) F following (5-6) and (5-7).

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

(5−7)式により、空間の観測点M1が基準画像Ibに投影される位置をmとしたとき、l’=Fm^とすると、m^’l’=0より、参照画像Ir中では、

Figure 0004270386
となり、参照画像Ir中における観測点M1に対応したエピポーララインEPとなる。ここで、「’」は参照画像であることを示し、l1’,l2’,l3’は参照画像のエピポーララインEPのパラメータを示す。また、u’、v’は参照画像の画像座標を示す。 (5-7) by equation when the position observation points M1 space is projected in the reference image I b was m, 'When = Fm ^, m ^' l than l '= 0, the reference image I r In
Figure 0004270386
Next, the epipolar line EP corresponding to the observation points M1 in the reference image I r. Here, “′” indicates a reference image, and l 1 ′, l 2 ′, and l 3 ′ indicate parameters of the epipolar line EP of the reference image. U ′ and v ′ indicate image coordinates of the reference image.

また、観測点M1の概略位置が既知である場合には、直線Leの長さを制限することによりエピポーララインEPを短く設定することができる。   When the approximate position of the observation point M1 is known, the epipolar line EP can be set short by limiting the length of the straight line Le.

参照画像Irに投影される位置をm’としたとき、l=Ftm’とすると、ltm=0より、参照画像Ir中では、

Figure 0004270386
となり、観測点M1における基準画像IbにおけるエピポーララインEPとなる。なお、このエピポーララインEPの説明で用いたパラメータu及びu’は、後述するベクトルu及びu’とは異なるものである。 Assuming that the position projected on the reference image I r is m ′, if l = F t m ′, since l t m = 0, in the reference image I r ,
Figure 0004270386
Thus, the epipolar line EP in the reference image I b at the observation point M1 is obtained. The parameters u and u ′ used in the description of the epipolar line EP are different from the vectors u and u ′ described later.

<ステップS6>
このステップS6は、自車である車両10の自車速度ベクトルVV(図25参照)を求めるために、道路平面Πを仮想的に上方から見たVPP画像を生成するための処理であり、図28に示すステップS61〜ステップS63のサブルーチン処理からなる。すなわち、ステップS61において、基準画像IbをVPP画像に変換(以下、VPP変換とも呼ぶ)するための変換式HVPPを算出する。この後、ステップS62において、求められた変換式HVPPを用いて、前記基準画像IbをVPP画像IVに変換し、記録する(図33参照)。さらに、ステップS63において、同じ変換式HVPPを用いて前記平面領域ΠfをVPP変換して記録する(図34参照)。以下、各ステップS61〜S63について詳細に説明する。
<Step S6>
This step S6 is a process for generating a VPP image in which the road plane plane is virtually viewed from above in order to obtain the own vehicle speed vector V V (see FIG. 25) of the vehicle 10 as the own vehicle. It consists of the subroutine processing of step S61 to step S63 shown in FIG. That is, in step S61, a conversion formula HVPP for converting the reference image Ib into a VPP image (hereinafter also referred to as VPP conversion) is calculated. Thereafter, in step S62, the reference image I b is converted into a VPP image I V using the obtained conversion formula H VPP and recorded (see FIG. 33). Further, in step S63, the plane area [pi f and records the VPP transformed using the same transformation equation H VPP (see FIG. 34). Hereafter, each step S61-S63 is demonstrated in detail.

なお、VPP画像IVを撮像する仮想的なカメラを想定し、説明上これを仮想カメラと呼ぶ。 A virtual camera that captures the VPP image IV is assumed, and this is called a virtual camera for the sake of explanation.

先ず、図29のステップS611において、基準カメラ12の内部パラメータAbの逆行列Ab -1を読み込む。内部パラメータAbは、次の(6−1)式で表される。 First, in step S611 in FIG. 29, the inverse matrix A b −1 of the internal parameter A b of the reference camera 12 is read. The internal parameter Ab is expressed by the following equation (6-1).

Figure 0004270386
Figure 0004270386

ここで、α1、β1、s1、CX1及びCY1は、基準カメラ12のキャリブレーションにより定まる定数である。 Here, α 1 , β 1 , s 1 , C X1 and C Y1 are constants determined by calibration of the reference camera 12.

ステップS612において、道路平面Πに対する位置姿勢パラメータである法線ベクトルn及び距離d(図16参照)を読み込む。   In step S612, a normal vector n and a distance d (see FIG. 16), which are position and orientation parameters with respect to the road plane ridge, are read.

ステップS613において、法線ベクトルn及び距離dを用いて、基準カメラ12の光軸であるベクトルeoz(図30参照)を法線ベクトルnに一致させる回転行列Rnを次の(6−2)式〜(6−5)式に基づいて算出する。 In step S613, using the normal vector n and the distance d, a rotation matrix R n that matches the vector e oz (see FIG. 30), which is the optical axis of the reference camera 12, with the normal vector n is expressed by the following (6-2). ) To (6-5).

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

これらの(6−2)式〜(6−5)式を図30も参照しながら説明すると、式中で縦二重線で囲まれた部分はノルムを示し、ベクトルeozは、カメラ座標系における光軸である座標Zc(図16参照)の単位ベクトルを示す。また、cnは、法線ベクトルnとベクトルeozに垂直な単位ベクトルであり、角度θnは法線ベクトルnとベクトルeOZとのなす角度である。なお、図30におけるベクトルe’OX、e’OY及びe’OZは、仮想カメラ座標系を示す直交単位ベクトルであり、一転鎖線は車両10の前後方向を示す。 These formulas (6-2) to (6-5) will be described with reference to FIG. 30 as well. A portion surrounded by vertical double lines in the formula represents a norm, and a vector e oz represents a camera coordinate system. The unit vector of the coordinate Zc (refer FIG. 16) which is an optical axis in FIG. Further, c n is a unit vector perpendicular to the normal vector n and the vector e oz , and the angle θ n is an angle formed between the normal vector n and the vector e OZ . Note that vectors e ′ OX , e ′ OY, and e ′ OZ in FIG. 30 are orthogonal unit vectors indicating the virtual camera coordinate system, and a chain line indicates the front-rear direction of the vehicle 10.

ステップS614において、投影距離、スケール、画像中心を指定し、道路平面Πを上方から見た仮想カメラの内部パラメータAVPPを設定する。内部パラメータAVPPは、仮想カメラ座標上の画像を画像座標上に変換するための行列であり、次の(6−6)式で表される。 In step S614, the projection distance, scale, and image center are specified, and the internal parameter A VPP of the virtual camera when the road plane plane is viewed from above is set. The internal parameter A VPP is a matrix for converting the image on the virtual camera coordinates onto the image coordinates, and is represented by the following equation (6-6).

Figure 0004270386
Figure 0004270386

ここで、αVPP=dVPP・kX−VPP、βVPP=dVPP・kY−VPPである。また、dvppは投影距離[m]であり、kx−vpp及びky−vppはVPP画像IVのX座標方向及びY座標方向のスケール[pixel/m]である。さらに、Cx−vpp及びCy−vppはVPP画像IV中心のX座標及びY座標である。 Here, α VPP = d VPP · k X−VPP and β VPP = d VPP · k Y−VPP . D vpp is a projection distance [m], and k x−vpp and k y−vpp are scales [pixel / m] in the X coordinate direction and the Y coordinate direction of the VPP image IV . Further, C x-vpp and C y-vpp are the X coordinate and Y coordinate of the VPP image I V center.

この内部パラメータAVPPにより投影距離に道路平面のパラメータである距離dを指定すると、検出した道路平面Π上に投影される。 When the distance d, which is a road plane parameter, is designated as the projection distance by the internal parameter A VPP , the projected image is projected onto the detected road plane Π.

ステップS615において、車両前後方向とVPP画像の縦軸を一致させるために画像を角度θV及び角度−φだけ回転させる変換式である回転行列RVを算出する。すなわち、図30及び(6−7)式に基づいて基準カメラ12の光軸方向の単位ベクトルeOZをVPPカメラ座標系からみたベクトルuを設定し、該ベクトルuを仮想カメラ座標系におけるe’OX、e’OY平面に正射影したベクトルu’を(6−8)式に基づいて設定する。 In step S615, a rotation matrix R V that is a conversion formula for rotating the image by an angle θ V and an angle −φ is calculated in order to make the vehicle longitudinal direction coincide with the vertical axis of the VPP image. That is, a unit vector e OZ in the optical axis direction of the reference camera 12 is set as a vector u viewed from the VPP camera coordinate system based on the equation of FIG. 30 and (6-7), and the vector u is set as e ′ in the virtual camera coordinate system. A vector u ′ orthogonally projected onto the OX , e ′ OY plane is set based on the equation (6-8).

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

ベクトルu及びu’をこのように定義するとき、角度θVはベクトルu’と仮想カメラ座標e’oyとのなす角度であり(6−9)式で表される。 When the vectors u and u ′ are defined in this way, the angle θ V is an angle formed by the vector u ′ and the virtual camera coordinates e ′ oy and is expressed by Expression (6-9).

Figure 0004270386
Figure 0004270386

また、角度φは車両前後方向に対するカメラ光軸であるベクトルeOZとのなす角度であり予め求めておく。求める回転行列RVは、次の(6−10)式で表される。 Further, the angle φ is an angle formed with the vector e OZ that is the camera optical axis with respect to the vehicle longitudinal direction, and is obtained in advance. The rotation matrix R V to be obtained is expressed by the following equation (6-10).

Figure 0004270386
Figure 0004270386

ステップS616において、Ab -1、Rn、RV及びAVPPに基づいて、VPP変換のための変換式HVPPを算出する。変換式HVPPは、次の(6−11)式で表される。なお、RVPP=RVnである。 In step S616, a conversion formula H VPP for VPP conversion is calculated based on A b −1 , R n , R V and A VPP . The conversion formula H VPP is expressed by the following formula (6-11). Note that R VPP = R V R n .

Figure 0004270386
Figure 0004270386

つまり、変換式HVPPでは、基準画像Ibを行列Ab -1、Rn、RV、及びAVPPで順に変換することと等価な処理が行われる。実際には1つの変換式HVPPで一度に変換が可能であるが、変換の過程を概念的な理解が容易となるように、各行列Ab -1、Rn、RV、及びAVPPによる変換を説明する。 That is, in the conversion formula H VPP , a process equivalent to converting the reference image I b sequentially with the matrices A b −1 , R n , R V , and A VPP is performed. Actually, conversion can be performed at one time with one conversion formula H VPP , but each matrix A b −1 , R n , R V , and A VPP can be easily understood conceptually. The conversion by will be described.

先ず、基準画像Ib(図5参照)に対して逆行列Ab -1による変換を行うと画像座標からカメラ座標系への変換が行われ、図31に示すカメラ座標系基準画像Ibcが得られる。 First, when the reference image I b (see FIG. 5) is converted by the inverse matrix A b −1 , conversion from the image coordinates to the camera coordinate system is performed, and the camera coordinate system reference image I bc shown in FIG. can get.

次に、このカメラ座標系基準画像Ibcに対して回転行列Rnによる変換を行うと、カメラ座標系基準画像Ibcは角度θnだけ回転して道路平面Πに平行になるとともに遠方部分が拡大され、第1変換画像IV1が得られる。図32に示すように、この第1変換画像IV1は縦軸に対して角度(θV−φ)だけ傾いた画像として得られる。 Next, when this camera coordinate system reference image I bc is converted by the rotation matrix Rn, the camera coordinate system reference image I bc is rotated by an angle θn and becomes parallel to the road plane ridge and the distant portion is enlarged. A first converted image I V1 is obtained. As shown in FIG. 32, the first converted image I V1 is obtained as an image inclined by an angle (θ V −φ) with respect to the vertical axis.

さらに、第1変換画像IV1に対して回転行列RVによる変換を行うと、第1変換画像IV1は角度(θV−φ)だけ回転して車両前後方向とVPP画像の縦軸が一致することになり第2変換画像IV2が得られる。 Further, when the first converted image I V1 is converted by the rotation matrix R V , the first converted image I V1 is rotated by an angle (θ V −φ) so that the longitudinal direction of the vehicle coincides with the vertical axis of the VPP image. Thus, the second converted image I V2 is obtained.

最後に、第2変換画像IV2に対して仮想カメラの内部パラメータAVPPによる変換を行うと、スケール変換が行われて所望の大きさのVPP画像IV(図33参照)が得られる。 Finally, when the second converted image I V2 is converted by the internal parameter A VPP of the virtual camera, scale conversion is performed to obtain a VPP image I V (see FIG. 33) having a desired size.

このような一連の行列式AVPPVnb -1によって、変換式HVPPが構成されており、基準画像Ibに対して変換式HVPPによるVPP変換を行うことによりVPP画像IV(図33参照)が得られる。前記のとおり、このVPP変換は、ステップS62において行われる。得られたVPP画像IVは記憶部に記録される。 Such a series of the determinant A VPP R V R n A b -1, transformation equation H VPP is configured, the reference image I b VPP image by performing VPP conversion by the conversion equation H VPP with respect to I V (see FIG. 33) is obtained. As described above, this VPP conversion is performed in step S62. The obtained VPP image IV is recorded in the storage unit.

なお、このVPP画像IVは、内部パラメータAVPPの設定により、図33に示すように画像の左上部が原点であって、車幅方向がX方向(図33における右方向)、車両前後方向がY方向(図33における下方向)として規定される。 Note that the VPP image I V is set according to the setting of the internal parameter A VPP , as shown in FIG. 33, the upper left portion of the image is the origin, the vehicle width direction is the X direction (right direction in FIG. 33), and the vehicle longitudinal direction. Is defined as the Y direction (downward direction in FIG. 33).

図33から了解されるように、VPP画像IVは、道路平面Πを上方の高い距離から眺めたような画像となり、道路の幅は略一定に映し出される。また、基準画像Ib上のトラック70や乗用車72は、画像上方部が拡大するように歪曲して映し出される。 As can be understood from FIG. 33, the VPP image IV is an image as seen from a high distance above the road plane ridge, and the width of the road is projected to be substantially constant. Furthermore, the track 70 and passenger vehicle 72 on base image I b is the image upper portion is projected distort to expand.

また、この後ステップS63においては、平面領域Πf(図5参照)に対して変換式HVPPによるVPP変換を行い、上方から眺めた平面領域ΠfであるVPP平面画像IVf(図34参照)を求めて記録する。このVPP平面画像IVfはVPP画像IVにおける道路平面Πの領域を示すことになる。得られたVPP平面画像IVfは記憶部に記憶される。このVPP平面画像IVfは、道路平面と同じ形状となっており、図34に示す例では、前方の他のトラック70や路側部等の水平でない構造物や、道路平面と同一レベルでない面が除外された略V字形状となっている。 Thereafter, in step S63, VPP conversion is performed on the plane area Π f (see FIG. 5) by the conversion formula H VPP , and the VPP plane image I Vf that is the plane area Π f viewed from above (see FIG. 34). ) To record. This VPP plane image I Vf indicates the area of the road plane plane in the VPP image I V. The obtained VPP plane image I Vf is stored in the storage unit. This VPP plane image I Vf has the same shape as the road plane, and in the example shown in FIG. 34, there are non-horizontal structures such as other trucks 70 and roadside portions ahead, and planes that are not at the same level as the road plane. The substantially V-shaped shape is excluded.

<ステップS7(移動体速度算出手段)>
ステップS7は、前記ステップS6で求めたVPP画像IV及びVPP平面画像IVfに基づいて、車両10の自車速度ベクトルVV(図25参照)を求めるための処理であり、図35に示すステップS71〜ステップS77のサブルーチン処理からなる。なお、以下の説明においては、現時刻の処理で得られたVPP画像IV及びVPP平面画像IVfをVPP画像IV(t)及びVPP平面画像IVf(t)と表し、前時刻に得られたものをVPP画像IV(t−1)及びVPP平面画像IVf(t−1)と表して区別する。また、ワールド座標系では車両10の前後方向が座標Zw(図10参照)として規定されているが、前記のとおり、VPP画像IVでは前後方向がY軸と規定されているため、以下のステップS7に関する説明では車両10の前後方向に対応するパラメータには添え字「Y」又は「y」を付けて表す。
<Step S7 (moving body speed calculating means)>
Step S7 is a process for obtaining the vehicle speed vector V V (see FIG. 25) of the vehicle 10 based on the VPP image I V and the VPP plane image I Vf obtained in step S6, and is shown in FIG. It consists of the subroutine process of step S71-step S77. In the following description, the VPP image I V and the VPP plane image I Vf obtained by the processing at the current time are represented as a VPP image I V (t) and a VPP plane image I Vf (t), and are obtained at the previous time. These are distinguished from each other by representing them as a VPP image I V (t−1) and a VPP plane image I Vf (t−1). In the world coordinate system, the front-rear direction of the vehicle 10 is defined as the coordinate Zw (see FIG. 10). As described above, in the VPP image IV , the front-rear direction is defined as the Y-axis. In the description relating to S7, the parameter corresponding to the front-rear direction of the vehicle 10 is represented with the suffix “Y” or “y”.

ステップS71において、前時刻処理時のVPP画像IV(t−1)、VPP平面画像IVf(t−1)及び画像マッチング移動量ΔX0、ΔY0、Δθyaw−0を呼び出す。画像マッチング移動量ΔX0、ΔY0、Δθyaw−0は、前時刻処理時のステップS77で記録されたパラメータであり、前時刻におけるVPP画像IV(t)とVPP画像IV(t−1)とのマッチングによるずれ量を表す。 In step S71, the VPP image I V (t−1), the VPP plane image I Vf (t−1), and the image matching movement amounts ΔX 0 , ΔY 0 , Δθ yaw-0 at the time of previous time processing are called. The image matching movement amounts ΔX 0 , ΔY 0 , Δθ yaw-0 are the parameters recorded in step S 77 during the previous time processing, and are the VPP image I V (t) and the VPP image I V (t−1) at the previous time. ) Represents the amount of deviation due to matching.

ステップS72において、VPP画像IV(t)とVPP画像IV(t−1)とのマッチングを行うための探索範囲を設定する。具体的には、画像マッチング移動量ΔX0、ΔY0、Δθyaw-0を中心とした所定幅を有する範囲としてΔX=ΔXMIN〜ΔXMAX、及びΔY=ΔYMIN〜ΔYMAX、Δθyaw=Δθyaw−MIN〜Δθyaw−MAXが設定される。ステップS73において、VPP画像IV(t)とVPP画像IV(t−1)とを前記ステップS72で設定した探索範囲内で相対的に移動させて、VPP画像マッチングを行う。探索範囲は画像マッチング移動量ΔX0、ΔY0、Δθyaw−0を基準とした範囲に設定されているため、VPP画像マッチングに要する時間は短時間で足りる。また、自車速度ベクトルVVは急激に変化することはないため、類似度が最大となる箇所が画像マッチング移動量ΔX0、ΔY0、Δθyaw−0を中心とした探索範囲からずれることはない。ステップS73におけるVPP画像マッチングの詳細な処理については後述する(図36参照)。 In step S72, a search range for performing matching between the VPP image I V (t) and the VPP image I V (t−1) is set. Specifically, ΔX = ΔX MIN to ΔX MAX and ΔY = ΔY MIN to ΔY MAX , Δθ yaw = Δθ are ranges having a predetermined width centered on the image matching movement amounts ΔX 0 , ΔY 0 , Δθ yaw-0. yaw−MIN to Δθ yaw−MAX is set. In step S73, VPP image matching is performed by relatively moving the VPP image I V (t) and the VPP image I V (t−1) within the search range set in step S72. Since the search range is set to a range based on the image matching movement amounts ΔX 0 , ΔY 0 , and Δθ yaw-0 , the time required for VPP image matching is short. In addition, since the own vehicle speed vector V V does not change abruptly, the location where the similarity is maximum is not shifted from the search range centered on the image matching movement amounts ΔX 0 , ΔY 0 , Δθ yaw-0. Absent. Detailed processing of VPP image matching in step S73 will be described later (see FIG. 36).

ステップS74において、前記ステップS73で求めたVPP画像マッチングの結果を参照して、VPP画像IV(t)とVPP画像IV(t−1)との類似度が最大となる箇所(後述するNSSD(ΔX、ΔY、Δθyaw)が最小となる箇所)を検出し、その箇所におけるVPP画像IV(t)とVPP画像IV(t−1)とのずれ量を移動量move(ΔXf、ΔYf、Δθyaw−f)として求める。ここで、ΔXf、ΔYf及びΔθyaw−fはVPP画像IV(t)とVPP画像IV(t−1)との類似度が最大となる箇所におけるΔX、ΔY及びΔθyawの値である。 In step S74, referring to the result of VPP image matching obtained in step S73, a location where the similarity between the VPP image I V (t) and the VPP image I V (t−1) is maximized (NSSD to be described later). (Location where ΔX, ΔY, Δθ yaw ) is minimum), and the amount of shift between the VPP image I V (t) and the VPP image I V (t−1) at that location is expressed as a movement amount move (ΔX f , ΔY f , Δθ yaw−f ). Here, ΔX f , ΔY f, and Δθ yaw−f are values of ΔX, ΔY, and Δθ yaw at a location where the similarity between the VPP image I V (t) and the VPP image I V (t−1) is maximum. is there.

ステップS75において、移動量move(ΔXf、ΔYf)に基づいて下記の(7−1)〜(7−3)式により車両10の自車速度ベクトルVVの大きさを求める。 In step S75, the magnitude of the vehicle speed vector V V of the vehicle 10 is obtained from the following equations (7-1) to (7-3) based on the movement amount move (ΔX f , ΔY f ).

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

Figure 0004270386
Figure 0004270386

ここで、Vx及びVzは、車両10の幅方向及び車両前後方向の速度であり、dvpp、αVPP及びβVPPは前記(6−6)式において定義される係数及び数値である。また、前記のとおりΔtは演算周期である。(7−2)式及び(7−3)式で、車両前後方向の速度をVzとして添え字「y」でなく「z」を用いているのは、他の処理に対して整合性を考慮しVPP画像の座標からワールド座標系に戻しているためである。 Here, Vx and Vz are the speeds of the vehicle 10 in the width direction and the vehicle front-rear direction, and d vpp , α VPP, and β VPP are coefficients and numerical values defined in the above equation (6-6). Further, as described above, Δt is a calculation cycle. In formulas (7-2) and (7-3), the speed in the longitudinal direction of the vehicle is Vz, and the suffix “y” is used instead of the suffix “y”. This is because the coordinates of the VPP image are returned to the world coordinate system.

自車速度ベクトルVVの大きさは、周知のとおり直交する2方向速度成分で形成される斜辺部の長さとして表されることから(7−3)式が成り立つ。 Since the size of the own vehicle speed vector V V is expressed as the length of the hypotenuse formed by the two-way speed components orthogonal to each other as is well known, equation (7-3) is established.

(7−3)式及び(7−4)式により、自車速度ベクトルVVの大きさと角度θYAWが求まることから自車速度ベクトルVVが決定され、該自車速度ベクトルVVを図25上に表す。なお、角度θYAWは、車両10の回転角度として用いることもできる。 (7-3) by formula and (7-4) below, the vehicle velocity vector V V magnitude and angle theta YAW vehicle since the obtained velocity vector V V is determined, figure the free-wheel velocity vector V V 25. The angle θ YAW can also be used as the rotation angle of the vehicle 10.

ところで、車両10の回転角度をより厳密に求めるためには、VPP画像IV(t−1)をΔX及びΔY方向に並進的に移動させるだけではなく、回転を含んだ移動をさせた上で類似度の演算を行うとよい。この場合、画像マッチング移動量ΔX0、ΔY0を中心とした所定幅を有する範囲としてΔX=ΔXMIN〜ΔXMAX、ΔY=ΔYMIN〜ΔYMAX及び回転角度としてのω=ΔθMIN〜ΔθMAXが設定され、3自由度の移動を行う。 By the way, in order to obtain the rotation angle of the vehicle 10 more precisely, the VPP image I V (t−1) is not only translated in the ΔX and ΔY directions but also moved including rotation. It is advisable to calculate the similarity. In this case, ΔX = ΔX MIN to ΔX MAX , ΔY = ΔY MIN to ΔY MAX, and ω = Δθ MIN to Δθ MAX as rotation angles are ranges having a predetermined width centered on the image matching movement amounts ΔX 0 and ΔY 0. Set and move with 3 degrees of freedom.

ステップS76において、自車速度ベクトルVV、角度θYAWを記録する。また、ステップS74で求めたΔXf、ΔYf、Δθyaw−fを次回処理時の画像マッチング移動量ΔX0、ΔY0、Δθyaw−0として用いるために、ΔX0←ΔXf、ΔY0←ΔYf、Δθyaw−0←Δθyaw−fと代入した後に記録する。 In step S76, the vehicle speed vector V V and the angle θ YAW are recorded. Further, in order to use ΔX f , ΔY f , Δθ yaw−f obtained in step S74 as image matching movement amounts ΔX 0 , ΔY 0 , Δθ yaw-0 at the next processing, ΔX 0 ← ΔX f , ΔY 0 ← Record after substituting ΔY f , Δθ yaw-0 ← Δθ yaw−f .

次に、ステップS73におけるVPP画像マッチングの第1の処理方法について説明する。この第1の処理方法は図36におけるステップS731〜S735の処理からなる。なお、このステップS731〜S735の処理は、前記ステップS72で設定された探索範囲としてのΔX=ΔXMIN〜ΔXMAX、及びΔY=ΔYMIN〜ΔYMAX、Δθyaw=Δθyaw−MIN〜Δθyaw−MAXの領域について個別に実行されるが、繰り返し制御についての説明を省略して1回分の処理についてのみ説明する。 Next, the first processing method for VPP image matching in step S73 will be described. This first processing method includes the processing of steps S731 to S735 in FIG. The processing of this step S731~S735 is, ΔX = ΔX MIN ~ΔX MAX as set search range in the step S72, the and ΔY = ΔY MIN ~ΔY MAX, Δθ yaw = Δθ yaw-MIN ~Δθ yaw- Although the processing is executed individually for the MAX region, only the processing for one time will be described by omitting the description of the repetitive control.

先ず、ステップS731において、VPP平面画像IVf(t−1)を現時刻で設定されているΔθyaw回転し、ΔX及びΔYの方向に移動させる。(図37の「S731」参照)。なお、回転の中心は、VPP画像における光学中心の位置(Cx−vpp、Cy−vpp)とする。 First, in step S731, the VPP plane image I Vf (t−1) is rotated by Δθ yaw set at the current time and moved in the directions of ΔX and ΔY. (See “S731” in FIG. 37). The center of rotation is the position of the optical center (C x−vpp , C y−vpp ) in the VPP image.

ステップS732(第二の道路平面領域抽出手段)において、VPP平面画像IVf(t)と前記ステップS731で移動したVPP平面画像IVf(t−1)との共通領域R(ΔX、ΔY,Δθyaw)を求める(図37の「S732」参照)。 In step S732 (second road plane area extracting means), the common area R (ΔX, ΔY, Δθ) between the VPP plane image I Vf (t) and the VPP plane image I Vf (t−1) moved in step S731. yaw ) is obtained (see "S732" in FIG. 37).

ステップS733において、VPP画像IV(t−1)をその時点で設定されているΔθyaw回転し、ΔX及びΔYの方向に移動させる(図37の「S733」参照)。 In step S733, the VPP image I V (t−1) is rotated by Δθ yaw set at that time and moved in the directions of ΔX and ΔY (see “S733” in FIG. 37).

ステップS734において、共通領域R(ΔX,ΔY,Δθyaw)、VPP画像IV(t)及び移動したVPP画像IV(t−1)に基づいて、次の(7−4)式によりVPP画像マッチングとしてNSSDを計算する。 In step S734, based on the common region R (ΔX, ΔY, Δθ yaw ), the VPP image I V (t), and the moved VPP image I V (t−1), the VPP image is expressed by the following equation (7-4). NSSD is calculated as a match.

Figure 0004270386
Figure 0004270386

ここで、xiは共通領域R(ΔX,ΔY,Δθyaw)に含まれるピクセルの座標であり、Nは、共通領域R(ΔX,ΔY,Δθyaw)に含まれるピクセルの総数であり、IV(t−1)move(ΔX,ΔY)は、ステップS734でVPP画像IV(t−1)をΔθyaw回転し、ΔX及びΔYだけ移動した画像を示す。 Here, xi is the coordinate of the pixel included in the common area R (ΔX, ΔY, Δθ yaw ), N is the total number of pixels contained in the common area R (ΔX, ΔY, Δθ yaw ), I V (T-1) move (ΔX, ΔY) indicates an image obtained by rotating the VPP image I V (t−1) by Δθ yaw in step S734 and moving it by ΔX and ΔY.

この(7−4)式により、VPP画像IV(t)とVPP画像IV(t−1)をΔθyaw回転し、ΔX及びΔYだけ移動した画像とのピクセル毎の輝度差の二乗和が正規化された値として求められ、次のステップS735において、移動量move(Δx、Δy、Δθyaw)毎に類似度としてNSSD(Δx、Δy、Δθyaw)が記録される。NSSD(Δx、Δy、Δθyaw)は正規化されていることから共通領域R(ΔX,ΔY,Δθyaw)の面積の大小に拘わらずに相互比較が可能となる。 By this equation (7-4), the square sum of the luminance difference for each pixel between the VPP image I V (t) and the VPP image I V (t−1) rotated by Δθ yaw and moved by ΔX and ΔY is obtained. As a normalized value, NSSD (Δx, Δy, Δθ yaw ) is recorded as the similarity for each movement amount move (Δx, Δy, Δθ yaw ) in the next step S735. Since NSSD (Δx, Δy, Δθ yaw ) is normalized, mutual comparison is possible regardless of the size of the common region R (ΔX, ΔY, Δθ yaw ).

このようなステップS7の処理によれば、対応点探索を行うことがないため、ロバスト性が高い。また平面の位置姿勢パラメータに基づいて平面に平行なVPP画像を生成するため、車両姿勢の変動等による影響を受けず耐振動性が高い。実際上、道路平面Πには不規則であっても地模様等何らかの模様や特徴部が存在していることから、このような部分に基づいて自車速度ベクトルVVを求めることができる。 According to the processing in step S7, robustness is high because no corresponding point search is performed. In addition, since a VPP image parallel to the plane is generated based on the position and orientation parameters of the plane, the vibration resistance is high without being affected by changes in the vehicle attitude. Actually, since there are some patterns and features such as a ground pattern even if the road plane is irregular, the own vehicle speed vector V V can be obtained based on such a part.

さらに、平面領域Πfに基づく共通領域R(ΔX,ΔY,Δθyaw)内でVPP画像マッチングを行うことから、他の車両や路側部等の余分な部分が削除されて高精度且つ高速な演算が遂行される。 Furthermore, since VPP image matching is performed in the common region R (ΔX, ΔY, Δθ yaw ) based on the planar region Π f , extra portions such as other vehicles and roadside portions are deleted, and high-precision and high-speed calculation is performed. Is carried out.

また、VPP画像マッチングにおける類似度として、NSSDに代えて前記のZNCC等を用いてもよい。   Further, as the similarity in VPP image matching, the above ZNCC or the like may be used instead of NSSD.

次に、ステップS73におけるVPP画像マッチングの第2の処理方法について説明する。この第2の処理方法は、基本的には前記ステップS1及び前記非特許文献1で説明した濃度勾配法と同じ方法であり、前記射影変換行列Hに相当する移動回転行列Mを微小量変化させながら2つの画像が最も重なるように収束させる。   Next, the second processing method of VPP image matching in step S73 will be described. This second processing method is basically the same method as the density gradient method described in Step S1 and Non-Patent Document 1, and changes the moving rotation matrix M corresponding to the projective transformation matrix H by a minute amount. However, the two images are converged so that they overlap most.

先ず、適当に真値に近い初期値としての移動回転行列Mを設定しておき、次の(7−5)式により、VPP画像IV(t−1)を移動回転変換する。ここで、Ir(x)をVPP画像IV(t−1)の座標x(x,y)における輝度値とする。なお、移動回転行列Mは、3×3の行列である。また、移動回転行列Mの初期値としては、前時刻のステップにて算出された値を用いるとよい。 First, a moving rotation matrix M as an initial value appropriately close to the true value is set, and the VPP image I V (t−1) is moved and rotated by the following equation (7-5). Here, I r (x) is a luminance value at the coordinate x (x, y) of the VPP image I V (t−1). The moving rotation matrix M is a 3 × 3 matrix. As the initial value of the moving rotation matrix M, the value calculated in the previous time step may be used.

Figure 0004270386
(「〜」は、変換された後の輝度値を表す。)
Figure 0004270386
("~" Represents the luminance value after conversion.)

移動回転行列Mの各パラメータを微小量変化させたとき、変換されたVPP画像IV(t−1)上の座標x(x,y)が座標x″(x″,y″)に変化するものとすると、

Figure 0004270386
の関係が得られる。なお、Iは3×3の単位行列であり、Dは移動回転行列Mの各パラメータの微小変化量をパラメータとする3×3の微小変化行列であり次の(7−7)式で表される。 When each parameter of the moving rotation matrix M is changed by a minute amount, the coordinate x (x, y) on the converted VPP image I V (t−1) changes to the coordinate x ″ (x ″, y ″). Assuming
Figure 0004270386
The relationship is obtained. Note that I is a 3 × 3 unit matrix, and D is a 3 × 3 minute change matrix whose parameter is the minute change amount of each parameter of the moving rotation matrix M, and is expressed by the following equation (7-7). The

Figure 0004270386
Figure 0004270386

ここで、ωは微小回転角度、dx及びdyはx方向及びy方向の微小移動量である。また、ω、dx及びdyをまとめて1つのパラメータΘとしても表す。このパラメータΘを引数とし、(7−5)、(7−6)式の関係を用いて、移動回転変換されたVPP画像IV(t−1)とVPP画像IV(t)との重なり状態を示す評価関数E(Θ)は、次の(7−8)式で表される。 Here, ω is a minute rotation angle, and dx and dy are minute movement amounts in the x and y directions. Also, ω, dx, and dy are collectively expressed as one parameter Θ. Using this parameter Θ as an argument, the overlap between the VPP image I V (t−1) and the VPP image I V (t) that has been subjected to translation and rotation conversion using the relationship of equations (7-5) and (7-6). The evaluation function E (Θ) indicating the state is expressed by the following equation (7-8).

Figure 0004270386
(「i」は、画素番号を表す。)
と表すことができる。ここで、Rplaneは、VPP平面画像IVf(t−1)、IVf(t)における道路平面Πに相当する領域である。
Figure 0004270386
(“I” represents a pixel number.)
It can be expressed as. Here, R plane is an area corresponding to the road plane plane in the VPP plane images I Vf (t−1) and I Vf (t).

この(7−8)式は前記(1−5)式と等価なものであり、基準画像IbとVPP画像IV(t)、参照画像IrとVPP画像IV(t−1)、行列Dxと行列Dがそれぞれ対応する。 The expression (7-8) is equivalent to the expression (1-5), and the base image I b and the VPP image I V (t), the reference image I r and the VPP image I V (t−1), The matrix Dx and the matrix D correspond to each other.

したがって、前記と同様の方法により、gi(輝度勾配)、ei(輝度差分)、ヤコビアンJΘiを算出し、微小変化行列Dを最小二乗法を用いて求めることができる。 Therefore, g i (luminance gradient), e i (luminance difference), and Jacobian JΘ i can be calculated by the same method as described above, and the minute change matrix D can be obtained using the least square method.

以上のようにして求めた微小変化行列Dを用いて、移動回転行列Mを次の(7−9)式にしたがって更新する。   Using the minute change matrix D obtained as described above, the moving rotation matrix M is updated according to the following equation (7-9).

Figure 0004270386
Figure 0004270386

そして、(7−9)式で求めた移動回転行列Mを用いて、再び(7−8)式の評価関数E(Θ)の値を算出する処理を繰り返す。この繰り返しの処理において移動回転行列Mは最小二乗法を解いて得られる微小変化行列Dを用いて、M←M(I+D)として更新される。評価関数E(Θ)の値が所定の値以下に収束したときのをMの各成分よりΔθyaw、ΔX、ΔYを式(7−10)を用いて求めることができる。 Then, the process of calculating the value of the evaluation function E (Θ) of the equation (7-8) is repeated using the moving rotation matrix M obtained by the equation (7-9). In this iterative process, the moving rotation matrix M is updated as M ← M (I + D) using the minute change matrix D obtained by solving the least square method. Δθ yaw , ΔX, and ΔY can be obtained from the respective components of M when the value of the evaluation function E (Θ) converges below a predetermined value using Equation (7-10).

Figure 0004270386
Figure 0004270386

このようなステップS73の第2の処理方法では、前記の第1の処理方法で求めたΔθyaw、ΔX、ΔYを初期値として第2の処理方法を用いることで、一層正確にΔθyaw、ΔX、ΔYを求めることができる。 In such a second method of processing step S73, the first processing method in the obtained [Delta] [theta] yaw, by using the second processing method [Delta] X, the ΔY as the initial value, more precisely [Delta] [theta] yaw, [Delta] X , ΔY can be obtained.

<ステップS8>
ステップS8は、検出した物体が静止物体であるか移動物体であるかを判断する処理であり、図38に示すステップS81〜S84のサブルーチン処理からなる。
<Step S8>
Step S8 is a process for determining whether the detected object is a stationary object or a moving object, and includes a subroutine process of steps S81 to S84 shown in FIG.

ステップS81において、前記ステップS55で求められた各物体の相対速度であるベクトルVr1、Vr2及びVr3を読み出す。これらのベクトルは図25における各矢印で示されている。   In step S81, vectors Vr1, Vr2 and Vr3, which are the relative velocities of the respective objects obtained in step S55, are read out. These vectors are indicated by arrows in FIG.

ステップS82において、前記ステップS7において求めた車両10の自車速度ベクトルVVを読み出す。この車両10の自車速度ベクトルVVは図25の原点を基点に示されている。 In step S82, the vehicle speed vector V V of the vehicle 10 obtained in step S7 is read. The own vehicle speed vector V V of the vehicle 10 is shown with the origin in FIG.

ステップS83において、検出された各物体の絶対速度ベクトルVABSN(N=1、2、3…)を算出する。絶対速度VABSNはVABSN=VrN+VV'としてベクトル加算により求められる。ただし、VV'は相対速度VrNに含まれる、自車両のモーションによる速度分である。図39に各物体毎に求められた絶対速度ベクトルVABSNを示す。図39から明らかなように、静止物体であるガードレール74については、VABS3≒0となる。 In step S83, the absolute velocity vector V ABS N (N = 1, 2, 3,...) Of each detected object is calculated. The absolute speed V ABS N is obtained by vector addition as V ABS N = V r N + V V ′. However, V V ′ is a speed component included in the relative speed V r N due to the motion of the host vehicle. FIG. 39 shows the absolute velocity vector V ABS N obtained for each object. As is apparent from FIG. 39, V ABS 3≈0 for the guard rail 74 which is a stationary object.

ステップS84において、絶対速度VABSNに基づいて、検出された各物体が静止物体であるか移動物体であるかを調べる。具体的には、各物体の絶対速度のベクトルの大きさ|VABSN|と閾値ThABSを比較して、ThABS≧|VABSN|であるとき対象となる物体は静止物体であり、|VABSN|>ThABSであるときは移動物体であると判断される。これにより、VABS3≒0であるガードレール74は静止物体として判別され、トラック70及び乗用車72は移動物体として識別される。 In step S84, based on the absolute speed V ABS N, it is checked whether each detected object is a stationary object or a moving object. Specifically, the magnitude of the absolute velocity vector | V ABS N | of each object is compared with the threshold Th ABS , and when Th ABS ≧ | V ABS N |, the target object is a stationary object, When | V ABS N |> Th ABS , it is determined that the object is a moving object. Thus, the guard rail 74 with V ABS 3≈0 is determined as a stationary object, and the truck 70 and the passenger car 72 are identified as moving objects.

このように、ステップS8の処理によれば、検出された物体の絶対速度を精度よく求めることができ、物体が静止物か否かを正確に判断することができる。この判断結果の情報は、例えば、車両10と物体との所定の接近注意喚起手段に供することができる。   Thus, according to the process of step S8, the absolute velocity of the detected object can be obtained with high accuracy, and it can be accurately determined whether or not the object is a stationary object. Information on this determination result can be provided to, for example, a predetermined approach alerting means for the vehicle 10 and the object.

また、ステップS7及びS8の処理によれば、VPP画像IVの平面領域Πfのみを用いて移動量を算出することにより、移動する物体と静止物とが混在する環境下においても正確に自車速度ベクトルVVを求めることができる。 In addition, according to the processing of steps S7 and S8, the amount of movement is calculated using only the plane region Π f of the VPP image I V , so that it can be accurately detected even in an environment where moving objects and stationary objects coexist. A vehicle speed vector V V can be obtained.

さらに、例えば路面など一定の高さ(距離)にある物体を撮像して、路面を基準として速度計測を行うように定めた場合に、路面に対して高さのある物体が撮像され、該物を基準として速度計測を行うと高さに基づく速度検出の誤差が発生することが知られているが、ステップS7及びS8の処理によれば、平面領域Πfのみを用いることにより高さのある物体を除外して算出できるので、高さに基づく誤差が発生しない。 Furthermore, for example, when it is determined that an object at a certain height (distance) such as a road surface is imaged and speed measurement is performed based on the road surface, an object having a height with respect to the road surface is imaged. While errors in performing the speed detection based on the height of the speed measurement is known to occur as a reference, according to the processing of step S7 and S8, a height by using only the plane area [pi f Since the calculation can be performed by excluding the object, an error based on the height does not occur.

またステップS7及びS8の処理によれば、平面までの距離も検出するため、例えば歩道など路面に対して高さのある平面が画像中の大半を占める場合にも、その高さを考慮して速度を算出できる。   Further, according to the processing of steps S7 and S8, since the distance to the plane is also detected, even when a plane having a height relative to the road surface such as a sidewalk occupies most of the image, the height is taken into consideration. Speed can be calculated.

なお、本実施の形態において求められる平面領域Πfは、車両10が走行する略水平な道路平面Πに対応する領域であって、「平面」であっても垂直な面やレベルの異なる他の面は除外される。 The plane area Π f required in the present embodiment is an area corresponding to a substantially horizontal road plane す る on which the vehicle 10 travels. Faces are excluded.

また、上記の説明では、基準カメラ12と参照カメラ14が設けられているものとしたが、必要に応じてより多くのカメラを設けてもよい。   In the above description, the base camera 12 and the reference camera 14 are provided. However, more cameras may be provided as necessary.

本発明の移動体移動量算出装置が適用される車両の説明図である。It is explanatory drawing of the vehicle to which the moving body moving amount | distance calculation apparatus of this invention is applied. 図1に示す車両に搭載される演算処理装置の機能構成ブロック図である。It is a functional block diagram of the arithmetic processing unit mounted in the vehicle shown in FIG. 図1に示す演算処理装置における処理の全体の流れを説明するフローチャートである。It is a flowchart explaining the flow of the whole process in the arithmetic processing unit shown in FIG. 一対の撮像手段間での2次元射影変換を説明するための模式図である。It is a schematic diagram for demonstrating two-dimensional projective transformation between a pair of imaging means. 平面領域を抽出する手順の説明図である。It is explanatory drawing of the procedure which extracts a plane area | region. 物体抽出処理の処理内容を示すフローチャートである。It is a flowchart which shows the processing content of an object extraction process. 候補点を高さの制限に基づいて抽出する様子を示す模式図である。It is a schematic diagram which shows a mode that a candidate point is extracted based on the restriction | limiting of height. 投票処理の様子を示す模式図である。It is a schematic view showing the state of the voting processing. 投票面上で行うクラスタリング処理の様子を示す模式図である。It is a schematic diagram which shows the mode of the clustering process performed on a voting surface. 投票面を示す図である。It is a figure which shows a voting surface. 物体の各エッジ点のワールド座標を求める処理内容を示すフローチャートである。It is a flowchart which shows the processing content which calculates | requires the world coordinate of each edge point of an object. エッジが抽出されたエッジ画像を示す図である。It is a figure which shows the edge image from which the edge was extracted. エッジが抽出されたエッジ画像の実際の画像データである。It is actual image data of the edge image from which the edge was extracted. 平面領域が除去された修正エッジ画像を示す図である。It is a figure which shows the correction edge image from which the plane area | region was removed. エピポーララインが設定された参照画像を示す図である。It is a figure which shows the reference image in which the epipolar line was set. ワールド座標系とカメラ座標系との関係を示す模式図である。It is a schematic diagram which shows the relationship between a world coordinate system and a camera coordinate system. 奥行き画像を示す図である。It is a figure which shows a depth image. 物体の相対速度を算出する処理内容を示すフローチャートである。It is a flowchart which shows the processing content which calculates the relative speed of an object. 物体領域の重なり具合を調べる処理内容を示すフローチャートである。It is a flowchart which shows the processing content which investigates the overlap condition of an object area | region. クラスタに基づいてテンプレートを作成する処理内容を示す模式図であるIt is a schematic diagram which shows the processing content which creates a template based on a cluster テンプレートが設定された基準画像を示す図である。It is a figure which shows the reference | standard image in which the template was set. 重心移動距離を算出する処理内容を示すフローチャートである。It is a flowchart which shows the processing content which calculates a gravity center movement distance. 物体同一判定の処理内容を示すフローチャートである。It is a flowchart which shows the processing content of an object identity determination. 同一物体の位置を再計算する処理内容を示すフローチャートである。It is a flowchart which shows the processing content which recalculates the position of the same object. 物体の相対速度が記録された投票面を示す図である。It is a figure which shows the voting surface on which the relative velocity of the object was recorded. 物体の相対速度を算出する処理内容を示すフローチャートである。It is a flowchart which shows the processing content which calculates the relative speed of an object. エピポーララインを設定する処理を説明するための模式図である。It is a schematic diagram for demonstrating the process which sets an epipolar line. VPP画像を生成するための処理内容を示すフローチャートである。It is a flowchart which shows the processing content for producing | generating a VPP image. VPP画像変換式を算出する処理内容を示すフローチャートである。It is a flowchart which shows the processing content which calculates a VPP image conversion type | formula. 法線ベクトル、カメラ座標系、及び基準カメラの光軸との関係を示す座標図である。It is a coordinate diagram which shows the relationship between a normal vector, a camera coordinate system, and the optical axis of a reference | standard camera. カメラ座標系基準画像を道路平面に平行となるように変換する処理の説明のための図である。It is a figure for demonstrating the process which converts a camera coordinate system reference | standard image so that it may become parallel to a road plane. 第1変換画像を回転変換する様子を示す模式図である。It is a schematic diagram which shows a mode that the 1st conversion image is rotationally converted. 基準画像をVPP変換する様子を示す模式図である。It is a schematic diagram which shows a mode that a reference | standard image is VPP-converted. 道路平面領域をVPP変換する様子を示す模式図である。It is a schematic diagram which shows a mode that a road plane area | region is VPP-converted. 自車速度を算出する処理内容を示すフローチャートである。It is a flowchart which shows the processing content which calculates the own vehicle speed. VPP画像マッチングの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of VPP image matching. VPP画像マッチングの処理内容を示す模式ブロック図である。It is a schematic block diagram which shows the processing content of VPP image matching. 物体の絶対速度を算出するための処理内容を示す模式ブロック図である。It is a schematic block diagram which shows the processing content for calculating the absolute speed of an object. 物体の絶対速度が記録された投票面を示す図である。It is a figure which shows the voting surface where the absolute velocity of the object was recorded.

符号の説明Explanation of symbols

10…車両 12…基準カメラ
14…参照カメラ 16…演算処理装置
18、20…画像処理部 22…画像記憶部
24…演算制御部 26…パラメータ記憶部
28…射影変換行列算出部 30…平面パラメータ算出部
32…平面領域抽出部 34…物体検出部
36…物体相対速度算出部 38…仮想投影面画像生成部
40…自車速度算出部 42…物体絶対速度算出部
44…表示処理部 50…投票面
52a〜52c、54a〜54c…クラスタ
60…エッジ画像 62…修正エッジ画像
80a〜80c…テンプレート 82a…物体位置領域
b、Ar…内部パラメータ Cc…カメラ座標
Cw…ワールド座標 EP…エピポーラライン
H…射影変換行列 Ib…基準画像
r…参照画像 Π…平面
d…距離 n…法線ベクトル
t…並進ベクトル

DESCRIPTION OF SYMBOLS 10 ... Vehicle 12 ... Base camera 14 ... Reference camera 16 ... Arithmetic processor 18, 20 ... Image processing part 22 ... Image storage part 24 ... Calculation control part 26 ... Parameter storage part 28 ... Projection transformation matrix calculation part 30 ... Plane parameter calculation Unit 32 ... plane area extraction unit 34 ... object detection unit 36 ... object relative speed calculation unit 38 ... virtual projection plane image generation unit 40 ... own vehicle speed calculation unit 42 ... object absolute speed calculation unit 44 ... display processing unit 50 ... voting plane 52 a - 52 c, 54a to 54c ... cluster 60 ... edge image 62 ... corrected edge image 80 a - 80 c ... template 82a ... object position area A b, A r ... internal parameter Cc ... camera coordinate Cw ... world coordinate EP ... epipolar line H ... Projection transformation matrix I b ... base image I r ... reference image Π ... plane d ... distance n ... normal vector t ... translation vector

Claims (4)

移動体周辺を撮像する複数の撮像手段と、
前記複数の撮像手段による画像の道路平面に対する射影変換行列を動的に推定する射影変換行列推定手段と、
前記複数の撮像手段による画像から道路平面領域を抽出する第一の道路平面領域抽出手段と、
前記射影変換行列推定手段にて推定された射影変換行列を分解することによりカメラに対する前記道路平面の位置姿勢パラメータを算出する平面パラメータ算出手段と、
前記位置姿勢パラメータを用いて道路を上方から見た仮想投影面画像を生成する仮想投影面画像作成手段と、
前記仮想投影面画像中の道路平面領域を抽出する第二の道路平面領域抽出手段と、
前記第二の道路平面領域抽出手段によって抽出された前記仮想投影面画像中の道路平面領域の異なる時刻間での移動量を算出する移動量算出手段と、
を備えることを特徴とする移動体移動量算出装置。
A plurality of imaging means for imaging the periphery of the moving body;
A projection transformation matrix estimation means for dynamically estimating a projection transformation matrix for a road plane of an image by the plurality of imaging means;
First road plane area extraction means for extracting a road plane area from images by the plurality of imaging means;
Plane parameter calculation means for calculating a position and orientation parameter of the road plane relative to the camera by decomposing the projection transformation matrix estimated by the projection transformation matrix estimation means;
Virtual projection plane image creating means for generating a virtual projection plane image of the road viewed from above using the position and orientation parameters;
Second road plane area extracting means for extracting a road plane area in the virtual projection plane image;
A movement amount calculation means for calculating a movement amount between different times of the road plane area in the virtual projection plane image extracted by the second road plane area extraction means;
A moving body moving amount calculating apparatus comprising:
請求項1記載の移動体移動量算出装置において、
前記移動量算出手段によって算出された異なる時刻間での移動量を用いて移動体の速度を算出する移動体速度算出手段を備えることを特徴とする移動体移動量算出装置。
In the mobile movement amount calculating device according to claim 1 Symbol placement,
A moving body moving amount calculating apparatus comprising moving body speed calculating means for calculating a moving body speed using moving amounts between different times calculated by the moving amount calculating means.
請求項記載の移動体移動量算出装置において、
前記複数の撮像手段から得られた画像から物体の領域を抽出する物体抽出手段と、
前記移動体に対する前記物体の相対速度を算出する相対速度算出手段と、
前記移動体速度算出手段による移動体の速度と前記相対速度算出手段による物体の相対速度を用いて前記物体の絶対速度を算出する絶対速度算出手段と、
前記絶対速度算出手段による算出結果を用いて物体が静止物体か移動物体かを判別する判別手段と、
を備えること特徴とする移動体移動量算出装置。
In the moving body movement amount calculation apparatus according to claim 2 ,
Object extraction means for extracting an object region from images obtained from the plurality of imaging means;
A relative speed calculating means for calculating a relative speed of the object with respect to the moving body;
Absolute speed calculating means for calculating the absolute speed of the object using the speed of the moving body by the moving body speed calculating means and the relative speed of the object by the relative speed calculating means;
Discriminating means for discriminating whether the object is a stationary object or a moving object using the calculation result by the absolute velocity calculating means;
Mobile movement amount calculating device, characterized in that it comprises a.
請求項1〜のいずれか1項に記載の移動体移動量算出装置において、
前記移動量算出手段は、異なる時刻間での前記仮想投影面画像を勾配法に基づくマッチング処理を行い、求められたずれ量から移動量を算出することを特徴とする移動体移動量算出装置。
In the moving body movement amount calculation apparatus according to any one of claims 1 to 3 ,
The moving amount calculating unit is characterized in that the virtual projection plane images at different times are subjected to matching processing based on a gradient method, and the moving amount is calculated from the obtained shift amount.
JP2004234945A 2004-08-11 2004-08-11 Moving body moving amount calculation device Active JP4270386B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004234945A JP4270386B2 (en) 2004-08-11 2004-08-11 Moving body moving amount calculation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004234945A JP4270386B2 (en) 2004-08-11 2004-08-11 Moving body moving amount calculation device

Publications (2)

Publication Number Publication Date
JP2006053755A JP2006053755A (en) 2006-02-23
JP4270386B2 true JP4270386B2 (en) 2009-05-27

Family

ID=36031197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004234945A Active JP4270386B2 (en) 2004-08-11 2004-08-11 Moving body moving amount calculation device

Country Status (1)

Country Link
JP (1) JP4270386B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011134226A (en) * 2009-12-25 2011-07-07 Ihi Aerospace Co Ltd Method and device for recognizing remote environment of mobile robot

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5109691B2 (en) 2008-01-31 2012-12-26 コニカミノルタホールディングス株式会社 Analysis device
JP5169320B2 (en) * 2008-03-04 2013-03-27 日産自動車株式会社 Vehicle object detection device and vehicle moving object discrimination method
JP4702569B2 (en) * 2008-09-30 2011-06-15 マツダ株式会社 Image processing apparatus for vehicle
JP5168134B2 (en) * 2008-12-26 2013-03-21 富士通株式会社 ENVIRONMENTAL MAP GENERATION PROGRAM, ENVIRONMENTAL MAP GENERATION METHOD, AND MOBILE ROBOT
EP2600328B1 (en) * 2010-07-27 2017-09-06 Toyota Jidosha Kabushiki Kaisha Driving assistance device
JP5682266B2 (en) * 2010-12-02 2015-03-11 富士通株式会社 Movement amount estimation apparatus and movement amount estimation method
WO2012169131A1 (en) * 2011-06-06 2012-12-13 パナソニック株式会社 Calibration device and calibration method
JP7241492B2 (en) * 2018-09-13 2023-03-17 キヤノン株式会社 Image processing device, image processing method, program, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011134226A (en) * 2009-12-25 2011-07-07 Ihi Aerospace Co Ltd Method and device for recognizing remote environment of mobile robot

Also Published As

Publication number Publication date
JP2006053755A (en) 2006-02-23

Similar Documents

Publication Publication Date Title
JP4328692B2 (en) Object detection device
JP4297501B2 (en) Moving object periphery monitoring device
JP3937414B2 (en) Planar detection apparatus and detection method
US20220319024A1 (en) Image annotation
Oniga et al. Processing dense stereo data using elevation maps: Road surface, traffic isle, and obstacle detection
EP1394761B1 (en) Obstacle detection device and method therefor
US9846812B2 (en) Image recognition system for a vehicle and corresponding method
Guo et al. A multimodal ADAS system for unmarked urban scenarios based on road context understanding
JP2016029557A (en) Three-dimensional object detector, three-dimensional object detection method, three-dimensional object detection program, and movable body apparatus control system
JP2009175932A (en) Traveling area detection device and method for mobile robot
Kellner et al. Road curb detection based on different elevation mapping techniques
TW201433774A (en) Vehicle specifications measurement processing device, vehicle specifications measuring method, and recording medium
JP3079841B2 (en) Road shape and own vehicle position measurement device
JP4270386B2 (en) Moving body moving amount calculation device
JP2006053754A (en) Plane detection apparatus and detection method
US11904843B2 (en) Autonomous parking systems and methods for vehicles
Weber et al. New results in stereo-based automatic vehicle guidance
JP5981284B2 (en) Object detection device and object detection method
Nedevschi et al. Online extrinsic parameters calibration for stereovision systems used in far-range detection vehicle applications
JP3304905B2 (en) Object tracking recognition device
JP4106163B2 (en) Obstacle detection apparatus and method
Fang et al. Automatic roadblock identification algorithm for unmanned vehicles based on binocular vision
García-García et al. 3D visual odometry for GPS navigation assistance
JP7334489B2 (en) Position estimation device and computer program
WO2006123438A1 (en) Method of detecting planar road region and obstruction using stereoscopic image

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050811

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20071122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081217

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: 20090210

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090218

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120306

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130306

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130306

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140306

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350