JPH0410080A - Target area identification method in image processing - Google Patents

Target area identification method in image processing

Info

Publication number
JPH0410080A
JPH0410080A JP2112988A JP11298890A JPH0410080A JP H0410080 A JPH0410080 A JP H0410080A JP 2112988 A JP2112988 A JP 2112988A JP 11298890 A JP11298890 A JP 11298890A JP H0410080 A JPH0410080 A JP H0410080A
Authority
JP
Japan
Prior art keywords
area
boundary
image
value
road
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.)
Granted
Application number
JP2112988A
Other languages
Japanese (ja)
Other versions
JP2915067B2 (en
Inventor
Yoshiaki Sakagami
義秋 坂上
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
Original Assignee
Honda Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2112988A priority Critical patent/JP2915067B2/en
Publication of JPH0410080A publication Critical patent/JPH0410080A/en
Application granted granted Critical
Publication of JP2915067B2 publication Critical patent/JP2915067B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To shorten the time for processing and to identify an area suitable for automatic travel by expressing the relation of linking boundary points in respective areas with a constructed structure according to an attribute described in a list and identifying the boundary of the objective area from this structure. CONSTITUTION:Based on the relation of connecting label values in the respective areas, the attributes of the boundary points along a dividing line in a fixed direction are calculated and described in the list in the fixed direction and based on the relation of connecting the label values in the respective areas, the attributes of the boundary points along the boundary line of the divided area in a certain direction intersecting orthogonally with the fixed direction are calculated and described in the list in the fixed direction. Based on the attributes described in the respective lists, the linked length of the lists in the direction intersecting orthogonally with the fixed direction is calculated, and the sequence of the boundary points corresponding to the list having more than prescribed length is judged as the boundary of the objective area. Then, the boundary of the objective area is identified. In such a manner, the boundary of the objective area is identified from the constructed structure. Thus, the time for processing is shortened and the automatic travel is attained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像処理において対象領域と背景領域との境界
を求めて対象領域を抽出する対象領域識別方法に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a target area identification method for extracting a target area by determining the boundary between a target area and a background area in image processing.

〔従来の技術〕[Conventional technology]

自動車の自律走行には、画像処理による走行路判別の技
術が必要とされている。従来、画像分割領域から道路端
や走行コースを求めるには、得られた走行コース領域と
背景領域との境界を逐次追跡して境界線に対応する点列
群を求めることにより行われていた。つまり、走行路領
域の境界部に位置する画素をこの境界に沿って一つ一つ
逐次追跡し、この追跡の跡を点列群とし、この点列群に
基づいて道路端を判断していた。
Autonomous driving of automobiles requires technology for determining driving routes using image processing. Conventionally, road edges and driving courses have been determined from image segmentation regions by sequentially tracing the boundaries between the obtained driving course regions and the background region to obtain point sequences corresponding to the boundary lines. In other words, the pixels located at the boundary of the driving road area were sequentially tracked one by one along this boundary, the traces of this tracking were made into a series of points, and the edge of the road was determined based on this series of points. .

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このため、従来の走行領域の境界端を求める方法におい
ては、求まる点列群の数が多くなる。従って、走行路領
域の境界を多角形で近似し、余分な点を間引く必要があ
り、処理に時間がかかる。
For this reason, in the conventional method of determining the boundary edge of a travel region, the number of point sequences to be determined increases. Therefore, it is necessary to approximate the boundary of the travel road area with a polygon and thin out unnecessary points, which takes time.

また、画像処理の結果得られる走行路領域の境界は滑ら
かなものであれば良いが、実際にはこの境界の形状が複
雑になる。従って、複数の領域について境界の画素を逐
次追跡することにより得られるデータは大量になり、こ
の結果、処理に時間がかかる。このように処理時間がか
かると自立走行の自動走行に支障を来たすことになる。
Further, although it is sufficient that the boundaries of the travel path area obtained as a result of image processing are smooth, in reality, the shape of these boundaries becomes complex. Therefore, a large amount of data is obtained by sequentially tracking boundary pixels for a plurality of regions, and as a result, it takes time to process. If the processing time takes such a long time, it will interfere with self-sustaining automatic driving.

〔課題を解決するための手段〕[Means to solve the problem]

本発明はこのような課題を解消するためになされたもの
で、画像分割された各領域にラベル付けされた画像を一
定方向の区分線により区分し、定方向に直交する方向の
リストを区分線毎に作成し、区分線に沿って画像走査し
て各領域のラベル値の変化点を識別することにより区分
線と各領域の境界線との交点に位置する境界点を求めて
一定方向におけるリストを境界点毎に作成し、各領域の
ラベル値の接続関係に基づいて一定方向における区分線
に沿った境界点の属性を求めて一定方向のリストに属性
を記述し、各領域のラベル値の接続関係に基づいて一定
方向に直交する方向における分割領域の境界線に沿った
境界点の属性を求めて一定方向のリストに属性を記述し
、各リストに記述された属性に基づいて一定方向に直交
する方向のリストの連結長さを求め、長さが所定長さ以
上のリストに対応する境界点の点列を対象領域の境界に
該当するものと判断し、対象領域の境界を識別するもの
である。
The present invention has been made to solve this problem, and it divides an image labeled into each divided image area using dividing lines in a certain direction, and creates a list of directions orthogonal to the specified direction using dividing lines. Create a list in a certain direction by scanning the image along the dividing line and identifying the change point of the label value of each area to find the boundary point located at the intersection of the dividing line and the boundary line of each area. is created for each boundary point, the attributes of the boundary points along the dividing line in a certain direction are determined based on the connection relationship of the label values of each area, the attributes are written in a list in a certain direction, and the attributes of the label values of each area are calculated. Based on the connection relationship, find the attributes of the boundary points along the boundary line of the divided area in the direction orthogonal to a certain direction, write the attributes in a list in a certain direction, and then move in a certain direction based on the attributes described in each list. A method that determines the concatenated length of lists in orthogonal directions, determines that the sequence of boundary points corresponding to a list with a length greater than a predetermined length corresponds to the boundary of the target area, and identifies the boundary of the target area. It is.

〔作用〕[Effect]

リストに記述された属性により、各領域の境界点の連結
関係が構造化されたストラフチャにおいて表現され、こ
のストラフチャから対象領域の境界が識別される。
By the attributes described in the list, the connection relationship between the boundary points of each area is expressed in a structured strafture, and the boundary of the target area is identified from this strafture.

〔実施例〕〔Example〕

本発明の一実施例によるカラー画像処理装置における対
象領域識別方法を、自律走行車の走行制御に適用した場
合について以下に説明する。本実施例の方法により、走
行車の走行コースは自動的に認識され、走行車は認識さ
れた走行コースに基づいてステアリングの操舵角やエン
ジンへの燃料噴出量などを決定し、自律走行する。
A case where a target area identification method in a color image processing apparatus according to an embodiment of the present invention is applied to driving control of an autonomous vehicle will be described below. According to the method of this embodiment, the traveling course of the vehicle is automatically recognized, and the vehicle autonomously travels by determining the steering angle, the amount of fuel to be injected into the engine, etc. based on the recognized traveling course.

第45図は本実施例によるカラー画像処理装置全体の概
略構成を示すブロック図である。
FIG. 45 is a block diagram showing a schematic configuration of the entire color image processing apparatus according to this embodiment.

カラー画像処理装置は、道路情報を撮像するカラーカメ
ラ101と、撮像されたRGB情報をISH変換するI
SH変換部102と、ISH変換された画像情報から道
路候補領域等を抽出するカラー処理部103と、カラー
処理された画像についてラベリング処理を施すラベリン
グハード部104と、ラベリングされた画像領域につい
て併合処理等を実行するCPU処理部105とに大別さ
れる。ISH変換部102は、カラーカメラ入力ボード
、ISH変換ボードおよびフィルタ等によって構成され
ている。
The color image processing device includes a color camera 101 that captures road information, and an I/O camera that performs ISH conversion on the captured RGB information.
An SH conversion unit 102, a color processing unit 103 that extracts road candidate areas etc. from the ISH converted image information, a labeling hardware unit 104 that performs labeling processing on the color-processed image, and a merging process on the labeled image areas. It is roughly divided into a CPU processing unit 105 that executes the following operations. The ISH converting unit 102 includes a color camera input board, an ISH converting board, a filter, and the like.

第2図はこのカラー画像処理装置における画像処理方法
を示す概略のフローチャートである。
FIG. 2 is a schematic flowchart showing an image processing method in this color image processing apparatus.

カラーカメラ101により道路画像106がRGB情報
として取り込まれ、ISH変換部102において明度(
I)、彩度(S)2色相(H)の各画像に変換される(
ステップ201)。これら各画像を基にしてカラー処理
部103において走行コースの基になる道路候補領域が
抽出される(ステップ202)。ここで、CPUのステ
ータスレジスタにある低輝度のしきい値存在フラグがオ
ンしているか否かを判断する(ステップ203)。この
フラグは取り込まれた原画像に影や変色部分などの低輝
度領域が有るか否かを示すフラグであり、フラグがオン
していればカラー処理部103において低輝度領域が抽
出される(ステップ204)。抽出された道路候補領域
および低輝度領域はラベリングハード部104において
ラベル付けされ、各領域間の接続関係が判断される。こ
の判断結果に基づき、各領域が併合すべき関係にある場
合にはCPU処理部105においてマージ(併合)処理
が実行される(ステップ205)。
A road image 106 is captured by the color camera 101 as RGB information, and the ISH conversion unit 102 converts the brightness (
I), chroma (S), and hue (H) are converted into images (
Step 201). Based on each of these images, the color processing unit 103 extracts a road candidate area that will become the basis of a driving course (step 202). Here, it is determined whether the low brightness threshold existence flag in the status register of the CPU is on (step 203). This flag is a flag indicating whether or not there is a low brightness area such as a shadow or a discolored part in the captured original image. If the flag is on, the low brightness area is extracted in the color processing unit 103 (step 204). The extracted road candidate areas and low-luminance areas are labeled by the labeling hardware unit 104, and the connection relationship between each area is determined. Based on the result of this determination, if the areas are in a relationship that should be merged, the CPU processing unit 105 executes a merge process (step 205).

次に、CPUのステータスレジスタにある高輝度のしき
い値存在フラグがオンしているか否かを判断する(ステ
ップ206)。ステップ203 (Zおいて低輝度のし
きい値存在フラグがオンしていない場合には、直ちにこ
のステップ206の処理が実行される。この高輝度のし
きい値存在フラグは、取り込まれた原画像に日向や変色
部分などの高輝度領域が有るか否かを示すフラグであり
、フラグがオンしていればカラー処理部103において
高輝度領域が抽出される(ステップ207)。
Next, it is determined whether the high brightness threshold presence flag in the CPU status register is on (step 206). Step 203 (If the low-luminance threshold existence flag is not turned on in Z, the process of step 206 is executed immediately. This high-luminance threshold existence flag is This flag indicates whether there is a high brightness area such as a sunny spot or a discolored area. If the flag is on, the high brightness area is extracted in the color processing unit 103 (step 207).

抽出された道路候補領域および高輝度領域はラベリング
ハード部104においてラベル付けされ、各領域間の接
続関係が判断される。この判断結果に基づき、各領域が
併合すべき関係にある場合にはCPU処理部105にお
いてマージ(併合)処理が実行される(ステップ208
)。
The extracted road candidate areas and high brightness areas are labeled by the labeling hardware unit 104, and the connection relationship between each area is determined. Based on the result of this determination, if the areas are in a relationship that should be merged, the CPU processing unit 105 executes a merge process (step 208).
).

このようにして併合された道路候補領域に基づき、領域
の左右の境界端、つまり、道路端の境界線が点列として
求められる。この点列情報により、今回撮像された原画
像に基づく走行コースが認識される(ステップ209)
。この後、ステップ201の処理に戻り、自律走行車の
移動に伴って引き続いて得られる画像情報について上記
と同様な処理が繰り返し実行され、自律走行車の走行制
御が実行される。
Based on the road candidate areas merged in this way, the left and right boundary edges of the areas, that is, the road edge boundaries are determined as a dot sequence. Using this point sequence information, the driving course based on the original image taken this time is recognized (step 209).
. Thereafter, the process returns to step 201, and the same process as described above is repeatedly performed on image information that is subsequently obtained as the autonomous vehicle moves, and travel control of the autonomous vehicle is executed.

次に、以上の処理内容について、第45図に示されたカ
ラー処理装置の構成図に基づいてより詳しく説明する。
Next, the above processing will be explained in more detail based on the configuration diagram of the color processing apparatus shown in FIG. 45.

カラーカメラ101は自律走行車の車体に固定して設置
してあり、このカラーカメラ101には走行車の前方に
位置する道路画像106がRGB情報として撮像される
。ISH変換部102の変換処理部107には、このR
GB情報が与えられる。この変換処理部107において
、後に詳述するFROMテーブルを用いたカラー画像の
ISH変換処理」が実行され、RGBの道路画像情報は
明度(1)画像108.彩度(S)画像109および色
相(H)画像110の各画像情報に変換される。
A color camera 101 is fixedly installed on the body of an autonomous vehicle, and the color camera 101 captures a road image 106 located in front of the vehicle as RGB information. The conversion processing unit 107 of the ISH conversion unit 102 has this R
GB information is given. In this conversion processing unit 107, a color image ISH conversion process using a FROM table, which will be described in detail later, is executed, and the RGB road image information is converted into a brightness (1) image 108. It is converted into image information of a saturation (S) image 109 and a hue (H) image 110.

明度画像108は道路候補領域抽出手段111に与えら
れ、後に詳述する「テンプレート画像を用いた繰返しき
い値処理による走行コースの抽出手法」により、明度画
像に基づく道路候補領域画像113が抽出される。また
、彩度画像109は道路候補領域抽出手段112に与え
られ、上記と同様の手法により、彩度画像に基づく道路
候補領域114が抽出される。この手法における領域区
分のためのしきい値は、後に詳述する「繰返しきい値処
理における特徴量ヒストグラムの形状に基づくしきい値
設定手段」により決定される。求められた各道路候補領
域画像113,114は論理積演算手段115に与えら
れ、明度および彩度から得られた各道路候補領域の共通
部分が取り出され、カラー情報に基づく新たな道路候補
領域画像116になる。
The brightness image 108 is given to the road candidate area extraction means 111, and a road candidate area image 113 based on the brightness image is extracted by a "driving course extraction method by iterative threshold processing using a template image" which will be described in detail later. . Further, the chroma image 109 is provided to the road candidate region extracting means 112, and a road candidate region 114 based on the chroma image is extracted using the same method as described above. The threshold value for region segmentation in this method is determined by "threshold setting means based on the shape of the feature histogram in iterative threshold processing" which will be described in detail later. The obtained road candidate area images 113 and 114 are given to the logical product calculation means 115, and the common part of each road candidate area obtained from the brightness and saturation is extracted, and a new road candidate area image is created based on the color information. It becomes 116.

また、明度画像108から抽出した道路候補領域に低輝
度領域が繋がっている場合には、CPUのステータスレ
ジスタ117に有る低輝度のしきい値存在フラグがオン
する。このフラグがオンしている場合に、低輝度領域抽
出手段118は明度画像108を取り込む。そして、後
に詳述する[明るさの違いに注目した走行コースからの
影や高輝度部分の抽出手段」により、低輝度領域を抽出
する。抽出された低輝度領域は低輝度画像119になる
。この低輝度領域画像119は、論理積演算手段120
において、彩度画像109から抽出された道路候補領域
画像114と論理積が取られ、低輝度領域のうちで道路
候補領域と似た彩度の領域が抽出される。抽出されたこ
の低輝度領域の画像情報は、道路候補領域画像116に
加えられる。
Furthermore, if a low brightness area is connected to the road candidate area extracted from the brightness image 108, the low brightness threshold presence flag in the status register 117 of the CPU is turned on. When this flag is on, the low brightness area extraction means 118 captures the brightness image 108. Then, the low-luminance area is extracted using a ``extraction means for extracting shadows and high-luminance areas from the driving course that focuses on differences in brightness'', which will be described in detail later. The extracted low brightness area becomes a low brightness image 119. This low brightness area image 119 is processed by a logical product calculation means 120.
In , a logical product is performed with the road candidate region image 114 extracted from the chroma image 109, and a region with a saturation similar to the road candidate region is extracted from among the low luminance regions. The extracted image information of this low brightness area is added to the road candidate area image 116.

また、明度画像108に高輝度領域が存在している場合
には、カラー処理部のステータスレジスタ117にある
高輝度のしきい値存在フラグがオンする。このフラグが
オンしている場合に、高輝度領域抽出手段121は明度
画像108を取り込む。そして、後に詳述する「明るさ
の違いに注目した走行コースからの影や高輝度部分の抽
出手段」により、高輝度領域を抽出する。抽出された高
輝度領域は高輝度領域画像122になる。この高輝度領
域画像122は、論理積演算手段123において、彩度
画像109から抽出された道路候補領域画像114と論
理積が取られ、高輝度領域のうちで道路候補領域と似た
彩度の領域が抽出される。
Furthermore, if a high brightness area exists in the brightness image 108, the high brightness threshold presence flag in the status register 117 of the color processing section is turned on. When this flag is on, the high brightness area extraction means 121 captures the brightness image 108. Then, the high-brightness area is extracted using a ``extraction means for extracting shadows and high-brightness areas from the driving course that focuses on differences in brightness'', which will be described in detail later. The extracted high brightness area becomes a high brightness area image 122. This high brightness area image 122 is logically ANDed with the road candidate area image 114 extracted from the saturation image 109 in the logical product calculation means 123, and the high brightness area has a saturation similar to that of the road candidate area. A region is extracted.

抽出されたこの高輝度領域の画像情報は、道路候補領域
画像116に加えられる。
The extracted image information of this high brightness area is added to the road candidate area image 116.

上記各手段により、道路候補領域画像116には、画素
値1の道路候補領域画像1131画素値2の低輝度領域
画像119および画素値3の高輝度領域画像122が含
まれる。
By each of the above means, the road candidate area image 116 includes a road candidate area image 113 with a pixel value of 1, a low brightness area image 119 with a pixel value of 2, and a high brightness area image 122 with a pixel value of 3.

道路候補領域画像116はラベリング処理部124に与
えられる。ラベリング処理部124は与えられた画像の
各領域にラベル付けをし、ラベル画像126を作成する
。また、これと同時に、ラベリング処理部124は同一
ラベル領域の面積や重心などを演算する。これらの各演
算値はラベリング処理部124に対応した演算値125
になる。このラベリング処理は、後に詳述する「ラベリ
ング処理装置」によって実行される。
The road candidate area image 116 is provided to the labeling processing section 124. The labeling processing unit 124 labels each region of the given image and creates a label image 126. At the same time, the labeling processing unit 124 calculates the area, center of gravity, etc. of the same label area. Each of these calculated values is calculated as a calculated value 125 corresponding to the labeling processing unit 124.
become. This labeling process is executed by a "labeling processing device" which will be described in detail later.

CPUはラベル画像126を小領域除去手段127に取
り込む。ここで、ノイズ等によって生じた小領域や地平
線位置より重心が上に位置する領域は、道路領域に該当
するものではないものとし、これら領域は各ラベル画像
の中から除去される。小領域除去手段127により、道
路候補領域から小領域が除去されたラベル画像は、新た
なラベル画像128になる。また、各領域に付けられた
ラベル毎の演算値125(特徴量)の内、小領域除去手
段127によって除去されなかった各領域の特徴量はり
スト1に記述される。
The CPU takes the label image 126 into the small area removing means 127. Here, it is assumed that small areas caused by noise or the like and areas whose center of gravity is located above the horizon position do not correspond to road areas, and these areas are removed from each label image. The label image from which the small area has been removed from the road candidate area by the small area removing means 127 becomes a new label image 128 . Furthermore, among the computed values 125 (feature amounts) for each label attached to each region, each region that has not been removed by the small region removal means 127 is described in the feature amount list 1.

リスト1に記憶された特徴量129.ラベル画像128
.道路画像116に基づいて、道路候補領域画像の各ラ
ベル領域と低輝度領域画像の各ラベル画像、および道路
候補領域画像の各ラベル領域と高輝度領域画像の各ラベ
ル画像が併合すべき関係にある場合には、領域併合手段
130において併合処理が実行され、新たなラベル画像
131がメモリ1に記憶される。以上の併合処理は、後
に詳述する「複数の領域の併合手段」により実行される
Feature amount 129 stored in list 1. Label image 128
.. Based on the road image 116, each label area of the road candidate area image and each label image of the low brightness area image, and each label area of the road candidate area image and each label image of the high brightness area image are in a relationship that should be merged. In this case, the area merging means 130 executes the merging process, and a new label image 131 is stored in the memory 1. The above merging process is executed by a "multiple area merging means" which will be described in detail later.

最終的に得られたラベル画像131に基づいて道路領域
の左右端の道路位置座標132が演算される。この道路
端位置座標132に基づき、道路端に相当する点列デー
タ133が求まる。この道路端を求める処理は、後に詳
述する「走行可能範囲を求める手段」、並びに本発明の
特徴である「多様な形状の走行コースの内部表現手法」
により実行される。この点列データ133は、自立走行
車の走行制御のための画像処理データ統括管理を行うデ
ータ管理部へ送出され、カラー画像処理が終了する。
Road position coordinates 132 of the left and right ends of the road area are calculated based on the label image 131 finally obtained. Based on the road edge position coordinates 132, point sequence data 133 corresponding to the road edge is determined. This process of determining the road edge is a "means for determining a drivable range" which will be described in detail later, as well as a "method for internally expressing travel courses of various shapes" which is a feature of the present invention.
Executed by This point sequence data 133 is sent to a data management unit that performs overall management of image processing data for travel control of the autonomous vehicle, and color image processing is completed.

次に、カラーカメラで撮像して得られたRGBデータを
、明度I、彩彩度8包 変換するFROMテーブルを用いたカラー画像のISH
変換処理」について、第3図を用いて以下に説明する。
Next, ISH of a color image using a FROM table that converts the RGB data obtained by imaging with a color camera into 8 envelopes of brightness I and saturation.
The "conversion process" will be explained below using FIG.

まず、カラーカメラから原画像301をRGBデータと
して入力する。原画像301にはRGBの各データが混
在しているため、RGBデータの各成分を分離する。そ
して、分離した各RGBデータをR画像メモリ302,
0画像メモリ303および8画像メモリ304の3つの
各画像メモリに各々別個に記憶する。これら各R,G、
B画像メモリ302〜304は8ビツトの階調を持った
複数の画素値から構成されており、次のようにISH変
換される。
First, an original image 301 is input as RGB data from a color camera. Since the original image 301 contains a mixture of RGB data, each component of the RGB data is separated. Then, each separated RGB data is stored in an R image memory 302,
The images are stored separately in each of three image memories, 0 image memory 303 and 8 image memory 304. Each of these R, G,
The B image memories 302 to 304 are composed of a plurality of pixel values having 8-bit gradation, and are subjected to ISH conversion as follows.

まず、8ビツトの各RGBデータを読み出す際に上位の
6ビツトのみを読みだし、下位2ビツトを切り捨てる。
First, when reading each 8-bit RGB data, only the upper 6 bits are read and the lower 2 bits are discarded.

つまり、上位6ビツトをとることにより、8階調の画素
値を6階調の画素値に近似する。この上位6ビツトによ
る数値は16進数で00〜3F (hex)の間で変化
する(切り捨てた下位2ビツトを考慮すると00〜FC
(hex)の間で変化する)。また、この上位6ビツト
の値を40(heX)で割った数値をそれぞれR,G。
That is, by taking the upper 6 bits, a pixel value of 8 gradations is approximated to a pixel value of 6 gradations. The value of the upper 6 bits changes between 00 and 3F (hex) in hexadecimal (00 to FC when the lower 2 bits are rounded down).
(hex)). Also, the values obtained by dividing the value of the upper 6 bits by 40 (heX) are R and G, respectively.

B値とする。これらR,G、Bの6値は実数の0から約
1までの範囲で変化する。
Let it be the B value. These six values of R, G, and B vary in the range of real numbers from 0 to about 1.

R,G、Bの6値を(R+G十B)で割った値をそれぞ
れr、g、bとすると、R,G、B値からI、S、H値
への変換は次式に従って行われる。
If the values obtained by dividing the six values of R, G, and B by (R + G + B) are r, g, and b, respectively, then the conversion from R, G, and B values to I, S, and H values is performed according to the following formula. .

ここで、min (r、g、b)は、r、g、bの各特
徴量のうちの最少の値を持つ特徴量の値を示す。
Here, min (r, g, b) indicates the value of the feature amount having the minimum value among the feature amounts r, g, and b.

1−  (R+G+B)/3          ・・
・ (1)S−1−(1/3)  台 min  (r
、  g、  b)H=1/2+ (1/π)  ・a
rctan ((3) 1/2(g−b)  /  (
2r−g−b)  1この変換はラスラスキャン類にR
,G、Bの各画素毎に行われ、変換された各I、S、H
値は全て0から1までの値とる実数となる。ROM30
5にはRGBから明度Iへの変換テーブルデータ、RO
M306にはRGBから彩度Sへの変換テーブルデータ
、ROM307にはRGBから色相Hへの変換テーブル
データが記憶されている。
1- (R+G+B)/3...
・ (1) S-1-(1/3) units min (r
, g, b) H=1/2+ (1/π) ・a
rctan ((3) 1/2(g-b) / (
2r-g-b) 1 This transformation is R
, G, B, and each converted I, S, H
All values are real numbers ranging from 0 to 1. ROM30
5 contains conversion table data from RGB to brightness I, RO
M306 stores conversion table data from RGB to saturation S, and ROM 307 stores conversion table data from RGB to hue H.

これら各ROM305〜307はルックアップテーブル
として機能する。また、各ROM305〜307にデー
タが記憶されるアドレスは、変換前の各R,G、B値の
8ビツトの数値のうち、上位6ビツトの数値によって定
まる。なお、各ROM305〜307の記憶容量は18
ビツト(−256にバイト)である。
Each of these ROMs 305-307 functions as a lookup table. Further, the address at which data is stored in each ROM 305-307 is determined by the upper 6 bits of the 8-bit values of each R, G, and B value before conversion. The storage capacity of each ROM 305 to 307 is 18
bits (-256 bytes).

ROM305,306に記憶された各特徴量はCPUか
らの取り込み命令に応じて明度データ308、彩度デー
タ309として即座に読み出され、必要とされる画像処
理にリアルタイムに供給される。また、ROM307か
ら読み出された色相データ310の特徴量は、さらに、
3X3平均値フイルタ311によってノイズが除去され
て平均化される。このため、各画像処理に供される色相
データ312は平滑化されたノイズのないデータとなる
。また、読み出された各特徴量データ(明度308.彩
度3091色相310および312)は下位2ビツトが
0で、上位6ビツトが有効な8ビツトの近似データであ
る。
The feature quantities stored in the ROMs 305 and 306 are immediately read out as brightness data 308 and chroma data 309 in response to an import command from the CPU, and are supplied to necessary image processing in real time. Furthermore, the feature amount of the hue data 310 read out from the ROM 307 is as follows:
Noise is removed and averaged by a 3×3 average value filter 311. Therefore, the hue data 312 used for each image process is smoothed data without noise. Further, each of the read feature data (brightness 308, saturation 3091, hue 310 and 312) is 8-bit approximate data in which the lower 2 bits are 0 and the upper 6 bits are valid.

次に、本アルゴリズムを用いたIH3変換処理例につい
て、本アルゴリズムを用いないIH9変換処理例と比較
しつつ、第4図〜第7図を参照して説明する。
Next, an example of IH3 conversion processing using this algorithm will be described with reference to FIGS. 4 to 7, while comparing it with an example of IH9 conversion processing that does not use this algorithm.

各図の(a)はカラーカメラに撮像された原画像の概略
である。つまり、第4図(a)は走行路が遠方でカーブ
する情景を示し、走行路の片側にはガードレールが設置
されており、このガードレールの遠方には樹木が生い茂
っている。第5図(a)は走行路端が雑草等によって区
画されている走行路を示し、遠方には住居や樹木等があ
る情景になっている。第6図(a)は夜間の高速道路に
おける走行路を示し、路面は月明りおよび照明燈によっ
てわずかな光が照らされている情景になっている。第7
図(a)は天気の良い日中の走行路を示し、走行路上に
はブロック塀の中にある樹木による影ができている情景
になっている。
(a) of each figure is an outline of an original image captured by a color camera. In other words, FIG. 4(a) shows a scene in which a running road curves in the distance, a guardrail is installed on one side of the running road, and trees are growing in the distance from this guardrail. FIG. 5(a) shows a road where the edges of the road are divided by weeds, etc., and there are houses, trees, etc. in the distance. FIG. 6(a) shows a driving route on a highway at night, and the road surface is slightly illuminated by moonlight and lamps. 7th
Figure (a) shows a driving route on a sunny day, and the driving path is shaded by trees inside a block wall.

また、第4図から第7図の各図の(b−1)および(b
−2)は明度Iを特徴量とするヒストグラム、各図の(
c−1)および(c−2)は彩度Sを特徴量とするヒス
トグラム、各図の(d−1)および(d−2)は3×3
平均値フイルタ311にかける前の色相H′を特徴間と
するヒストグラム、各図の(e−1)および(e−2)
は3×3平均値フイルタ311にかけた後の色相Hを特
徴間とするヒストグラムである。
In addition, (b-1) and (b-1) of each figure from FIG. 4 to FIG.
-2) is a histogram with brightness I as a feature, and (
c-1) and (c-2) are histograms with saturation S as a feature, and (d-1) and (d-2) in each figure are 3×3
Histograms with hue H' as a feature before being applied to the average value filter 311, (e-1) and (e-2) in each figure
is a histogram whose feature is the hue H after being applied to the 3×3 average value filter 311.

各ヒストグラムの縦軸は各特徴間の画素数を示し、全画
面の1/4を最大としている。また、各ヒストグラムの
横軸は明度11彩度S1色相H′Hの各特徴間の度合い
を示す。この各特徴間の度合いは原点から遠ざかる程強
まるように表示されており、0〜F F (h e x
)の各数値に割り当てられた各特徴間の度合いを64分
割して表示しである。また、原画像の画素数は512X
512より若干少なくなっている。これは画像周辺部に
はR,G、Bの各データが全てOの部分があるためであ
り、各ヒストグラムはこの部分を含んだデータ値により
表されているからである。
The vertical axis of each histogram indicates the number of pixels between each feature, and the maximum is 1/4 of the entire screen. Further, the horizontal axis of each histogram indicates the degree of each feature of lightness, saturation, S1, and hue H'H. The degrees between these features are displayed so that they become stronger as they move away from the origin, and range from 0 to FF (h e x
) The degree between each feature assigned to each numerical value is divided into 64 and displayed. Also, the number of pixels of the original image is 512X
It is slightly smaller than 512. This is because there is a portion in the periphery of the image where all R, G, and B data are O, and each histogram is represented by data values that include this portion.

また、各図の(b−1)、  (c−1)、  (d 
−1)、(e−1)は従来手法に基づいて得られたヒス
トグラムであり、各画像メモリにCPUが直接アクセス
し、R,G、Bデータを変換式に従ってI、S、Hデー
タに変換することにより得られたものである。これに対
して各図の(b−2)。
Also, (b-1), (c-1), (d
-1) and (e-1) are histograms obtained based on the conventional method, in which the CPU directly accesses each image memory and converts R, G, and B data into I, S, and H data according to the conversion formula. This was obtained by In contrast, (b-2) in each figure.

(c−2)、  (d−2)、  (e−2)は本実施
例の手法によるアルゴリズムに基づいて得られたヒスト
グラムであり、ROMに6ビツト階調のRGBデータか
らI、S、Hの各特徴間への変換テーブルを記憶し、こ
れを読み出すことにより得られたものである。
(c-2), (d-2), and (e-2) are histograms obtained based on the algorithm according to the method of this embodiment. This is obtained by storing and reading out a conversion table between each feature.

第4図〜第7図の各(b−1)、(b−2)および各(
c−1)、  (c−2)に示されるように、明度Iお
よび彩度Sについては、本手法によるヒストグラム分布
と従来手法によるヒストグラム分布とには大差がないこ
とが分かる。このことは、RGBデータをISHデータ
に変換する本手法による機能は、従来手法による変換機
能に比較して劣る面がないことを示している。一方、各
図の(d−1)、(d−2)に示される3X3平均値フ
イルタ311にかける前の特徴間である色相H′のヒス
トグラム分布は、従来手法と本手法とでは全体的な傾向
が変わっている。これは本例に用いたような画像では、
RGBデータから色相Hへ変換する式の中の(g−b)
および(2r−g−b)の値は0付近の極めて限定され
た値しか取らないため、本手法によるデータの6ビツト
への圧縮により情報が極端に離散化してしまったことに
起因する。
Each (b-1), (b-2) and each (
As shown in c-1) and (c-2), it can be seen that there is not much difference in brightness I and saturation S between the histogram distribution according to the present method and the histogram distribution according to the conventional method. This shows that the function of converting RGB data into ISH data according to the present method is not inferior to the conversion function according to the conventional method. On the other hand, the histogram distribution of the hue H' between the features before being applied to the 3X3 average value filter 311 shown in (d-1) and (d-2) of each figure is different from the conventional method and the present method. Trends are changing. This means that for images like the one used in this example,
(g-b) in the formula to convert RGB data to hue H
Since the values of (2r-g-b) take only extremely limited values around 0, this is because the information is extremely discretized by compressing data to 6 bits using this method.

しかじ、この色相H′を3×3平均値フイルタ311に
かけることにより得られるヒストグラム分布は、各図の
(e−1)、  (e−2)に示されるように、従来手
法による分布に十分対応するものになっている。色相デ
ータの計算値はRGBデータの小さな雑音によって容易
に変化する不安定な値であり、また、色相の画像には非
常に大きなノイズがある。このため、本手法のように、
色相変換の計算値結果について何等かの平滑化を行うこ
とは妥当な処理であり、この平滑化を行うことにより特
徴間を6ビツトに圧縮して処理しても同等問題は生じな
いことが理解される。なお、色相の計算値は雑音によっ
て容易に変化する不安定な値であるからこそ、色相H′
のデータを平均値フィルタに通すことにより、従来手法
によるヒストグラム分布と同様な分布が得られた。
However, as shown in (e-1) and (e-2) of each figure, the histogram distribution obtained by applying this hue H' to the 3×3 average value filter 311 is different from the distribution obtained by the conventional method. It is fully compatible. The calculated value of the hue data is an unstable value that easily changes due to small noise in the RGB data, and the hue image has very large noise. For this reason, as in this method,
It is reasonable to perform some kind of smoothing on the calculated value results of hue conversion, and it is understood that the same problem will not occur even if the features are compressed to 6 bits by performing this smoothing. be done. Note that the calculated value of hue is an unstable value that easily changes due to noise, so the hue H′
By passing the data through an average value filter, a distribution similar to the histogram distribution obtained by the conventional method was obtained.

このように、ROM305〜307をルックアップテー
ブルとして用いてI、S、f(の各特徴間を予め変換処
理することにより、従来のように処理が必要とされる度
毎に各画像メモリにCPUがアクセスして演算する必要
は無(なる。この結果、本実施例によるデータ変換の際
の演算処理速度はビデオレートで高速に実行することが
可能となり、処理速度が向上する。また、上述のR,G
、BデータからI、S、Hデータへの変換式が変わって
も、同一のハードウェアによって対処することが可能で
ある。つまり、この変換式の変更が与える影響は、RO
M305〜307の記憶内容の変化だけである。このた
め、ハードウェアは変換式の変更によっては変化しない
。また、R,G、Hの各画素値を6ビツトに圧縮したた
め、ハードウェアの量を小さくすることが可能になる。
In this way, by using the ROMs 305 to 307 as look-up tables to perform conversion processing between the features of I, S, and f (in advance), the CPU can store each image memory in each image memory each time processing is required, unlike conventional methods. There is no need to access and perform calculations.As a result, the calculation processing speed during data conversion according to this embodiment can be executed at high speed at the video rate, and the processing speed is improved. R,G
, B data to I, S, H data even if the conversion formula changes, it can be handled by the same hardware. In other words, the effect of changing this conversion formula is RO
The only change is the memory contents of M305 to M307. Therefore, the hardware does not change even if the conversion formula is changed. Furthermore, since each R, G, and H pixel value is compressed to 6 bits, the amount of hardware can be reduced.

さらに、ルックアップテーブルから色相Hを読み出す際
に3×3平均値フイルタ311を通すことにより、デー
タを6ビツトに圧縮したことによる悪影響、例えば、ヒ
ストグラムの離散化等を防ぐことができる。
Furthermore, by passing the hue H through the 3×3 average value filter 311 when reading out the hue H from the lookup table, it is possible to prevent adverse effects caused by compressing the data to 6 bits, such as discretization of the histogram.

次に、「繰返しきい値処理における特徴量ヒストグラム
の形状に基づくしきい値設定手段」について説明する。
Next, "threshold setting means based on the shape of the feature amount histogram in repeated threshold processing" will be explained.

この手段は走行路領域を抽出するカラー画像処理の前処
理として行われる。
This means is performed as a pre-processing of color image processing for extracting the travel road area.

第8図はこの処理過程の概略を示すフローチャートであ
り、走行車両に設置されたカラーカメラから得られた原
画像データのコントラストが低い場合における処理を示
す。
FIG. 8 is a flowchart showing an outline of this processing process, and shows the processing when the contrast of the original image data obtained from a color camera installed in a running vehicle is low.

まず、カメラから得られた原画像のRGBデジタル画像
データを基にして色の特徴ff1(明度または彩度)に
対する頻度を表すヒストグラムを作成する。このヒスト
グラムの横軸は色の特徴量(明度または彩度)、縦軸は
特徴量の頻度に設定する。
First, a histogram representing the frequency with respect to the color feature ff1 (brightness or saturation) is created based on RGB digital image data of the original image obtained from the camera. The horizontal axis of this histogram is set to the color feature amount (lightness or saturation), and the vertical axis is set to the frequency of the feature amount.

このヒストグラムは原画像のコントラストが低いため、
ヒストグラムの原点側に偏って分布する。
This histogram has low contrast in the original image, so
The distribution is biased towards the origin of the histogram.

また、コントラストの低い画像はモードが単峰形になり
易く、明確な谷が発生しない。このため、−膜内には各
画素値について所定の演算を行って画像強調を行った後
にヒストグラムを作成するのであるが、本手法の場合に
は、ヒストグラムのデータ上でこのヒストグラムを横軸
方向に単に引き伸ばすことにより、画像強調を行う(ス
テップ801)。
Furthermore, images with low contrast tend to have a single peak mode, and no clear valleys occur. Therefore, a histogram is created after image enhancement is performed by performing predetermined calculations on each pixel value in the film, but in the case of this method, this histogram is displayed on the histogram data in the Image enhancement is performed by simply stretching the image (step 801).

そして、強調されたヒストグラムの左端処理(ステップ
802)、および右端処理(ステップ803)を実行す
る。次に、ヒストグラムの頻度の分布状態から特徴量に
対する頻度の大きい仮の頂上(ピーク)、および特徴量
に対する頻度の小さい仮の谷をピーク・谷テーブル上に
設定する(ステップ804)。求まった仮の谷の頻度に
基づいて谷の評価をこのテーブル上で行う(ステップ8
05)。さらに、この谷に隣接するピークに基づいて再
度谷の評価をテーブル上で行う(ステップ806)。最
後に、評価されたピーク・谷テーブルの平滑化を行い、
ピークと谷の相対関係から領域区分の対象領域とこの背
景領域との区分に有効な谷を抽出する(ステップ807
)。
Then, left end processing (step 802) and right end processing (step 803) of the emphasized histogram are executed. Next, from the frequency distribution state of the histogram, a temporary top (peak) with a high frequency for the feature amount and a temporary trough with a low frequency for the feature amount are set on the peak/trough table (step 804). Evaluation of valleys is performed on this table based on the frequency of temporary valleys obtained (step 8).
05). Furthermore, the valley is evaluated again on the table based on the peaks adjacent to this valley (step 806). Finally, smooth the evaluated peak/valley table,
From the relative relationship between peaks and valleys, valleys that are effective for segmenting the target area of area segmentation and this background area are extracted (step 807
).

一方、上記の処理に並行してステップ801で作成され
たヒストグラムに対して大津の判別分析法を適用し、こ
の判別分析法による領域区分しきい値を得る。そして、
得られたしきい値とステップ807で抽出された谷の位
置とを比較し、しきい値の近傍に位置する谷の頻度を真
のしきい値とし、大津の判別分析法によるしきい値を補
正する。
On the other hand, in parallel with the above processing, Otsu's discriminant analysis method is applied to the histogram created in step 801, and area segmentation thresholds based on this discriminant analysis method are obtained. and,
The obtained threshold value is compared with the position of the valley extracted in step 807, the frequency of valleys located near the threshold value is taken as the true threshold value, and the threshold value based on Otsu's discriminant analysis method is determined. to correct.

次に、各処理の詳細について以下に説明する。Next, details of each process will be explained below.

ステップ804における仮のピークおよび仮の谷の設定
は次のように行われる。つまり、特徴量に対する頻度の
分布状態を基にして仮のピークおよび谷を判断する。具
体的には、ヒストグラム上の着目点の左右の隣接点の頻
度により、ピークおよび谷の状態は第9図(a)〜(f
)に図示される6通りの状態に分けられる。ここで、ヒ
ストグラム上の着目点をhl  (添字のiはヒストグ
ラムの横軸に添ってN個の点を均等に割り振った時の任
意の1点を意味し、0〜N−1の値とする)、着目点h
jより特徴量が小さい隣接点をhl−1、着目点h1よ
り特徴量が大きい隣接点をh iiiとする。また、着
目点h1と隣接点h i−1との各頻度の差をピッチT
)If (pH−hl −hj−1) 、隣接点h i
i1と着目点h+との各頻度の差をピッチpi2 (p
H2−h DI −h i )とする。
Setting of a temporary peak and a temporary valley in step 804 is performed as follows. That is, tentative peaks and valleys are determined based on the distribution of frequencies for the feature amounts. Specifically, depending on the frequency of adjacent points on the left and right of the point of interest on the histogram, the states of peaks and valleys are determined as shown in Figures 9(a) to (f).
) is divided into six states shown in the figure. Here, the point of interest on the histogram is hl (the subscript i means any one point when N points are equally distributed along the horizontal axis of the histogram, and the value is from 0 to N-1). ), focus point h
An adjacent point with a smaller feature amount than j is hl-1, and an adjacent point with a larger feature amount than the point of interest h1 is hiii. In addition, the difference in each frequency between the point of interest h1 and the adjacent point h i-1 is calculated by pitch T
)If (pH-hl-hj-1), adjacent point h i
The difference in each frequency between i1 and the point of interest h+ is expressed as pitch pi2 (p
H2-hDI-hi).

i−1〜N−2の範囲(ヒストグラムの両端点は除く)
において、ピーク・谷テーブル値pk tjを以下のよ
うに設定する。すなわち、pilの符号とp+2の符号
が異なる時、(1)  pH≧0、かつ、p12≦0な
らば、テーブル値pktl=1 (2)  p11≦0、かつ、pH2≧0ならば、テー
ブル値pkti=  1 第9図(a)は、p 11> 0、かつ、p 12−0
の状態であり、従ってテーブル値pkti −1である
。同図(b)は、pil>O5かつ、p 12< 0の
状態であり、従ってテーブル値pkti −1である。
Range from i-1 to N-2 (excluding both end points of the histogram)
, the peak/trough table value pk tj is set as follows. That is, when the sign of pil and p+2 are different, (1) If pH≧0 and p12≦0, table value pktl=1 (2) If p11≦0 and pH2≧0, table value pkti=1 FIG. 9(a) shows that p 11 > 0 and p 12-0
Therefore, the table value is pkti -1. In the same figure (b), the state is pil>O5 and p12<0, so the table value is pkti -1.

同図(c)は、p Il−0、かつ、p12< Oの状
態であり、従ってテーブル値pkti −1である。同
図(d)は、p ii< o、かつ、p 12−0の状
態であり、従ってテーブル値pkti=−1である。同
図(e)は、p if< 0、かつ、p12> 0の状
態であり、従ってテーブル値pkt1=−1である。同
図(f)は、p il−0、かつ、p12〉0の状態で
あり、従ってテーブル値pkti −−1である。
In the same figure (c), p Il-0 and p12 < O, and therefore the table value pkti -1. In FIG. 4(d), p ii < o and p 12-0, and therefore the table value pkti=-1. In FIG. 4(e), p if<0 and p12>0, and therefore the table value pkt1=-1. FIG. 2(f) shows a state where p il-0 and p12>0, and therefore the table value pkti −-1.

このようにして隣接する各点の相対的な各頻度の関係か
ら、同図(a)、(b)、(c)の状態はpkti−1
であると演算され、着目点h1は仮のピークと判断され
る。同図(d)、(e)。
In this way, from the relationship of relative frequencies of adjacent points, the states of (a), (b), and (c) in the same figure are pkti-1
, and the point of interest h1 is determined to be a temporary peak. Figures (d) and (e).

(f)の状態はpktl=−1であると演算され、着目
点h1は仮の谷と判断される。
The state of (f) is calculated to be pktl=-1, and the point of interest h1 is determined to be a temporary valley.

また、ステップ805における頻度による谷の評価処理
は次のように行われる。つまり、i−1〜N−2におい
て着目点hiが仮のピークであるとき(pktl−1)
、 (1)  隣接点hjと着目点h+との比が0.1より
小さい(hj /hl <0.1)隣接点hjが着目点
h1の左側にあるならば、隣接点hjに対応するテーブ
ル値pk tjを−1にする(pktj  =−1) 
 。
Furthermore, the process of evaluating valleys based on frequency in step 805 is performed as follows. In other words, when the point of interest hi is a temporary peak in i-1 to N-2 (pktl-1)
, (1) If the ratio between the adjacent point hj and the point of interest h+ is smaller than 0.1 (hj /hl <0.1) and the adjacent point hj is on the left side of the point of interest h1, then the table corresponding to the adjacent point hj Set the value pk tj to -1 (pktj = -1)
.

(2)隣接点hfflと着目点hl との比が0.1よ
り小さい(hm/hl <0.1)隣接点hmが着目点
h1の右側にあるならば、隣接点hmに対応するテーブ
ル値pktmを−1にする(pkt摺−一1)。
(2) If the ratio between the adjacent point hffl and the point of interest hl is smaller than 0.1 (hm/hl <0.1) and the adjacent point hm is on the right side of the point of interest h1, then the table value corresponding to the adjacent point hm Set pktm to -1 (pkt suri-1).

また、ステップ806における隣接ピークに基づく谷の
評価処理は次のように行われる。
Furthermore, the valley evaluation process based on adjacent peaks in step 806 is performed as follows.

i−0〜N−1において、 (1)着目点hiが仮の谷の時(pktl==1)、 ■谷の左側の仮のピーク(隣接点hk、 テーブル値p
ktk=1)をt opLと呼ぶことにする。
For i-0 to N-1, (1) When the point of interest hi is a temporary valley (pktl==1), ■ A temporary peak on the left side of the valley (adjacent point hk, table value p
ktk=1) will be called topL.

■谷の右側の仮のピーク(隣接点hj、テーブル値pk
tj=1)をtopRと呼ぶことにする。
■Temporary peak on the right side of the valley (adjacent point hj, table value pk
tj=1) will be called topR.

(2)  着目点hiにt opLおよびtopRが共
に存在する時、 ■着目点h+とt opLとの比flcΩ−hj/1o
pL)が着目点h1とtopRとの比r(r−hl/1
opR)より小さければ(47<r)、テーブル値pk
 tjに1を加算する。
(2) When topL and topR both exist at the point of interest hi, ■Ratio between the point of interest h+ and topL flcΩ−hj/1o
pL) is the ratio r(r-hl/1) between the point of interest h1 and topR
opR) is smaller than (47<r), the table value pk
Add 1 to tj.

■比1)(hl/1opL)が比r (hi /1op
R)より大きければ(ρ≧r)、テーブル値pk tk
に1を加算する。
■Ratio 1) (hl/1opL) is ratio r (hi/1op
R), if (ρ≧r), table value pk tk
Add 1 to .

(3)  着目点hiにt opLおよびtopRが共
に存在し、かつ、比1t<0.5、または比rく0.5
ならば、着目点htに対応するテーブル値pktiから
1を減じる。
(3) TopL and topR both exist at the point of interest hi, and the ratio 1t<0.5, or the ratio r<0.5
If so, 1 is subtracted from the table value pkti corresponding to the point of interest ht.

(4)  上記の(3)以外の場合には、テーブル値p
k tiを−4に書き替える。
(4) In cases other than (3) above, the table value p
Rewrite k ti to -4.

(5)  谷の右側にのみ仮のピークtopRが存在す
る時、比r<0.5ならば、テーブル値pk tiから
1を減じる。
(5) When the temporary peak topR exists only on the right side of the valley, if the ratio r<0.5, subtract 1 from the table value pk ti.

(6)  谷の左側にのみ仮のピークtopLが存在す
る時、比1)<0.5ならば、隣接点hjに対応するテ
ーブル値pk tjから1を減じる。
(6) When the temporary peak topL exists only on the left side of the valley, if the ratio 1)<0.5, subtract 1 from the table value pk tj corresponding to the adjacent point hj.

また、ステップ807におけるピーク・谷テーブルの平
滑化処理、つまり、ピーク・谷テーブルpktにおいて
、求まった谷どうしの距離が十分に近い場合には平滑化
処理が次のように行われる。
Furthermore, in the peak/trough table smoothing process in step 807, that is, in the peak/trough table pkt, if the distances between the determined valleys are sufficiently close, the smoothing process is performed as follows.

i−1〜N−1において、着目点h1に対応するテーブ
ル値pktiが−2であり、この谷の右側に位置する谷
のテーブル値pktj も−2であり、しかも、これら
谷どうしの距離(j−i)が所定のしきい値よりも小さ
い時、 (1)  着目点h+の頻度の方が隣接点hjの頻度よ
りも大きければ(hi >hj ) 、テーブル値pk
 tiを0にする(pkti−0)。
In i-1 to N-1, the table value pkti corresponding to the point of interest h1 is -2, the table value pktj of the valley located on the right side of this valley is also -2, and the distance between these valleys ( j−i) is smaller than a predetermined threshold, (1) If the frequency of the point of interest h+ is greater than the frequency of the adjacent point hj (hi > hj), the table value pk
Set ti to 0 (pkti-0).

(2)  着目点hjの頻度の方が隣接点hjの頻度よ
りも小さければ(hl ≦hj)、右側に位置する谷の
テーブル値pktjを0にする(pktj =0)。
(2) If the frequency of the point of interest hj is smaller than the frequency of the adjacent point hj (hl ≦hj), the table value pktj of the valley located on the right side is set to 0 (pktj = 0).

次に、上記方法を用いた具体的な例について以下に説明
する。
Next, a specific example using the above method will be described below.

例えば、第10図(a)に示される特徴量ヒストグラム
が得られた場合を想定する。同図の横軸は明度または彩
度の色の特徴量であり、縦軸はその特徴量の画像におけ
る頻度である。このヒストグラムについて第8図に示さ
れた処理を行うと、同図(b)に示されるピーク・谷テ
ーブルpktのテーブル値は、同図(b)の一番人側の
列に記された1〜8の番号に沿って以下のように推移す
る。この推移の結果、再下段に示された数値が最終のテ
ーブル値として求まる。なお、同図(b)の各テーブル
値が記載されている位置は、同図(a)のヒストグラム
の各特徴ff1A−Lに対応している。つまり、記載さ
れた各テーブル値は、点線で示されるように、その記載
された位置の上方の特徴量に対応している。
For example, assume that the feature histogram shown in FIG. 10(a) is obtained. In the figure, the horizontal axis is the color feature amount of brightness or saturation, and the vertical axis is the frequency of the feature amount in the image. When the processing shown in FIG. 8 is performed on this histogram, the table value of the peak/trough table pkt shown in FIG. The transition is as follows along the numbers 8 to 8. As a result of this transition, the numerical values shown in the lower row are determined as the final table values. Note that the positions where each table value in FIG. 11B corresponds to each feature ff1A-L of the histogram in FIG. That is, each described table value corresponds to the feature amount above the described position, as shown by the dotted line.

まず、特徴量ヒストグラムの左端処理および右端処理を
実行しくステップ802,803)、引き続いて仮ピー
クおよび仮の谷を設定する(ステップ804)。この設
定は前述のステップ804の処理に従って行われ、この
結果得られる各テーブル値は番号1のテーブルに示され
るものとなる。
First, left end processing and right end processing of the feature quantity histogram are performed (steps 802, 803), and subsequently, provisional peaks and provisional valleys are set (step 804). This setting is performed according to the process of step 804 described above, and each table value obtained as a result is shown in the table numbered 1.

次に、頻度による谷の評価(ステップ805)および隣
接ピークに基づく谷の評価(ステップ806)を、前述
の処理に従って行う。
Next, evaluation of valleys based on frequency (step 805) and evaluation of valleys based on adjacent peaks (step 806) are performed according to the process described above.

特徴量がAの谷の場合には谷の右側にtopRのみが存
在し、また、特徴i1Aにおける頻度と谷の右側の仮の
ピークの頻度との比rは0.5以下である(hi /l
 opR<0.5)oこのため、特徴ff1Aに対応す
るテーブル値から1を減じ、この結果、テーブル値は−
2になってテーブルは番号2に示されるテーブルに推移
する。
When the feature amount is a valley of A, only topR exists on the right side of the valley, and the ratio r between the frequency in feature i1A and the frequency of the temporary peak on the right side of the valley is less than 0.5 (hi / l
opR<0.5) o Therefore, 1 is subtracted from the table value corresponding to feature ff1A, resulting in the table value being -
2, the table changes to the table indicated by number 2.

また、特徴量がDの谷の場合には、この谷の両側にto
pLおよびtopRが共に存在する。しかも、この谷の
頻度と左側の仮のピークの頻度との比gは0.5以下で
ある(hl/1opL<0.5)。従って、特徴ff1
Dに対応するテーブル値pk tiから1を減じ、この
結果、テーブル値は−2になる。また、特徴量がDの谷
の両側の仮の各ピーク値の頻度と谷の頻度との各地pお
よび比rは、比「の方が大きい(1)<r)。従って、
谷の右側に位置する仮のピーク(特徴ff1E)のテー
ブル値pk tjに1を加算することにより、テーブル
値は2になる。この結果、ピーク・谷テーブルは番号3
に示されるテーブルになる。
In addition, when the feature amount is a valley of D, there are to
Both pL and topR are present. Furthermore, the ratio g between the frequency of this valley and the frequency of the tentative peak on the left side is less than 0.5 (hl/1opL<0.5). Therefore, the feature ff1
Subtract 1 from the table value pk ti corresponding to D, resulting in a table value of -2. Furthermore, the ratio p and the ratio r between the frequency of each tentative peak value on both sides of the valley with the feature amount D and the frequency of the valley are larger (1)<r). Therefore,
By adding 1 to the table value pk tj of the temporary peak (feature ff1E) located on the right side of the valley, the table value becomes 2. As a result, the peak/trough table is numbered 3.
This results in the table shown in .

また、特徴量がFの谷の両側には共にt opLおよび
topRが存在し、比gまたは比rの一方は0,5より
小さい(g、r<Q、5)。従って、特徴量Fに対応す
るテーブル値pk tlから1を減じ、テーブル値を−
2にする。また、比pは比rより大きい(f!≧r)。
Furthermore, topL and topR exist on both sides of the valley where the feature amount is F, and either the ratio g or the ratio r is smaller than 0.5 (g, r<Q, 5). Therefore, 1 is subtracted from the table value pk tl corresponding to the feature amount F, and the table value is -
Make it 2. Further, the ratio p is larger than the ratio r (f!≧r).

従って、谷の左側に位置する仮のピーク(特徴量E)の
テーブル値pktkに1を加算し、テーブル値を3にす
る。
Therefore, 1 is added to the table value pktk of the temporary peak (feature amount E) located on the left side of the valley, making the table value 3.

この結果、テーブルは番号4に示されるテーブルに推移
する。
As a result, the table transitions to the table indicated by number 4.

また、特徴量がHの谷の両側には共にtopLおよびt
opRが存在し、比gまたは比rの一方が0.5より大
きい(i)、r≧0.5)。従って、特徴量Hに対応す
るテーブル値pk tlを−4に書き替える。また、比
pは比rよりも小さい(g<「)。従って、谷の右側の
仮のピーク(特徴量I)に対応するテーブル値pk t
jに1を加える。
In addition, both topL and t are on both sides of the valley where the feature value is H.
opR exists, and either the ratio g or the ratio r is greater than 0.5 (i), r≧0.5). Therefore, the table value pk tl corresponding to the feature amount H is rewritten to -4. Moreover, the ratio p is smaller than the ratio r (g<"). Therefore, the table value pk t corresponding to the temporary peak (feature quantity I) on the right side of the valley
Add 1 to j.

この結果、特徴jlIに対応するテーブル値は2になり
、テーブルは番号5に示されるテーブルに推移する。
As a result, the table value corresponding to feature jlI becomes 2, and the table transitions to the table indicated by number 5.

また、特徴量Jの谷の両側には共にt opLおよびt
opRが存在し、比rは0.5より小さい(r<0.5
)。従って、この谷に対応するテーブル値pkt+から
1を減じる。また、比gは比rより大きい(1)≧r)
。従って、谷の左側に位置する仮のピーク(特徴ffi
りに対応するテーブル値pk tkに1を加算し、テー
ブル値を3にする。この結果、テーブルは番号6に示さ
れるテーブルに推移する。
Also, on both sides of the valley of the feature J, there are topL and t
opR exists and the ratio r is less than 0.5 (r<0.5
). Therefore, 1 is subtracted from the table value pkt+ corresponding to this valley. Also, the ratio g is larger than the ratio r (1)≧r)
. Therefore, the tentative peak located to the left of the valley (feature ffi
Add 1 to the corresponding table value pk tk to make the table value 3. As a result, the table transitions to the table indicated by number 6.

また、特徴ff1Lの谷は谷の左側にtopLのみが存
在し、比pは0.5より小さいi <0.5)。従って
、この谷に対応するテーブル値pk tiから1を減じ
る。この結果、テーブル値は−2になり、テーブルは番
号7に示されるテーブルに推移する。
Further, in the valley of the feature ff1L, only topL exists on the left side of the valley, and the ratio p is smaller than 0.5 (i<0.5). Therefore, 1 is subtracted from the table value pk ti corresponding to this valley. As a result, the table value becomes -2 and the table transitions to the table indicated by number 7.

次に、このようにして得られた番号7のピーク・谷テー
ブルpktについてデータの平滑化を前述のように行う
(ステップ807)。つまり、特徴量りの谷h1とこの
右側に位置する特徴ff1Fの谷hjとの距離は所定の
しきい値より小さく、かつ、各省のテーブル値は−2で
ある。さらに、特徴ff1Fの谷の頻度は特徴量りの谷
の頻度より太きい(hi≦hj)。従って、特徴量Fの
谷に対応するテーブル値pktjを0にする。この結果
、テーブルは最終的に第10図(b)の最下段に示され
るテーブルになる。
Next, data is smoothed as described above for the peak/trough table pkt number 7 obtained in this way (step 807). In other words, the distance between the valley h1 of the feature quantity and the valley hj of the feature ff1F located on the right side thereof is smaller than a predetermined threshold, and the table value of each province is -2. Furthermore, the frequency of the valleys of the feature ff1F is thicker than the frequency of the valleys of the feature quantity (hi≦hj). Therefore, the table value pktj corresponding to the valley of the feature amount F is set to 0. As a result, the table finally becomes the table shown at the bottom of FIG. 10(b).

この最終的なテーブルのうち、特徴量A、D。Of this final table, feature quantities A and D.

H,J、Lに対応するヒストグラム上の各点が谷として
求まるが、ヒストグラムの両端にある谷A。
Each point on the histogram corresponding to H, J, and L is found as a valley, and valleys A are at both ends of the histogram.

Lは対象にはならず、また、テーブル値が−4の谷(特
徴ff1H)も対象にはならない。すなわち、データ画
像を対象領域と背景領域とに区分するのに有効な谷は、
テーブル値−2が二重丸で囲まれた特徴ff1Dおよび
Jに対応する谷である。これら谷のうち、第10図(a
)のヒストグラムに大津の判別分析法を適用して得られ
た領域区分しきい値に近い谷の頻度が真の領域区分しき
い値になる。
L is not a target, and the valley with a table value of -4 (feature ff1H) is also not a target. In other words, the effective valley for dividing the data image into the target area and the background area is
The table value -2 is the valley corresponding to the double-circled features ff1D and J. Of these valleys, Figure 10 (a
), the frequency of valleys near the region segmentation threshold obtained by applying Otsu's discriminant analysis method to the histogram becomes the true region segmentation threshold.

このように大津の判別分析法のあいまいな結果が補正さ
れることにより、誤差が少なく確度の高い走行路判別を
行うことが可能になる。
By correcting the ambiguous results of Otsu's discriminant analysis method in this way, it becomes possible to perform highly accurate travel route discrimination with few errors.

次に、「テンプレート画像を用いた繰返しきい値処理に
よる走行コースの抽出手法」について説明する。なお、
以下の説明では、自律走行車が草や土等で区切られたコ
ースを走行することを前提にし、走行路領域を抽出する
場合について述べることにする。
Next, a description will be given of a "traveling course extraction method using iterative threshold processing using a template image." In addition,
In the following explanation, it is assumed that the autonomous vehicle travels on a course divided by grass, dirt, etc., and a case will be described in which a traveling road area is extracted.

第11図は走行路認識のアルゴリズムの概要を表すフロ
ーチャートである。
FIG. 11 is a flowchart showing an overview of the algorithm for recognizing the driving route.

まず、走行車に搭載されたカラーCCDカメラにより、
走行路の情頻を撮像する(ステップ1101)。そして
、撮像されたRGBのカラー画像信号をカラーカメラ入
力装置に取り込み、取り込んだRGB原画像データを前
述のようにISHデータに変換する(ステップ1102
)。IsHデータに変換された特微量画像に基づき、前
述のように各特徴量とその画素数との特性を表すヒスト
グラムをカラー画像処理装置で作成する(ステップ11
03)。
First, using a color CCD camera installed in the vehicle,
The condition of the driving route is imaged (step 1101). Then, the captured RGB color image signals are imported into the color camera input device, and the imported RGB original image data is converted into ISH data as described above (step 1102
). Based on the feature image converted to IsH data, a color image processing device creates a histogram representing the characteristics of each feature and its number of pixels as described above (step 11).
03).

次に、作成したヒストグラムに基づき、しきい値処理を
繰り返し適用して走行路を2値化画像として抽出する。
Next, based on the created histogram, threshold processing is repeatedly applied to extract the driving route as a binarized image.

このように抽出された画像はノイズや細かく分断された
領域を有するので、次の処理を実行する。つまり、後に
詳述するラベリング装置によって各領域にラベルを付け
る(ステップ1104)。そして、ラベル付けされた各
領域の面積と重心とを計測し、カメラの取り付は位置か
ら計算される地平線位置より重心が上の領域、および面
積が小さい領域を除去する(ステップ1105)。
Since the image extracted in this way has noise and finely divided areas, the following processing is performed. That is, each area is labeled by a labeling device which will be described in detail later (step 1104). Then, the area and center of gravity of each labeled area are measured, and areas where the center of gravity is above the horizon position calculated from the camera attachment position and areas with small areas are removed (step 1105).

次に、カラー画像処理装置において最初に抽出された走
行路画像に基づいて、走行路領域より明るさが暗い領域
および明るい領域を求め、これらの領域を併合し、また
、各領域どうしの関係を記述する(ステップ1106)
。この領域併合および領域関係の記述を基にして走行可
能範囲、つまり、道路端を検出し、画像取り込み時刻を
この走行可能範囲情報に付与する。そして、走行可能範
囲情報を画像処理装置を構成するデータ管理部へ伝送す
る(ステップ1107)。この後、ステップ1102に
戻って以上の処理を繰り返す。
Next, based on the driving path image that was first extracted by the color image processing device, areas that are darker and brighter than the driving path area are found, these areas are merged, and the relationship between each area is determined. Describe (step 1106)
. The drivable range, that is, the road edge, is detected based on this area merging and the description of the area relationship, and the image capture time is added to this drivable range information. Then, the drivable range information is transmitted to the data management unit that constitutes the image processing device (step 1107). After this, the process returns to step 1102 and repeats the above process.

第12図は走行路領域を抽出する処理の詳細を表すブロ
ック図である。
FIG. 12 is a block diagram showing the details of the process of extracting the travel road area.

まず、撮像された原画像のRGBデータから明度データ
Iおよび彩度データSを求め、各データを特微量画像と
して画像メモリに記憶する(ブロック1201)。次に
、画像メモリに記憶された明度データIを基にして明度
を特徴量とするヒストグラムを作成する(ブロック12
02)。このヒストグラムの横軸となる特徴量の分割数
は40ポイントであり、このポイント数は大局的に走行
路の抽出を行うのには十分な大きさである。次に、作成
したヒストグラムを正規化する(ブロック1203)。
First, brightness data I and saturation data S are obtained from the RGB data of the captured original image, and each data is stored as a feature image in an image memory (block 1201). Next, a histogram with brightness as a feature quantity is created based on the brightness data I stored in the image memory (block 12
02). The number of divisions of the feature amount, which is the horizontal axis of this histogram, is 40 points, and this number of points is large enough to extract the driving route from a global perspective. Next, the created histogram is normalized (block 1203).

そして、正規化されたヒストグラムについて周知の大津
の判別分析法を適用し、走行路領域と背景領域とを区分
するためのしきい値を計算する(ブロック1204)。
Then, the well-known Otsu's discriminant analysis method is applied to the normalized histogram to calculate a threshold value for distinguishing the driving road region from the background region (block 1204).

一方、作成したヒストグラムの形状に基づいて特徴量の
画素数が多いピーク、および特徴量の画素数が少ない谷
を前述のように求め、ピークと谷の一覧表であるピーク
・谷テーブルを作成する(ブロック1205)。各ピー
クおよび谷における各特徴量の値をしきい値処理のため
の候補値とする。
On the other hand, based on the shape of the created histogram, peaks with a large number of feature pixels and valleys with a small number of feature pixels are determined as described above, and a peak/trough table, which is a list of peaks and valleys, is created. (Block 1205). The value of each feature amount at each peak and valley is used as a candidate value for threshold processing.

ブロック1204で求めた大津の判別分析法によるしき
い値には誤差が含まれる場合があるため、ブロック12
05で求めたしきい値処理のだめの候補値により、大津
の判別分析法によるしきい値を補正する。つまり、ブロ
ック1204で求めたしきい値とブロック1205で求
めた候補値とを比較し、ブロック1204のしきい値に
最も近いブロック1205の候補値を走行路領域と背景
領域とを区分するためのしきい値とする(ブロック12
06)。次に、このしきい値により明度画像を2値化す
る(ブロック1207)。
Since the threshold value determined by Otsu's discriminant analysis method in block 1204 may contain an error, block 1204
The threshold value based on Otsu's discriminant analysis method is corrected using the candidate value for the threshold processing determined in step 05. In other words, the threshold value obtained in block 1204 and the candidate value obtained in block 1205 are compared, and the candidate value in block 1205 that is closest to the threshold value in block 1204 is used for separating the driving road region and the background region. Set as threshold (block 12
06). Next, the brightness image is binarized using this threshold value (block 1207).

明度画像は512X512個の画素によって構成されて
おり、I  (i、j)として表現される。
The brightness image is composed of 512×512 pixels and is expressed as I (i, j).

ここで、i、jは条件式0≦i、j≦511を満足する
整数である。また、ブロック1206で求まったしきい
値をXI、領域分割の対象となる特徴量範囲の最少の特
徴量の値をしきい値XO1最大の特徴量の値をしきい値
X2とする。なお、しきい値XOおよびX2の各初期値
はOおよびFF(h e x)である。ここで、明度画
像1  (i、j)が次の条件式を満足する場合には、
メモリM1(i、j)にFF(hex)を書き込む(ブ
ロック1208)。
Here, i and j are integers that satisfy the conditional expressions 0≦i and j≦511. In addition, the threshold value found in block 1206 is set as XI, the minimum feature value in the feature range to be divided into regions is a threshold value XO1, and the maximum feature value is a threshold value X2. Note that the initial values of the thresholds XO and X2 are O and FF (h e x). Here, if brightness image 1 (i, j) satisfies the following conditional expression,
Write FF (hex) to memory M1 (i, j) (block 1208).

XO:WI (i、j)<Xl また、明度画像1  (i、j)が次の条件式を満足す
る場合には、メモリM2 (i、j)にFF(h e 
x)を書き込む(ブロック1209)。
XO:WI (i, j)<Xl In addition, if brightness image 1 (i, j) satisfies the following conditional expression, FF (h e
x) (block 1209).

X1≦I (i、j)<X2 次に、ROMに記憶されたテンプレート画像を読み出す
(ブロック1210)。このテンプレート画像内には最
も安定した走行路情報が得られるようにテンプレート領
域が設定されている。この領域設定は自律走行車に取り
付けられたカラーカメラの俯角1画角、焦点距離を基に
して行われ、テンプレート領域に対応するメモリにはF
F(h e x)が記憶されている。次に、読み出した
テンプレート画像とメモリM1およびメモリM2との重
複度を計算する(ブロック1211)。つまり、テンプ
レート画像とメモリM1およびメモリM2との各論理積
を取り、論理積結果が「1」の画素数を各メモリM1お
よびメモリM2毎に累計する。
X1≦I (i, j)<X2 Next, the template image stored in the ROM is read (block 1210). A template area is set within this template image so that the most stable driving route information can be obtained. This area setting is performed based on the angle of depression, 1 angle of view, and focal length of the color camera attached to the autonomous vehicle, and the memory corresponding to the template area is
F(h e x) is stored. Next, the degree of overlap between the read template image and the memories M1 and M2 is calculated (block 1211). That is, the logical product of the template image and the memory M1 and the memory M2 is calculated, and the number of pixels whose logical product is "1" is accumulated for each memory M1 and memory M2.

次に、各メモリ毎に累計された画素数が、テンプレート
領域内にある画素数に占める比率を求める。この比率が
50%以上になるメモリ情報には走行路領域が含まれて
いるものとし、さらに、比率が50%以上のメモリM1
またはM2に記憶された画像ついて、以下のように繰り
返して領域分割を行う。また、この比率に基づくメモリ
の選択により、しきい値X1によって画像が領域分割さ
れたことになり、また、ヒストグラム上においても分割
が行われたことになる。
Next, the ratio of the total number of pixels for each memory to the number of pixels in the template area is determined. It is assumed that the memory information for which this ratio is 50% or more includes the running road area, and further, the memory M1 for which the ratio is 50% or more
Alternatively, the image stored in M2 is repeatedly divided into regions as follows. Further, by selecting a memory based on this ratio, the image is divided into regions by the threshold value X1, and division is also performed on the histogram.

つまり、特徴量がXO〜X1の範囲内にあるメモリM1
に記憶された領域と、特徴量がX1〜X2の範囲内にあ
るメモリM2に記憶された領域とに分割されたことにな
る。また、各メモリM1およびM2とテンプレート画像
との重複度がいずれも50%を越えない時には、メモリ
M1とメモリM2との和が記憶されたメモリM3が選択
され(ブロック1212)、メモリM3に基づいた領域
分割が次に行われる。
In other words, the memory M1 whose feature value is within the range of XO to X1
This means that the area stored in the memory M2 is divided into the area stored in the memory M2 and the area stored in the memory M2 whose feature amount is within the range of X1 to X2. Further, when the degree of overlap between each memory M1 and M2 and the template image does not exceed 50%, memory M3 in which the sum of memory M1 and memory M2 is stored is selected (block 1212), and based on memory M3, Area segmentation is then performed.

例えば、メモリM1とテンプレート画像との重複度が高
かった場合には、しきい値XOからX1内の特徴量によ
って構成された領域を道路候補領域にする(ブロック1
213)。そして、この道路候補領域をさらに繰り返し
て領域分割する。この繰り返し領域分割のためのしきい
値X1′は、ブロック1205で求めた谷の候補値のう
ち、しきい値XO〜x1の範囲内にあるものとなる(ブ
ロック1214)。また、もし、この範囲内に谷の候補
値が無い場合には、繰り返し分割処理は行われない。
For example, if the degree of overlap between the memory M1 and the template image is high, the area configured by the feature values within X1 from the threshold value XO is set as the road candidate area (block 1
213). Then, this road candidate region is further repeatedly divided into regions. The threshold value X1' for this repeated region division is a value within the range of the threshold values XO to x1 among the valley candidate values determined in block 1205 (block 1214). Furthermore, if there is no valley candidate value within this range, the repeated division process is not performed.

繰り返し領域分割の対象となる特徴量範囲の最小値XO
′は前回の領域分割と変わらないしきい値XOになり、
最大値X2’ はしきい値X1になる。この範囲内の特
徴量により構成される領域についてブロック1207で
再度2値化を行い、その後前回の領域分割と同様な処理
を実行することにより、繰り返し領域分割が行われる。
Minimum value XO of the feature range subject to repeated region segmentation
' is the same threshold value XO as the previous area division,
The maximum value X2' becomes the threshold value X1. Regions constituted by feature amounts within this range are binarized again in block 1207, and then the same processing as the previous region division is performed to perform repeated region division.

この繰り返しは、分割する道路候補領域の特徴量の範囲
内にブロック1205で求めた谷の候補値がなくなるま
で行う。このようにして処理を繰り返して実行すること
により、最終的に最初の道路画像領域が得られる。
This repetition is performed until there are no valley candidate values found in block 1205 within the feature amount of the road candidate region to be divided. By repeating the process in this way, the first road image area is finally obtained.

得られた道路画像領域の明度より暗い影の領域、および
明るい高輝度の領域がある場合には、これらの各領域を
求めるためのしきい値を後述のように設定する(ブロッ
ク1215)。そして、このしきい値に基づき、各領域
について前述と同様にして領域分割し、影の領域および
高輝度の領域を求める。また、同時に行われる彩度画像
に基づく処理結果により、求めた影の領域の彩度と道路
画像領域の彩度とが似ている場合には、各々の論理積を
とり、1つの領域として最終的な低輝度領域とする。ま
た、同様に、求めた高輝度領域の彩度と道路画像領域の
彩度とが似ている場合には、各々の論理積をとり、1つ
の領域として最終的な高輝度領域とする。さらに、道路
画像領域と低輝度領域との接続関係を調べ、併合できる
関係にある場合は併合処理を行う。また、同様に、道路
画像領域と高輝度領域との接続関係を調べる。
If there is a shadow area that is darker than the brightness of the obtained road image area and a bright high-intensity area, thresholds for determining these areas are set as described below (block 1215). Then, based on this threshold, each region is divided into regions in the same manner as described above to obtain shadow regions and high brightness regions. In addition, if the saturation of the shadow area and the saturation of the road image area are similar based on the processing results based on the saturation images that are performed at the same time, then the logical product of each is taken and the final image is combined into one area. Low brightness area. Similarly, if the calculated saturation of the high brightness area and the saturation of the road image area are similar, the logical product of each is taken and the final high brightness area is determined as one area. Furthermore, the connection relationship between the road image area and the low-luminance area is checked, and if there is a relationship that allows them to be merged, merging processing is performed. Similarly, the connection relationship between the road image area and the high brightness area is investigated.

このように併合できる関係にある場合には併合処理を行
う。この結果、走行路に影がある場合または自己の位置
が影内で走行路の遠方に直射日光が照射されて高輝度部
分がある場合には、この併合処理を行うことによって現
実の走行路に即した形状の走行路領域が得られることに
なる。
If there is a relationship that allows merging in this way, merging processing is performed. As a result, if there is a shadow on the driving path, or if your position is in the shadow and there is a high brightness part due to direct sunlight irradiating the driving path far away, by performing this merging process, it will be possible to match the actual driving path. This results in a travel path area having a suitable shape.

以上の処理は明度画像に対するものであったが、彩度画
像に対しても同様な処理を行う。但し、ブロック121
5の処理は明度画像に対する特有なものであるため、こ
の処理は実行しない。この彩度画像による処理結果にお
いて、各領域のR,G。
Although the above processing was performed on brightness images, similar processing is performed on chroma images as well. However, block 121
Since the process No. 5 is specific to brightness images, this process is not executed. In the processing results using this chroma image, R and G of each area.

Bが似た値になる同系色の場合には、各領域のヒストグ
ラム分布は同様な形状になる。これは、前述のRGBデ
ータから彩度Sデータへの変換式%式%) 従って、R,G、Bの各位が似た値になる曇天時の空や
一般舗装路では、彩度に基づいて各領域を区別すること
は困難である。しかし、色差があって各領域のR,G、
B値が似ていない場合には、各領域の明度に差がなくて
も各領域を区別することが可能である。このため、道路
画像領域をいかなる情景の下でも正確に抽出するために
、明度および彩度の2つの特徴量を用いる。そして、明
度画像および彩度画像から抽出した2種類の道路画像の
論理積を取ることにより、確度の高い走行路領域情報を
得ることが出来る。
In the case of similar colors in which B has similar values, the histogram distribution of each area has a similar shape. This is the above-mentioned conversion formula from RGB data to saturation S data (% formula%) Therefore, in a cloudy sky or on an ordinary paved road where R, G, and B have similar values, the conversion formula based on the saturation is It is difficult to distinguish between each area. However, there are color differences, and R, G,
If the B values are not similar, it is possible to distinguish each region even if there is no difference in brightness between the regions. Therefore, in order to accurately extract the road image area under any scene, two feature quantities, brightness and saturation, are used. Then, by taking the logical product of the two types of road images extracted from the brightness image and the chroma image, highly accurate driving road area information can be obtained.

第13図は、道路画像領域の抽出処理における道路候補
領域の抽出過程を示す。
FIG. 13 shows the process of extracting a road candidate region in the road image region extraction process.

まず、明度の特微量画像1301から特徴量ヒストグラ
ム1302を作成する。このヒストグラム1302の横
軸は明度を示し、この明度は0〜F F (h e x
)の数値によって表現されている。
First, a feature histogram 1302 is created from a lightness feature image 1301. The horizontal axis of this histogram 1302 indicates brightness, and this brightness ranges from 0 to FF (h e x
) is expressed as a numerical value.

また、縦軸は各明度における原画像中の画素数を示す。Further, the vertical axis indicates the number of pixels in the original image at each brightness.

大津の判別分析法をこのヒストグラム1302に適用し
、道路領域と背景領域とを区別するためのしきい値Cを
求める。また、ヒストグラム1302の形状に基づき、
ヒストグラムのビーりおよび谷を求め、ピーク・谷テー
ブルを作成する。そして、求めた谷を繰返しきい値処理
のためのしきい値の候補値とする。このヒストグラム1
302では特徴ff1a+  b、d、e、fが候補値
になっている。
Otsu's discriminant analysis method is applied to this histogram 1302 to find a threshold value C for distinguishing between the road region and the background region. Also, based on the shape of the histogram 1302,
Find the beat and valley of the histogram and create a peak/trough table. Then, the obtained valley is used as a threshold candidate value for the iterative threshold processing. This histogram 1
In 302, the features ff1a+b, d, e, and f are candidate values.

大津の判別分析法によって求めたしきい値Cを、ピーク
・谷テーブルから求めた候補値によって補正する。つま
り、しきい値Cに最も近い候補値すを補正したしきい値
とする。そして、このしきい値すによって特微量画像1
301を2値化する。
The threshold value C obtained by Otsu's discriminant analysis method is corrected by the candidate value obtained from the peak/trough table. In other words, the candidate value closest to the threshold value C is set as the corrected threshold value. Then, by using this threshold value, the feature amount image 1
301 is binarized.

この結果、特徴量が00(hex)〜bの分割画像13
03と、特徴量がb−FF(hex)の分割画像130
4とが得られる。この時点では分割された各画像130
3.1304のうち、どちらの画像に走行路領域が含ま
れているのかが分からない。
As a result, the divided image 13 with the feature amount from 00 (hex) to b
03 and divided image 130 with feature amount b-FF (hex)
4 is obtained. At this point, each divided image 130
3. It is not known which image of 1304 includes the driving road area.

このため、道路位置を想定したテンプレート画像130
5と各画像1303.1304との論理積を取り、各画
像との重複度を計算する。テンプレート画像1305の
下部には台形のテンブレート領域が図示のように設定さ
れている。このテンプレート領域に対応するメモリ素子
には前述したようにFF (hex)が記憶されており
、また、テンプレート領域の背景領域に対応するメモリ
素子には00(heX)が記憶されている。本例の場合
には、画像1304にテンプレート画像1305との重
なり部分が最も多く存在する。このため、重複度の計算
結果により、特徴量がb〜FF (hex)の画像13
04に走行路領域が含まれているものと判断され、画像
1304に対応した道路候補領域画像1306が得られ
る。
For this reason, the template image 130 assuming the road position
5 and each image 1303 and 1304 to calculate the degree of overlap with each image. A trapezoidal template area is set at the bottom of the template image 1305 as shown. As described above, FF (hex) is stored in the memory element corresponding to this template area, and 00 (heX) is stored in the memory element corresponding to the background area of the template area. In the case of this example, the image 1304 has the largest number of overlapping parts with the template image 1305. Therefore, according to the calculation result of the degree of overlap, the image 13 with the feature amount b to FF (hex)
04 is determined to include the driving road area, and a road candidate area image 1306 corresponding to image 1304 is obtained.

b−FF(hex)の特徴量の間にはまだ他の候補値が
残っているので、次に、さらにこの道路候補領域画像1
306について領域分割を行う。
Since there are still other candidate values remaining between the feature values of b-FF (hex), next, this road candidate area image 1
Area division is performed for 306.

つまり、道路候補領域画像1306をしきい値dで2値
化する。この2値化により、特徴量がb〜dの分割画像
1307と、特徴量がd−FF(h e x)の分割画
像1308とが得られる。次に、得られた各画像130
7.1308について、前述と同様にしてテンプレート
画像1305との重複度を計算する。本例の場合には、
画像1308の方がテンプレート画像1305との重複
度が高いため、特徴量がd−FF(hex)の画像13
08に走行路領域が含まれているものと判断され、画像
1308に対応した道路候補領域画像1309が得られ
る。
That is, the road candidate area image 1306 is binarized using the threshold value d. Through this binarization, a divided image 1307 with feature amounts b to d and a divided image 1308 with feature amount d-FF (hex) are obtained. Next, each image 130 obtained
7. The degree of overlap with template image 1305 is calculated for 1308 in the same manner as described above. In this example,
Since the image 1308 has a higher degree of overlap with the template image 1305, the image 13 with the feature amount d-FF (hex)
It is determined that the road area is included in image 1308, and a road candidate area image 1309 corresponding to image 1308 is obtained.

d−FF(hex)の特徴量の間にはまだ他の候補値e
が残っているため、道路候補領域画像1309をこのし
きい値eで2値化する。この2値化により、特徴量がd
−eの分割画像1310と、特徴量がe−FF(hex
)の分割画像1311とが得られる。そして、前述と同
様にして各画像1310.1311とテンプレート画像
1305との重複度を計算する。本例の場合には、画像
1310の方がテンプレート画像1305との重複度が
高いため、特徴量がd −eの画像1310に走行路領
域が含まれているものと判断され、画像1310に対応
した道路候補領域1312が得られる。
There are still other candidate values e between the features of d-FF (hex).
remains, the road candidate area image 1309 is binarized using this threshold value e. Through this binarization, the feature amount becomes d
-e divided image 1310 and the feature amount is e-FF (hex
) are obtained. Then, the degree of overlap between each image 1310, 1311 and the template image 1305 is calculated in the same manner as described above. In this example, since the image 1310 has a higher degree of overlap with the template image 1305, it is determined that the image 1310 with the feature amount d - e includes the driving road area, and it corresponds to the image 1310. A road candidate area 1312 is obtained.

d −eの特徴量の間にはもう他の候補値が残りていな
いので、この道路候補領域1312が最終的な道路領域
の2値画像になる。以上の処理は明度画像に対して行っ
たが、彩度画像に対しても同様な処理を行う。その後、
明度画像から抽出された走行路領域と彩度画像から抽出
された走行路領域との論理積を取り、最終的な走行路領
域を得る。
Since there are no other candidate values remaining between the feature values d - e, this road candidate region 1312 becomes the final binary image of the road region. Although the above processing was performed on the brightness image, similar processing is performed on the chroma image as well. after that,
The final driving path area is obtained by performing a logical product of the driving path area extracted from the brightness image and the driving path area extracted from the saturation image.

しきい値を用いて画像を2値化し、画像の領域分割をす
る手法は一般的である。しかし、本実施例のように、走
行路の位置を考慮したテンプレート画像を用いて分割画
像との重複度を計算することにより、ヒストグラム上に
おいて行われる次の領域分割のためのしきい値を決定す
る処理は高速にかつ簡素に行える。この結果、現実の走
行路に即した走行路領域が高速にかつ容易にかつ低コス
トで得られる。
A common method is to binarize an image using a threshold and divide the image into regions. However, as in this example, by calculating the degree of overlap with the segmented images using a template image that takes into account the position of the driving route, the threshold value for the next region segmentation performed on the histogram is determined. This process can be performed quickly and simply. As a result, a travel road area matching an actual travel route can be obtained quickly, easily, and at low cost.

また、次のようにカメラに撮像される情景の明暗が変化
する場合がある。例えば、自軍の進行方向がカーブによ
って変更したために明るさが変化した場合や、天候が晴
れたり曇ったりするために明暗が変わる場合などがある
。このような場合には、特徴量ヒストグラムは常に一定
の形状を示さないため、固定されたしきい値による領域
分割では正しい走行路領域が得られない。しかし、本手
法では、入力された画像の状態、つまり、明るさが時々
刻々と変化しても常に正確な走行路領域の抽出を行うこ
とが可能である。これは、本手法では、テンプレート画
像との重複度が最も高い特徴量分布を見つけ、時々刻々
と変化する画像についてその時の特徴量に応じた最適な
しきい値をその都度設定するからである。
Furthermore, the brightness of the scene captured by the camera may change as follows. For example, the brightness may change because the direction of movement of your army changes due to a curve, or the brightness may change because the weather becomes sunny or cloudy. In such a case, the feature value histogram does not always show a constant shape, so region segmentation using a fixed threshold value does not provide a correct driving path region. However, with this method, even if the state of the input image, that is, the brightness, changes from moment to moment, it is possible to always accurately extract the travel road area. This is because the present method finds the feature quantity distribution with the highest degree of overlap with the template image, and sets the optimal threshold value each time according to the feature quantity at that time for images that change moment by moment.

従来、領域分割を行う画像処理にあっては、原画像を複
数の領域に分割し、分割した画像について識別処理を行
って道路の妥当性を検証していた。
Conventionally, in image processing that performs region division, an original image is divided into a plurality of regions, and identification processing is performed on the divided images to verify the validity of roads.

しかし、上述した本手法にあっては、目的とする対象物
(道路)を抽出するために、しきい値処理による領域分
割を行っている。このように、従来の手法では処理結果
から対象物を検証したが、本手法では処理の当初から対
象物を目的としている点で処理のアプローチが逆になっ
ている。このため、道路領域を効率良く抽出することが
可能になっている。
However, in this method described above, area segmentation is performed using threshold processing in order to extract the target object (road). In this way, in the conventional method, the object was verified from the processing results, but in this method, the processing approach is reversed in that the object is the object from the beginning of the processing. Therefore, it is possible to efficiently extract the road area.

次に、「明るさの違いに注目した走行コースからの影や
高輝度部分の抽出手法」について説明する。本手法は上
述した「テンプレート画像を用いた繰返しきい値処理に
よる走行コースの抽出手法」の説明において既に簡単に
説明したものであり、以下にこの手法を詳述する。
Next, we will explain ``a method for extracting shadows and high-brightness areas from a driving course that focuses on differences in brightness''. This method has already been briefly explained in the explanation of the above-mentioned "method for extracting a driving course by iterative threshold processing using a template image," and this method will be described in detail below.

明度画像について、上述した「テンプレート画像を用い
た繰返しきい値処理による走行コースの抽出手法」、お
よび「繰返しきい値処理における特徴量ヒストグラムの
形状に基づくしきい値設定手法」を適用することにより
、走行コースの特徴量の分布するヒストグラムが求めら
れた。本手法は、このヒストグラムを基にして道路領域
より暗い領域および道路領域より明るい領域を求めるも
のである。また、本手法はカラー画像処理装置内で処理
されるものである。
For the brightness image, by applying the above-mentioned "driving course extraction method using iterative threshold processing using a template image" and "threshold setting method based on the shape of the feature histogram in iterative threshold processing", A histogram showing the distribution of features of the driving course was obtained. This method determines areas darker than the road area and areas lighter than the road area based on this histogram. Further, this method is processed within a color image processing device.

第14図は、種々の入力画像が撮像された各ケースにつ
いて、本手法を適用した場合の処理の概要を示す。ケー
ス1は、−様な路面状況の走行コースのみが入力画像と
して撮像された場合である。
FIG. 14 shows an overview of processing when this method is applied to each case in which various input images are captured. Case 1 is a case where only a driving course with negative road surface conditions is captured as an input image.

この場合、自車は、右側にカーブする道路のカーブ手前
に位置している。このケース1において抽出される道路
候補領域は、入力画像と同様な形状になる。これは入力
画像が−様な走行コースのみだからであり、従って、本
手法により低輝度領域および高輝度領域は抽出されない
In this case, the own vehicle is located in front of a curve on a road that curves to the right. The road candidate area extracted in this case 1 has the same shape as the input image. This is because the input image is only a --like driving course, and therefore low-luminance areas and high-luminance areas are not extracted by this method.

また、ケース2は、走行コースの路面上に部分的に影が
でき、しかも、走行コースの遠方に反射光などによる高
輝度部分ができている入力画像が撮像された場合である
。この場合の例では、道路は右側にカーブし、この右側
カーブの手前に左側にカーブする分岐路を有している。
Case 2 is a case where an input image is captured in which there is a partial shadow on the road surface of the driving course and a high brightness part due to reflected light or the like is formed in the far part of the driving course. In this example, the road curves to the right, and before the right curve there is a branch road that curves to the left.

自車はこれらカーブの手前に位置している。このケース
2において抽出される道路候補領域は、影ができている
暗い領域および高輝度領域である明るい領域が除外され
た形状になる。また、道路の手前側にできている影の部
分は本手法による低輝度領域の抽出により、個別に取り
出すことができる。また、道路の遠方にできている反射
光による高輝度領域は高輝度領域の抽出により、個別に
取り出すことができる。
The vehicle is located in front of these curves. The road candidate area extracted in this case 2 has a shape in which dark areas with shadows and bright areas with high brightness are excluded. In addition, shadow parts that appear on the near side of the road can be individually extracted by extracting low-luminance areas using this method. Further, high brightness areas due to reflected light that are formed far away from the road can be individually extracted by extracting the high brightness areas.

ケース3は、陽射しが強い天候の時に、樹木による影が
走行コースの路面上にできている入力画像が撮像された
場合であり、路面上に木洩れ日がさしている場合である
。この場合の例では、自軍は、左側にカーブする道路の
カーブ手前に位置している。このケース3において抽出
される道路候補領域は、木洩れ日によってできる影と同
じ形状である。これは、強い陽射しのために影が、テン
プレート画像との重複度が高くなるためである。
Case 3 is a case where an input image in which shadows from trees are formed on the road surface of the driving course is captured during weather with strong sunlight, and the road surface is illuminated by sunlight filtering through the trees. In this example, the own army is located in front of a curve on a road that curves to the left. The road candidate area extracted in this case 3 has the same shape as a shadow created by sunlight filtering through the trees. This is because the shadow overlaps with the template image more often due to strong sunlight.

従って、本手法により低輝度の領域は抽出されない。ま
た、遠方の道路領域および木洩れ日がさしている部分は
強い陽射しのために高輝度の領域として抽出される。
Therefore, low brightness areas are not extracted by this method. Further, distant road areas and areas where sunlight shines through the trees are extracted as high brightness areas due to strong sunlight.

ケース4は、道路の側帯に沿って帯状に変色部分ができ
ている場合であり、例えば、舗装路の工事等によって道
路が変色した場合である。この場合の例では、自車は、
直線状に進む道路にできた変色部分を右手にみて走行す
る位置にある。このケース4において抽出される道路候
補領域は、この変色部分が除外された形状になる。また
、この変色部分は道路領域より明度が高いため、本手法
により高輝度領域として抽出される。また、道路の路面
上には影などがないため、低輝度領域は抽出されない。
Case 4 is a case where a band-shaped discolored portion is formed along the side strip of the road, for example, when the road is discolored due to construction of a paved road or the like. In this example, the own car is
It is located in a position where you can see the discolored area on the straight road on your right. The road candidate region extracted in this case 4 has a shape in which this discolored portion is excluded. Furthermore, since this discolored portion has higher brightness than the road area, it is extracted as a high-brightness area by this method. Furthermore, since there are no shadows on the road surface, low-luminance areas are not extracted.

次に、上述したケース2を例として、本手法の詳細を以
下に説明する。
Next, the details of this method will be explained below using Case 2 mentioned above as an example.

第15図は、ケース2において撮像された入力画像を基
にして作成されたヒストグラムである。
FIG. 15 is a histogram created based on the input image captured in case 2.

このヒストグラムの特徴量は明度であり、横軸にこの明
度が示されている。また、縦軸は、各明度における画素
数である。
The feature amount of this histogram is brightness, and this brightness is shown on the horizontal axis. Moreover, the vertical axis is the number of pixels at each brightness.

図のA部分の特徴量範囲は走行路領域が含まれる範囲で
あり、前述した「テンプレート画像を用いた繰返しきい
値処理による走行コースの抽出手法」において最も走行
コースに相当する画素が含まれる範囲とされる部分であ
る。また、範囲Aは特徴量がtlからt2まての範囲て
あり、各特徴ff1tlおよびt2をしきい値として領
域分割される。また、特徴Jltlより左側にあるB部
分は谷と谷とに挾まれた1つの山を形成し、A部分より
明度の低い暗い範囲の特徴量分布である。このB部分の
特徴量範囲はt3からtlまでであり、各特徴量t3お
よびtlは領域分割のためのしきい値になる。また、特
徴量t2より右側にあるC部分は、A部分より明度の高
い明るい範囲の特徴量分布であり、B部分と同様に谷と
谷とに挾まれた1つの山を形成している。このC部分の
特徴量範囲はt2からtiまでであり、各特徴ff1t
2およびtiは領域分割のためのしきい値になる。
The feature value range in part A of the figure is the range that includes the driving road area, and the range that includes the pixels most corresponding to the driving course in the aforementioned "driving course extraction method by iterative threshold processing using a template image". This is the part that is said to be. Furthermore, the range A has feature amounts ranging from tl to t2, and is divided into regions using each feature ff1tl and t2 as thresholds. Moreover, the B part located on the left side of the feature Jltl forms one mountain sandwiched between valleys, and has a feature value distribution in a dark range with lower brightness than the A part. The feature range of this portion B is from t3 to tl, and each feature t3 and tl becomes a threshold for region division. Further, the C portion on the right side of the feature amount t2 has a feature amount distribution in a bright range with higher brightness than the A portion, and forms one mountain sandwiched between valleys like the B portion. The feature range of this part C is from t2 to ti, and each feature ff1t
2 and ti become thresholds for region division.

なお、図に示されるB部分やC部分は1つの山を形成し
ているが、このように1つの山を形成しない特徴量分布
は、画像上において領域分割のために有意義な領域を形
成する分布とは認められない。このため、このような特
徴量分布は優位な分布ではないものとして領域抽出の対
象として選定しない。図示の本例の場合にはB部分およ
びC部分の双方ともに優位な分布になっているが、一方
のみが優位な分布であっても本手法は適用される。
Note that portions B and C shown in the figure form one mountain, but a feature distribution that does not form a single mountain in this way forms a meaningful region for region segmentation on the image. It cannot be recognized as a distribution. Therefore, such a feature quantity distribution is not selected as a region extraction target as it is not a dominant distribution. In the illustrated example, both the B portion and the C portion have a dominant distribution, but the present method is applicable even if only one is a dominant distribution.

A部分の特徴量分布は第14図に示されたケース2の道
路候補領域に相当する。また、B部分の特徴量分布はこ
の道路候補領域より明度の低い影の領域に相当し、C部
分の特徴量分布は道路候補領域よりも明度の高い高輝度
部分に相当するものである。本手法は、A部分に隣接す
るB部分およびC部分の各特徴量分布に相当する各領域
を抽出するものである。
The feature quantity distribution of part A corresponds to the road candidate area of case 2 shown in FIG. Further, the feature amount distribution of portion B corresponds to a shadow region having a lower brightness than this road candidate region, and the feature amount distribution of portion C corresponds to a high brightness portion having higher brightness than the road candidate region. This method extracts each area corresponding to each feature value distribution of the B part and C part adjacent to the A part.

まず、ヒストグラムのB部分に相当する領域を抽出する
ため、しきい値t3およびtlによって明度を特徴量と
する入力画像を2値化する。また、前述した[テンプレ
ート画像を用いた繰返しきい値処理による走行コースの
抽出手法」において、彩度を特徴量とする入力画像に基
づいて道路領域画像が求められていた。この道路領域画
像は、原画像が最初に領域分割されることにより得られ
たものであり、影などの暗い領域や高輝度領域が道路領
域に含まれた状態の画像である。この道路領域に相当す
るメモリ素子には1が記憶されており、その他の背景領
域に相当するメモリ素子にはOが記憶されている。また
、上記の2値化画像において、明度がt3からtlの画
素領域に相当するメモリ素子には1が記憶されており、
その他の領域に相当するメモリ素子には0が記憶されて
いる。
First, in order to extract a region corresponding to part B of the histogram, an input image whose feature quantity is brightness is binarized using thresholds t3 and tl. Furthermore, in the above-mentioned [method for extracting a driving course by iterative threshold processing using a template image], a road area image is obtained based on an input image that uses saturation as a feature. This road area image is obtained by first dividing the original image into areas, and is an image in which dark areas such as shadows and high brightness areas are included in the road area. 1 is stored in the memory element corresponding to this road area, and 0 is stored in the memory element corresponding to the other background areas. Further, in the above binarized image, 1 is stored in the memory element corresponding to the pixel area whose brightness is from t3 to tl,
0 is stored in memory elements corresponding to other areas.

このため、道路領域画像と2値化画像との論理積をとる
ことにより、走行路領域上にある例えば影の部分などの
暗い領域のみが個別に抽出される。
Therefore, by performing a logical product of the road area image and the binarized image, only dark areas such as shadow parts on the driving road area are individually extracted.

また、C部分に相当する領域を抽出するため、上記の暗
い領域を求めるのと同様に、しきい値t2およびtiに
よって明度画像を2値化する。
Furthermore, in order to extract a region corresponding to portion C, the brightness image is binarized using thresholds t2 and ti, similar to the above-mentioned finding of the dark region.

そして、彩度画像から抽出された道路領域画像とこの2
値化画像との論理積を上記のB部分の抽出の場合と同様
にとることにより、高輝度領域が個別に抽出される。
Then, the road area image extracted from the saturation image and these two
High brightness areas are individually extracted by performing a logical product with the valued image in the same manner as in the case of extracting the B portion described above.

次に、B部分およびC部分を領域分割する際に必要とさ
れるしきい値t3およびtiを求める方法について説明
する。前述した「繰返しきい値処理における特徴量ヒス
トグラムの形状に基づくしきい値設定手段」により、第
10図(b)に示されるピーク・谷テーブルを求めたが
、第15図に示されるヒストグラムについてもこれと同
様にして図示しないピーク・谷テーブルを求める。この
ピーク・谷テーブルにおける各テーブル値は、第10図
(b)と同様に、pk tiとして表現する。
Next, a method for determining the threshold values t3 and ti required when dividing portions B and C into regions will be described. Although the peak/trough table shown in FIG. 10(b) was obtained using the above-mentioned "threshold setting means based on the shape of the feature histogram in repeated threshold processing," the histogram shown in FIG. In the same way, a peak/trough table (not shown) is obtained. Each table value in this peak/trough table is expressed as pk ti as in FIG. 10(b).

添字のiは、グラフの原点側から各テーブル値に対応し
て順にi−0,1,2,・・・N、N−1と変化するも
のとする。
It is assumed that the subscript i changes sequentially from i-0, 1, 2, . . . N, N-1 corresponding to each table value from the origin of the graph.

第15図のヒストグラムにおいて、しきい値t1に相当
するテーブル値をpk tjとする。そして、ピーク・
谷テーブルにおいてこのテーブル値pktiから左側へ
各テーブル値を見て行き、pktOのところまでにテー
ブル値が負となるpktk  (pktk<0)がある
か否かを判断する。テーブル値が負になる特徴点は谷の
底に相当する点である。pk toまでに負となるpk
 tkが有り、しかも、pktjの特徴点からpk t
kの特徴点までの距離がしきい値より小さい場合(pk
 tj −pk tk <Lきい値)、このテーブル値
pk tkに相当する特徴量をしきい値t3とする。ま
た、pk tOまでに負となるpktkが無い場合、ま
たは距離がしきい値を越える場合には、道路領域より暗
い優位な領域は無いものとする。
In the histogram of FIG. 15, the table value corresponding to the threshold value t1 is assumed to be pk tj. And peak
In the valley table, each table value is looked at from this table value pkti to the left, and it is determined whether there is a table value pktk (pktk<0) that is negative up to pktO. A feature point with a negative table value is a point corresponding to the bottom of a valley. pk becomes negative until pk to
tk, and from the feature points of pktj, pk t
If the distance to k feature points is smaller than the threshold (pk
tj - pk tk <L threshold), and the feature amount corresponding to this table value pk tk is set as a threshold value t3. Furthermore, if there is no pktk that becomes negative by pk tO, or if the distance exceeds the threshold, it is assumed that there is no dominant region that is darker than the road region.

ヒストグラム上のしきい値t4に相当する特徴量は、し
きい値t3に相当する特徴量を求める方法と同様にして
求めることができる。つまり、しきい値t2に相当する
ピーク・谷テーブル値をpktmとすると、このpkt
mから右側へ各テーブル値を見て行き、p k t N
−1までに負となるpktn  (pktn<0)が有
るか否かを判断する。p k t N−1までに負とな
るpktnが有り、しかも、pktnの特徴点からpk
t+aの特徴点までの距離がしきい値より小さい場合(
pktn−pktmくしきい値) このテーブル値pk
tnに相当する特徴量をしきい値t4とする。
The feature quantity corresponding to the threshold value t4 on the histogram can be obtained in the same manner as the method for obtaining the feature quantity corresponding to the threshold value t3. In other words, if the peak-trough table value corresponding to threshold t2 is pktm, then this pkt
Looking at each table value from m to the right, p k t N
It is determined whether there is a pktn (pktn<0) that becomes negative by -1. There is a pktn that becomes negative up to p k t N-1, and furthermore, from the feature point of pktn, pk
If the distance to the feature point of t+a is smaller than the threshold (
pktn-pktm (threshold value) This table value pk
The feature amount corresponding to tn is set as a threshold value t4.

また、p k t N−1までに負となるpktnが無
い場合、または、距離がしきい値を越える場合には、道
路領域より明るい優位な領域は無いものとする。
Furthermore, if there is no pktn that becomes negative by p k t N-1, or if the distance exceeds the threshold value, it is assumed that there is no brighter and superior region than the road region.

以上のように、本手法は、「繰返しきい値処理における
特徴量ヒストグラムの形状に基づくしきい値設定手段」
で求められたピーク・谷テーブルを利用することにより
、天候の変化や舗装路の工事等によって道路の路面状況
が変化しても、影や高輝度部分および変色部分を個別に
抽出することができる。
As described above, this method is a "threshold setting means based on the shape of the feature histogram in iterative threshold processing"
By using the peak/trough table obtained in , it is possible to individually extract shadows, high-intensity areas, and discolored areas even if the road surface conditions change due to changes in the weather or pavement construction. .

次に、「ラベリング装置」について以下に詳述する。「
テンプレート画像を用いた繰返しきい値処理による走行
コースの抽出手法」において抽出された画像は、ノイズ
や細かく分断された領域を有する。このため、ラベリン
グ装置により抽出画像の各領域にラベル付けをし、ラベ
ル付けされた各領域の有効性を判断する。このラベリン
グ処理の結果に基づき、地平線位置より重心が上の領域
や、ノイズ等によって発生した不要な小領域を除去する
Next, the "labeling device" will be explained in detail below. "
The image extracted by the method for extracting a driving course by repeated threshold processing using a template image has noise and finely divided regions. For this purpose, each region of the extracted image is labeled by a labeling device, and the validity of each labeled region is determined. Based on the results of this labeling process, areas where the center of gravity is above the horizon position and unnecessary small areas caused by noise or the like are removed.

第16図はこのラベリング装置の概略構成を示すブロッ
ク図であり、第17図はこのラベリング処理の概略を示
すゼネラルフローチャートである。
FIG. 16 is a block diagram showing a schematic configuration of this labeling apparatus, and FIG. 17 is a general flowchart showing an outline of this labeling process.

まず、カラー処理装置において抽出された画像を画像バ
ス(NE  BUS)を介して入力メモリ1601に取
り込む(ステップ1701)。この画像情報は512X
512X8ビツトの情報であり、これを多値の原画像入
力とする。次に、後述するランを用いた仮ラベル付は方
式を用いて1次ラベリングを行う(ステップ1702)
。この1次ラベリングは、ラベリングプロセッサ(KL
P)1602、  ラインバッファメモリ(LBM)1
603およびラベルマツチングメモリ(LMM)160
4等において主として実行される。
First, an image extracted by the color processing device is loaded into the input memory 1601 via the image bus (NE BUS) (step 1701). This image information is 512X
The information is 512 x 8 bits, and this is used as a multivalued original image input. Next, primary labeling is performed using the run-based temporary labeling method described later (step 1702).
. This primary labeling is performed by a labeling processor (KL).
P) 1602, line buffer memory (LBM) 1
603 and label matching memory (LMM) 160
It is mainly executed in the 4th class.

この1次ラベリングの後、ラベルマツチングメモリLM
M1604のデータ配置を整理するために前処理を行う
(ステップ1703)。この前処理の後に2次ラベリン
グを行うと同時に各領域の面積や重心などの特徴量を抽
出する(ステップ1704)。ステップ1703および
ステップ1704の処理は主として特徴抽出プロセッサ
KLC1605において実行される。この2次ラベリン
グにより、各アドレスに位置する画素に付けられたラベ
ルをラベルメモリ(LABELM)1606に記憶する
。また、同時に、抽出された各領域の面積や重心を特徴
メモリ1607に2岱。
After this primary labeling, the label matching memory LM
Preprocessing is performed to organize the data arrangement of M1604 (step 1703). After this preprocessing, secondary labeling is performed and at the same time feature quantities such as the area and center of gravity of each region are extracted (step 1704). The processing in steps 1703 and 1704 is mainly executed in the feature extraction processor KLC1605. Through this secondary labeling, a label attached to a pixel located at each address is stored in a label memory (LABELM) 1606. At the same time, the area and centroid of each extracted region are stored in the feature memory 1607.

する。この後、LABELM1606に記憶されたラベ
ル画像情報をNE  BUSに出力する(ステップ17
05)。
do. After this, the label image information stored in the LABELM 1606 is output to the NE BUS (step 17
05).

ラベル生成のためのKLP1602の使用個数は1個で
あり、ラン処理用のラインレジスタであるLBM160
3は後述するラベルメモリKLMを4個使用して構成す
る。また、LMM1604は仮ラベルの最大数が102
3の時にはKLMを8個使用して構成する。仮ラベルの
最大数が4095の時にはKLMを32個使用してLM
M1604を構成する。
One KLP1602 is used for label generation, and one LBM160 is used as a line register for run processing.
3 is configured using four label memories KLM, which will be described later. Additionally, the maximum number of temporary labels for LMM1604 is 102.
3, it is configured using eight KLMs. When the maximum number of temporary labels is 4095, 32 KLMs are used and LM
Configure M1604.

従来のラベリングは入力画像が2値画像の場合について
だけ行っていたが、本手法によるラベリングはKLP1
602を使用することにより、多値画像についてもラベ
リングを行うことが可能になっている。つまり、数種類
の画像を一度にラベリングをすることが可能である。例
えば、第18図に示されるように、3種類の2値入力画
像1801.1802.1803が入力された場合を想
定する。これら2値画像は足し合されて512X512
X8ビツトの多値画像1804に変換される。この変換
処理はラベリング処理の前処理として行われる。ライン
レジスタ1805(LBM1603)とラベルマツチン
グメモリ1806 (LMM1604)とを使用したラ
ベリングプロセッサ1807 (KLP1602)の制
御により、多値入力画像1804はラベリングされる。
Conventional labeling was performed only when the input image was a binary image, but labeling using this method
By using 602, it is possible to label multivalued images as well. In other words, it is possible to label several types of images at once. For example, as shown in FIG. 18, assume that three types of binary input images 1801, 1802, and 1803 are input. These binary images are added together to form a 512x512
It is converted into a multivalued image 1804 of x8 bits. This conversion process is performed as pre-processing of the labeling process. A multivalued input image 1804 is labeled under the control of a labeling processor 1807 (KLP1602) using a line register 1805 (LBM1603) and a label matching memory 1806 (LMM1604).

このラベリングにおいて各領域のラベル付けを整理し、
最終的に512X512X12ビツトのラベル画像18
08として出力する。このラベリングプロセッサ180
7 (KLP1602)を使用することにより、多値画
像に対してのラベリング処理、ランを用いた仮ラベル数
の削減および1スキヤンラベリングが可能になる。
In this labeling, organize the labeling of each area,
Final label image 18 of 512 x 512 x 12 bits
Output as 08. This labeling processor 180
7 (KLP1602) enables labeling processing for multivalued images, reduction of the number of temporary labels using runs, and one-scan labeling.

多値入力画像の各画素には、各画素値に応じたラベル付
けがKLP1602の制御によって行われる。そして、
同一のラベル値を持つ各画素間の結合関係に基づいて領
域区分が行われ、また、この結合関係に基づいて新しい
ラベルが生成される。
Each pixel of the multivalued input image is labeled according to each pixel value under the control of the KLP 1602. and,
Region segmentation is performed based on the connection relationship between pixels having the same label value, and a new label is generated based on this connection relationship.

例えば、従来、入力画像に第19図(a)に示される階
段状画素からなる領域が形成されている場合には、ラス
ク走査の順番に沿って各画素に仮ラベル付けを行い、再
度各画素について走査を行うことによりラベル生成が実
行されていた。この結果、仮ラベル付けの際には、図示
のごとく1〜3の3種類の仮ラベルを必要としていた。
For example, conventionally, when an input image has a region made up of step-like pixels shown in FIG. Label generation was performed by scanning the . As a result, when attaching temporary labels, three types of temporary labels, 1 to 3, are required as shown in the figure.

しかし、本方式によるランを用いたラベリング方式によ
れば、第19図(a)と同様な階段状画素からなる同図
(b)に示される入力画像が有っても、ランを用いるこ
とにより仮ラベル数を削減することが出来る。つまり、
同図(C)に示されるように、各画素をラスク走査に沿
ったランという1つの行毎に区分けする。図示の場合に
は、2つのラン1およびラン2に区分けされる。ラベリ
ングプロセッサKLPはランの走査が最後の画素に至る
まではラインバッファメモリLBMにフラグを書き込み
、仮ラベルの判定を行い、その行の最後の画素でそのラ
ンの全画素に各画素間の結合関係を考慮した仮ラベルを
書き込む。
However, according to the labeling method using runs according to the present method, even if there is an input image shown in FIG. 19(b) consisting of stepped pixels similar to FIG. The number of temporary labels can be reduced. In other words,
As shown in FIG. 3C, each pixel is divided into rows called runs along the rask scan. In the illustrated case, it is divided into two run 1 and run 2. The labeling processor KLP writes a flag in the line buffer memory LBM until the scanning of the run reaches the last pixel, judges the temporary label, and at the last pixel of the row, connects all pixels of the run to the connection relation between each pixel. Write a temporary label that takes into account.

同図(C)に示されるラン1について走査して上記の処
理を施した結果、ラン1に対応する画素には同図(d)
に示される仮ラベル付けが行われる。この仮ラベル「1
」のラベル付けは、各画素に同時に行われる。これは、
メモリには後に詳述するラベリングメモリKLMが使用
されているためである。引き続いてラン2について走査
することにより、同図(e)に示される仮ラベル付けが
行われる。ラン2はラン1の仮ラベル「1」に接続され
ているので、ラン2の最後の画素を走査する時点でラン
2の各画素には仮ラベル「1」が同時に書き込まれる。
As a result of scanning and performing the above processing on run 1 shown in the same figure (C), the pixels corresponding to run 1 are shown in the same figure (d).
The temporary labeling shown in is performed. This temporary label "1"
' labeling is done simultaneously for each pixel. this is,
This is because the labeling memory KLM, which will be described in detail later, is used as the memory. By subsequently scanning run 2, the provisional labeling shown in FIG. 4(e) is performed. Since run 2 is connected to the temporary label "1" of run 1, when the last pixel of run 2 is scanned, the temporary label "1" is simultaneously written to each pixel of run 2.

このようにランを用いたラベリングにより、同図(b)
に示される階段状画素へのラベル付けは、1種類のラベ
ル「1」によって行うことが出来、仮ラベル数は削減さ
れる。つまり、画素をランという1つのまとまりにまと
め、ラン単位で処理を行うことにより、ラベリング回路
の規模を削減することが出来る。
By labeling using runs in this way, the same figure (b)
Labeling of the stepped pixels shown in can be performed using one type of label "1", and the number of temporary labels is reduced. In other words, the scale of the labeling circuit can be reduced by grouping pixels into one group called a run and performing processing on a run-by-run basis.

次に、ラベリングプロセッサNLPによるラベリング処
理の詳細について説明する。ラベリングは第20図に示
されるウィンドが各ランに沿って各画素を走査すること
により行われる。このウィンドを各ランに沿って走査す
ることにより、T(ターゲット)部には注目する画素が
現れ、a部にはT部の上に位置する画素が現れ、b部に
はT部の右側の隣に位置する画素が現れる。以下、T。
Next, details of the labeling process by the labeling processor NLP will be explained. Labeling is performed by scanning each pixel along each run with the window shown in FIG. By scanning this window along each run, the pixel of interest appears in the T (target) section, the pixel located above the T section appears in the a section, and the pixel on the right side of the T section appears in the b section. Pixels located next to each other appear. Below, T.

a、bは各部に現れる入力画像のラベル値を示すことに
する。なお、ランの途中をウィンドが走査している時に
は、出力ラベルとしてフラグの値がラインバッファメモ
リLBMに出力され、ウィンドがランの最後の画素に達
した時に、フラグの立っている全ての画素にラベルが書
き込まれる。
Let a and b indicate label values of the input image appearing in each part. Note that when the window is scanning in the middle of a run, the value of the flag is output to the line buffer memory LBM as an output label, and when the window reaches the last pixel of the run, all flagged pixels are Label is written.

KLPの内部構成は第21図のブロック構成図に示され
る。KLPは、セレクタ2101.仮ラベルレジスタT
m I 2102. カウンタCnt210B、第1の
比較回路2104およびi2の比較回路2105により
構成されている。第1の比較回路2104にはラベル値
T、a、bが与えられ、入力画像の多値比較が行われる
。この比較結果はセレクタ2101のセレクト端子se
llに与えられる。第2の比較回路2105には、ラベ
ル値aのラベルマツチングメモリLMMの値Mat(a
)、仮ラベルレジスタTm12102の値およびカウン
タCnt2103の値が与えられ、同時に多値はセレク
タ2101の端子A、B。
The internal structure of KLP is shown in the block diagram of FIG. KLP selector 2101. Temporary label register T
m I 2102. It is composed of a counter Cnt210B, a first comparison circuit 2104, and an i2 comparison circuit 2105. The first comparison circuit 2104 is given label values T, a, and b, and performs a multi-value comparison of input images. The result of this comparison is the select terminal se of the selector 2101.
given to ll. The second comparison circuit 2105 includes a value Mat(a) in the label matching memory LMM of the label value a.
), the value of the temporary label register Tm12102 and the value of the counter Cnt2103 are given, and at the same time, multi-values are applied to the terminals A and B of the selector 2101.

Cに与えられる。このTm12102の値は、セレクタ
2101からの出力信号によって決定される。また、セ
レクタ2101の端子りにはラインバッファメモリLB
Mに記憶されるフラグFLAGの値が与えられる。
given to C. The value of Tm12102 is determined by the output signal from selector 2101. Also, a line buffer memory LB is connected to the terminal of the selector 2101.
The value of the flag FLAG stored in M is given.

第2の比較回路2105は与えられたこれらの多値を比
較する。この比較結果により各ラベル間の連結関係が判
断され、比較結果はセレクタ2101のセレクト端子5
eloに出力される。
The second comparison circuit 2105 compares these applied multi-values. The connection relationship between each label is determined based on the comparison result, and the comparison result is transmitted to the select terminal 5 of the selector 2101.
Output to elo.

セレクタ2101は与えられた多値に基づき、マクチン
グアドレスMAT  ADDRおよびマツチングデータ
MAT  DATAを出力し、ラベルマツチングメモリ
LMMの記憶内容の変更を行う。
The selector 2101 outputs a matching address MAT ADDR and matching data MAT DATA based on the given multi-value, and changes the storage contents of the label matching memory LMM.

また、これと共に、セレクタ2101は仮ラベルの値お
よび出力ラベルの値(LABEL)を出力する。
At the same time, the selector 2101 outputs a temporary label value and an output label value (LABEL).

第22図〜第27図はウィンド処理のフローチャートを
示す。
22 to 27 show flowcharts of window processing.

第22図は、第1の比較回路2104における多値T、
a、bの比較判断処理をする際のフローチャートを示す
。まず、着目画素のラベル値Tが0に等しいか否かを判
断する(ステップ2201)。Tが0の場合には後述す
る処理1を実行する(ステップ2202)。TがOでな
い場合には、ラベル値Tとラベル値すとを比較する(ス
テップ2203)。ラベル値Tとラベル値すとが等しい
場合には、ラベル値Tとラベル値aとを比較する(ステ
ップ2204)。ラベル値Tとラベル値aとが等しい場
合には処理2を実行する(ステップ2205)。つまり
、処理2は多値T。
FIG. 22 shows the multi-value T in the first comparison circuit 2104,
A flowchart is shown when performing a comparison judgment process between a and b. First, it is determined whether the label value T of the pixel of interest is equal to 0 (step 2201). If T is 0, processing 1 described later is executed (step 2202). If T is not O, label value T and label value S are compared (step 2203). When label value T and label value S are equal, label value T and label value a are compared (step 2204). If the label value T and the label value a are equal, process 2 is executed (step 2205). In other words, Process 2 is a multi-value T.

a、bが等しい場合に実行される処理である。この場合
、各ラベル値をOと表現すると、ウィンドウ状態はステ
ップ2205の図示の処理ボックスに隣接して描かれた
状態になる。
This is a process executed when a and b are equal. In this case, if each label value is expressed as O, the window state will be the state drawn adjacent to the illustrated processing box in step 2205.

ラベル値Tとラベル値aとが等しくない場合には処理3
を実行する(ステップ2206)。つまり、処理3はラ
ベル値Tとラベル値すとが等しく、ラベル値Tとラベル
値aとが異なる場合に実行される処理である。この場合
、ラベル値Tとラベル値すを○と表現し、ラベル値aを
×と表現すると、ウィンドウ状態はステップ2206の
図示の処理ボックスに隣接して描かれた状態になる。そ
して、ステップ2205またはステップ2206の処理
後に、ラインバッファメモリLBM160Bのウィンド
Tの位置にフラグを立てる(ステップ2207)。
If label value T and label value a are not equal, process 3
(step 2206). In other words, process 3 is a process that is executed when label value T and label value S are equal and label value T and label value a are different. In this case, if label value T and label value S are expressed as ○, and label value a is expressed as x, the window state will be in the state drawn adjacent to the processing box shown in step 2206. After the processing in step 2205 or step 2206, a flag is set at the position of window T in the line buffer memory LBM 160B (step 2207).

また、ステップ2203において、ラベル値Tとラベル
値すとが等しくない場合にも、ラベル値Tとラベル値a
とを比較する(ステップ2208)。ラベル値Tとラベ
ル値aとが等しい場合には処理4を実行する(ステップ
2209)。
Further, in step 2203, even if label value T and label value a are not equal, label value T and label value a
(step 2208). If the label value T and the label value a are equal, process 4 is executed (step 2209).

つまり、処理4はラベル値Tとラベル値aとが等しく、
ラベル値Tとラベル値すとが異なる場合に実行される処
理である。この場合、ラベル値Tとラベル値aをOと表
現し、ラベル値すをXと表現すると、ウィンドウ状態は
ステップ2209の図示の処理ボックスに隣接して描か
れた状態になる。
In other words, in process 4, label value T and label value a are equal,
This is a process executed when label value T and label value S are different. In this case, if label value T and label value a are expressed as O, and label value S is expressed as X, the window state will be the state drawn adjacent to the processing box shown in step 2209.

ラベル値Tとラベル値aとが等しくない場合には処理5
を実行する(ステップ2210)。つまり、処理5はラ
ベル値Tとラベル値aとが異なり、しかも、ラベル値T
とラベル値すとが異なる場合に実行される処理である。
If label value T and label value a are not equal, process 5
(step 2210). In other words, in process 5, label value T and label value a are different, and label value T
This is the process that is executed when the label value and the label value are different.

この場合、ラベル値TをOと表現し、ラベル値aとラベ
ル値すを×と表現すると、ウィンドウ状態はステップ2
210の図示の処理ボックスに隣接して描かれた状態に
なる。そして、ステップ2209またはステップ221
0の処理後にKLP内の仮ラベルレジスタTmlをクリ
アする(ステップ2211)。このTmlは、現在のウ
ィンド位置に達する直前のT部に有った画素に対するラ
ベルが記憶されているものである。
In this case, if label value T is expressed as O and label value a and label value S are expressed as ×, the window state is set to step 2.
It is drawn adjacent to the illustrated processing box 210 . Then, step 2209 or step 221
After processing 0, the temporary label register Tml in KLP is cleared (step 2211). This Tml stores a label for a pixel that was in the T portion immediately before reaching the current window position.

以下に説明する第23図から第27図のフローチャート
は、処理1から処理5までの比較判断処理のフローチャ
ートを示す。
The flowcharts in FIGS. 23 to 27 described below show flowcharts of the comparison judgment processing from processing 1 to processing 5.

第23図は上述の処理1のフローチャートを示す。処理
1は何も実行せずに終了する。
FIG. 23 shows a flowchart of the above-mentioned process 1. Process 1 ends without executing anything.

第24図は上述の処理2のフローチャートを示す。まず
、仮ラベルレジスタTmlに記憶された前回の画素のラ
ベル値と0とを比較する(ステップ2401)。Tml
のラベル値が0に等しい場合には、ラベル値aのラベル
マツチングメモリ(LMM)1604の値Mat(a)
を仮ラベルレジスタTm12102に書き込む(ステッ
プ2402)。Tmlのラベル値が0と等しくない場合
には、Tmlのラベル値とカウンタCnt2103のカ
ウンタ値とを比較する(ステップ240B)。カウンタ
2103には最も新しいラベルの値が記憶されている。
FIG. 24 shows a flowchart of the above-mentioned process 2. First, the label value of the previous pixel stored in the temporary label register Tml is compared with 0 (step 2401). Tml
When the label value of is equal to 0, the value Mat(a) of the label matching memory (LMM) 1604 of the label value a
is written into the temporary label register Tm12102 (step 2402). If the label value of Tml is not equal to 0, the label value of Tml and the counter value of counter Cnt2103 are compared (step 240B). The counter 2103 stores the value of the newest label.

仮ラベルレジスタTmlのラベル値とカウンタCntの
カウンタ値とが等しい場合には、ラベル値aのラベルマ
ツチングメモリ(LMM)の値Mat(a)をTmlに
書き込む(ステップ2404)、また、Tmlの値とカ
ウンタCntの値とが等しくない場合には、LMMの値
Mat(a)とTmlの値とを比較する(ステップ24
05) 。LMMの値Mat(a)とTmlの値とが等
しい場合には何も実行されない(ステップ2406)、
LMMの値Mat(a)とTmlの値とが等しくない場
合には、Tmlの値とLMMの値Mat(a)とのうち
の小さい方の値iM i n (Tm I、 Ma t
 (a) ) lをTmlに書き込む。さらに、両者の
うちの小さい方の値(M i n (Tm l、 Ma
 t  (a))] を、両者のうちの大きい方の値に
等しいラベル値のラベルマツチングメモリ [Ma t
  (M i n (Tm 1. Ma t(a))1
〕に書き込む(ステップ2407)。
If the label value of the temporary label register Tml and the counter value of the counter Cnt are equal, the value Mat(a) of the label matching memory (LMM) of the label value a is written to Tml (step 2404), and the value of Tml is written. If the value and the value of the counter Cnt are not equal, the value Mat(a) of LMM and the value of Tml are compared (step 24
05). If the value Mat(a) of LMM and the value of Tml are equal, nothing is executed (step 2406);
If the value of LMM Mat(a) and the value of Tml are not equal, the smaller value of the value of Tml and the value of LMM Mat(a) iM i (Tm I, Mat
(a) ) Write l to Tml. Furthermore, the smaller value of both (M in (Tm l, Ma
t (a))] is a label matching memory with a label value equal to the larger value of both [Ma t
(M i n (Tm 1. Mat(a))1
] (step 2407).

第25図は前述の処理3のフローチャートを示す図であ
る。処理3では、まず、仮ラベルレジスタTmlの値と
0とを比較する(ステップ2501)。Tmlの値が0
に等しい場合には、カウンタ2103のカウンタ値をT
mlに書き込む(ステップ2502)、また、Tmlの
値が0、に等しくない場合には、何も実行されない(ス
テップ2503)。
FIG. 25 is a diagram showing a flowchart of the above-mentioned process 3. In process 3, first, the value of the temporary label register Tml is compared with 0 (step 2501). Tml value is 0
, the counter value of the counter 2103 is set to T
ml (step 2502), and if the value of Tml is not equal to 0, nothing is done (step 2503).

第26図は前述の処理4のフローチャートを示す図であ
る。ます、Tm1O値と0とを比較する(ステップ26
01)。Tmlの値が0に等しい場合には、ラベル値a
のLMMの値Mat(a)をターゲットエリアのラベル
値として、T部とフラグが立っている全てのレジスタに
このMat(a)を書き込む(ステップ2602)。こ
の時、LBMのフラグは全てクリアされる。また、ステ
ップ2601でTmlの値が0に等しくない場合には、
Tmlの値とCntの値とを比較する(ステップ260
3)。Tmlの値とCntの値とが等しい場合には、ラ
ベル値aのLMMの値Mat(a)をターゲットエリア
のラベル値として、T部とフラグが立っている全てのレ
ジスタにこのMat(a)を書き込む(ステップ260
4)。
FIG. 26 is a diagram showing a flowchart of the above-mentioned process 4. First, compare the Tm1O value with 0 (step 26
01). If the value of Tml is equal to 0, the label value a
The LMM value Mat(a) is set as the label value of the target area, and this Mat(a) is written into the T section and all registers with flags set (step 2602). At this time, all LBM flags are cleared. Further, if the value of Tml is not equal to 0 in step 2601,
Compare the value of Tml and the value of Cnt (step 260
3). If the value of Tml and the value of Cnt are equal, the LMM value Mat(a) of label value a is set as the label value of the target area, and this Mat(a) is stored in all registers where the T part and flag are set. (step 260)
4).

この時、LBMのフラグは全てクリアされる。At this time, all LBM flags are cleared.

また、Tmlの値とCntの値とが等しくない場合には
、Tmlの値とMat(a)の値とを比較する(ステッ
プ2605)。そして、Tmlの値とMat(a)の値
とが等しい場合には、ラベル値aのLMMの値Mat(
a)をターゲットエリアのラベル値として、T部とフラ
グが立っている全てのレジスタにこのMat(a、)を
書き込む(ステップ2606)。この時、LBMのフラ
グは全てクリアされる。また、Tmlの値とMat(a
)の値とが等しくない場合には、Tmlの値とラベル値
aのLMMの値Mat(a)との小さい方の値(M i
 n (Tm l、 Ma t (a) ) lをター
ゲットエリアのラベル値として、T部とフラグが立って
いる全てのレジスタに書き込む。この時、LBMのフラ
グは全てクリアされる。さらに、Tmlの値とLMMの
値Mat(a)とのうちの小さい方の値IM i n 
(Tm l、 Ma t (a))1を、これら両者の
うちの大きい方の値に等しいラベル値のラベルマツチン
グメモリ[MatfMi n (Tml、Ma t  
(a))l ]に書き込む(ステップ2607)。
Furthermore, if the value of Tml and the value of Cnt are not equal, the value of Tml and the value of Mat(a) are compared (step 2605). Then, when the value of Tml and the value of Mat(a) are equal, the value of LMM of label value a Mat(
Using a) as the label value of the target area, this Mat(a,) is written to the T section and all registers with flags set (step 2606). At this time, all LBM flags are cleared. Also, the value of Tml and Mat(a
) are not equal, the smaller value of Tml and the LMM value Mat(a) of label value a (M i
n (Tml, Mat (a)) Write l as the label value of the target area to the T section and all registers with flags set. At this time, all LBM flags are cleared. Furthermore, the smaller value IM i n of the value of Tml and the value Mat(a) of LMM
(Tml, Mat (a)) 1 as a label matching memory [MatfMin (Tml, Mat
(a))l] (step 2607).

第27図は前述の処理5のフローチャートを示す図であ
る。まず、仮ラベルレジスタTmlの値と0とを比較す
る(ステップ2701)。Tmlの値が0に等しい場合
には、Cn tの値をターゲットエリアのラベル値とし
て、T部とフラグが立っている全てのレジスタにこのC
ntの値を書き込む。この時、LBMのフラグは全てク
リアされる。さらに、Cntの値を、Cntの値に等し
いラベル値のMat(Cnt)に書き込み、Cntの値
を1つカウントアツプする(ステップ2702)。
FIG. 27 is a diagram showing a flowchart of the above-mentioned process 5. First, the value of the temporary label register Tml is compared with 0 (step 2701). If the value of Tml is equal to 0, the value of Cnt is used as the label value of the target area, and this Cnt is written to the T part and all registers flagged.
Write the value of nt. At this time, all LBM flags are cleared. Further, the value of Cnt is written to Mat(Cnt) with a label value equal to the value of Cnt, and the value of Cnt is counted up by one (step 2702).

また、Tmlの値がOに等しくない場合には、Tmlの
値をターゲットエリアのラベル値として、T部とフラグ
が立っている全てのレジスタにTmlの値を書き込む(
ステップ2703)。この時、LBMの全てのフラグは
クリアされる。次に、Tmlの値とCntの値とを比較
する(ステップ2704)。Tmlの値とCntの値と
が等しい場合には、Cntの値を、Cntの値に等しい
ラベル値のMat(Cnt)に書き込む。さらに、Cn
tの値を1つカウントアツプする(ステップ2705)
。また、Tmlの値とCntの値とが等しくない場合に
は、何も実行しない(ステップ2706)。
Also, if the value of Tml is not equal to O, the value of Tml is written to the T part and all registers where the flag is set, using the value of Tml as the label value of the target area (
Step 2703). At this time, all flags of the LBM are cleared. Next, the value of Tml and the value of Cnt are compared (step 2704). If the value of Tml and the value of Cnt are equal, the value of Cnt is written to Mat(Cnt) of the label value equal to the value of Cnt. Furthermore, Cn
Count up the value of t by 1 (step 2705)
. Furthermore, if the value of Tml and the value of Cnt are not equal, nothing is executed (step 2706).

次に、ラインバッフ7メモリLBMやラベルマツチング
メモリLMMに使用されるラベリングメモリKLMにつ
いて説明する。今までのメモリは、1回のアドレス指定
により1個の内部レジスタにしかデータが書き込めなか
った。しかし、以下に説明するKLMを使用することに
より、複数個の内部レジスタに1度にデータを書き込む
ことが出来る。このため、本ラベリングメモリKLMは
、ラン処理用のラインレジスタ(LBM)、  ラベル
統合不要のラベルマツチングメモリ(LMM)。
Next, the labeling memory KLM used for the line buffer 7 memory LBM and the label matching memory LMM will be explained. In conventional memories, data could only be written to one internal register with one address specification. However, by using the KLM described below, data can be written to multiple internal registers at once. Therefore, this labeling memory KLM is a line register (LBM) for run processing and a label matching memory (LMM) that does not require label integration.

1スキヤン用のラベル画像メモリ(LABELM)およ
びラベル整合を行えるラベルマツチングメモリに使用す
ることが出来る。
It can be used as a label image memory (LABELM) for one scan and a label matching memory that can perform label matching.

KLMは複数のレジスタにより構成されているが、第2
8図はこれらレジスタの中の1個のレジスタのブロック
構成を示している。このブロックはKLMの構成の1単
位になっている。各レジスタ2801にはコンパレータ
2802が対になって接続されている。このコンパレー
タ2802には、レジスタ2801からの出力データD
ATAおよびこの出力データに一比較されるべき情報c
KLM is composed of multiple registers, but the second
FIG. 8 shows the block configuration of one of these registers. This block is one unit of the KLM structure. Comparators 2802 are connected to each register 2801 in pairs. This comparator 2802 receives output data D from the register 2801.
ATA and the information to be compared with this output data c
.

Mが与えられる。コンパレータ2802は与えられたデ
ータを比較し、その比較結果をアンド回路2803に出
力する。アンド回路2803にはこの他にアドレスデコ
ーダ回路2804の出力が与えられている。アンド回路
2803は、コンパレータ2802またはデコーダ回路
28o4のいずれか一方が信号を出力していれば、オア
回路2805に信号を出力する。
M is given. Comparator 2802 compares the applied data and outputs the comparison result to AND circuit 2803. In addition to this, the output of an address decoder circuit 2804 is given to the AND circuit 2803. AND circuit 2803 outputs a signal to OR circuit 2805 if either comparator 2802 or decoder circuit 28o4 outputs a signal.

オア回路2805にはCPUからのライト信号WRが与
えられており、このライト信号WRに同期してレジスタ
2801にイネーブル信号が与えられる。つまり、アド
レスデコーダ回路28o4によってセレクトされるか、
コンパレータ回路2802での比較結果が一致した場合
に、ライト信号WRに同期してレジスタ2801にデー
タが書き込まれる。各デコーダ回路28o4へのアドレ
シングおよび各コンパレータ回路28o2での比較判断
は全て同時に実行される。このため、1回のアドレシン
グまたは1回のデータの比較判断により、KLMを構成
する複数個のレジスタの内容を同時に書き替えることが
可能である。
A write signal WR from the CPU is applied to the OR circuit 2805, and an enable signal is applied to the register 2801 in synchronization with the write signal WR. In other words, whether it is selected by the address decoder circuit 28o4 or
If the comparison result in comparator circuit 2802 matches, data is written to register 2801 in synchronization with write signal WR. Addressing to each decoder circuit 28o4 and comparison judgment by each comparator circuit 28o2 are all performed simultaneously. Therefore, it is possible to simultaneously rewrite the contents of a plurality of registers constituting the KLM by one addressing or one data comparison decision.

前述したランを用いたラベリング処理によって得られた
仮ラベルは、ラベル統合を行うと不連続な値になる。こ
の時のラベルマツチングメモリLMMの内容は第29図
(a)に示される。各アドレス1〜10の画素に対応し
てラベル1,3.6がデータとして記憶されている。こ
のラベル値は不連続な値になっているため、同図(b)
に示され後に詳述する特徴抽出プロセッサKLCにより
、同図(c)に示される連続な値を持つラベルに変換す
る。すなわち、KLMによって構成されたラベルマツチ
ングメモリLMMに記憶されるラベル値は、1,2.3
と連続した値になる。
The temporary labels obtained by the labeling process using the runs described above become discontinuous values when the labels are integrated. The contents of the label matching memory LMM at this time are shown in FIG. 29(a). Labels 1, 3.6 are stored as data corresponding to pixels at addresses 1 to 10. Since this label value is a discontinuous value, the same figure (b)
A feature extraction processor KLC shown in FIG. 1 and described in detail later converts the label into a label having continuous values as shown in FIG. That is, the label values stored in the label matching memory LMM configured by KLM are 1, 2.3.
becomes a continuous value.

より詳細には、ラベリングプロセッサKLCはLMMの
アドレスを発生し、該当アドレスの示すデータを取り込
む。引き続いて取り込んだデータとアドレスとを比較し
、6値が同じならば新しいデータをLMMに出力してラ
ベル値を書き替える。
More specifically, the labeling processor KLC generates an address for the LMM and takes in the data indicated by the corresponding address. Subsequently, the captured data and address are compared, and if the six values are the same, new data is output to the LMM and the label value is rewritten.

また、6値が異なる場合には、LMMへ次のアドレスを
出力して次のアドレスとデータとを比較する。以後、こ
の処理を繰り返して実行することにより、第29図(a
)に示される不連続なラベル値は同図(c)に示される
連続なラベル値に変換される。
If the six values are different, the next address is output to the LMM and the data is compared with the next address. Thereafter, by repeatedly executing this process, the image shown in FIG. 29 (a
) is converted into a continuous label value shown in (c) of the same figure.

具体的には、同図(a)のアドレス1のデータ(1)は
アドレスと同じであるため、KLCは新しいデータとし
て1を出力し、アドレス1のデータと同じデータ(1)
を持つアドレス2,4,5゜7のデータを新しいデータ
1に書き替える。図示の場合には、古いデータと新しい
データとがたまたま同じ1になっているため、同図(a
)と同図(C)との該当アドレスのデータに変化は無い
Specifically, since the data (1) at address 1 in FIG.
Rewrite the data at addresses 2, 4, 5°7 with new data 1. In the case shown in the figure, the old data and new data happen to be the same 1, so the figure (a
) and (C) of the same figure, there is no change in the data at the corresponding address.

次に、アドレス、2のデータ(1)とアドレスとを比較
する。アドレスとデータとは異なるため、次のアドレス
3を発生する。そして、アドレス3のデータ(3)とア
ドレスとを比較する。アドレスとデータとは同じである
ため、新しいデータとして2を出力する。LMMはKL
Mによって構成されていため、アドレス3のデータと同
じデータ(3)を持つアドレス9.10のデータは同図
(C)に示されるように全て同時に2に書き替えられる
。次に、KLCは新たなアドレス4を発生する。アドレ
スとデータとは異なるためにさらに次にアドレス5を発
生し、以後、上記と同様な処理を繰り返す。この結果、
不連続値は連続値:こ変換される。
Next, data (1) of address 2 is compared with the address. Since the address and data are different, the next address 3 is generated. Then, data (3) at address 3 is compared with the address. Since the address and data are the same, 2 is output as new data. LMM is KL
Since the data at address 9 and 10 have the same data (3) as the data at address 3, they are all rewritten to 2 at the same time, as shown in FIG. 3(C). The KLC then generates a new address 4. Since the address and data are different, address 5 is generated next, and thereafter, the same process as above is repeated. As a result,
Discontinuous values are converted to continuous values.

第30図はこの特徴抽出ブロモ・ソサK L Cの内部
構成を示すブロック図である。このKLCを使用するこ
とにより、1次ラベリングによって発生する仮ラベルの
前処理が行われる。また、2次ラベリングの時、ラベリ
ングと同時に、同一ラベル領域の面積の演算、同一ラベ
ル領域のX方向アドレスの合計の演算および同一ラベル
領域のY方向アドレスの合計の演算がこのKLCによっ
て実行される。
FIG. 30 is a block diagram showing the internal configuration of this feature extraction Bromo-Sosa KLC. By using this KLC, preprocessing of temporary labels generated by primary labeling is performed. In addition, during secondary labeling, at the same time as labeling, calculation of the area of the same label area, calculation of the sum of the X-direction addresses of the same label area, and calculation of the sum of the Y-direction addresses of the same label area are executed by this KLC. .

KLCは、+1加算器3001と、2つの加算器300
2.3003と、比較器3004および2つのカウンタ
3005,3006とから構成されている。+1加算器
3001は、同一ラベル値を持つ画素入力が有った場合
にそのカウント数を1つづつカウントアツプし、同一ラ
ベル領域の面積を演算してこれを5izeとして出力す
る。加算器3002.3003にはX方向アドレス値Y
方向アドレス値が入力されている。そして、同一ラベル
値の画素入力が有った場合に、各方向ごとにアドレス値
を加算していき、各アドレス方向ごとに同一ラベル領域
のアドレス値の合計を演算する。各合計値はX  AD
DRおよびY  ADDRとして出力される。各方向の
アドレスの合計値を同一ラベル領域の面積で割ることに
より、各方向の重心を求めることが出来る。そして、各
同一ラベル領域の重心を求め、地平線よりも上に重心が
ある領域は、道路候補領域の抽出に有効な領域ではない
ものとして除去する。
KLC has a +1 adder 3001 and two adders 300
2.3003, a comparator 3004, and two counters 3005 and 3006. The +1 adder 3001 increments the count by one when there is a pixel input having the same label value, calculates the area of the same label area, and outputs it as 5ize. The adders 3002 and 3003 contain the X direction address value Y.
A direction address value has been entered. Then, when there is a pixel input with the same label value, the address values are added in each direction, and the sum of the address values of the same label area is calculated for each address direction. Each total value is X AD
Output as DR and Y ADDR. By dividing the total value of addresses in each direction by the area of the same label area, the center of gravity in each direction can be determined. Then, the center of gravity of each identically labeled area is determined, and areas whose center of gravity is above the horizon are removed as not being effective for extracting road candidate areas.

比較器3004およびカウンタ3005゜3006は、
1次ラベリングの時に発生する仮ラベルの前処理、つま
り、不連続なラベル値を連続なラベル値に変換する処理
に使用される。カウンタ3005,3006にはクロッ
ク信号CLKが入力され、カウンタ3005の出力はラ
ベルマツチングメモリLMMへ出力されるマツチングア
ドレスMAT  ADDRになる。このアドレスは比較
器3004にも同時に与えられる。また、カウンタ30
06の出力はラベルマツチングメモリLMMへ出力され
るデータMAT  DATAになる。
The comparator 3004 and counters 3005 and 3006 are
It is used for preprocessing of temporary labels that occur during primary labeling, that is, for converting discontinuous label values into continuous label values. A clock signal CLK is input to counters 3005 and 3006, and the output of counter 3005 becomes a matching address MAT ADDR that is output to label matching memory LMM. This address is also given to comparator 3004 at the same time. Also, counter 30
The output of 06 becomes data MAT DATA that is output to the label matching memory LMM.

比較器3004は与えられたアドレスおよびデータを前
述のようにして比較し、アドレスとデータの多値が一致
する場合にはカウンタ3006に信号を出力する。カウ
ンタ3006はこの信号を入力した場合にはMat  
DATAに現在のカウンタの値を出力し、値を1つカウ
ントアツプする。
Comparator 3004 compares the given address and data as described above, and outputs a signal to counter 3006 if the multi-values of the address and data match. When the counter 3006 receives this signal, the Mat
Outputs the current counter value to DATA and increments the value by one.

以上説明してきたラベリング処理の処理時間は、各ラン
に沿って行われる2スキヤンのラスク走査時間と、ラベ
ル統合時間との和の時間を必要とした。しかし、第16
図に示されるラベルメモリLABELM1606に前述
したラベリングメモリKLMを使用して構成することに
より、1スキヤンでラベリング処理を実行することが出
来る。すなわち、第31図に示されるように、多値の入
力画像3101が取り込まれた場合に、ラベリングプロ
セッサKLP3102はラインレジスタ3103および
ラベルマツチングメモリ31o4を使用して前述と同様
にラベリング処理を実行する。そして、このラベリング
によって得られた各画素のラベル値は、各ランの最終の
画素の走査時点でラベル画像メモリ31o5にそのまま
書き込まれる。なお、ラベル統合は行われないため、各
ラベルの値は不連続な値のままに記憶される。
The processing time of the labeling process described above required the sum of the rask scanning time of two scans performed along each run and the label integration time. However, the 16th
By configuring the label memory LABELM 1606 shown in the figure using the labeling memory KLM described above, labeling processing can be executed in one scan. That is, as shown in FIG. 31, when a multivalued input image 3101 is captured, the labeling processor KLP 3102 uses the line register 3103 and the label matching memory 31o4 to execute the labeling process in the same manner as described above. . The label value of each pixel obtained by this labeling is written as is into the label image memory 31o5 at the time of scanning the last pixel of each run. Note that since label integration is not performed, the values of each label are stored as discontinuous values.

ラベリングメモリKLMは、前述したように、各内部レ
ジスタにコンパレータが対になって接続されており、コ
ンパレータでの比較結果が一致したレジスタおよびアド
レスセレクトされたレジスタに、−度に新しいデータが
書き込まれるものである。このKLMの特徴によって1
スキヤンラベリングが可能になっている。また、ラベリ
ングプo−tyッ+I−KLPは、本方式のアルゴリズ
ムがハードウェア化されたものであり、高速ラベリング
を可能にするものである。
As mentioned above, in the labeling memory KLM, a comparator is connected to each internal register in pairs, and new data is written to the register whose comparison result by the comparator matches and the register whose address has been selected at - degrees. It is something. With this KLM feature 1
Scan labeling is now possible. Furthermore, the labeling process O-TY+I-KLP is a hardware version of the algorithm of this method, and enables high-speed labeling.

この1スキャンラベリング方式により、ラベリング処理
時間を今までの1/2以下に短縮することが可能になる
。例えば、装置が8M Hzのクロック信号で動作して
いる場合には、今までのラベリング処理時間には、ウィ
ンドウを2スキヤンするための66m5 e cと、ラ
ベル統合に必要とされる時間とを必要とした。しかし、
この1スキャン方式によれば、1/2以下の33m5e
cでラベリング処理を行うことが出来る。
This one-scan labeling method makes it possible to reduce the labeling processing time to less than half of the previous one. For example, if the device is operating with an 8 MHz clock signal, the traditional labeling processing time requires 66 m5 e c for two scans of the window, plus the time required for label integration. And so. but,
According to this one-scan method, 33m5e, which is less than 1/2
Labeling processing can be performed using c.

また、通常の画素の走査は入力画像の画面左上から右下
に行うが、道路領域を抽出する画像処理においては、目
的とする画像は画像の下方に位置する。従って、目的と
する画像を走査する際に仮ラベルを記憶するメモリかオ
ーバーフローする事態が発生する可能性がある。このた
め、走査を画面の右下から左上に行い、目的とする画像
を初めに走査することにより、目的とする画像を常に取
得できるようにする。つまり、目的とする画像を最初に
取得すれば、メモリのオーバーフローが発生してもその
オーバーフロー時の画像走査は不要な画像部分について
の走査になり、目的とする画像を常に取得することがで
きる。
Further, although normal pixel scanning is performed from the upper left to the lower right of the screen of the input image, in image processing for extracting a road area, the target image is located at the bottom of the image. Therefore, when scanning a target image, there is a possibility that the memory for storing temporary labels will overflow. Therefore, by scanning from the lower right to the upper left of the screen and scanning the target image first, the target image can always be obtained. In other words, if the target image is acquired first, even if a memory overflow occurs, image scanning at the time of overflow will be a scan of unnecessary image parts, and the target image can always be acquired.

次に、画像分割されて得られた「複数の領域の併合手法
」について説明する。
Next, a "method for merging multiple regions" obtained by dividing an image will be described.

「テンプレート画像を用いた繰返しきい値処理による走
行コースの抽出手法」により道路候補領域が求められ、
「明るさの違いに注目した走行コース上の影や高輝度部
分の抽出手段」により低輝度領域である影や高輝度領域
が求められた。この道路候補領域を基準にし、道路候補
領域と強く繋がっている低輝度領域や高輝度領域を道路
候補領域に併合し、一つの領域として扱い、これを走行
コースとみなす。このためには、各領域に隣接している
共通境界長と各領域の周囲長とを求め、繋がっている各
領域どうしの関係を記述する。この各領域どうしの関係
の記述により併合関係が表され、従来のようにラベルの
付は替え操作を行わなくても、領域と領域の併合処理を
したのと同じ結果が得られる。なお、共通境界長は各領
域に隣接している画素の辺の長さに基づいて求まり、周
囲長は各領域の最外部の画素の辺の長さに基づいて求ま
る。
Road candidate areas are determined by the “driving course extraction method using iterative threshold processing using template images”.
Shadows and high-brightness areas, which are low-brightness areas, were found using ``a method for extracting shadows and high-brightness areas on a driving course that focuses on differences in brightness.'' Using this road candidate area as a reference, low-luminance areas and high-luminance areas that are strongly connected to the road candidate area are merged into the road candidate area, treated as one area, and regarded as a driving course. To do this, the common boundary length adjacent to each region and the perimeter length of each region are determined, and the relationship between the connected regions is described. The merging relationship is expressed by the description of the relationship between each region, and the same result as merging regions can be obtained without changing labels as in the conventional method. Note that the common boundary length is determined based on the length of the side of the pixels adjacent to each region, and the perimeter length is determined based on the length of the side of the outermost pixel of each region.

以下に本手法のアルゴリズムを示す。本手法は二通りあ
り、第1に、逆り字のマスクを走査させる逆り字マスク
走査式手法があり、この手法は簡単なアルゴリズムでハ
ードウェア化に適している。
The algorithm of this method is shown below. There are two methods for this method. Firstly, there is an inverted character mask scanning method in which a mask of inverted characters is scanned. This method is a simple algorithm and is suitable for hardware implementation.

第2に、領域の境界を局所的に探査する領域境界探査式
手法があり、この手法は必要な領域の境界のみを探査す
るため、少ないメモリで処理できて有効である。
Second, there is a region boundary exploration method that locally searches the boundaries of a region, and since this method searches only the boundaries of a necessary region, it is effective because it can be processed with a small amount of memory.

第1の手法である逆り字マスク走査式手法は、第32図
に示される逆り字マスクをラベル画像の左から右へ、上
から下へ走査することにより実行される。図示のマスク
に現れるX画素は行目する画素であり、a画素は着目画
素Xの上に位置する画素、b画素は着目画素Xの左隣に
位置する画素である。例えば、第33図に示される画素
領域を想定する。同図に示される口は1つの画素を表し
ており、この口の中の数値はその画素のラベル値を表し
ている。本例の場合には、ラベル値1の領域とラベル値
4の領域とが隣接している。なお、図には示されていな
いが、背景領域はラベル値が0になっている。
The first method, the reverse character mask scanning method, is executed by scanning the reverse character mask shown in FIG. 32 from left to right and from top to bottom of the label image. The X pixel appearing in the illustrated mask is the pixel in the row, the a pixel is the pixel located above the pixel of interest X, and the b pixel is the pixel located to the left of the pixel of interest X. For example, assume a pixel area shown in FIG. 33. The mouth shown in the figure represents one pixel, and the numerical value inside the mouth represents the label value of that pixel. In this example, the area with label value 1 and the area with label value 4 are adjacent to each other. Although not shown in the figure, the label value of the background area is 0.

各領域の周囲長obは、逆り字マスクを各領域の行に沿
って、つまり、ランに沿って走査することにより求まる
。具体的には、ラベル値1の領域の周囲長Ob]は次の
ように求まる。まず、逆り字マスクのX画素を最上段の
ランの左端に位置する画素に合わせる。この場合、a画
素およびb画素は背景領域にあり、ラベル値は0になっ
ているため、この画素の2辺はラベル値1の領域の周囲
に位置していることが分かる。従って、周囲長oblを
カウントするカウンタに2を加える。次に、逆り字マス
クを右に走査し、X画素を右隣の画素に合わせる。この
場合、a画素は背景領域にあり、b画素は前回マスクを
合わせたラベル値1の本領域内の画素にある。従って、
この画素の1辺がラベル値1の本領域の周囲に位置して
いることが分かり、カウンタにさらに1を加える。この
ように逆り字マスクをランに沿ってラベル値1の領域に
ついて走査することにより、周囲長oblは18になる
。なお、周囲長Obの単位は画素の辺の数である。
The perimeter ob of each region is determined by scanning the inverted mask along the rows of each region, that is, along the runs. Specifically, the perimeter Ob of the area with the label value 1 is determined as follows. First, the X pixel of the inverted character mask is aligned with the pixel located at the left end of the top run. In this case, since pixel a and pixel b are in the background area and have a label value of 0, it can be seen that the two sides of this pixel are located around the area with the label value of 1. Therefore, 2 is added to the counter that counts the perimeter obl. Next, the reverse character mask is scanned to the right, and the X pixel is aligned with the pixel on the right. In this case, the a pixel is in the background area, and the b pixel is in the main area with a label value of 1, which is the sum of the previous mask. Therefore,
It is found that one side of this pixel is located around the main area with the label value 1, and 1 is added to the counter. By scanning the inverted character mask along the run for the area with the label value 1 in this manner, the perimeter obl becomes 18. Note that the unit of the perimeter Ob is the number of sides of a pixel.

ラベル値4の領域の周囲長obJも上記の周囲長obl
と同様にして求められ、その値は20になる。
The perimeter obJ of the area with label value 4 is also the perimeter obl above.
It is obtained in the same way as , and the value is 20.

また、ラベル値1の領域とラベル値4の領域との共通境
界具cbは次のようにして求めることが出来る。この共
通境界具cbは、ラベル値1の領域から見たラベル値4
の領域との共通境界具cb14と、ラベル値4の領域か
ら見たラベル値1の領域との共通境界具cb41とで異
なる場合がある。つまり、マスクが逆り字の形状をして
おり、各画素の2近傍の画素しか考慮しないために共通
境界具に差が生じるのであるか、複数の領域の併合処理
に際しては同等問題とならない。なお、走査するマスク
を着目画素の4近傍を見る十字形状にすれば、共通境界
具に差がでることはない。
Further, the common boundary tool cb between the area with label value 1 and the area with label value 4 can be found as follows. This common boundary tool cb has a label value of 4 when viewed from an area with a label value of 1.
The common border tool cb14 with the area of is different from the common border tool cb41 with the area of label value 1 viewed from the area of label value 4. In other words, the mask has an inverted shape and only two neighboring pixels of each pixel are considered, which may cause a difference in the common border, or there is no equivalent problem when merging multiple regions. Note that if the mask to be scanned is made into a cross shape that looks at four neighborhoods of the pixel of interest, there will be no difference in common boundary tools.

ラベル値1の領域から見たラベル値4との共通境界具c
b14は、周囲長oblを求める際のマスク走査によっ
て求められる。この共通境界具cb14は0になる。す
なわち、ラベル値1の領域の各ランについて逆り字マス
クを走査しても、a画素およびb画素にはラベル値4の
画素が現れないからである。
Common boundary tool c with label value 4 seen from the area of label value 1
b14 is determined by mask scanning when determining the perimeter obl. This common boundary tool cb14 becomes 0. That is, even if the inverted character mask is scanned for each run in the area with the label value 1, the pixels with the label value 4 do not appear in the a and b pixels.

ラベル値4の領域から見たラベル値1の領域との共通境
界具cb41は、周囲長ob4を求める際のマスク走査
によって求めることが出来る。この共通境界具cb41
は3になる。すなわち、ラベル値4の領域の2段目およ
び3段目のランの先頭画素にマスクが位置する場合、b
画素にはラベル値1の画素が現れる。このため、3段目
までのランについてのマスク走査により、共通境界具c
b41をカウントするカウンタの値は2になる。
A common boundary tool cb41 between the area of label value 1 and the area of label value 1 viewed from the area of label value 4 can be obtained by mask scanning when obtaining the perimeter ob4. This common boundary tool cb41
becomes 3. In other words, if the mask is located at the first pixel of the second and third runs in the area with label value 4, b
A pixel with a label value of 1 appears in the pixel. Therefore, by mask scanning for the runs up to the third stage, the common boundary tool c
The value of the counter that counts b41 becomes 2.

さらに、4段目のランの先頭位置にマスクが位置する際
には、マスクのa画素にはラベル値1の画素が現れる。
Further, when the mask is located at the beginning of the fourth run, a pixel with a label value of 1 appears at pixel a of the mask.

このため、カウンタに1が加えられてカウンタの積算値
は3になり、共通境界具cb41は3になる。なお、共
通境界具cbの単位は画素の辺の数である。
Therefore, 1 is added to the counter, the integrated value of the counter becomes 3, and the common boundary tool cb41 becomes 3. Note that the unit of the common boundary tool cb is the number of sides of a pixel.

次に、このように求めた各領域間の共通境界具および各
領域の周囲長は、第34図に示されるラベル間境界長マ
トリクスにその値が記憶される。
Next, the values of the common boundary between the regions and the perimeter of each region thus determined are stored in the inter-label boundary length matrix shown in FIG. 34.

同マトリクスの各列に付された数字0,1.2・・・、
j、・・・klおよび各行に付された数字0,1゜2 
・・・、i、・・・gはラベル値を示す。各列および各
行の数値によって指定される場所に記憶される数値mi
jは、ラベル値iの領域から見たラベル値jの領域との
共通境界具である。また、k+1番目の列に記憶される
数値t1は、ラベル値iの領域の周囲長である。
The numbers 0, 1.2, etc. attached to each column of the same matrix
j,...kl and numbers 0, 1゜2 attached to each line
..., i, ...g indicate label values. Numerical value mi stored in the location specified by the numerical value in each column and each row
j is a common boundary between the area of label value j and the area of label value j seen from the area of label value i. Further, the numerical value t1 stored in the (k+1)th column is the perimeter of the area of the label value i.

第33図に示された画素領域を例とすると、ラベル値1
の領域から見たラベル値4の領域との共通境界具cb1
4の値は0であるため、同マトリクスの1行4列に位置
するメモリにはOが記憶される。また、ラベル値4の領
域から見たラベル値1の領域との共通境界具cb41の
値は3であるため、同マトリクスの4行1列に位置する
メモリには3が記憶される。
Taking the pixel area shown in FIG. 33 as an example, the label value 1
Common boundary tool cb1 with the area of label value 4 seen from the area of
Since the value of 4 is 0, O is stored in the memory located in the 1st row and 4th column of the same matrix. Further, since the value of the common boundary tool cb41 between the area of label value 1 and the area of label value 1 viewed from the area of label value 4 is 3, 3 is stored in the memory located in the 4th row and 1st column of the same matrix.

各領域の周囲長および各領域間の共通境界具を求めてマ
トリクスを作成した後、各領域間の接続度を計算する。
After creating a matrix by finding the perimeter of each region and common boundaries between the regions, the degree of connectivity between the regions is calculated.

この接続度は共通境界長と周囲長とに基づく次式により
求まる。
This degree of connectivity is determined by the following equation based on the common boundary length and perimeter length.

接続度−X/m i n (A、  B)ここで、Aは
ラベル値lの領域の周囲長、Bはラベル値jの領域の周
囲長であり、m1n(A。
Connectivity - X/min (A, B) where A is the perimeter of the region with label value l, B is the perimeter of the region with label value j, and m1n(A.

B)はA、Hの各数値の内の小さい方の数値を表す。ま
た、Xは次式で表される各領域間の共通境界長の平均値
である。
B) represents the smaller of A and H. Moreover, X is the average value of the common boundary length between each region expressed by the following formula.

X−(X1+X2)/2 Xlはラベル値iの領域から見たラベル値jの領域との
共通境界長、X2はラベル値jの領域から見たラベル値
iの領域との共通境界長である。
X-(X1+X2)/2 Xl is the common boundary length between the area of label value j and the area of label value j as seen from the area of label value i, and X2 is the common boundary length of the area of label value i as seen from the area of label value j. .

上記のXを示す式は、XlおよびX2共に0てない(X
i≠O,X2≠O)場合に有効である。
In the above formula for X, both Xl and X2 are not 0 (X
This is valid when i≠O, X2≠O).

X2が0 (X2−0)の場合にはXは次式に示される
When X2 is 0 (X2-0), X is expressed by the following formula.

−X  1 Xlが0 (Xi−0)の場合にはXは次式に示される
-X 1 When Xl is 0 (Xi-0), X is represented by the following formula.

−X2 計算した接続度か所定のしきい値以上であれば、ラベル
値iの領域とラベル値jの領域との繋がりは強く、各領
域は併合すべき関係にある。また、接続度が所定のしき
い値以下であれば、ラベル値iの領域とラベル値jの領
域との繋がりは薄く、各領域は併合すべき関係にはない
。この併合関係は、第35図に示される特徴量リストの
接続ラベル欄に記述される。
-X2 If the calculated degree of connectivity is greater than or equal to a predetermined threshold, the connection between the region with label value i and the region with label value j is strong, and the regions are in a relationship that should be merged. Furthermore, if the degree of connectivity is below a predetermined threshold, the connection between the region with label value i and the region with label value j is weak, and the regions are not in a relationship that should be merged. This merging relationship is described in the connection label column of the feature list shown in FIG. 35.

同リストのラベルNo、はラベル値であり、面積2重心
はそのラベル値の領域の面積および重心である。この面
積および重心は前述のラベリング処理の時に得られる。
The label No. of the same list is a label value, and the area double center of gravity is the area and center of gravity of the region of that label value. This area and center of gravity are obtained during the labeling process described above.

外接長方形とは、そのラベル値の領域内の全ての画素を
囲む長方形である。
A circumscribing rectangle is a rectangle that encloses all pixels within the region of the label value.

外接長方形は、辺と辺との交点である4つの頂点の内、
左上の頂点の座標tL (x、y)と、右下の頂点の座
標bR(x、y)とによって特定される。各座標は上述
の境界の探査過程処理の時に求められる。また、接続ラ
ベル欄に記載されたラベルNo、は、そのラベル値の領
域と併合すべき関係にある領域のラベル値を示している
。この欄に記載された領域とさらに併合すべき領域があ
る場合には、図示のように、接続ラベルがさらにポイン
タにより繋げられる。
A circumscribed rectangle has four vertices that are intersections between sides,
It is specified by the coordinates tL (x, y) of the top left vertex and the coordinates bR (x, y) of the bottom right vertex. Each coordinate is determined during the boundary exploration process described above. Further, the label No. written in the connection label column indicates the label value of the area that should be merged with the area of that label value. If there is an area to be merged with the area described in this column, connection labels are further connected by a pointer as shown in the figure.

また、同リストに記述された各特徴量は第36図に示さ
れる各領域のものである。各領域にはラベル値β1〜g
4が付され、また、61〜G4は各領域の重心位置を示
している。また、各領域には外接長方形が描かれている
。この長方形の上の1辺と領域との接点は座標st (
x、y)として表され、領域開始点tL (x、y)か
ら水平操作することにより求まる。座標stは後述する
手法において利用される。
Further, each feature amount described in the same list is for each area shown in FIG. 36. Each area has a label value β1~g
4 is attached, and 61 to G4 indicate the center of gravity of each region. Also, a circumscribed rectangle is drawn in each area. The point of contact between the upper side of this rectangle and the area is the coordinate st (
x, y) and is determined by horizontal operation from the area starting point tL (x, y). The coordinate st is used in the method described later.

ラベル値g1の領域とラベル値p2の領域とは併合すべ
き関係にあるため、特徴量リストのラベルNo、、l!
1の行の接続ラベル欄にはラベル値g2が記述される。
Since the area with the label value g1 and the area with the label value p2 are in a relationship that should be merged, the label No., l!
Label value g2 is written in the connection label field of row 1.

さらに、ラベル値Allの領域は、ラベル値g3の領域
およびラベル値g4の領域とも併合すべき関係にあるた
め、ラベル値p3およびp4の接続ラベルがポインタに
より繋げられる。また、ラベルNo、j)2〜Ω4の各
行の接続ラベル欄にも同様な考え方で各領域間の接続関
係が記述される。
Furthermore, since the area with the label value All is in a relationship to be merged with the area with the label value g3 and the area with the label value g4, the connection labels of the label values p3 and p4 are connected by a pointer. Furthermore, the connection relationships between the areas are described in the same way in the connection label columns of the rows of labels No., j)2 to Ω4.

次に、領域境界探査式手法について説明する。Next, the area boundary exploration method will be explained.

まず、対象とする領域に外接する長方形を描き、この外
接長方形と領域とが接する座標5t(x。
First, draw a rectangle that circumscribes the target area, and the coordinates 5t (x) where this circumscribed rectangle and the area touch.

y)に位置する探索開始画素を求める。そして、この探
索開始画素の8近傍に位置する画素について調査する。
Find the search start pixel located at y). Then, eight pixels located in the vicinity of this search start pixel are investigated.

8近傍に位置する各参照画素には、第37図に示される
ように位置No、を付す。つまり、着目画素の上に位置
するNo、を0とし、時計回りに順に番号を付す。探索
開始画素の次に探索すべき画素の座標は、第38図(a
)、(b)に表された画素参照テーブルを用いて決定す
る。
8. Each reference pixel located in the vicinity is given a position number as shown in FIG. That is, the number located above the pixel of interest is set to 0, and the numbers are assigned in clockwise order. The coordinates of the pixel to be searched next to the search start pixel are shown in Figure 38 (a
), (b) using the pixel reference table.

同図(a)に示されるテーブルは画素の探索を時計回り
(右回り)に実行する際に参照されるテーブルであり、
同図(b)に示されるテーブルは画素の探索を反時計回
り(左回り)に実行する際に参照されるテーブルである
。テーブルの括弧()に挾まれた0〜7の数値は、第3
7図の参照画素の位置No、に対応するものである。
The table shown in (a) of the same figure is a table that is referred to when performing a pixel search clockwise (clockwise).
The table shown in FIG. 4B is a table that is referred to when performing a pixel search counterclockwise (counterclockwise). The numbers 0 to 7 in parentheses () in the table are the third
This corresponds to the position No. of the reference pixel in FIG.

次に探査すべき画素は、前回の画素位置に対する今回の
画素位置に対応する参照画素位置No。
The next pixel to be searched is the reference pixel position No. corresponding to the current pixel position relative to the previous pixel position.

を求め、この位置No、に一致するテーブルの行No、
の列No、を参照することにより決定される。画素参照
テーブルを用いた探索画素の決定方式について以下に具
体的に説明する。画素領域の境界部が第39図のように
形成されている場合を想定する。同図の斜線が付された
口はラベル値が0ではない画素を示している。前回探索
した画素を記号Δで示し、現在探索する画素を記号0で
示し、次に探索すべき画素を記号◎で示す。
Find the row number of the table that matches this position number,
It is determined by referring to the column No. A method for determining search pixels using a pixel reference table will be specifically described below. Assume that the boundary of the pixel area is formed as shown in FIG. 39. The hatched areas in the figure indicate pixels whose label values are not 0. The previously searched pixel is indicated by the symbol Δ, the currently searched pixel is indicated by the symbol 0, and the next pixel to be searched is indicated by the symbol ◎.

前回の画素位置Δに対する今回の画素位置Oは、第37
図の参照画素位置No、では1に対応する。
The current pixel position O with respect to the previous pixel position Δ is the 37th pixel position O.
The reference pixel position No. in the figure corresponds to 1.

領域の境界付近の画素を右回りに探索することにすると
、画素参照テーブルは第38図(a)のテーブルを参照
することになる。参照画素位置No。
If pixels near the boundary of the area are searched clockwise, the pixel reference table will refer to the table in FIG. 38(a). Reference pixel position No.

は1であるため、行No、が1の列No、  (7゜0
.1,2.3,4,5.61を参照する。なお、行No
、は最上段の行が0であり、順に1〜7となっている。
is 1, so the column number where the row number is 1, (7°0
.. See 1, 2.3, 4, 5.61. In addition, line No.
, the top row is 0, and the rows are 1 to 7 in order.

また、列No、には参照すべき画素のNo、が全で記さ
れており、画素の8近傍の参照をこの順番に従って行う
ことにより、通児のアドレス計算におけるモジュロ計算
を避けることが出来る。
In addition, column No. indicates all the numbers of the pixels to be referenced, and by referring to the eight neighboring pixels of the pixel in this order, it is possible to avoid modulo calculations in address calculations for day-to-day children.

すなわち、列No、は7から始まっているため、次に探
査すべき画素は現在位置○の斜め左上に位置する画素◎
になる。画素◎は背景領域てあり、ラベル値は0である
ため、列No、に従って次の画素を探索する。つまり、
次の参照画素位置N。
In other words, since the column number starts from 7, the next pixel to be searched is the pixel located diagonally to the upper left of the current position ◎
become. Since the pixel ◎ is in the background area and the label value is 0, the next pixel is searched according to the column number. In other words,
Next reference pixel position N.

はOであるため、現在位置○の上に位置する画素を探索
する。この画素も背景領域にあるため、さらに、列No
、に従って参照画素位置No、が1の画素を探索する。
Since is O, the pixel located above the current position ○ is searched. Since this pixel is also in the background area, the column No.
, a pixel whose reference pixel position No. is 1 is searched for.

この画素はラベル値を持っており、0ではないため、次
に探索する画素の基準をこの位置No、1の画素におき
、この8近傍について上記と同様に探索する。そして、
領域の境界に沿った各画素について上記の処理を行い、
探索開始画素に戻るまで同様の処理を各画素について繰
り返す。
Since this pixel has a label value and is not 0, the reference for the next pixel to be searched is set to the pixel at this position No. 1, and the eight neighboring pixels are searched in the same manner as above. and,
Perform the above processing for each pixel along the region boundary,
Similar processing is repeated for each pixel until returning to the search start pixel.

また、この探索の処理において、次の規則に従った処理
を行うことにより、ラベル値iの自身の領域の周囲長o
biおよびラベル値jの隣接する領域との共通境界長c
bljを求めることが出来る。
In addition, in this search process, by performing processing according to the following rules, the perimeter o of the own area of label value i
common boundary length c between bi and adjacent areas of label value j
blj can be found.

つまり、現在位置の上下左右の4近傍に隣接する領域に
ラベル値jが存在すれば、共通境界長cbijをカウン
トするカウンタに1を加算する。
In other words, if the label value j exists in four adjacent areas on the upper, lower, left, and right sides of the current position, 1 is added to a counter that counts the common boundary length cbij.

同時に、自己の周囲長obiをカウントするカウンタに
1を加算する。また、現在位置の4近傍に自身のラベル
値iと同一のラベル値の画素が存在しない場合には、自
己の周囲長のカウンタに1を加算する。
At the same time, 1 is added to a counter that counts its own perimeter obi. Furthermore, if there is no pixel with the same label value as its own label value i in the four vicinity of the current position, 1 is added to its own perimeter counter.

次に、求めた周囲長および共通境界長に基づき、逆り字
マスク操作式手法における計算と同様にして各領域間の
接続度を求める。これと同時に前述と同様にして特徴量
リストを作成する。この特徴量リストの接続ラベルには
各領域間の接続関係が記述され、複数の領域の併合関係
が判断される。
Next, based on the obtained perimeter length and common boundary length, the degree of connectivity between each region is obtained in the same way as calculation in the inverted mask operation method. At the same time, a feature list is created in the same manner as described above. The connection label of this feature list describes the connection relationship between each area, and the merging relationship of multiple areas is determined.

つまり、本手法によっても、各領域のラベルの付は替え
操作を行わなくとも各領域の併合関係が判明する。なお
、上記の境界探査は右回りに行ったが、境界探査を左回
りに実行する場合には、第38図(b)に示される左回
り用の画素参照テーブルを用いることにより、右回りと
同様にして処理を行うことが可能である。
In other words, even with this method, the merging relationship of each area can be determined without changing the label of each area. Although the above boundary search was performed clockwise, if the boundary search is to be performed counterclockwise, it can be performed clockwise or counterclockwise by using the counterclockwise pixel reference table shown in FIG. 38(b). Processing can be performed in a similar manner.

このように画素参照テーブルを用いることにより、速い
境界探査が可能になる。つまり、探索の基準となる画素
の8近傍の全ての画素について調査する必要は無い。ま
た、領域の境界部付近の画素のみを探索すれば良く、領
域内の全ての画素について探索する必要が無くなる。従
って、処理時間は短縮される。
Using a pixel lookup table in this way allows for fast boundary exploration. In other words, it is not necessary to investigate all eight pixels in the vicinity of the pixel serving as the search reference. Further, it is only necessary to search for pixels near the boundary of the area, and there is no need to search for all pixels within the area. Therefore, processing time is reduced.

以上説明した各手法によれば、従来のようにラベルの付
は替え走査を行わずに各分割領域間の併合関係を判断す
ることが出来る。つまり、「テンプレート画像を用いた
繰返しきい値処理による走行コースの抽出手法」で得ら
れた道路候補領域と、「明るさの違いに注目した走行コ
ース上の影や高輝度部分の抽出手段」で得られた低輝度
および高輝度領域とが併合され、現実に即した走行コー
ス領域を得ることが出来る。
According to each of the methods described above, it is possible to determine the merging relationship between the divided regions without changing the labeling and scanning as in the conventional method. In other words, the road candidate areas obtained by the ``driving course extraction method using iterative threshold processing using template images'' and the ``extraction method of shadows and high-brightness parts on the driving course that focuses on differences in brightness'' are used. The obtained low-luminance and high-luminance areas are combined to obtain a realistic driving course area.

次に、「走行可能範囲を求める手段」について説明する
。本手段は、「テンプレート画像を用いた繰返しきい値
処理による走行コースの抽出手法」、[繰返しきい値処
理における特徴量ヒストグラムの形状に基づくしきい値
設定手段」、「明るさの違いに注目した走行コース上の
影や高輝度部分の抽出手段」によって求められた走行コ
ース画像から最終的な走行可能範囲、すなわち、道路端
座機を求めるものである。
Next, the "means for determining the travelable range" will be explained. This method consists of ``a driving course extraction method using iterative threshold processing using a template image,'' ``a threshold setting method based on the shape of the feature histogram in iterative threshold processing,'' and ``a method that focuses on differences in brightness. The final drivable range, that is, the road edge seat is determined from the driving course image obtained by the ``extraction means for extracting shadows and high-luminance portions on the driving course''.

第40図は本手法による走行コース認識システムの処理
全体の流れを示すフローチャートである。
FIG. 40 is a flowchart showing the overall processing flow of the driving course recognition system according to the present method.

まず、カラーカメラ入力装置によって走行コースの画像
情報を取り込み、取り込まれたR、G、8画像を前述の
ようにして明度!、彩度Sの各画像に変換する。変換さ
れた各画像に基づき、カラー処理装置において明度Iを
特徴量とするヒストグラムおよび彩度Sを特徴量とする
ヒストグラムを前述のように作成する(ステップ400
1)。次に、作成した各ヒストグラムに基づき、「テン
プレート画像を用いた繰返しきい値処理による走行コー
スの抽出手法」により道路候補領域を抽出し、小領域を
除去する(ステップ4002)。
First, image information of the driving course is captured using a color camera input device, and the captured R, G, and 8 images are adjusted as described above to determine the brightness. , to each image with saturation S. Based on each converted image, a histogram having lightness I as a feature and a histogram having saturation S as a feature are created in the color processing device as described above (step 400
1). Next, based on each of the created histograms, road candidate regions are extracted using a "driving course extraction method based on iterative threshold processing using a template image" and small regions are removed (step 4002).

次に、本手法により、抽出した道路候補領域の道路端の
点列を評価する(ステップ4003)。
Next, using this method, the point sequence of the road edge of the extracted road candidate area is evaluated (step 4003).

そして、この道路端の点4列の評価結果に基づき、抽出
した道路候補領域は単調路か否かを判断する(ステップ
4004)。道路らしい単調路である場合には、さらに
、求まった複数の各点列間の関係を比較し、評価する(
ステップ4005)。そして、この評価結果を最終的に
出力する(ステップ4006)。この後、今回入力され
た画像に対する点列は求められたものとし、次の画像に
対する処理を実行する。
Then, based on the evaluation result of the four rows of road edge points, it is determined whether the extracted road candidate area is a monotonous road or not (step 4004). In the case of a monotonous road similar to a road, the relationships between the obtained multiple point sequences are further compared and evaluated (
Step 4005). Then, this evaluation result is finally output (step 4006). After this, it is assumed that the point sequence for the currently input image has been obtained, and processing is executed for the next image.

また、ステップ4004での判断結果が道路らしさが低
くて単調路でない場合には、「明るさの違いに注目した
走行コース上の影や高輝度部分の抽出手段」、により、
低輝度領域が有ればこれを抽出する(ステップ4007
)。そして、求めた低輝度領域と道路候補領域とを併合
し、本手法により道路端の点列を評価する(ステップ4
008)。
Furthermore, if the judgment result in step 4004 is that the road-likeness is low and the road is not monotonous, the "extraction means for extracting shadows and high-luminance parts on the driving course that focuses on differences in brightness" is used to
If there is a low brightness area, it is extracted (step 4007
). Then, the obtained low-luminance area and the road candidate area are merged, and the road edge point sequence is evaluated using this method (step 4).
008).

この道路端の点列の評価結果に基づき、抽出した道路候
補領域は単調路か否かを判断する(ステップ4009)
。単調路である場合には、ステップ4005以降の処理
を実行し、次の画像に対する処理に移行する。
Based on the evaluation result of this road edge point sequence, it is determined whether the extracted road candidate area is a monotonous road or not (step 4009).
. If the path is monotonous, the process from step 4005 onwards is executed, and the process moves on to the next image.

また、単調路でない場合には、次に、「明るさの違いに
注目した走行コース上の影や高輝度部分の抽出手段」に
より、高輝度領域が有ればこれを抽出する(ステップ4
010)。そして、求めた高輝度領域と道路候補領域と
を併合し、本手法により道路端の点列を評価する(ステ
ップ4011)。この道路端の点列の評価結果に基づき
、抽出した道路候補領域は単調路か否かを判断する(ス
テップ4012)。単調路である場合には、ステップ4
005以降の処理を実行し、次の画像に対する処理に移
行する。単調路でない場合には、低輝度領域および高輝
度領域を道路候補領域に併合し、3領域を併合した領域
から得られる道路端の点列を評価する(ステップ401
3)。
In addition, if the road is not monotonous, next, if there is a high brightness area, it is extracted using "a means for extracting shadows and high brightness parts on the driving course that focuses on differences in brightness" (step 4).
010). Then, the obtained high-luminance region and the road candidate region are merged, and the road edge point sequence is evaluated using this method (step 4011). Based on the evaluation result of this road edge point sequence, it is determined whether the extracted road candidate area is a monotonous road (step 4012). If the road is monotonous, step 4
The processes after 005 are executed, and the process moves on to the next image. If the road is not monotonous, the low-luminance area and the high-luminance area are merged into the road candidate area, and the road edge point sequence obtained from the merged area of the three areas is evaluated (step 401
3).

この後ステップ4005移行の処理を実行し、次の画像
に対する処理に移行する。
Thereafter, the process of moving to step 4005 is executed, and the process moves to the next image.

次に、上記の道路候補領域の道路端の点列座標を求める
手法について以下に説明する。
Next, a method for obtaining the point sequence coordinates of the road edge in the road candidate area will be described below.

例えば、第41図に示される画像領域が得られた場合を
想定する。図の左上を原点とし、X座標は水平方向を右
に向かって正とし、X座標は垂直方向を下に向かって正
とする。この画像に示された道路領域には切れ込みが存
在し、また、ノイズ等により画像情報が得られなかった
箇所が散在する。同図に示される画像の各画素にラベリ
ング処理が行われ、この処理結果、得られる画素領域が
第42図のように示されたものとする。同図の斜線部は
ラベル値が0ではなく、あるラベル値を持った画素とす
る。なお、斜線のない画素はラベル値がOの背景領域に
位置する画素である。また、3X3個の画素を囲む枠4
201はウィンドウWであり、ウィンドウWの中に存在
する斜線画素(0でない画素値を有する画素)の数はヒ
ストグラムの値になる。図示に位置する場合のウィンド
ウWによるヒストグラムの値は5である。また、図示の
ウィンドWは3×3のウィンドウになっているが、5X
5等の他の大きさのウィンドウであっても良い。
For example, assume that the image area shown in FIG. 41 is obtained. The upper left of the figure is the origin, the X coordinate is positive in the horizontal direction toward the right, and the X coordinate is positive in the vertical direction toward the bottom. There are notches in the road area shown in this image, and there are scattered locations where image information could not be obtained due to noise or the like. It is assumed that labeling processing is performed on each pixel of the image shown in the same figure, and the resulting pixel area is shown as shown in FIG. 42 as a result of this processing. The shaded area in the figure is a pixel whose label value is not 0 but has a certain label value. Note that pixels without diagonal lines are pixels located in a background area with a label value of O. Also, a frame 4 surrounding 3x3 pixels
201 is a window W, and the number of diagonally lined pixels (pixels having non-zero pixel values) existing in the window W becomes the value of the histogram. The value of the histogram by window W in the case shown is 5. Also, although the illustrated window W is a 3×3 window, the 5×
It may be a window of other size, such as 5 or the like.

まず、ウィンドウWを画像の中央部から左に向けて水平
に走査する。なお、画像の中央部からウィンドウWを走
査するのは、処理の開始時だけである。移動しながら各
位置におけるウィンドウWのヒストグラムの値を求める
。このヒストグラム値を監視しながらウィンドウWを移
動し、所定のしきい値以下のヒストグラム値が連続して
得られた場合、つまり、ウィン°ドウW内の斜線画素の
密度が低くな・った場合、ウィンドウWは道路領域から
外れたものと判断する。そして、ヒストグラム値が所定
のしきい値以下になった最初のウィンドウWの位置を左
側の道路端の点列座標XLとする。
First, the window W is scanned horizontally from the center of the image toward the left. Note that the window W is scanned from the center of the image only at the start of the process. The histogram value of the window W at each position is determined while moving. If the window W is moved while monitoring this histogram value, and histogram values below a predetermined threshold are continuously obtained, that is, the density of diagonally lined pixels in the window W becomes low. , it is determined that the window W is outside the road area. Then, the position of the first window W whose histogram value becomes less than or equal to a predetermined threshold value is set as the point sequence coordinate XL of the left road edge.

次に、ウィンドウWを右側へ向けて水平走査し、ウィン
ドウW内のヒストグラム値が連続して所定のしきい値以
下になった場合、このヒストグラム値の変化する最初の
ウィンドウWの位置を右側の道路端の点列座標XRとす
る。
Next, the window W is horizontally scanned toward the right side, and when the histogram values within the window W are continuously below a predetermined threshold, the position of the window W where the histogram value first changes is set to the right side. Let the point sequence coordinates of the road edge be XR.

次に、ウィンドウWの位置するY座標を1つ減らし、ウ
ィンドウWを画像の上方へ移動して水平走査位置をずら
す。そして、上記の最初の水平走査により得られた道路
端座標XL、XRから道路領域の中央位置を式(XR−
XL)/2の計算をすることにより求める。この中央位
置をウィンドウWの走査開始位置とし、ウィンドウWを
左右に走査する。この走査においても上記と同様にして
ウィンドウW内のヒストグラム値を監視し、ヒストグラ
ム値の変化する位置を道路端の座標とする。
Next, the Y coordinate at which the window W is located is decreased by one, and the window W is moved above the image to shift the horizontal scanning position. Then, from the road edge coordinates XL and XR obtained by the above first horizontal scan, the center position of the road area is calculated using the formula (XR-
It is obtained by calculating XL)/2. This center position is set as the scanning start position of the window W, and the window W is scanned left and right. In this scanning as well, the histogram value within the window W is monitored in the same manner as above, and the position where the histogram value changes is taken as the coordinates of the road edge.

以下、水平走査位置のY座標が地平線位置になるまで同
様の処理を繰り返すことにより、左右の道路端の一連の
点列座標を得ることが出来る。
Thereafter, by repeating the same process until the Y coordinate of the horizontal scanning position reaches the horizon position, a series of point sequence coordinates of the left and right road edges can be obtained.

また、このウィンドウWの走査において、走査開始位置
のウィンドウWから得られるヒストグラム値が最初から
所定のしきい値以下であり、しかも、ウィンドウWを左
側へ走査して得られるヒストグラム値が連続して所定の
しきい値以下の場合には、中央位置が道路端座標になっ
てしまう。しかし、この場合にはウィンドウWの走査方
向を逆の右側に変える。そして、所定のしきい値以上の
ヒストグラム値が連続して得られた場合には、最初に所
定のしきい値以上のヒストグラム値が得られたウィンド
ウWの位置を左側の道路端の座標とする。右側の道路端
の座標は、ウィンドウWをさらに右側に走査し、ヒスト
グラム値の変化する位置を求めることにより判明する。
In addition, in scanning this window W, the histogram value obtained from the window W at the scanning start position is below a predetermined threshold from the beginning, and moreover, the histogram values obtained by scanning the window W to the left are consecutive. If it is below a predetermined threshold, the center position becomes the road edge coordinate. However, in this case, the scanning direction of the window W is changed to the right side. Then, when histogram values greater than or equal to a predetermined threshold are obtained consecutively, the position of the window W where a histogram value greater than or equal to the predetermined threshold is first obtained is set as the coordinates of the left road edge. . The coordinates of the right road edge can be found by scanning the window W further to the right and finding the position where the histogram value changes.

次に、このように求めた道路端の点列座標は領域の境界
付近に存在するため、各点を繋ぐことにより得られる境
界線は一様に滑らかなものではない。このため、ある1
点の前後に位置する各点とこの1点とがなす角度を点列
の全点について計算し、この分散値を滑らかさの基準と
する。また、得られた角度が鋭角のときはその点は除去
して計算する。このように左右の道路端の各点列座標を
平滑化した後、これら点列座標を実空間へ射影変換する
。この射影変換は自律走行車に取り付けたカラーカメラ
の俯角、高さ、焦点距離に基づいて行われる。
Next, since the point sequence coordinates of the road edge obtained in this way exist near the boundary of the area, the boundary line obtained by connecting each point is not uniformly smooth. For this reason, a certain 1
The angle formed by each point located before and after the point and this one point is calculated for all points in the point sequence, and this variance value is used as a standard for smoothness. Also, if the obtained angle is an acute angle, that point is removed from the calculation. After smoothing the point sequence coordinates of the left and right road edges in this manner, these point sequence coordinates are projectively transformed into real space. This projective transformation is performed based on the depression angle, height, and focal length of a color camera attached to the autonomous vehicle.

さらに、この射影変換後の点列において、左右の点列を
一組として左右の各点列間の距離、つまり、道路幅を求
める。そして、この道路幅が走行車の車体幅より狭くな
る点の数を数え、点列の全点数に対するこの狭い幅の点
数を計算する。全点数に対する狭い幅の点数の比率が小
さい場合には、狭い幅の点は道路端の点としてはふされ
しくないため、これら各点は除去する。
Furthermore, in the point sequence after projective transformation, the distance between the left and right point sequences, that is, the road width, is determined by setting the left and right point sequences as a set. Then, the number of points where this road width is narrower than the vehicle body width of the traveling vehicle is counted, and the number of points of this narrow width relative to the total number of points in the point sequence is calculated. If the ratio of the narrow width points to the total number of points is small, the narrow width points are not suitable as road edge points, so these points are removed.

また、この道路端の点列の評価に際して、最初に求めた
一組の左右端によって定まる道路幅と差の少ない左右の
組を数える。差の少ない左右の組みが全部の組みに対し
て占める比率が大きい場合、つまり、左右の道路端列が
ある程度平行している場合には、道路らしさとしての評
価は最も高くなり、単調路として判断される。このよう
に単調路として判断される場合には、第40図に示され
たフローチャートのステップ4003,4008゜40
1]の処理をしなくても道路端を得ることが出来る。
In addition, when evaluating this road edge point sequence, the left and right pairs that have a small difference from the road width determined by the initially determined pair of left and right edges are counted. When the ratio of left and right sets with little difference to the total number of sets is large, that is, when the left and right road edge rows are parallel to some extent, the evaluation as road-likeness is highest, and the road is judged as a monotonous road. be done. If it is determined that the path is monotonous in this way, steps 4003, 4008, 40 in the flowchart shown in FIG.
It is possible to obtain the road edge without performing the processing in 1].

次に、自立走行車が道路端に極端に近付き過ぎた場合に
おける、道路左右端の点列の補正手段について説明する
。第43図(a)〜(d)は自律走行車が道路端に近付
く過程を示している。同図(a)は自律走行車が曲率の
きついカーブ手前に位置している場合を示している。こ
の場合には、自律走行車に取り付けられたカラーカメラ
には、左側の道路端りおよび右側の道路端Rが視野内に
捕らえられている。道路のカーブの曲率がきり場合、同
図(a)に位置していた自律走行車は同図(b)に示さ
れる位置に移動する。この場合、右側の道路端Rはカメ
ラの視野から消える。
Next, a description will be given of means for correcting the point sequence at the left and right edges of the road when the autonomous vehicle approaches the road edge too much. FIGS. 43(a) to 43(d) show the process in which the autonomous vehicle approaches the edge of the road. Figure (a) shows a case where the autonomous vehicle is located in front of a curve with a sharp curvature. In this case, the left road edge and the right road edge R are captured within the field of view of the color camera attached to the autonomous vehicle. When the curvature of the road curve is sharp, the autonomous vehicle located at (a) in the figure moves to the position shown in (b) in the figure. In this case, the right road edge R disappears from the field of view of the camera.

さらに、自律走行車は同図(c)に示される位置に移動
し、テンプレートに占める道路外領域の比率は段々高く
なる。図示の斜線部は道路外領域を示している。さらに
、自律走行車は同図(d)に示される位置に移動する。
Further, the autonomous vehicle moves to the position shown in FIG. 2(c), and the ratio of the off-road area to the template gradually increases. The illustrated shaded area indicates the area outside the road. Furthermore, the autonomous vehicle moves to the position shown in FIG.

この場合、カメラの視野には左側の道路端および道路外
領域の左側の境界部が捕らえられている。また、テンプ
レート画像に占める道路外領域の占める比率は高くなり
、道路外領域が走行路コースと誤認される。この結果、
左側の道路端は右側の道路端Rとして誤認され、道路外
領域の左側の境界は左側の道路端りと誤認される。
In this case, the left road edge and the left boundary of the off-road area are captured in the field of view of the camera. Moreover, the ratio of the area outside the road to the template image becomes high, and the area outside the road is mistakenly recognized as the driving course. As a result,
The left road edge is mistakenly recognized as the right road edge R, and the left boundary of the off-road area is mistakenly recognized as the left road edge.

しかし、順次撮像される画像情報から得られる道路端の
点列は、前回画像における右側の点列が今回画像におい
て極端に左側に位置する点列になることはない。また、
逆に、前回画像における左側の点列が今回画像において
極端に右側に位置する点列になることはない。従って、
1処理サイクル前の画像情報から得た点列情報を記憶保
持しておき、今回の画像情報から得た点列とこの前回の
画像情報から得た点列との距離を後述するように計算す
る。そして、例えば、前回求めた右側の道路端の点列と
今回求めた右側の道路端の点列との距離が離れており、
前回の右側点列が今回の左側点列に近い場合には、左右
の道路端の位置が逆転したものと判断する。そして、今
回得た道路端の右側と左側とを入れ替える。
However, in the point sequence of the road edge obtained from sequentially captured image information, the point sequence on the right side in the previous image does not become the point sequence located extremely on the left side in the current image. Also,
Conversely, the point sequence on the left side in the previous image will not become the point sequence located extremely on the right side in the current image. Therefore,
The point sequence information obtained from the image information one processing cycle ago is stored and retained, and the distance between the point sequence obtained from the current image information and the point sequence obtained from the previous image information is calculated as described later. . For example, the distance between the point sequence of the right road edge found last time and the point sequence of the right road end found this time is far apart,
If the previous right side point sequence is close to the current left side point sequence, it is determined that the positions of the left and right road edges have been reversed. Then, swap the right and left sides of the road edge obtained this time.

これを第43図に示される画像を用いて説明する。同図
(c)の画像を前回得られた画像とし、左側の道路端の
点列をL i−1と表現する。同図(d)の画像を今回
求めた画像とし、誤認している左側の道路端の点列をL
l、誤認している右側の道路端の点列をR1と表現する
。左右の道路端の点列が逆転しているか否かの判断は、
前回の点列L i−1が今回の点列Li、Rjのうちど
ちらに近いかを判断することにより行う。前回の点列L
i−1が今回の点列R1に近い場合には、左右の道路端
の点列は逆転したものと判断する。
This will be explained using the image shown in FIG. The image shown in FIG. 4C is the image obtained last time, and the point sequence at the left road edge is expressed as L i-1. The image in (d) of the same figure is the image obtained this time, and the point sequence of the misidentified left road edge is L.
l. The misidentified right-side road edge point sequence is expressed as R1. To determine whether the dot sequences on the left and right road edges are reversed,
This is performed by determining which of the current point sequence Li and Rj the previous point sequence Li-1 is closer to. Previous point sequence L
If i-1 is close to the current point sequence R1, it is determined that the point sequences at the left and right road edges are reversed.

−膜内に、この点列の近さの判断は次のように行う。つ
まり、今回の画像から得た左側の点列を1グループ、右
側の点列をもう1つのグループとし、前回の左側または
右側の点列がこれら各グループのうちのどちらのグルー
プに近いかを判断することにより行う。このどちらのグ
ループに近いかの判断は、以下に詳述するマハラノビス
の汎距離によって決定する。第44図はこのマハラノビ
スの汎距離を説明するための図である。
- The proximity of this point sequence within the film is determined as follows. In other words, the left-hand point sequence obtained from this image is one group, the right-hand point sequence is another group, and it is determined which of these groups the previous left-hand or right-hand point sequence is closer to. Do by doing. The determination of which group it is closer to is determined by the Mahalanobis general distance described in detail below. FIG. 44 is a diagram for explaining the Mahalanobis general distance.

前回の画像情報による左側点列Ll−1(または右側点
列R1−1)の点を(x、y)、今回の画像情報による
左側点列Llの点を(x lj、  y lj)、今回
の画像情報による右側点列Riの点を(x 2j。
The point of the left point sequence Ll-1 (or right point sequence R1-1) according to the previous image information is (x, y), the point of the left point sequence Ll according to the current image information is (x lj, y lj), this time The points of the right-hand point sequence Ri based on the image information of (x 2j.

Y 2j)とする。前回の点列の点(x、y)が今回の
点列L1とRi とのうちのどちらに近いかは、マハラ
ノビスの汎距離を点列Li−1(または点列R1−1)
の全点に対して以下のように計算し、距離の短い点が多
く属すほうの点列に近いものとする。また、今回の画像
により求まった点列が直線の時には、この直線までの距
離を計算する。
Y2j). To determine which point (x, y) in the previous point sequence is closer to the current point sequence L1 or Ri, use the Mahalanobis general distance to point sequence Li-1 (or point sequence R1-1).
Calculate as follows for all points in , and choose the one closest to the point sequence to which the most points with short distances belong. Furthermore, when the point sequence determined from the current image is a straight line, the distance to this straight line is calculated.

まず、点列Ll上の各点について、X方向成分の平均値
μm1.  y方向成分の平均値μm2.X方向成分の
分散値σ11.y方向成分の分散値σ12.x。
First, for each point on the point sequence Ll, the average value μm1 of the X direction component. Average value of the y-direction component μm2. Variance value σ11 of the X direction component. Variance value σ12 of the y-direction component. x.

y各方向の共分散値σ112および相関係数ρ1を求め
る。ここで、niは点列Ll上に位置する点の数である
。なお、点列Ri上の各点についても以下の式と同様な
式により求めることが出来る。
A covariance value σ112 and a correlation coefficient ρ1 in each y direction are determined. Here, ni is the number of points located on the point sequence Ll. Note that each point on the point sequence Ri can also be determined using a formula similar to the following formula.

μll−Σxlj/ nl 、  μl2−Σy lj
/ n 1σ112−Σ(xlj−R11) 2/ (
nl −1)σ122−Σ(7問−μm2) 2/ (
nl −1)σ112−Σ(xlj−μll)  (y
lj−μl2) /(nl −1) ρ1−σ112 /σIIX σ12 これら各数値に基づいて、前回の点列の点(x。
μll−Σxlj/nl, μl2−Σy lj
/ n 1σ112-Σ(xlj-R11) 2/ (
nl -1) σ122 - Σ (7 questions - μm2) 2/ (
nl −1) σ112−Σ(xlj−μll) (y
lj-μl2) /(nl-1) ρ1-σ112 /σIIX σ12 Based on these values, the point (x.

y)と今回の点列Llの点(x lj、  y lj)
との間のマハラノビスの汎距離Diを次式により求める
ことが出来る。
y) and the point (x lj, y lj) of the current point sequence Ll
The Mahalanobis general distance Di between can be calculated using the following equation.

Di 2− + [(x−μll) /(711] 2
+ [CY一 −μ 12)/  σ 12コ      2  ρ 
l   [(x  −μ ll)  /σ 11コメ、
[(y  −μ 12) / σ 11コ ) /(1
−ρ l)2また、同様に前回の点列の点(x、y)と
今回の点列Riの点(x 2j、  y 2j)との間
のマハラノビスの汎距離D2を次式により求めることが
出来る。
Di 2- + [(x-μll) / (711] 2
+ [CY-μ 12)/σ 12ko 2 ρ
l [(x −μ ll) /σ 11 comments,
[(y − μ 12) / σ 11 co) / (1
−ρ l) 2 Similarly, find the Mahalanobis general distance D2 between the point (x, y) of the previous point sequence and the point (x 2j, y 2j) of the current point sequence Ri using the following formula. I can do it.

D22−  ([(x−μ21) /cy21] 2+
 [(Y一μ22)/σ22]2ρ2 [(X−μ21
)/σ 21]X’[(y  −μ 22) / σ 
22コ  )  ハ 1− ρ 2)2上記の各式に基
づいて各汎距離を計算した結果、Di2〉D22が成立
する場合には、前回の点(x、y)は今回の右側の道路
端の点列R1に近いことになる。また、Dl >D22
が成立しない場合には、逆に、前回の点(x、y)は今
回の左側の道路端の点列L+に近いことになる。
D22- ([(x-μ21) /cy21] 2+
[(Y-μ22)/σ22]2ρ2 [(X-μ21
)/σ 21]X'[(y − μ 22) / σ
22 Co) C 1- ρ 2) 2 As a result of calculating each general distance based on each formula above, if Di2>D22 holds, then the previous point (x, y) is the current road edge on the right side. This is close to the point sequence R1. Also, Dl > D22
If this does not hold true, on the contrary, the previous point (x, y) will be close to the current point sequence L+ of the left road edge.

以上のように画像分割処理の結果得られた道路候補領域
か、ノイズなどによって不明瞭な輪郭の領域になっても
、本手法による前記のウィンドウのヒストグラム値の変
化に基づけば、道路の端点を確実に得ることか出来る。
Even if the road candidate area obtained as a result of the image segmentation process is an area with an unclear outline due to noise, etc., the edge points of the road can be determined based on the changes in the histogram values of the window using this method. You can definitely get it.

これは、本手法か領域を基にしてその端点を探索してい
るためであり、本手法によれば領域の左右端を明確に区
別することが出来る。
This is because the present method searches for the end points based on the region, and according to the present method, the left and right ends of the region can be clearly distinguished.

また、「明るさの違いに注目した走行コース上の影や高
輝度領域の抽出手段」で求められた低輝度領域は、走行
コースが全体的に暗い場合には、道路外に位置する場合
もある。このような場合に道路外の低輝度領域と道路領
域とが併合される場合があり、道路候補領域の輪郭の形
状が複雑化する。しかし、本手法により、得られた道路
端の点列データを平滑化することにより、複雑な輪郭の
領域は大局的に評価され、上記のような低輝度領域は無
視され、自動車が走行する上で同等支障の無い道路端の
情報を得ることが出来る。
In addition, low-luminance areas found using the "extraction method for shadows and high-luminance areas on a driving course that focuses on differences in brightness" may be located outside the road if the driving course is dark overall. be. In such a case, the low-luminance area outside the road and the road area may be merged, and the shape of the outline of the road candidate area becomes complicated. However, by smoothing the obtained road edge point sequence data using this method, regions with complex contours can be evaluated in a global manner, and low-luminance regions such as those mentioned above are ignored. It is possible to obtain road edge information without any problems.

また、「テンプレート画像を用いた繰返しきい値処理に
よる走行コースの抽出手法」によれば、自律走行車が曲
率のきつい道路の左または右に極端に近付いた場合、テ
ンプレートが道路外に出てしまってそこを道路とみなし
てしまう場合がある。
In addition, according to the ``driving course extraction method using iterative threshold processing using template images,'' when an autonomous vehicle approaches the left or right side of a road with a sharp curvature, the template may veer off the road. In some cases, the road may be considered a road.

この場合には道路端の左右の認識を誤ってしまう。In this case, the left and right sides of the road edge will be incorrectly recognized.

しかし、上述の本手法によれば、道路の左右端のデータ
を誤って認識しても、直ぐにこの認識は補正され、常に
信頼性の高い道路端の情報を得ることが出来る。
However, according to this method described above, even if the left and right edge data of the road is incorrectly recognized, this recognition is immediately corrected, and highly reliable road edge information can always be obtained.

次に、本発明の特徴である「多様な形状の走行コースの
内部表現手法」、つまり、得られた道路端の多様な点列
を構造化して表現する手法について説明する。
Next, a description will be given of the "method for internally representing driving courses of various shapes," which is a feature of the present invention, that is, the method for structuring and representing the various point sequences of obtained road edges.

本手法は、「テンプレート画像を用いた繰返しきい値処
理による走行コースの抽出手段」で得られた走行コース
の画像と、「明るさの違いに注目した走行コースからの
影や高輝度部分の抽出手段」で得られた画像と、「複数
の領域の併合手段」で求めた特徴間リストに基づき、画
像のラベル変位箇所を検知しながら領域の境界点のスト
ラフチャを作成し、前後方向のリンクを付け、境界の属
性を付与することによって、走行コースをコンピュータ
内部に表現し、走行のための有効な点列群を求めるもの
である。「複数の領域を併合する手段」において作成さ
れた領域と領域との記述を表した特徴間リストを利用し
て、高速に領域の端点が得られ、道路端、路肩端1分岐
路および合流路は計算機の内部に構造化されたリストに
よって表現される。
This method uses an image of a driving course obtained by ``a means of extracting a driving course by iterative threshold processing using a template image'' and ``extracting shadows and high-brightness parts from the driving course by focusing on differences in brightness.'' Based on the image obtained by the "method for merging multiple regions" and the list of features obtained by the "method for merging multiple regions," a strafture of region boundary points is created while detecting the label displacement location of the image, and links in the forward and backward directions are created. The driving course is expressed inside the computer by adding boundary attributes and determining a valid point sequence for driving. By using the inter-feature list that represents the description of regions and regions created in "Means for merging multiple regions", the end points of regions can be obtained quickly, and road edges, road shoulders, 1 branching roads, and merging roads. is represented by a structured list inside the computer.

第1図は道路の構造化処理の概略を示すフローチャート
である。
FIG. 1 is a flowchart showing an outline of road structuring processing.

まず、カラーカメラ入力装置などの各ハードウェアの初
期設定時に領域境界点ストラフチャのX方向のリストを
作成する(ステップ4501)。
First, when initializing each piece of hardware such as a color camera input device, a list of region boundary point struc- tures in the X direction is created (step 4501).

次に、各領域に付けられたラベル値のX方向の変化箇所
を検出してX方向のリストを作成し、各境界点のX方向
についてリンクする(ステップ4502)。そして各領
域の特徴間リストの接続ラベルを考慮して領域の左端お
よび右端にその属性を付与し、各領域の左右端を区分す
る(ステップ4503)。次に、後述する穴などの属性
を各境界点に付与しながら、画面の前後方向(X方向)
の各境界点の関連付けを行い、各境界点のX方向につい
てリンクする(ステップ4504)。また、道路領域が
分岐したり、合流したりする場合が有り、これら各場合
に各領域の境界の連続性を判断し、各境界点に付与され
た属性の付は替えを行う(ステップ4505)。この後
、各領域の境界点の点列の開始位置を選択し、有効点列
を検出する(ステップ4506)。
Next, a change point in the X direction of the label value attached to each area is detected, a list in the X direction is created, and a link is made in the X direction of each boundary point (step 4502). Then, considering the connection label of the inter-feature list of each region, attributes are given to the left and right ends of the region, and the left and right ends of each region are divided (step 4503). Next, while adding attributes such as holes, which will be described later, to each boundary point,
, and link each boundary point in the X direction (step 4504). In addition, there are cases where road areas diverge or merge, and in each of these cases, the continuity of the boundaries of each area is determined, and the attributes assigned to each boundary point are changed (step 4505). . Thereafter, the starting position of the point sequence of the boundary points of each area is selected, and a valid point sequence is detected (step 4506).

以上の各処理について以下に詳述する。Each of the above processes will be explained in detail below.

ステップ4501の処理について、第46図を参照して
説明する。
The process of step 4501 will be explained with reference to FIG. 46.

同図(a)は、実空間上における道路面(水平面と仮定
する)を画像上に射影変換する際の原理を示す図である
。道路面4601は等間隔(11)に区分され、道路領
域および道路上の各区分線は遠方の1点に向けて画像4
602上に射影され、カラーカメラのビューボートが得
られる。同図(b)はこのようにして得られた画像の詳
細を示す図である。画像上には道路領域の境界線460
3および区分線4604が射影変換されている。実空間
上における区分線は間隔ρの等間隔であったが、画像上
においては道路領域の遠方に行くに従ってその間隔が詰
まっている。この各区分線4604が位置するy座標を
求め、同図(c)に示されるX方向の領域境界点ストラ
フチャ4605を作成する。
FIG. 5A is a diagram showing the principle of projective transformation of a road surface (assumed to be a horizontal surface) in real space onto an image. The road surface 4601 is divided into equal intervals (11), and the road area and each division line on the road are divided into the image 4 toward one point in the distance.
602 to obtain the viewport of the color camera. FIG. 4B is a diagram showing details of the image obtained in this manner. There is a boundary line 460 of the road area on the image.
3 and the dividing line 4604 have been projectively transformed. In real space, the lane markings were equally spaced at intervals of ρ, but in the image, the intervals become closer as you get farther from the road area. The y-coordinates at which each division line 4604 is located are determined, and an area boundary point structure 4605 in the X direction shown in FIG. 4(c) is created.

この領域境界点ストラフチャ4605の6枠は、道路領
域の境界線4603のうちの左端の境界線と区分線46
04との交点に位置する各境界点に対応している。6枠
は、図示の矢印に示されるポインタによって相互の連結
関係が表現されている。
The six frames of this area boundary point struc- ture 4605 are the leftmost boundary line and the dividing line 46 of the road area boundary lines 4603.
This corresponds to each boundary point located at the intersection with 04. The mutual connection relationship of the six frames is expressed by pointers indicated by arrows in the figure.

これらの各枠内には各境界点の特徴が、同図(d)に示
されるリスト4606として記述されている。
In each of these frames, the characteristics of each boundary point are described as a list 4606 shown in FIG. 4(d).

まず、求めたy座標の6値がリスト4606に記述され
、X方向のリストが作成される。このリスト4606に
は、上記のy座標の他に各境界点が有する後述する各特
徴が記述される。
First, the six values of the determined y coordinate are written in a list 4606, and a list in the X direction is created. In addition to the above y-coordinate, this list 4606 describes each feature that each boundary point has, which will be described later.

つまり、X座標1点列開始点iDを表す属性1゜実空間
における隣接点間距離を表す属性21着目する境界点と
右隣の境界点との連結関係を表す右隣へのポインタ、左
隣の境界点との連結関係を表す左隣へのポインタ、X方
向における画面手前の境界点との連結関係を表す手前へ
のポインタおよび画面後方の次の境界点との連結関係を
表す次へのポインタが記述される。
In other words, attribute 1 representing the X coordinate 1 point sequence starting point iD, attribute 21 representing the distance between adjacent points in real space, pointer to the right neighbor representing the connection relationship between the boundary point of interest and the boundary point to the right, pointer to the left neighbor A pointer to the left that represents the connection relationship with the boundary point, a pointer to the front that represents the connection relationship with the boundary point in front of the screen in the A pointer is written.

次にステップ4502の処理について、第47図を参照
して説明する。
Next, the process of step 4502 will be explained with reference to FIG. 47.

同図(a)に示される画像4701は撮像された画像に
ついてラベリング処理が実行された画像である。このラ
ベリング処理により、道路領域を構成する各領域のそれ
ぞれにはラベル値が付けられる。各区分線と領域の境界
との交点のうち、○印が付された交点は、ラベル値が変
化するラベル変位箇所である。まず、ステップ4501
の処理で求めたリストの各y座標位置において水平方向
、つまり、X方向に画像を走査する。この走査において
、ラベル値がOである背景領域からラベル値が0ではな
い道路領域に移動した場合、または、ラベル値が0では
ない道路領域からラベル値が0である背景領域に移動し
た場合、新しい領域境界点ストラフチャを作成する。
An image 4701 shown in FIG. 4A is an image obtained by performing labeling processing on a captured image. Through this labeling process, each region constituting the road region is assigned a label value. Among the intersections between each division line and the area boundary, the intersection marked with a circle is a label displacement location where the label value changes. First, step 4501
The image is scanned in the horizontal direction, that is, in the X direction at each y-coordinate position of the list obtained by the process. In this scan, if you move from a background area whose label value is O to a road area whose label value is not 0, or if you move from a road area whose label value is not 0 to a background area whose label value is 0, Create a new region boundary point structure.

この領域境界点ストラフチャは同図(b)に示される。This region boundary point struc- ture is shown in FIG. 4(b).

図示のように、各領域の境界と区分線との交点に位置す
る各境界点に対応して、新たにX方向に枠が設けられる
。この新たな6枠は、既に前述のステップで作成された
X方向の領域境界点ストラフチャの6枠と連結される。
As shown in the figure, a new frame is provided in the X direction corresponding to each boundary point located at the intersection of the boundary of each area and the division line. These six new frames are connected to the six frames of the area boundary point structure in the X direction that has already been created in the previous step.

この連結関係は図示の矢印に表されるポインタにより表
現され、このポインタにより6枠は水平方向にリンクさ
れている。
This connection relationship is expressed by a pointer represented by an arrow in the figure, and the six frames are linked in the horizontal direction by this pointer.

次に、ステップ4503の処理について、第48図を参
照して説明する。
Next, the process of step 4503 will be explained with reference to FIG.

ステップ4502の処理で作成された領域境界点ストラ
フチャの水平方向の各点の組が同一領域に存在するか否
かを判断する。同一領域であるが否かの判断は、前述の
「複数の領域の併合手法」において求めた特徴量リスト
に基づいて行われる。
It is determined whether each set of points in the horizontal direction of the area boundary point structure created in step 4502 exists in the same area. The determination as to whether the regions are the same or not is made based on the feature list obtained in the above-mentioned "method for merging multiple regions."

隣接する各点が同一領域に存在する場合、左側に位置す
る境界点は左エツジ、右側に位置する境界点は右エツジ
とし、この属性を各リストに記述する。この属性により
、領域の左右端を区別することが出来る。また、この左
エツジから右エツジまでの実空間における距離を演算し
、同様に各リストに記述する。この距離演算には、前述
の射影変換と逆の処理である逆射影変換処理を実行し、
画像から現実の道路領域を求める必要がある。
When adjacent points exist in the same area, the boundary point located on the left side is treated as a left edge, and the boundary point located on the right side is treated as a right edge, and this attribute is described in each list. This attribute allows the left and right ends of the area to be distinguished. Furthermore, the distance in real space from this left edge to the right edge is calculated and similarly written in each list. This distance calculation involves performing inverse projective transformation processing, which is the inverse of the projective transformation described above.
It is necessary to find the actual road area from the image.

第48図(a)に示される画像について、エツジの識別
方法を具体的に説明する。道路領域4801は3つの領
域A、B、Cが併合されて表現されている。ここで、前
述の特徴量リストの接続ラベルは同図(b)のように示
されている。つまり、領域Aの接続ラベル欄には領域C
が記述されており、領域Bの接続ラベル欄には何も記述
されておらず、領域Cの接続ラベル欄には領域Aが記述
されている。このため、領域Aと領域Cとは併合すべき
同一領域であることが判別され、また、領域Bは領域A
と領域Bとで形成される領域とは異なる領域であること
が判別する。
The edge identification method for the image shown in FIG. 48(a) will be specifically explained. The road area 4801 is expressed by merging three areas A, B, and C. Here, the connection labels of the above-mentioned feature amount list are shown as shown in FIG. 2(b). In other words, the connection label column for area A contains area C.
is written, nothing is written in the connection label column of area B, and area A is written in the connection label column of area C. Therefore, it is determined that area A and area C are the same area that should be merged, and area B is
It is determined that this is a different area from the area formed by and area B.

従って、各境界点を区分線4802に沿って水平方向に
画像走査した場合、○印の付された境界点a、b、c、
dがラベル変位箇所として求まる。
Therefore, when the image is scanned horizontally along the dividing line 4802, the marked boundary points a, b, c,
d is determined as the label displacement location.

従って、境界点aと境界点すとは同一領域上の点として
存在しており、境界点aは左エツジ、境界点すは右エツ
ジという属性が付与され、領域境界点ストラフチャのリ
ストに記述される。また、境界点Cと境界点dはそのラ
ベル値が同じであるために同一領域に存在しており、境
界点Cは左エツジ、境界点dは右エツジという属性が付
与され、領域境界点ストラフチャのリストに記述される
Therefore, boundary point a and boundary point S exist as points on the same area, boundary point a is given the attribute of left edge, boundary point A is given the attribute of right edge, and is described in the list of area boundary point structure. Ru. In addition, boundary point C and boundary point d exist in the same area because their label values are the same, and boundary point C is given the attribute of left edge, boundary point d is given the right edge, and the area boundary point struc- ture is described in the list.

次に、ステップ4504の処理について、第49図およ
び第50図を参照して説明する。
Next, the process of step 4504 will be explained with reference to FIGS. 49 and 50.

第49図(a)に示される画像において、左側の境界線
と各区分線との交点に位置する各境界点をat、ai+
t、右側の境界線と各区分線との交点に位置する各境界
点をbl、bl+1とする。ここで、領域境界点ストラ
フチャのy方向で1番目とi+1番目の各境界点が同一
領域に存在するか否かを判断し、同一領域ならば前後の
リンクを行う。つまり、境界点a1とa i+1とが同
一領域に有るか否か、また、境界点b1とb I+1と
が同一領域に有るか否かを判断する。図示の場合には、
各境界点は同一領域に有るため、同図(b)に示される
領域境界点ストラフチャにおいて、太い線で示されるポ
インタにより画面の前後に位置する各境界点がリンクさ
れる。
In the image shown in FIG. 49(a), each boundary point located at the intersection of the left boundary line and each division line is at, ai+
t, and the boundary points located at the intersections of the right boundary line and each division line are bl and bl+1. Here, it is determined whether or not the first and i+1st boundary points in the y direction of the area boundary point structure exist in the same area, and if they are in the same area, they are linked before and after. That is, it is determined whether the boundary points a1 and a i+1 are in the same area, and whether the boundary points b1 and b I+1 are in the same area. In the case shown,
Since each boundary point is in the same area, in the area boundary point structure shown in FIG. 3B, each boundary point located before and after the screen is linked by a pointer indicated by a thick line.

また、左エツジと右エツジとの間に存在する内部点が有
るならば、第50図に示されるように、領域の境界を追
跡する。同図(a)は、処理の対象とする道路領域50
01の中央部に車線区分線である白線5002が描かれ
ている画像である。
Furthermore, if there is an internal point existing between the left edge and the right edge, the boundary of the area is traced as shown in FIG. The figure (a) shows a road area 50 to be processed.
This is an image in which a white line 5002, which is a lane marking, is drawn in the center of 01.

この白線5002のラベル値はOである。ここで、各区
分線に沿って水平方向に画像を走査すると、白線500
2部において、同図(b)に示される内部点E 11.
  E 1i+l、  E 2L  E 2i+1が得
られる。
The label value of this white line 5002 is O. Here, when scanning the image horizontally along each dividing line, the white line 500
In the second part, the internal point E shown in FIG. 11(b) 11.
E 1i+l, E 2L E 2i+1 are obtained.

従って、領域の境界を追跡して各内部点の関係を探査す
−る。内部点Elfから白線5002の境界線に沿って
この境界を追跡すると内部点EII+1に達する。また
、内部点E21から境界を追跡すると内部点E 2i+
1に達する。このように隣接する内部点E 11.  
E 21が、より上に位置する区分線上の次の内部点E
 1i+l、  E 2i+1に連続している時、左側
に位置する内部点Eliを内部点左エツジ、右側に位置
する内部点E2+を内部点右エツジという属性を付ける
Therefore, the boundaries of the region are tracked to explore the relationship between each internal point. If this boundary is traced from the interior point Elf along the boundary line of the white line 5002, the interior point EII+1 is reached. Also, when tracing the boundary from the interior point E21, the interior point E2i+
Reach 1. In this way, adjacent internal points E11.
E 21 is the next internal point E on the division line located higher
1i+l, E2i+1, the internal point Eli located on the left side is given the attribute of internal point left edge, and the internal point E2+ located on the right side is given the attribute of internal point right edge.

また、境界を追跡して内部点がより上の区分線上の内部
点に連続せずに隣接する内部点に達する時は、隣接する
各内部点に穴という属性を付与する。つまり、内部点E
 li+Iから境界を追跡すると、隣接する内部点E 
2i+1に達する。この場合、各内部点E IDI、 
 E 2i+1に穴という属性を付与する。
Further, when tracing the boundary and reaching an adjacent internal point without being continuous with an internal point on the upper division line, each adjacent internal point is given the attribute of hole. In other words, the interior point E
Tracing the boundary from li+I, the adjacent interior point E
It reaches 2i+1. In this case, each internal point E IDI,
Give E 2i+1 the attribute of hole.

以上の処理をリストの各y座標に沿ってこのy座標が地
平線位置5003に達するまで行う。また、この際、内
部点左エツジから内部点右エツジまでの実空間上におけ
る距離りを演算する。この演算は、実空間上における右
エツジ点のX座標値から実空間上における左エツジ点の
X座標値を引き算することにより求まる。
The above processing is performed along each y-coordinate in the list until this y-coordinate reaches the horizon position 5003. At this time, the distance in real space from the left edge of the interior point to the right edge of the interior point is calculated. This calculation is obtained by subtracting the X-coordinate value of the left edge point in real space from the X-coordinate value of the right edge point in real space.

次に、ステップ4505の処理について、第51図を参
照して説明する。
Next, the process of step 4505 will be explained with reference to FIG. 51.

以上の各ステップの処理による属性の付与の方法では、
道路がY字状に分岐したり、道路が合流する場合には正
しい属性が付与されない。つまり、各境界点の前後方向
の関連付けが正しく行われない場合がある。このため、
このような場合に本ステップにおいて、境界を追跡して
境界の評価を修正する。
In the method of assigning attributes by processing each step above,
If a road branches into a Y-shape or merges, correct attributes will not be assigned. In other words, the association of each boundary point in the front-back direction may not be performed correctly. For this reason,
In such a case, in this step, the boundary is tracked and the boundary evaluation is corrected.

例えば、ここまでの各ステップの処理により、第51図
(a)−に示される画像が得られたとする。
For example, suppose that the image shown in FIG. 51(a) is obtained through the processing of each step up to this point.

この画像における道路領域5101はY字状に分岐して
おり、本道5102と分岐路5103とに分かれている
。画面の下側から上側に向かって各区分線(i、i+1
.i+2.・・・)は画像走査され、また、各区分線に
おいて画面左側から右側へ画像走査される。この走査に
より、左端の境界線と各区分線との交点に位置する境界
点にはaという符号が付けられ、左端の境界線から一つ
右に位置する境界線と区分線との交点に位置する境界点
にはbという符号が付けられ、左端の境界線から二つ右
に位置する境界線と区分線との交点に位置する境界点に
はCという符号が付けられる。この結果、同図(b)に
示される領域境界点ストラフチャが得られる。
A road area 5101 in this image branches into a Y-shape, and is divided into a main road 5102 and a branch road 5103. Each dividing line (i, i+1
.. i+2. ) is image scanned, and the image is scanned from the left side of the screen to the right side at each dividing line. Through this scanning, the boundary point located at the intersection of the leftmost boundary line and each division line is given the symbol a, and the boundary point located at the intersection of the boundary line located one place to the right of the leftmost boundary line and the division line is assigned the symbol a. The boundary point located at the intersection of the boundary line two positions to the right of the leftmost boundary line and the division line is labeled C. As a result, the region boundary point struc- ture shown in FIG. 2(b) is obtained.

この領域境界点ストラフチャによる各境界点の関連付け
は図から理解されるように現実の道路の境界に合致して
おらず、各境界点には正しい属性が付与されていない。
As can be seen from the diagram, the association of each boundary point by this region boundary point struc- ture does not match the actual road boundary, and each boundary point is not given a correct attribute.

このため、内部点から領域の境界を追跡し、次の点が左
または右の領域端に存在する境界点てあれば、この内部
点と次の点とは連結しているものと判断し、これら各点
のリンクの付は替えを行う。同図の場合にあっては、内
部点c i+4から領域の境界を追跡する。追跡すると
次の点はa i+5であり、この点は左の領域端である
ため、リンクの付は替えを行う。つまり、a1+5以降
の各境界点に付けられた属性を内部点C++4と同じC
の属性とする。このリンクの付は替え処理により、同図
(c)に示される領域境界点ストラフチャが得られる。
Therefore, the boundary of the area is traced from the internal point, and if there is a boundary point where the next point is at the left or right edge of the area, this internal point and the next point are determined to be connected, The links at each of these points will be changed. In the case of the figure, the boundary of the area is traced from the internal point c i+4. When traced, the next point is a i+5, and since this point is the edge of the left area, the link attachment is changed. In other words, the attributes attached to each boundary point after a1+5 are the same as the internal point C++4.
be the attribute of By this process of changing the link attachment, the region boundary point struc- ture shown in FIG. 13(c) is obtained.

このストラフチャは現実の道路の境界に合致したものと
なっている。
This strafture matches the boundaries of the actual road.

同図(d)および(e)は、このリンクの付は替え処理
の前および後の領域境界の状態をベクトル表現によって
示した図である。つまり、同図(d)はリンクの付は替
え前のベクトル状態であり、同図(b)の領域境界点ス
トラフチャに基づいて各境界線の連結関係をベクトルに
より表現したものである。属性aが付けられたベクトル
および属性Cが付けられたベクトルは現実の道路の境界
に対応したものとなっていない。同図(e)はリンクの
付は替え処理を実行した後のベクトル状態であり、同図
(c)の修正された領域境界点ストラフチャに基づいて
各境界線の連結関係をベクトルにより表現したものであ
る。属性aが付けられたベクトルの終端部分は上述のよ
うに修正され、属性Cに付は替えられている。このため
、各ベクトルa、b、cによって表現される道路領域の
境界は現実のものに即した形状になっている。
Figures (d) and (e) are diagrams showing the state of the area boundary before and after the link replacement process using vector representations. In other words, FIG. 4(d) shows the vector state before the links are changed, and represents the connection relationship of each boundary line by a vector based on the area boundary point structure shown in FIG. 4(b). The vectors to which attribute a is attached and the vectors to which attribute C is attached do not correspond to actual road boundaries. Figure (e) shows the vector state after the link replacement process is performed, and the connection relationship between each boundary line is expressed by a vector based on the corrected region boundary point structure in Figure (c). It is. The terminal portion of the vector to which the attribute a has been attached is modified as described above, and the attribute C has been assigned. Therefore, the boundaries of the road area represented by the vectors a, b, and c have shapes that match reality.

同図(f)および(g)は、道路が合流する場合の領域
境界の状態を上記と同様にしてベクトルにより表現した
図である。同図(f)はリンクの付は替え前の領域境界
をベクトルによって表現したものである。属性dが付け
られたベクトルは、属性eおよびfが付けられたベクト
ルが形成する合流路の入り口を塞いでいる。同図(g)
は、前述と同様なリンクの付は替え処理後の領域境界を
ベクトルによって表現したものである。属性dが付けら
れたベクトルの始端部分はリンクの付は替え処理により
、属性fに修正され、領域境界は現実の合流路に合致し
たものとなっている。
Figures (f) and (g) are diagrams in which the state of area boundaries when roads merge are expressed by vectors in the same way as above. FIG. 3(f) is a vector representation of the area boundary before the link is added. The vector with the attribute d blocks the entrance of the confluence path formed by the vectors with the attributes e and f. Same figure (g)
is a vector representation of the area boundary after the same linking and replacing process as described above. The starting end portion of the vector to which the attribute d has been attached is modified to the attribute f by the link reassignment processing, and the area boundary matches the actual confluence route.

次に、ステップ4506の処理について、第52図を参
照して説明する。
Next, the process of step 4506 will be explained with reference to FIG. 52.

例えば、同図(a)に示される道路画像を想定する。こ
の道路画像には道路領域5201があり、道路領域52
01の左側には白線5202で区切られた路肩5203
がある。この道路画像の各領域の境界線と区分線との交
点には境界点が付けられ、同図(b)に示される道路端
および路肩端の点列が得られる。なお、画像の縁に掛か
る点は点列から除いである。以上の各ステップの操作に
より得られたy方向の各領域境界点ストラフチャのリン
クを画像下部に相当するところから上部へ辿る。そして
、領域境界点ストラフチャのリンクが所定個数以上ある
場合には、この領域境界点ストラフチャのリンクの画像
下部に相当するところに点列の開始点という属性を付け
る。図示の点列の開始点はΔ印で示されている。
For example, assume the road image shown in FIG. This road image includes a road area 5201 and a road area 52.
On the left side of 01 is a road shoulder 5203 separated by a white line 5202.
There is. Boundary points are attached to the intersections between the boundary lines of each region of this road image and the lane markings, and the point sequence of the road edge and road shoulder edge shown in FIG. 4(b) is obtained. Note that points that overlap the edges of the image are excluded from the point sequence. The links of the region boundary point struc- tures in the y direction obtained by the operations in each step above are traced from the part corresponding to the bottom of the image to the top. If there are more than a predetermined number of links of the area boundary point struc- ture, an attribute of a starting point of a point sequence is attached to a location corresponding to the lower part of the image of the links of this area boundary point struc- ture. The starting point of the illustrated sequence of points is indicated by a Δ symbol.

開始点という属性が付いているストラフチャのうち、領
域境界の左エツジから右エツジまでの実空間における距
離が走行車の車幅以上のストラフチャの組を道路端とす
る。同図(b)の場合には、点列5204および点列5
205に相当するストラフチャの組が道路端となる。ま
た、道路端の隣にストラフチャの組があり、このストラ
フチャ群と道路端との間の距離が道路端を表すストラフ
チャ群の幅より狭く、かつ、ストラフチャ群と他方の道
路端との間の距離が車幅より広く、しかも、ストラフチ
ャ群の相互の実距離が20cm前後で連続する場合には
、このストラフチャ群は白線を形成するものとする。そ
して、ストラフチャ群と一方の道路端とに挾まれたとこ
ろは白線で区分された路肩とみなす。
Among the struttles with the attribute of starting point, a set of struttles whose distance in real space from the left edge to the right edge of the area boundary is equal to or greater than the vehicle width of the traveling vehicle is defined as a road edge. In the case of the same figure (b), point sequence 5204 and point sequence 5
The struture set corresponding to 205 becomes the road edge. In addition, there is a set of straftures next to the road edge, and the distance between this strafture group and the road edge is narrower than the width of the straffure group representing the road edge, and the distance between the straffure group and the other road edge is is wider than the vehicle width, and when the actual distance between struture groups is approximately 20 cm and continuous, this struture group is assumed to form a white line. The area between the strafture group and one road edge is considered to be a shoulder separated by a white line.

同図(b)の点列においては、点列5206および点列
5207に相当するストラフチャの組により白線が形成
され、この白線と道路端5204との間が路肩とみなさ
れる。
In the sequence of points in FIG. 5B, a white line is formed by a set of strutures corresponding to the sequence of points 5206 and 5207, and the area between this white line and the road edge 5204 is considered to be the shoulder.

ところで、前述した「走行可能範囲を求める手段」は領
域を主体として走行コースを認識するものであり、画像
処理の結果得られる道路領域が1つの領域となることが
前提である。同手段によれば、単調路や分岐路の道路端
を識別することは可能である。しかし、白線によって分
断された領域、特に、道路と路肩とに分断された場合に
は、それらを区別して取り扱うことは困難である。これ
は、同手段が領域の内部からウィンドウを走査して領域
境界を探査するため、同時に道路端と路肩端とを識別で
きないからである。
By the way, the above-mentioned "means for determining the drivable range" recognizes the driving course based on the area, and is based on the premise that the road area obtained as a result of image processing is one area. According to this means, it is possible to identify the road edge of a monotonous road or a branch road. However, when an area is divided by a white line, especially into a road and a road shoulder, it is difficult to distinguish between them. This is because the means scans the window from inside the area to search for area boundaries, and therefore cannot identify the edge of the road and the edge of the road at the same time.

しかし、以上のように、ラベル画像を画像の下部から上
部まで水平に走査し、局所的な領域の境界追跡を行って
各領域のラベル値の変位箇所を求めることにより、領域
の境界を知ることが出来る。
However, as described above, it is possible to know the boundaries of an area by scanning the label image horizontally from the bottom to the top of the image, tracking the boundaries of local areas, and finding the displacement location of the label value of each area. I can do it.

これと共に、領域間の関係をストラフチャにおいて更新
し、領域の境界点を構造化することにより、道路領域は
計算機内部に構造化して表現される。
At the same time, the relationship between regions is updated in the strafture, and the boundary points of the regions are structured, so that the road region is represented in a structured manner inside the computer.

従って、この「多様な形状の走行コースの内部表現手法
」によれば、路肩や走行車線等の複数の領域の境界端座
標が得られ、領域境界を容易に検出することが出来、「
走行可能範囲を求める手段」のように対象とする領域が
単一領域に限定されない。さらに、上記の白線によって
分断された路肩等をも識別することが出来る。
Therefore, according to this "internal representation method for driving courses with various shapes", the boundary edge coordinates of multiple areas such as road shoulders and driving lanes can be obtained, and the area boundaries can be easily detected.
The target area is not limited to a single area as in the case of ``Means for Determining Drivable Range''. Furthermore, it is also possible to identify road shoulders divided by the above-mentioned white lines.

また、従来の領域境界手法に比べてメモリ容量は少なく
て済み、自立走行車が自動走行するのに十分な走行コー
スの走行可能範囲を、逐次的な境界探査や多角形近似を
行って評価するといった処理をすることなく得ることが
出来る。さらに、走行コースが単調路で無く、道路が分
岐していたり、合流していたりする場合においても、こ
れら分岐路や合流路の形状を統一的に表現することがで
き、走行コースの境界を正確に識別することが可能であ
る。
In addition, it requires less memory capacity than conventional domain boundary methods, and evaluates the possible travel range of a driving course that is sufficient for an autonomous vehicle to drive automatically by performing sequential boundary exploration and polygon approximation. This can be obtained without any processing. Furthermore, even if the driving course is not a monotonous road, and the roads are branching or merging, the shapes of these branching roads and merging roads can be expressed uniformly, and the boundaries of the driving course can be accurately determined. It is possible to identify

以上説明したように「多様な形状の走行コースの内部表
現手法」によれば、リストに記述された属性により、各
領域の境界点の連結関係が構造化されたストラフチャに
おいて表現され、このストラフチャから対象領域の境界
が識別される。このため、従来のように求まる点列群の
数が多いため、対象領域の境界を多角形で近似し、余分
な点を間引く処理が無くなる。また、従来のように各領
域の全ての境界画素を逐次的に一つ一つ追跡する必要は
無くなり、所定の境界画素のみについて処理することに
より、対象領域が識別される。従って、処理時間は短縮
され、自立走行車の自動走行に適した領域識別方法が提
供される。
As explained above, according to the "internal representation method for travel courses with various shapes", the connection relationships between the boundary points of each area are expressed in a structured strafcha using the attributes described in the list, and from this strafcha. The boundaries of the region of interest are identified. Therefore, since the number of point sequences that can be determined is large as in the conventional method, the process of approximating the boundary of the target area with a polygon and thinning out unnecessary points is no longer necessary. Further, it is no longer necessary to sequentially track all the boundary pixels of each area one by one as in the conventional method, and the target area is identified by processing only predetermined boundary pixels. Therefore, the processing time is shortened, and an area identification method suitable for autonomous driving of autonomous vehicles is provided.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、リストに記述され
た属性により、各領域の境界点の連結関係が構造化され
たストラフチャにおいて表現され、このストラフチャか
ら対象領域の境界が識別される。このため、従来のよう
に求まる点列群の数が多いため、対象領域の境界を多角
形で近似し、余分な点を間引く処理が無くなる。また、
従来のように各領域の全ての境界画素を逐次的に一つ一
つ追跡する必要は無くなり、所定の境界画素のみについ
て処理することにより、対象領域が識別される。従って
、処理時間は短縮され、自立走行車の自動走行に適した
領域識別方法が提供される。
As described above, according to the present invention, the connection relationship between the boundary points of each area is expressed in a structured strafture using the attributes described in the list, and the boundary of the target area is identified from this strafture. Therefore, since the number of point sequences that can be determined is large as in the conventional method, the process of approximating the boundary of the target area with a polygon and thinning out unnecessary points is no longer necessary. Also,
It is no longer necessary to sequentially track all the boundary pixels of each area one by one as in the past, and the target area is identified by processing only predetermined boundary pixels. Therefore, the processing time is shortened, and an area identification method suitable for autonomous driving of autonomous vehicles is provided.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例による「多様な形状の走行コ
ースの内部表現手法」における道路領域の構造化処理の
概略を示すフローチャート、第2図は走行路領域を抽出
するカラー画像処理の概略の流れを示すフロチャート、
第3図はFROMテーブルを用いたカラー画像のISH
変換処理」におけるISH変換処理のアルゴリズムを示
すブロック図、第4図および第5図および第6図および
第7図のそれぞれはこのISH変換処理の処理例を従来
の処理例と比較して説明するための図、第8図は[繰返
しきい値処理における特徴量ヒストグラムの形状に基づ
くしきい値設定手段」におけるカラー画像の前処理の概
略を示すフローチャート、第9図はこの前処理における
ピーク・谷の状態を説明するための図、第10図はこの
前処理におけるテーブル値の推移を説明するための図、
第11図は走行路の認識処理の概要を示すフローチャー
ト、第12図は「テンプレート画像を用いた繰返しきい
値処理による走行コースの抽出手段」における走行路抽
出の処理の詳細を示すフローチャート、第13図はこの
道路候補領域の抽出処理における各過程を説明するため
の図、第14図は「明るさの違いに注目した走行コース
からの影や高輝度部分の抽出手段」における種々の入力
画像に対する処理の概要を説明するための図、第15図
はこの手段における影や高輝度部分の説明をするための
明度ヒストグラムの一例を示すグラフ、第16図は「ラ
ベリング処理装置」のラベリングボード構成図、第17
図はラベリング処理のゼネラルフローチャート、第18
図は多値人力ラベリング方式を説明するための図、第1
9図はランを用いたラベリング方式を説明するための図
、第20図はラベリング処理の画像走査で使用されるウ
ィンドウを示す図、第21図はラベリングプロセッサK
LPの構成図、第22図および第23図および第24図
および第25図および第26図および第27図のそれぞ
れはラベリング処理の画像走査で行われるウィンドウ処
理を示すフローチャート、第28図はラベリングメモリ
KLMの構成図、第29図は最終的に付与されるラベル
値を整合する処理を説明するための図、第30図は特徴
抽出プロセッサKLCの構成図、第31図は1スキャン
ラベリング方式を説明するための図、第32図は「複数
の領域の併合手段」においてラベル領域を探査するため
に使用される逆り字マスクを示す図、第33図は第32
図に示された逆り字マスクを用いた領域境界探査を説明
する際に使用される分割領域の一例を示す図、第34図
は逆り字マスク走査式手法により求まったラベル領域境
界探査界長領域の周囲長が記憶されるラベル間境界長マ
ドリスクを示す図、第35図は各領域間の接続関係およ
び各ラベル領域の有する特微量が記述される特微量リス
トを示す図、第36図は第35図に示された特微量リス
トに記述された各特微量を有するラベル領域の一例、第
37図は境界探査式手法において着目される画素の近傍
に付される参照画素位置No、を示す図、第38図は境
界探査式手法において使用される画素参照テーブルを示
す図、第39図は第38図に示された画素参照テーブル
の使用方法を説明する際に用いられる画素領域の一例を
示す図、第40図は「走行可能範囲を求める手段」にお
ける走行コース認識システムの処理の流れを示すフロー
チャート、第41図はこの手段の説明において使用され
る取り込み画像でのウィンドウの移動を示す図、第42
図は対象領域におけるウィンドウおよびヒストグラムの
値を説明するための図、第43図は曲率のきついカーブ
で走行車が道路端に近付き過ぎた場合に生じる道路端の
識別の逆転を説明するための図、第44図は第43図に
示された道路端の認識の逆転を防止するために求めた点
列群の関係をマハラノビスの汎距離を用いて補正する手
法を説明するための図、第45図はカラー画像処理装置
全体の概略構成を示すブロック図、第46図は「多様な
形状の走行コースの内部表現手法」におけるy方向リス
トと領域境界点ストラフチャとを説明するための図、第
47図はラベル変位箇所と領域境界点ストラフチャとを
説明するための図、第48図は領域境界の属性を説明す
るための図、第49図は領域境界点の前後方向のリンク
処理を説明するための図、第50図は内部点エツジおよ
び穴という属性を説明するための図、第51図は一旦付
与された属性の付は替え処理を説明するための図、第5
2図は道路端および路肩端の検出を説明するための図で
ある。 101・・・カラーカメラ、102・・・ISH変換部
、103・・・カラー処理部、104・・・ラベリング
ハード、105・・・CPU処理部、148・・・ラベ
ル画像、149・・・特徴量りスト1.150・・・道
路位置座標、151・・・点列画像、4603・・・道
路領域の境界線、4604・・・区分線、4605・・
・y方向の領域境界点ストラフチャ、
FIG. 1 is a flowchart showing an outline of road region structuring processing in the "internal representation method for driving courses of various shapes" according to an embodiment of the present invention, and FIG. A flowchart showing the general flow,
Figure 3 shows ISH of a color image using FROM table.
The block diagrams illustrating the algorithm of the ISH conversion process in ``conversion process'', FIGS. 4 and 5, and FIGS. 6 and 7 respectively explain processing examples of this ISH conversion process in comparison with conventional processing examples. Figure 8 is a flowchart showing the outline of color image preprocessing in [threshold setting means based on the shape of feature histogram in iterative threshold processing], and Figure 9 shows peaks and valleys in this preprocessing. FIG. 10 is a diagram for explaining the transition of table values in this preprocessing.
FIG. 11 is a flowchart showing an overview of the driving route recognition process, FIG. 12 is a flowchart showing details of the driving route extraction process in "driving course extraction means by iterative threshold processing using a template image", and FIG. The figure is a diagram for explaining each process in this road candidate region extraction process, and Figure 14 is a diagram for explaining various steps in the extraction process of road candidate regions. A diagram for explaining the outline of the processing, Figure 15 is a graph showing an example of a brightness histogram for explaining shadows and high brightness areas in this method, and Figure 16 is a configuration diagram of the labeling board of the "labeling processing device". , 17th
The figure is a general flowchart of the labeling process, No. 18.
The figure is a diagram for explaining the multivalued manual labeling method.
Figure 9 is a diagram for explaining the labeling method using runs, Figure 20 is a diagram showing a window used in image scanning for labeling processing, and Figure 21 is a diagram showing the labeling processor K.
The block diagram of the LP, FIGS. 22, 23, 24, 25, 26, and 27 are flowcharts showing window processing performed during image scanning in labeling processing, and FIG. 28 is a flowchart for labeling. A configuration diagram of the memory KLM, FIG. 29 is a diagram for explaining the process of matching the label values finally assigned, FIG. 30 is a configuration diagram of the feature extraction processor KLC, and FIG. 31 shows the one-scan labeling method. Figure 32 is an explanatory diagram showing an inverted mask used to search the label area in the ``means for merging multiple areas'';
A diagram showing an example of divided regions used to explain region boundary exploration using the inverted mask shown in the figure, FIG. 34 is a label region boundary exploration field determined by the inverted mask scanning method FIG. 35 is a diagram showing an inter-label boundary length madrisk in which the perimeter length of a long region is stored; FIG. 35 is a diagram showing a feature quantity list in which the connection relationship between each region and the feature quantities of each label region are described; FIG. 36 is an example of a label area having each feature quantity described in the feature quantity list shown in Fig. 35, and Fig. 37 shows the reference pixel position number attached near the pixel of interest in the boundary search method. Figure 38 is a diagram showing a pixel reference table used in the boundary search method, and Figure 39 is an example of a pixel area used to explain how to use the pixel reference table shown in Figure 38. FIG. 40 is a flowchart showing the processing flow of the driving course recognition system in the "means for determining the drivable range", and FIG. 41 shows the movement of the window in the captured image used in the explanation of this means. Figure, No. 42
The figure is a diagram for explaining the window and histogram values in the target area, and Figure 43 is a diagram for explaining the reversal of road edge identification that occurs when the vehicle approaches the road edge too much on a curve with a tight curvature. , FIG. 44 is a diagram for explaining a method of correcting the relationship of the point sequence group obtained in order to prevent the reversal of road edge recognition shown in FIG. 43 using Mahalanobis' general distance. 46 is a block diagram showing a schematic configuration of the entire color image processing device; FIG. 46 is a diagram for explaining the y-direction list and area boundary point struc- ture in the "method for internally representing travel courses of various shapes"; and FIG. The figure is a diagram for explaining the label displacement location and the region boundary point structure, FIG. 48 is a diagram for explaining the attributes of the region boundary, and FIG. 49 is a diagram for explaining the linking process of the region boundary point in the front and back direction. , FIG. 50 is a diagram for explaining the attributes of internal point edges and holes, FIG. 51 is a diagram for explaining the process of replacing attributes once assigned, and FIG.
FIG. 2 is a diagram for explaining detection of road edges and road shoulder edges. 101... Color camera, 102... ISH conversion unit, 103... Color processing unit, 104... Labeling hardware, 105... CPU processing unit, 148... Label image, 149... Features Weighing list 1.150...Road position coordinates, 151...Point sequence image, 4603...Boundary line of road area, 4604...Dividing line, 4605...
・Area boundary point struc- ture in the y direction,

Claims (1)

【特許請求の範囲】 1、画像分割された各領域にラベル付けされた画像を一
定方向の区分線により区分し、該一定方向に直交する方
向のリストを前記区分線毎に作成し、 前記区分線に沿って画像走査して前記各領域のラベル値
の変化点を識別することにより該区分線と前記各領域の
境界線との交点に位置する境界点を求めて前記一定方向
におけるリストを該境界点毎に作成し、 各領域のラベル値の接続関係に基づいて前記一定方向に
おける前記区分線に沿った前記境界点の属性を求めて前
記一定方向のリストに該属性を記述し、 各領域のラベル値の接続関係に基づいて前記一定方向に
直交する方向における前記分割領域の境界線に沿った前
記境界点の属性を求めて前記一定方向のリストに該属性
を記述し、前記各リストに記述された前記属性に基づい
て前記一定方向に直交する方向のリストの連結長さを求
め、該長さが所定長さ以上のリストに対応する前記境界
点の点列を対象領域の境界に該当するものと判断し、 対象領域の境界を識別することを特徴とする画像処理に
おける対象領域識別方法。 2、対象領域の境界端の間に内部点が存在する場合、該
内部点から前記一定方向に直交する方向に沿って分割領
域の境界を追跡し、次に現れる境界点が別の内部点であ
り、該別の内部点が前記区分線上で隣接するさらに別の
内部点に連結している場合には、これら各内部点により
前記対象領域中に別の領域が形成されているものと認識
することを特徴とする請求項1記載の対象領域識別方法
。 3、対象領域の境界端の間に内部点が存在する場合、こ
の内部点から前記一定方向に直交する方向に沿って分割
領域の境界を追跡し、次に現れる境界点が対象領域の境
界端に有る境界点である場合には、前記内部点と該境界
点とは連結関係にあるものと判断し、該境界点と該境界
点を求める以前に求めた境界点との連結関係を切断し、
該境界点と前記内部点とを連結することにより、求めた
対象領域の境界を修正することを特徴とする請求項1ま
たは請求項2記載の対象領域識別方法。
[Scope of Claims] 1. Divide the image into which each region of the image is divided and labeled by a dividing line in a certain direction, create a list of directions perpendicular to the certain direction for each dividing line, By scanning the image along the line and identifying points of change in the label values of each area, a boundary point located at the intersection of the dividing line and the boundary line of each area is found, and the list in the certain direction is divided. Create each boundary point, find the attribute of the boundary point along the dividing line in the certain direction based on the connection relationship of the label values of each area, and write the attribute in the list of the certain direction, and each area Find the attribute of the boundary point along the boundary line of the divided area in the direction orthogonal to the certain direction based on the connection relationship of the label values, write the attribute in the list in the certain direction, and write the attribute in each list in the certain direction. The concatenated length of the list in the direction orthogonal to the certain direction is determined based on the described attribute, and the point sequence of the boundary points corresponding to the list whose length is greater than or equal to a predetermined length corresponds to the boundary of the target area. A method for identifying a target area in image processing, characterized by determining that a target area is a target area and identifying a boundary of the target area. 2. If an internal point exists between the boundary edges of the target area, trace the boundary of the divided area from the internal point along a direction orthogonal to the certain direction, and determine whether the next boundary point that appears is another internal point. If the other internal point is connected to another adjacent internal point on the dividing line, it is recognized that another area is formed in the target area by each of these internal points. 2. The target area identification method according to claim 1. 3. If an internal point exists between the boundary edges of the target area, trace the boundary of the divided area from this internal point along the direction perpendicular to the certain direction, and the next boundary point that appears is the boundary edge of the target area. If it is a boundary point located in ,
3. The target area identification method according to claim 1, wherein the boundary of the determined target area is modified by connecting the boundary point and the internal point.
JP2112988A 1990-04-27 1990-04-27 Target area identification method in image processing Expired - Fee Related JP2915067B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2112988A JP2915067B2 (en) 1990-04-27 1990-04-27 Target area identification method in image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2112988A JP2915067B2 (en) 1990-04-27 1990-04-27 Target area identification method in image processing

Publications (2)

Publication Number Publication Date
JPH0410080A true JPH0410080A (en) 1992-01-14
JP2915067B2 JP2915067B2 (en) 1999-07-05

Family

ID=14600609

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2112988A Expired - Fee Related JP2915067B2 (en) 1990-04-27 1990-04-27 Target area identification method in image processing

Country Status (1)

Country Link
JP (1) JP2915067B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123090A (en) * 2006-11-09 2008-05-29 Casio Comput Co Ltd Camera pointer device, labeling method and program
CN115166120A (en) * 2022-06-23 2022-10-11 中国科学院苏州生物医学工程技术研究所 A spectral peak identification method, equipment, medium and product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123090A (en) * 2006-11-09 2008-05-29 Casio Comput Co Ltd Camera pointer device, labeling method and program
CN115166120A (en) * 2022-06-23 2022-10-11 中国科学院苏州生物医学工程技术研究所 A spectral peak identification method, equipment, medium and product

Also Published As

Publication number Publication date
JP2915067B2 (en) 1999-07-05

Similar Documents

Publication Publication Date Title
CN108304798B (en) Street level order event video detection method based on deep learning and motion consistency
Sohn et al. Data fusion of high-resolution satellite imagery and LiDAR data for automatic building extraction
CN110659644B (en) Automatic stroke extraction method of calligraphy words
CN110309808B (en) Self-adaptive smoke root node detection method in large-scale space
CN103927526A (en) A vehicle detection method based on Gaussian difference multi-scale edge fusion
Shneier Using pyramids to define local thresholds for blob detection
CN104680531B (en) A kind of connection amount statistical information extracting method and VLSI structure
Mei et al. Scene-adaptive off-road detection using a monocular camera
CN108765456B (en) Target tracking method and system based on linear edge characteristics
CN120931913A (en) Traffic scene multi-target detection method and system based on deep learning
CN101887522A (en) A Road Extraction Method Based on Multi-point Simultaneous Fast Traveling from Remote Sensing Image
CN106815851B (en) A kind of grid circle oil level indicator automatic reading method of view-based access control model measurement
JP3333468B2 (en) Roadway image processing device for autonomous running of vehicles
JP3232064B2 (en) Target area extraction method for color images
JP2940956B2 (en) Line figure feature extraction method
JP3243230B2 (en) Boundary identification method of target area in color image
CN120747508A (en) Risk road section identification and assessment method and system
JPH0410079A (en) Device and method for processing color image
JP3421274B2 (en) Labeling device for color images
CN107832732A (en) Method for detecting lane lines based on ternary tree traversal
JP3232065B2 (en) A method for merging multiple regions in a color image
JPH0410080A (en) Target area identification method in image processing
CN118823726A (en) Method, device and vehicle for constructing multi-task dataset for automatic parking
CN110348317A (en) A kind of urban road Robust Detection Method based on the region MSER
Hoogs et al. An integrated boundary and region approach to perceptual grouping

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080416

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100416

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees