JP2000121319A - Image processor, image processing method and supply medium - Google Patents

Image processor, image processing method and supply medium

Info

Publication number
JP2000121319A
JP2000121319A JP10293212A JP29321298A JP2000121319A JP 2000121319 A JP2000121319 A JP 2000121319A JP 10293212 A JP10293212 A JP 10293212A JP 29321298 A JP29321298 A JP 29321298A JP 2000121319 A JP2000121319 A JP 2000121319A
Authority
JP
Japan
Prior art keywords
pixel
distance
image
pixels
correction
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
JP10293212A
Other languages
Japanese (ja)
Other versions
JP4296617B2 (en
JP2000121319A5 (en
Inventor
Sachiko Miwa
祥子 三輪
Atsushi Yokoyama
敦 横山
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP29321298A priority Critical patent/JP4296617B2/en
Publication of JP2000121319A publication Critical patent/JP2000121319A/en
Publication of JP2000121319A5 publication Critical patent/JP2000121319A5/en
Application granted granted Critical
Publication of JP4296617B2 publication Critical patent/JP4296617B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a relatively correct distance even when corresponding arrangement of pixels between a plurality of images is not made correctly. SOLUTION: At a stereo processing part 11, a corresponding point on a detection camera image to pixels of a reference camera image is detected to determine a distance to an object for the pixels of the reference camera image. Moreover, at a correcting pixel selecting part 13, the correcting pixels are selected for the correction of the distance from the pixels of a distance image with the distance as pixel value and at a correction part 14, the distance for the correcting pixels is corrected based on the distance for other pixels of the distance image.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置およ
び画像処理方法、並びに提供媒体に関し、特に、例え
ば、所定の対象物を、複数のカメラで撮影して得られる
複数の画像の画素それぞれを相互に対応付け、対象物に
対する視差や、対象物までの距離などを、画素ごとに求
める、いわゆるステレオ画像処理を行う画像処理装置お
よび画像処理方法、並びに提供媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, an image processing method, and a providing medium, and more particularly to, for example, each of pixels of a plurality of images obtained by photographing a predetermined object with a plurality of cameras. The present invention relates to an image processing apparatus and an image processing method for performing so-called stereo image processing, which determine a parallax with respect to an object, a distance to the object, and the like for each pixel.

【0002】[0002]

【従来の技術】例えば、文献「解説,ビデオレート・ス
テレオマシン(A Video-rate Stereomachine;金出(Kan
ade),木村 著、日本ロボット学会誌("Journal of the
Robotics Society of Japan (JRSJ)")vol.13 No.3, p
p.322〜pp.326, 1995)」などには、2箇所以上から同
一の対象物を撮影することにより、あるいは、2台以上
のカメラで撮影することにより得た複数の画像の間で、
互いに対応する画素の間の視差情報(視差)を得て、対
象物上の各点の距離を求め、さらには、対象物の形状を
計測する、いわゆるステレオ画像処理が開示されてい
る。
2. Description of the Related Art For example, in the document "Explanation, A Video-rate Stereomachine (Kande)
ade), Kimura, Journal of the Robotics Society of Japan ("Journal of the
Robotics Society of Japan (JRSJ) ") vol.13 No.3, p
p.322-pp.326, 1995) ", by photographing the same object from two or more places, or between a plurality of images obtained by photographing with two or more cameras.
So-called stereo image processing is disclosed, in which parallax information (parallax) between mutually corresponding pixels is obtained, the distance between points on the object is obtained, and the shape of the object is measured.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
ステレオ画像処理では、背景と対象物との位置関係によ
っては、対象物の輪郭の近傍において、複数の画像間で
の画素の対応付けが不正確になり、画素間の視差情報
や、対象物までの距離、あるいはその形状を正しく計測
できないことがある。
However, in the conventional stereo image processing, the correspondence of pixels between a plurality of images near the outline of the object is incorrect depending on the positional relationship between the background and the object. In some cases, parallax information between pixels, a distance to an object, or a shape of the object cannot be correctly measured.

【0004】本発明は、このような状況に鑑みてなされ
たものであり、複数の画像間での画素の対応付けを正確
に行うことができなかった場合であっても、比較的正確
な視差情報や距離等を得ることができるようにするもの
である。
[0004] The present invention has been made in view of such a situation, and even if it is not possible to accurately associate pixels between a plurality of images, a relatively accurate parallax is obtained. Information and distance can be obtained.

【0005】[0005]

【課題を解決するための手段】請求項1に記載の画像処
理装置は、第1の画像の画素と対応する、第2の画像の
対応画素を検出する検出手段と、対応画素に基づき、第
1の画像の画素について、距離関係情報を求める処理手
段と、距離関係情報を画素値とする距離関係情報画像の
画素から、距離関係情報の補正を行う対象とする補正対
象画素を選択する選択手段と、補正対象画素についての
距離関係情報を、距離関係情報画像の他の画素について
の距離関係情報に基づいて補正する補正手段とを備える
ことを特徴とする。
An image processing apparatus according to claim 1, wherein a detecting means for detecting a corresponding pixel of a second image corresponding to a pixel of the first image, Processing means for obtaining distance-related information for a pixel of one image; selecting means for selecting, from pixels of the distance-related information image having the distance-related information as a pixel value, a correction target pixel for which distance-related information is to be corrected; And correction means for correcting the distance relationship information about the correction target pixel based on the distance relationship information about other pixels of the distance relationship information image.

【0006】請求項20に記載の画像処理方法は、第1
の画像の画素と対応する、第2の画像の対応画素を検出
する検出ステップと、対応画素に基づき、第1の画像の
画素について、距離関係情報を求める処理ステップと、
距離関係情報を画素値とする距離関係情報画像の画素か
ら、距離関係情報の補正を行う対象とする補正対象画素
を選択する選択ステップと、補正対象画素についての距
離関係情報を、距離関係情報画像の他の画素についての
距離関係情報に基づいて補正する補正ステップとを備え
ることを特徴とする。
[0006] The image processing method according to the twentieth aspect provides a first method.
A detection step of detecting a corresponding pixel of the second image corresponding to a pixel of the image of the second image; a processing step of obtaining distance-related information for a pixel of the first image based on the corresponding pixel;
A selection step of selecting, from the pixels of the distance-related information image whose distance-related information has a pixel value, a correction target pixel for which the distance-related information is to be corrected, and a distance-related information image for the correction-target pixel, And correcting based on the distance relationship information about other pixels.

【0007】請求項38に記載の提供媒体は、第1の画
像の画素と対応する、第2の画像の対応画素を検出する
検出ステップと、対応画素に基づき、第1の画像の画素
について、距離関係情報を求める処理ステップと、距離
関係情報を画素値とする距離関係情報画像の画素から、
距離関係情報の補正を行う対象とする補正対象画素を選
択する選択ステップと、補正対象画素についての距離関
係情報を、距離関係情報画像の他の画素についての距離
関係情報に基づいて補正する補正ステップとを備える制
御情報を提供することを特徴とする。
The providing medium according to claim 38, further comprising: a detecting step of detecting a corresponding pixel of the second image corresponding to a pixel of the first image; From the processing step of obtaining the distance relation information, and from the pixels of the distance relation information image having the distance relation information as a pixel value,
A selection step of selecting a correction target pixel to be corrected, and a correction step of correcting the distance relation information of the correction target pixel based on the distance relation information of other pixels of the distance relation information image. And providing control information comprising:

【0008】請求項39に記載の提供媒体は、第1の画
像の画素と対応する、第2の画像の対応画素を検出し、
対応画素に基づき、第1の画像の画素について、距離関
係情報を求め、距離関係情報を画素値とする距離関係情
報画像の画素から、距離関係情報の補正を行う対象とす
る補正対象画素を選択し、補正対象画素についての距離
関係情報を、距離関係情報画像の他の画素についての距
離関係情報に基づいて補正することにより得られる距離
関係情報を提供することを特徴とする。
[0008] The providing medium according to claim 39 detects a corresponding pixel of a second image corresponding to a pixel of the first image,
Based on the corresponding pixel, distance-related information is obtained for a pixel of the first image, and a correction target pixel for which distance-related information is to be corrected is selected from pixels of the distance-related information image having the pixel value of the distance-related information. The distance relation information obtained by correcting the distance relation information about the correction target pixel based on the distance relation information about other pixels of the distance relation information image is provided.

【0009】請求項1に記載の画像処理装置において
は、検出手段は、第1の画像の画素と対応する、第2の
画像の対応画素を検出し、処理手段は、対応画素に基づ
き、第1の画像の画素について、距離関係情報を求める
ようになされている。選択手段は、距離関係情報を画素
値とする距離関係情報画像の画素から、距離関係情報の
補正を行う対象とする補正対象画素を選択し、補正手段
は、補正対象画素についての距離関係情報を、距離関係
情報画像の他の画素についての距離関係情報に基づいて
補正するようになされている。
In the image processing apparatus according to the first aspect, the detecting means detects a corresponding pixel of the second image corresponding to the pixel of the first image, and the processing means detects the corresponding pixel of the second image based on the corresponding pixel. Distance relationship information is obtained for a pixel of one image. The selecting means selects a correction target pixel to be subjected to the correction of the distance relation information from the pixels of the distance relation information image having the distance relation information as a pixel value, and the correction means outputs the distance relation information about the correction target pixel. The correction is performed on the basis of the distance-related information on the other pixels of the distance-related information image.

【0010】請求項20に記載の画像処理方法において
は、第1の画像の画素と対応する、第2の画像の対応画
素を検出し、対応画素に基づき、第1の画像の画素につ
いて、距離関係情報を求め、距離関係情報を画素値とす
る距離関係情報画像の画素から、距離関係情報の補正を
行う対象とする補正対象画素を選択し、補正対象画素に
ついての距離関係情報を、距離関係情報画像の他の画素
についての距離関係情報に基づいて補正するようになさ
れている。
In the image processing method according to the present invention, a corresponding pixel of a second image corresponding to a pixel of the first image is detected, and a distance between pixels of the first image is determined based on the corresponding pixel. From the pixels of the distance-related information image whose pixel value is the distance-related information, a correction target pixel for which the distance-related information is to be corrected is selected. The correction is performed based on the distance relationship information of other pixels of the information image.

【0011】請求項38に記載の提供媒体においては、
第1の画像の画素と対応する、第2の画像の対応画素を
検出し、対応画素に基づき、第1の画像の画素につい
て、距離関係情報を求め、距離関係情報を画素値とする
距離関係情報画像の画素から、距離関係情報の補正を行
う対象とする補正対象画素を選択し、補正対象画素につ
いての距離関係情報を、距離関係情報画像の他の画素に
ついての距離関係情報に基づいて補正する処理を、情報
処理装置に行わせるための制御情報を提供するようにな
されている。
[0011] In the providing medium according to claim 38,
A corresponding pixel of the second image corresponding to the pixel of the first image is detected, distance-related information is obtained for the pixel of the first image based on the corresponding pixel, and a distance-related information is set as a pixel value of the distance-related information. From the pixels of the information image, a correction target pixel to be subjected to the correction of the distance relation information is selected, and the distance relation information of the correction target pixel is corrected based on the distance relation information of other pixels of the distance relation information image. To provide the control information for causing the information processing apparatus to perform the processing to be performed.

【0012】請求項39に記載の提供媒体においては、
第1の画像の画素と対応する、第2の画像の対応画素を
検出し、対応画素に基づき、第1の画像の画素につい
て、距離関係情報を求め、距離関係情報を画素値とする
距離関係情報画像の画素から、距離関係情報の補正を行
う対象とする補正対象画素を選択し、補正対象画素につ
いての距離関係情報を、距離関係情報画像の他の画素に
ついての距離関係情報に基づいて補正することにより得
られる距離関係情報を提供するようになされている。
[0012] In the providing medium according to claim 39,
A corresponding pixel of the second image corresponding to the pixel of the first image is detected, distance-related information is obtained for the pixel of the first image based on the corresponding pixel, and a distance-related information is set as a pixel value of the distance-related information. From the pixels of the information image, a correction target pixel to be subjected to the correction of the distance relation information is selected, and the distance relation information of the correction target pixel is corrected based on the distance relation information of other pixels of the distance relation information image. To provide distance-related information obtained by performing the operation.

【0013】[0013]

【発明の実施の形態】図1は、本発明を適用した距離測
定装置の一実施の形態の構成例を示している。
FIG. 1 shows a configuration example of an embodiment of a distance measuring apparatus to which the present invention is applied.

【0014】カメラ1および2(撮像手段)は、異なる
位置に固定された、例えばCCD(Charge Coupled Dev
ice)ビデオカメラで、その異なる位置(異なる視線方
向)から対象物3を撮影し、その結果得られる画像を、
カメラインターフェイス4に出力するようになされてい
る。ここで、カメラ1または2は、それぞれ、いわゆる
基準カメラまたは検出カメラとして機能する。そこで、
以下、適宜、カメラ1または2を、それぞれ基準カメラ
1または検出カメラ2というとともに、それぞれが出力
する画像を、基準カメラ画像(第1の画像)または検出
カメラ画像(第2の画像)という。
The cameras 1 and 2 (imaging means) are fixed at different positions, for example, a CCD (Charge Coupled Device).
ice) With a video camera, the object 3 is photographed from different positions (different line-of-sight directions), and the resulting image is
The data is output to the camera interface 4. Here, the camera 1 or 2 functions as a so-called reference camera or detection camera, respectively. Therefore,
Hereinafter, the camera 1 or 2 is referred to as the reference camera 1 or the detection camera 2 as appropriate, and the image output from each is referred to as the reference camera image (first image) or the detection camera image (second image).

【0015】カメラインターフェイス4は、基準カメラ
1または検出カメラ2それぞれからの基準カメラ画像ま
たは検出カメラ画像を受信し、フレームメモリ5に供給
するようになされている。フレームメモリ5は、カメラ
インターフェイス4からの基準カメラ画像および検出カ
メラ画像を、例えば、フレーム単位などで記憶するよう
になされている。
The camera interface 4 receives a reference camera image or a detected camera image from the reference camera 1 or the detected camera 2, respectively, and supplies it to the frame memory 5. The frame memory 5 stores a reference camera image and a detected camera image from the camera interface 4 in, for example, a frame unit.

【0016】演算処理回路6は、フレームメモリ5に記
憶された基準カメラ画像および検出カメラ画像に基づい
て、基準カメラ1または検出カメラ2のうちの、例え
ば、基準カメラ1から対象物3までの距離に関係する距
離関係情報を求め、その距離関係情報に対応する画素値
を有する画像を生成するようになされている。
The arithmetic processing circuit 6 calculates, for example, the distance from the reference camera 1 or the detection camera 2 to the object 3 based on the reference camera image and the detection camera image stored in the frame memory 5. Is obtained, and an image having a pixel value corresponding to the distance relationship information is generated.

【0017】即ち、演算処理回路6は、基準カメラ画像
の画素と、検出カメラ画像の画素のとの間の対応をと
り、基準カメラ画像の画素それぞれについて、対象物3
までの距離を求めて、その距離に対応する画素値を有す
る画像(例えば、距離が大きいほど輝度値が大きい画
像)(以下、適宜、距離画像という)を生成するように
なされている。あるいは、演算処理回路6は、対応をと
った画素間の視差ζを測定し、その視差ζに対応する画
素値を有する画像(以下、適宜、視差画像という)を生
成するようになされている。なお、演算処理回路6にお
いては、視差ζから、距離画像を求めたり、さらに、距
離画像から、対象物3の3次元形状の解析を行うように
すること等も可能である。
That is, the arithmetic processing circuit 6 makes correspondence between the pixels of the reference camera image and the pixels of the detected camera image, and for each pixel of the reference camera image, the object 3
An image having a pixel value corresponding to the distance (for example, an image having a larger luminance value as the distance increases) (hereinafter, appropriately referred to as a distance image) is generated. Alternatively, the arithmetic processing circuit 6 measures the parallax 間 の between the corresponding pixels and generates an image having a pixel value corresponding to the parallax ((hereinafter, appropriately referred to as a parallax image). In the arithmetic processing circuit 6, it is also possible to obtain a distance image from the parallax 、, and to analyze the three-dimensional shape of the object 3 from the distance image.

【0018】具体的には、演算処理回路6は、制御用の
CPU(Central Processing Unit)6A,ROM(Read O
nly Memory)6B,RAM(Random Access Memory)6
C、および画像処理用のDSP(Digital Signal Proces
sor)6Dなどから構成されている。そして、CPU6A
は、記憶装置7に記憶されたアプリケーションプログラ
ムを実行することで、距離測定装置を構成する各ブロッ
クを制御するとともに、後述するようなステレオ処理
や、補正処理等を行うことにより、距離画像等を生成す
るようになされている。
Specifically, the arithmetic processing circuit 6 includes a control CPU (Central Processing Unit) 6A and a ROM (Read O
nly Memory) 6B, RAM (Random Access Memory) 6
C and DSP (Digital Signal Proces) for image processing
sor) 6D and the like. And CPU6A
Executes the application program stored in the storage device 7 to control each block constituting the distance measurement device, and performs stereo processing and correction processing as described later to generate a distance image and the like. Have been made to generate.

【0019】なお、ROM6Bは、例えば、IPL(In
itial Program Loading)用のプログラムその他の必要
なデータを記憶している。RAM6Cは、CPU6Aが
実行するプログラムや、CPU6Aの処理上必要なデー
タなどを一時記憶するようになされている。DSP6D
は、CPU6Aの制御の下、必要な積和演算その他を行
うようになされている。
The ROM 6B stores, for example, an IPL (In
It stores a program for itial program loading and other necessary data. The RAM 6C temporarily stores a program executed by the CPU 6A, data necessary for the processing of the CPU 6A, and the like. DSP6D
Performs the necessary product-sum operation and the like under the control of the CPU 6A.

【0020】記憶装置7は、例えば、HD(Hard Dis
k)や、CD−ROM(Compact DiscRead Only Memor
y)などで構成され、演算処理回路6が実行するOS(O
perating System)のプログラムや、上述したような処
理を行うためのアプリケーションプログラムなどを記憶
している。また、記憶装置7は、演算処理回路6が出力
する距離画像等を記憶するようにもなされている。出力
装置8は、例えば、CRT(Cathode Ray Tube)や液晶
パネルなどで構成され、演算処理回路6が出力する距離
画像等を表示するようになされている。
The storage device 7 includes, for example, an HD (Hard Dis
k), CD-ROM (Compact Disc Read Only Memor
y), and the like, and the OS (O
perating System), an application program for performing the above-described processing, and the like. Further, the storage device 7 is also configured to store a distance image or the like output from the arithmetic processing circuit 6. The output device 8 includes, for example, a CRT (Cathode Ray Tube), a liquid crystal panel, or the like, and displays a distance image or the like output from the arithmetic processing circuit 6.

【0021】以上のように構成される距離測定装置で
は、基準カメラ1および検出カメラ2によって対象物3
が撮影される。さらに、その結果得られる基準カメラ画
像および検出カメラ画像が、カメラインターフェイス4
を介してフレームメモリ5に供給されて記憶される。そ
して、その基準カメラ画像および検出カメラ画像を用い
て、演算処理回路6において、ステレオ処理が行われ
る。
In the distance measuring apparatus configured as described above, the reference camera 1 and the detection camera 2
Is taken. Further, the resulting reference camera image and detected camera image are stored in the camera interface 4.
Is supplied to and stored in the frame memory 5. Then, the arithmetic processing circuit 6 performs stereo processing using the reference camera image and the detected camera image.

【0022】ここで、ステレオ処理は、上述のように、
2つ以上の方向(異なる視線方向)からカメラで同一対
象物を撮影して得られる複数の画像間の画素同士を対応
付けることで、対応する画素間の視差情報や、カメラか
ら対象物までの距離、対象物の形状を求めるものであ
る。
Here, the stereo processing is performed as described above.
By associating pixels between a plurality of images obtained by photographing the same object with a camera from two or more directions (different line-of-sight directions), parallax information between corresponding pixels and a distance from the camera to the object , To determine the shape of the object.

【0023】即ち、例えば、図2に示すように、2台の
基準カメラ1および検出カメラ2で対象物3を撮影する
と、基準カメラ1からは対象物3の投影像を含む基準カ
メラ画像が得られ、検出カメラ2からも対象物3の投影
像を含む検出カメラ画像が得られる。いま、図2におけ
る対象物3上のある点Pが、基準カメラ画像および検出
カメラ画像の両方に表示されているとすると、その点P
が表示されている基準カメラ画像上の位置と、検出カメ
ラ画像上の位置、つまり対応点(対応画素)とから、視
差情報を求めることができ、さらに、三角測量の原理を
用いて、点Pの3次元空間における位置(3次元位置)
を求めることができる。
That is, for example, as shown in FIG. 2, when an object 3 is photographed by two reference cameras 1 and two detection cameras 2, a reference camera image including a projection image of the object 3 is obtained from the reference camera 1. Then, a detection camera image including the projection image of the object 3 is obtained from the detection camera 2. Now, assuming that a point P on the object 3 in FIG. 2 is displayed in both the reference camera image and the detected camera image, the point P
Can be obtained from the position on the reference camera image where is displayed and the position on the detected camera image, that is, the corresponding point (corresponding pixel). Further, the point P is calculated using the principle of triangulation. Position in 3D space (3D position)
Can be requested.

【0024】従って、ステレオ処理では、まず、対応点
を検出することが必要となるが、その検出方法として
は、例えば、エピポーラライン(Epipolar Line)を用
いたエリアベースマッチング法などがある。
Therefore, in the stereo processing, first, it is necessary to detect a corresponding point. As a detection method, there is, for example, an area-based matching method using an epipolar line.

【0025】即ち、図3に示すように、基準カメラ1に
おいては、対象物3上の点Pは、その点Pと基準カメラ
1の光学中心(レンズ中心)O1とを結ぶ直線L上の、
基準カメラ1の撮像面S1との交点naに投影される。
That is, as shown in FIG. 3, in the reference camera 1, the point P on the object 3 is on a straight line L connecting the point P and the optical center (lens center) O 1 of the reference camera 1. ,
It is projected to the intersection n a of the imaging surface S 1 of the base camera 1.

【0026】また、検出カメラ2においては、対象物3
の点Pは、その点Pと検出カメラ2の光学中心(レンズ
中心)O2とを結ぶ直線上の、検出カメラ2の撮像面S2
との交点nbに投影される。
In the detection camera 2, the object 3
A point P is an imaging surface S 2 of the detection camera 2 on a straight line connecting the point P and the optical center (lens center) O 2 of the detection camera 2.
It is projected to the intersection n b and.

【0027】この場合、直線Lは、光学中心O1および
2、並びに点na(または点P)の3点を通る平面と、
検出カメラ画像が形成される撮像面S2との交線L2とし
て、撮像面S2上に投影される。点Pは、直線L上の点
であり、従って、撮像面S2において、点Pを投影した
点nbは、直線Lを投影した直線L2上に存在し、この直
線L2はエピポーララインと呼ばれる。即ち、点naの対
応点nbが存在する可能性のあるのは、エピポーラライ
ンL2上であり、従って、対応点nbの探索は、エピポー
ララインL2上を対象に行えば良い。
In this case, a straight line L is defined by a plane passing through the optical centers O 1 and O 2 and the point n a (or the point P).
As the line of intersection L 2 of the imaging surface S 2 of the detection camera image is formed, is projected onto the imaging surface S 2. The point P is a point on the straight line L. Therefore, on the imaging surface S 2 , the point n b on which the point P is projected exists on the straight line L 2 on which the straight line L is projected, and the straight line L 2 is an epipolar line. Called. That, then possible corresponding points n b of the point n a is present, a on the epipolar line L 2, therefore, the search for corresponding points n b may be performed in a subject on the epipolar line L 2.

【0028】ここで、エピポーララインは、例えば、撮
像面S1に形成される基準カメラ画像を構成する画素ご
とに考えることができるが、基準カメラ1と検出カメラ
2の位置関係が既知であれば、その画素ごとに存在する
エピポーララインは求めることができる。
[0028] Here, the epipolar line, for example, can be considered for each pixel constituting the reference camera image formed on the imaging surface S 1, if the positional relationship between the reference camera 1 and the detection camera 2 known , The epipolar line existing for each pixel can be obtained.

【0029】エピポーララインL2上の点からの対応点
bの検出は、例えば、次のようなエリアベースマッチ
ングによって行うことができる。
The detection of the corresponding point n b from the point on the epipolar line L 2 can be performed by, for example, the following area-based matching.

【0030】即ち、エリアベースマッチングでは、図4
(A)に示すように、基準カメラ画像上の点naを中心
(例えば、対角線の交点)とする、例えば長方形状の小
ブロック(以下、適宜、基準ブロックという)(第1の
ブロック)が、基準カメラ画像から抜き出されるととも
に、図4(B)に示すように、検出カメラ画像に投影さ
れたエピポーララインL2上の、ある点を中心とする、
基準ブロックと同一の大きさの小ブロック(以下、適
宜、検出ブロックという)(第2のブロック)が、検出
カメラ画像から抜き出される。
That is, in the area-based matching, FIG.
As shown in (A), for example, a small rectangular block (hereinafter, appropriately referred to as a reference block) (first block) having a point na on the reference camera image as a center (for example, an intersection of diagonal lines) is provided. , together with the extracted from the reference camera image, as shown in FIG. 4 (B), on the epipolar line L 2 projected on the detection camera image, centered at a point,
A small block having the same size as the reference block (hereinafter, appropriately referred to as a detection block) (second block) is extracted from the detected camera image.

【0031】ここで、図4(B)の実施の形態において
は、エピポーララインL2上に、検出ブロックの中心と
する点として、点nb1乃至nb6の6点が設けられてい
る。この6点nb1乃至nb6は、図3に示した3次元空間
における直線Lを、所定の一定距離ごとに区分する点、
即ち、基準カメラ1からの距離が、例えば、1m,2
m,3m,4m,5m,6mの点それぞれを、検出カメ
ラ2の撮像面S2に投影した点で、従って、基準カメラ
1からの距離が1m,2m,3m,4m,5m,6mの
点にそれぞれ対応している。
[0031] Here, in the embodiment of FIG. 4 (B), on the epipolar line L 2, a point of the center of the detection block, 6 points of the point n b1 to n b6 are provided. These six points n b1 to n b6 are points that divide the straight line L in the three-dimensional space shown in FIG.
That is, the distance from the reference camera 1 is, for example, 1 m, 2
m, 3 m, 4 m, 5 m, and 6 m are points projected on the imaging surface S 2 of the detection camera 2, and accordingly, points at distances from the reference camera 1 of 1 m, 2 m, 3 m, 4 m, 5 m, and 6 m Respectively.

【0032】エリアベースマッチングでは、検出カメラ
画像から、エピポーララインL2上に設けられている点
b1乃至nb6それぞれを中心とする検出ブロックが抜き
出され、各検出ブロックと、基準ブロックとの相関が、
所定の評価関数を用いて演算される。そして、点na
中心とする基準ブロックとの相関が最も高い検出ブロッ
クの中心の点nbが、点naの対応点として求められる。
[0032] In the area-based matching, the detection camera image detection block around the point n b1 through n b6 respectively provided on the epipolar line L 2 is extracted, and the detection block, the reference block The correlation is
The calculation is performed using a predetermined evaluation function. Then, the point n b of the central correlation highest detection block and the reference block centered on the point n a is obtained as the corresponding point of the point n a.

【0033】即ち、例えば、いま、評価関数として、相
関が高いほど小さな値をとる関数を用いた場合に、エピ
ポーララインL2上の点nb1乃至nb6それぞれについ
て、例えば、図5に示すような評価値(評価関数の値)
が得られたとする。この場合、評価値が最も小さい(相
関が最も高い)点nb3が、点naの対応点として検出さ
れる。なお、図5において、点nb1乃至nb6それぞれに
ついて求められた評価値(図5において●印で示す)の
うちの最小値付近のものを用いて補間を行い、評価値が
より小さくなる点(図5において×印で示す)を求め
て、その点を、最終的な対応点として検出することも可
能である。
[0033] That is, for example, now, as the evaluation function, when a function that takes a smaller value the higher the correlation, the points n b1 through n b6 respectively on the epipolar line L 2, for example, as shown in FIG. 5 Evaluation value (value of evaluation function)
Is obtained. In this case, the smallest evaluation value (the correlation is the highest) is point n b3, is detected as a corresponding point of the point n a. In FIG. 5, interpolation is performed using the evaluation values near the minimum value among the evaluation values (indicated by ● in FIG. 5) obtained for each of the points n b1 to n b6 , and a point at which the evaluation value becomes smaller is obtained. (Indicated by a cross in FIG. 5), and that point can be detected as a final corresponding point.

【0034】図4の実施の形態では、上述したように、
3次元空間における直線Lを所定の等距離ごとに区分す
る点を、検出カメラ2の撮像面S2に投影した点が設定
されているが、この設定は、例えば、基準カメラ1およ
び検出カメラ2のキャリブレーション時に行うことがで
きる。そして、このような設定を、基準カメラ1の撮像
面S1を構成する画素ごとに存在するエピポーラライン
ごとに行い、図6(A)に示すように、エピポーラライ
ン上に設定された点(以下、適宜、設定点という)と、
基準カメラ1からの距離とを対応付ける設定点/距離テ
ーブルをあらかじめ作成しておけば、対応点となる設定
点を検出し、設定点/距離テーブルを参照することで、
即座に、基準カメラ1からの距離(対象物3までの距
離)を求めることができる。即ち、いわば、対応点か
ら、直接、距離を求めることができる。
In the embodiment of FIG. 4, as described above,
A point dividing the line L for each predetermined equidistant in a three-dimensional space, but a point obtained by projecting the imaging surface S 2 of the detection camera 2 has been set, this setting is, for example, the reference camera 1 and the detection camera 2 Can be performed at the time of calibration. Then, such a setting is performed for each epipolar line exists for each pixel constituting the imaging surface S 1 of the reference camera 1, as shown in FIG. 6 (A), the point set on the epipolar line (hereinafter , Where appropriate, referred to as set points)
If a set point / distance table that associates a distance from the reference camera 1 is created in advance, a set point serving as a corresponding point is detected, and the set point / distance table is referred to.
The distance from the reference camera 1 (the distance to the object 3) can be immediately obtained. That is, the distance can be obtained directly from the corresponding point.

【0035】一方、基準カメラ画像上の点naについ
て、検出カメラ画像上の対応点nbを検出すれば、その
2点naおよびnbの間の視差(視差情報)を求めること
ができる。さらに、基準カメラ1と検出カメラ2の位置
関係が既知であれば、2点naおよびnbの間の視差か
ら、三角測量の原理によって、対象物3までの距離を求
めることができる。視差から距離の算出は、所定の演算
を行うことによって行うことができるが、あらかじめそ
の演算を行っておき、図6(B)に示すように、視差ζ
と距離との対応付ける視差/距離テーブルをあらかじめ
作成しておけば、対応点を検出し、視差を求め、視差/
距離テーブルを参照することで、やはり、即座に、基準
カメラ1からの距離を求めることができる。
Meanwhile, for the points n a on the reference camera image, by detecting the corresponding points n b on the detection camera image can be obtained parallax (disparity information) between the two points n a and n b . Further, if the positional relationship between the reference camera 1 and the detection camera 2 is known, from the disparity between the two points n a and n b, the principle of triangulation, can determine the distance to the target 3. Although the calculation of the distance from the parallax can be performed by performing a predetermined calculation, the calculation is performed in advance, and the parallax ζ is calculated as shown in FIG.
If a parallax / distance table for associating the distance with the distance is created in advance, the corresponding point is detected, the parallax is obtained, and the parallax /
By referring to the distance table, the distance from the reference camera 1 can be immediately obtained.

【0036】ここで、視差と、対象物3までの距離とは
一対一に対応するものであり、従って、視差を求めるこ
ととと、対象物3までの距離を求めることとは、いわば
等価である。
Here, the parallax and the distance to the object 3 have a one-to-one correspondence. Therefore, obtaining the parallax and obtaining the distance to the object 3 are equivalent, so to speak. is there.

【0037】また、対応点の検出に、基準ブロックおよ
び検出ブロックといった複数画素でなるブロックを用い
るのは、ノイズの影響を軽減し、基準カメラ画像上の画
素(点)naの周囲の画素のパターンの特徴と、検出カ
メラ画像上の対応点(画素)nbの周囲の画素のパター
ンの特徴との相関性を明確化して判断することにより、
対応点の検出の確実を期すためであり、特に、変化の少
ない基準カメラ画像および検出カメラ画像に対しては、
画像の相関性により、ブロックの大きさが大きければ大
きいほど対応点の検出の確実性が増す。
Further, the detection of the corresponding point, to use a reference block and a detection block that it becomes a plurality of pixels blocks, to reduce the effect of noise, on the reference camera image pixel (point) of n a surrounding pixels pattern and characteristics of, by determining clarifies a correlation between the feature of the pattern of pixels around the detected corresponding points on the camera image (pixels) n b,
In order to ensure the detection of the corresponding point, especially for the reference camera image and the detected camera image with little change,
Due to the correlation of the images, the larger the block size, the more reliable the detection of the corresponding point.

【0038】次に、エリアベースマッチングにおいて、
例えば、基準ブロックと検出ブロックとの相関性を評価
する評価関数としては、基準ブロックを構成する画素
と、それぞれの画素に対応する、検出ブロックを構成す
る画素の画素値の差分の絶対値の総和や、その差分の自
乗和、正規化された相互相関(normalized cross correl
ation)などを用いることができる。
Next, in area-based matching,
For example, as an evaluation function for evaluating the correlation between the reference block and the detection block, the sum of the absolute values of the differences between the pixels constituting the reference block and the pixel values of the pixels constituting the detection block corresponding to the respective pixels is provided. And the sum of squares of the differences, normalized cross correl
ation) can be used.

【0039】基準ブロックを構成する画素と、それぞれ
の画素に対応する、検出ブロックを構成する画素の画素
値の差分の絶対値の総和を評価関数として用いる場合、
その評価値(評価関数の値)は、例えば、次式で計算す
ることができる。
When the sum of the absolute values of the pixels constituting the reference block and the pixel values of the pixels constituting the detection block corresponding to each pixel is used as the evaluation function,
The evaluation value (value of the evaluation function) can be calculated by the following equation, for example.

【0040】[0040]

【数1】 ・・・(1) なお、式(1)において、xは、対応点を求めようとし
て注目している基準画像上の画素(注目画素)を表し、
従って、基準ブロックを構成する中心の画素を表す。ま
た、yは、検出ブロックを構成する中心の画素を表し、
S(x,y)は、基準カメラ画像上の画素xを中心とす
る基準ブロックと、検出カメラ画像上の画素yを中心と
する検出ブロックとの相関性を示す評価値を表す。さら
に、WAまたはWBは、基準ブロックまたは検出ブロック
をそれぞれ表し、j WA,WBであるから、x+jは、
基準ブロックWAを構成する画素を表し、y+jは、画
素x+jに対応する、検出ブロックWBを構成する画素
を、それぞれ表す。また、YA(x+j)またはYB(y
+j)は、それぞれ、画素x+jまたはy+jの画素値
を表す。
(Equation 1) (1) In Expression (1), x represents a pixel on the reference image (pixel of interest) of interest for which a corresponding point is to be obtained,
Therefore, it represents the central pixel constituting the reference block. Further, y represents a central pixel constituting the detection block,
S (x, y) represents an evaluation value indicating a correlation between a reference block centered on pixel x on the reference camera image and a detection block centered on pixel y on the detected camera image. Furthermore, W A or W B represents a reference block or detection block, respectively, j W A, because it is W B, x + j is
Represents pixels constituting the reference block W A, y + j corresponds to the pixel x + j, the pixels constituting the detection block W B, representing, respectively. In addition, Y A (x + j) or Y B (y
+ J) represents the pixel value of pixel x + j or y + j, respectively.

【0041】式(1)を用いる場合においては、例え
ば、画素yを、エピポーラライン上に設定された設定点
に順次ずらしながら、評価値S(x,y)を計算し、そ
の評価値S(x,y)を最も小さくする検出カメラ画像
の画素y(=ymin)が、基準カメラ画像の画素xの対
応点として検出される。なお、視差は、画素xとymin
との位置から計算される。
In the case of using the equation (1), for example, the evaluation value S (x, y) is calculated while sequentially shifting the pixel y to the set point set on the epipolar line, and the evaluation value S ( The pixel y (= y min ) of the detected camera image that minimizes x, y) is detected as the corresponding point of the pixel x of the reference camera image. Note that the parallax is determined by the pixels x and y min
Is calculated from the position.

【0042】また、例えば、基準ブロックを構成する画
素と、それぞれの画素に対応する、検出ブロックを構成
する画素の画素値の差分の自乗和を評価関数として用い
る場合、その評価値は、例えば、次式で計算することが
できる。
For example, when the sum of squares of the difference between the pixels constituting the reference block and the pixel values of the pixels constituting the detection block corresponding to each pixel is used as the evaluation function, the evaluation value is, for example, It can be calculated by the following equation.

【0043】[0043]

【数2】 ・・・(2) なお、式(2)において、x,yは、画素のx座標、y
座標をそれぞれ表し、η,ξは、x方向の視差、y方向
の視差をそれぞれ表す。そして、SSD(x,y,η,
ξ)は、視差が(η,ξ)であると仮定した場合の評価
値、即ち、基準カメラ画像上の座標(x,y)に位置す
る画素を中心とする基準ブロックと、検出カメラ画像上
の座標(x−η,y−ξ)に位置する画素を中心とする
検出ブロックとの相関性を示す評価値を表す。また、W
AまたはWBは、基準ブロックまたは検出ブロックをそれ
ぞれ表し、i,j WA,WBであるから、(x+i,y
+j)または(x+i−η,y+j−ξ)は、基準カメ
ラ画像または検出カメラ画像上の座標をそれぞれ表す。
そして、YA(x+i,y+j)は、基準カメラ画像上
の座標(x+i,y+j)に位置する画素の画素値を表
し、YB(x+i−η,y+j−ξ)は、検出カメラ画
像上の座標(x+i−η,y+j−ξ)に位置する画素
の画素値を表す。
(Equation 2) (2) In Expression (2), x and y are x coordinates of a pixel and y
Η and η represent parallax in the x direction and parallax in the y direction, respectively. Then, SSD (x, y, η,
ξ) is an evaluation value when the parallax is assumed to be (η, ξ), that is, a reference block centered on a pixel located at coordinates (x, y) on the reference camera image, and an evaluation value on the detected camera image. Represents an evaluation value indicating a correlation with a detection block centering on a pixel located at the coordinates (x−η, y−ξ) of the pixel. Also, W
A or W B represents a reference block or detection block, respectively, i, j W A, because it is W B, (x + i, y
+ J) or (x + i−η, y + j−ξ) represents coordinates on the reference camera image or the detected camera image, respectively.
Y A (x + i, y + j) represents a pixel value of a pixel located at coordinates (x + i, y + j) on the reference camera image, and Y B (x + i−η, y + j−ξ) represents a pixel value on the detected camera image. It represents the pixel value of the pixel located at the coordinates (x + i-η, y + j-ξ).

【0044】式(2)を用いる場合には、視差(η,
ξ)を変化させならが、評価値SSD(x,y,η,
ξ)を計算し、その評価値SSD(x,y,η,ξ)を
最も小さくする検出カメラ画像の画素(x−η,y−
ξ)が、基準カメラ画像の画素(x,y)の対応点とし
て検出される。なお、評価値SSD(x,y,η,ξ)
を最も小さくするときの視差(η,ξ)を、(ηmin
ξmin)と表すと、基準カメラの画素と、その対応点と
の距離としての視差ζは、次式で求められる。
When equation (2) is used, the disparity (η,
ξ) is changed, the evaluation value SSD (x, y, η,
ξ) is calculated, and the pixel (x−η, y−) of the detected camera image that minimizes the evaluation value SSD (x, y, η, ξ) is calculated.
ξ) is detected as the corresponding point of the pixel (x, y) of the reference camera image. Note that the evaluation value SSD (x, y, η, ξ)
The parallax (η, ξ) when minimizing is (η min ,
ξ min ), the parallax 距離 as the distance between the pixel of the reference camera and the corresponding point is obtained by the following equation.

【0045】[0045]

【数3】 ・・・(3)(Equation 3) ... (3)

【0046】ここで、式(1)および(2)に示した評
価値は、基準ブロックを構成する画素と、それぞれの画
素に対応する、検出ブロックの画素との画素値の差が少
ないほど小さくなる。従って、基準カメラ画像の画素n
aについての評価値を最も小さくする検出カメラ画像の
画素nbについては、その評価値が小さいほど、画素na
の対応点であることの確実性が大きく、逆に、その評価
値が大きいほど、画素naの対応点であることの確実性
が低くなることになる。
Here, the smaller the difference between the pixel value of the reference block and the pixel value of the detection block corresponding to each pixel, the smaller the evaluation value shown in Expressions (1) and (2). Become. Therefore, pixel n of the reference camera image
As for the pixel n b of the detected camera image that minimizes the evaluation value for a, the smaller the evaluation value, the larger the pixel n a
Of greater certainty of being corresponding points, on the contrary, the larger the evaluation value, certainty of being the corresponding point of pixel n a is the lower.

【0047】次に、例えば、図7(A)に示すように、
背景となる壁の前方(基準カメラ1および検出カメラ2
から見て手前)に置かれた対象物3を、基準カメラ1お
よび検出カメラ2で撮影し、エピポーララインを用いて
エリアベースマッチングを行うことにより、対応点の検
出を行う場合を考える。
Next, for example, as shown in FIG.
In front of the background wall (reference camera 1 and detection camera 2
A case where the corresponding point is detected by photographing an object 3 placed in front of the camera 3 with the reference camera 1 and the detection camera 2 and performing area-based matching using an epipolar line is considered.

【0048】ここで、上述したように、視差を求めるこ
ととと、対象物3までの距離を求めることとは等価であ
り、以下では、対応点から、例えば、図6(A)に示し
たような設定点/距離対応テーブルを参照して、距離を
求めるものとして、説明を行う。さらに、以下では、例
えば、式(1)の評価値を用いることとする。
Here, as described above, obtaining the parallax is equivalent to obtaining the distance to the object 3. In the following, the corresponding points are shown in FIG. 6A, for example. The description will be made assuming that the distance is determined with reference to such a set point / distance correspondence table. Further, in the following, for example, the evaluation value of Expression (1) is used.

【0049】図7(A)に示した場合においては、基準
カメラ1または検出カメラ2それぞれから、例えば、図
7(B)に示すような基準カメラ画像または検出カメラ
画像が得られる。
In the case shown in FIG. 7A, for example, a reference camera image or a detection camera image as shown in FIG. 7B is obtained from the reference camera 1 or the detection camera 2, respectively.

【0050】そして、いま、図7(B)に示した基準カ
メラ画像において、図8(A)に示すように、対象物3
の投影像である前景に接する背景の画素k(図8(A)
において、■印で示す)の対応点k’を検出することを
考える。
Now, in the reference camera image shown in FIG. 7B, as shown in FIG.
Of the background k in contact with the foreground, which is a projected image of FIG.
, The detection of a corresponding point k ′ (indicated by a triangle) is considered.

【0051】この場合、例えば、画素kと対応点k’と
の間の視差ζが大きいと、図8(B)に示すように、基
準カメラ画像において前景に接する背景の画素kの、検
出カメラ画像上の真の対応点k’が、対象物3の投影像
である前景から離れた位置に観察されることがある。
In this case, for example, if the parallax ζ between the pixel k and the corresponding point k ′ is large, as shown in FIG. 8B, the detection camera of the background pixel k in contact with the foreground in the reference camera image The true corresponding point k ′ on the image may be observed at a position distant from the foreground, which is a projection image of the object 3.

【0052】このような場合においては、基準カメラ画
像の画素kを中心画素とする基準ブロックは、図8
(C)に示すように、一部に前景の画素を含み、残りに
背景の画素を含むものとなる。なお、図8(C)の実施
の形態では、画素kを中心とする5×5画素(横×縦)
が、基準ブロックとして構成されており、左側の2列が
前景の画素で、右側の3列が背景の画素で、それぞれ構
成されている。
In such a case, the reference block whose center pixel is the pixel k of the reference camera image is shown in FIG.
As shown in (C), some pixels include foreground pixels, and others include background pixels. In the embodiment of FIG. 8C, 5 × 5 pixels (horizontal × vertical) centering on pixel k
Are configured as reference blocks, and two columns on the left side are foreground pixels, and three columns on the right side are background pixels.

【0053】図8(C)に示した場合において、基準ブ
ロックの左側の2列と、右側の3列にそれぞれ対応する
検出カメラ画像の画素は、図8(D)に示すように、2
カ所に分かれる。即ち、基準ブロックの、前景の画素で
なる左側の2列は、検出カメラ画像における前景の画素
群Aに対応する。一方、基準ブロックの、背景の画素で
なる右側の3列は、検出カメラ画像における真の対応点
k’の部分の背景の画素群Bに対応する。
In the case shown in FIG. 8C, the pixels of the detected camera image corresponding to the two columns on the left side and the three columns on the right side of the reference block are 2 pixels as shown in FIG. 8D.
Divided into two places. That is, the left two columns of foreground pixels in the reference block correspond to the foreground pixel group A in the detected camera image. On the other hand, the right three columns of background pixels of the reference block correspond to the background pixel group B at the true corresponding point k ′ in the detected camera image.

【0054】そして、このように、基準ブロックを構成
する画素に対応する検出カメラ画像の画素が分かれる場
合においては、基準ブロックについて計算される評価値
が、画素群Bを含む検出ブロックを対象としたときより
も、画素群Aを含む検出ブロックを対象としたときの方
が小さくなることがある。即ち、図8(E)に示すよう
に、検出カメラ画像において、前景に接する背景の画素
k’’を中心として構成される検出ブロックが、基準ブ
ロックとの間の評価値を最も小さくすることがある。こ
の場合、真の対応点k’ではない点k’’が、画素kの
対応点として検出され、従って、対応点を誤検出するこ
とになり、その誤検出に起因して、画素kに対応する3
次元空間上の点までの距離も、誤った値が求められるこ
とになる。即ち、上述のような対応点の誤検出がある
と、画素kに対応する3次元空間上の点までの距離は、
前景を構成する対象物3までの距離に近い値となって求
められる。そして、その結果、そのような距離を画素値
とする距離画像は、対象物3の横幅が広がったようなも
のとなる。
As described above, when the pixels of the detected camera image corresponding to the pixels constituting the reference block are separated, the evaluation value calculated for the reference block is targeted for the detection block including the pixel group B. In some cases, the size may be smaller when the detection block including the pixel group A is targeted. That is, as shown in FIG. 8 (E), in the detected camera image, the detection block formed around the background pixel k ″ in contact with the foreground can minimize the evaluation value between the detection block and the reference block. is there. In this case, a point k ″ that is not a true corresponding point k ′ is detected as the corresponding point of the pixel k, and therefore, the corresponding point is erroneously detected. Do 3
An incorrect value is also obtained for the distance to a point in the dimensional space. That is, if the corresponding point is erroneously detected as described above, the distance to the point in the three-dimensional space corresponding to the pixel k is:
It is obtained as a value close to the distance to the object 3 constituting the foreground. Then, as a result, a distance image having such a distance as a pixel value is as if the width of the object 3 is widened.

【0055】ここで、以上のような対応点の誤検出は、
前景と背景の絵柄が異なっている場合に比較的生じやす
く、さらに、その絵柄が大きく異なっている場合には、
特に生じやすい。
Here, the erroneous detection of the corresponding points as described above
If the foreground and background patterns are different, it is relatively easy to occur, and if the patterns are significantly different,
Particularly easy to occur.

【0056】上述のような対応点の誤検出は、基準ブロ
ック(従って、検出ブロックも)を小さくする(基準ブ
ロックを構成する画素数を少なくする)ことにより低減
することができるが、これでは、エリアベースマッチン
グによる対応点の検出の確実性が低下する。
The erroneous detection of the corresponding point as described above can be reduced by reducing the size of the reference block (and therefore the detection block) (reducing the number of pixels constituting the reference block). The reliability of detecting a corresponding point by area-based matching is reduced.

【0057】そこで、図1の距離測定装置の演算処理回
路6では、次のような距離の補正処理を行うことで、エ
リアベースマッチングによる対応点の検出の確実性を保
ちつつ、上述のような前景と背景の境界部分、即ち、エ
ッジ部分で生じる対応点の誤検出に起因する距離への影
響を低減するようになされている。
Therefore, the arithmetic processing circuit 6 of the distance measuring apparatus shown in FIG. 1 performs the following distance correction processing to maintain the certainty of the corresponding point by area-based matching, and The influence on the distance due to the erroneous detection of the corresponding point occurring at the boundary between the foreground and the background, that is, at the edge, is reduced.

【0058】即ち、演算処理回路6では、まず最初に、
上述したようなステレオ処理により、基準カメラ画像の
各画素について、検出カメラ画像の各画素が、式(1)
に示した評価関数による評価値を用いてエリアベースマ
ッチング法により対応付けられ(対応点が検出され)、
基準カメラ画像の各画素に対応する3次元空間上の点ま
での距離が求められる。これにより、その距離を画素値
とする距離画像が生成される。
That is, in the arithmetic processing circuit 6, first,
By the stereo processing as described above, for each pixel of the reference camera image, each pixel of the detected camera image is calculated by the equation (1).
Are matched by the area-based matching method using the evaluation value by the evaluation function shown in (the corresponding points are detected),
The distance to a point in the three-dimensional space corresponding to each pixel of the reference camera image is obtained. As a result, a distance image having the distance as a pixel value is generated.

【0059】次に、図9(A)に示すように、基準カメ
ラ画像の画素kを中心とする、その画素kの距離を補正
するのに最適な画素(以下、適宜、最尤画素という)を
検索する領域(範囲)としての小ブロック(以下、適
宜、検索ブロックという)(図9(A)において点線で
囲んで示す)(第3のブロック)が構成される。なお、
図9(A)では、検索ブロックは、画素kについて構成
される基準ブロックと同一とされている。
Next, as shown in FIG. 9A, a pixel centered on the pixel k of the reference camera image and optimal for correcting the distance of the pixel k (hereinafter, appropriately referred to as the maximum likelihood pixel) A small block (hereinafter, appropriately referred to as a search block) (indicated by a dotted line in FIG. 9A) (third block) is configured as a region (range) in which is searched. In addition,
In FIG. 9A, the search block is the same as the reference block configured for the pixel k.

【0060】さらに、検索ブロックを構成する画素のう
ち、評価値の最小値が最も小さいものが、最尤画素とし
て選択(検出)される。即ち、基準カメラ画像の画素k
を中心とする検索ブロックに含まれる画素それぞれを中
心とする基準ブロックそれぞれと、その検索ブロックに
含まれる画素それぞれについて検出された検出カメラ画
像上の対応点それぞれを中心とする検出ブロックそれぞ
れとの間の評価値の中で、最も小さい値が得られている
検索ブロック内の画素が、対応点との対応付けが最も確
からしく行われているものであるとして、その画素が、
最尤画素として検出される。なお、図9(A)では、画
素kを中心とする検索ブロックの最も右上の画素k
2が、最尤画素として検出されている。
Further, among the pixels constituting the search block, the pixel having the smallest evaluation value is selected (detected) as the maximum likelihood pixel. That is, the pixel k of the reference camera image
Between each reference block centered on each pixel included in the search block centered on the corresponding detection point on the detected camera image detected for each pixel included in the search block. Of the evaluation values of, assuming that the pixel in the search block for which the smallest value is obtained is the one that is most reliably associated with the corresponding point,
It is detected as the maximum likelihood pixel. In FIG. 9A, the uppermost pixel k in the search block centered on pixel k
2 is detected as the maximum likelihood pixel.

【0061】そして、距離画像の画素kの画素値として
の距離を、その画素kについて検出された最尤画素の画
素値となっている距離で、例えば置換することで、画素
kの画素値としての距離が補正される。即ち、図9
(A)では、画素kについての距離(画素値)は、その
検索ブロックの最も右上の画素k2を最尤画素として、
その最尤画素k2についての距離(画素値)に置き換え
られる。
Then, the distance as the pixel value of the pixel k of the distance image is replaced with, for example, the distance that is the pixel value of the maximum likelihood pixel detected for the pixel k, thereby obtaining the pixel value of the pixel k. Is corrected. That is, FIG.
In (A), the distance (pixel value) for the pixel k is obtained by defining the upper right pixel k 2 of the search block as the maximum likelihood pixel.
Its is replaced to the distance (pixel value) for the maximum likelihood pixel k 2.

【0062】従って、この補正処理では、基準カメラ画
像における前景と背景との境界(エッジ)部分の画素k
について誤検出された、検出カメラ画像の対応点k’’
(図8)を無視する一方、例えば、図9(B)に示すよ
うに、対応点の誤検出が生じやすいエッジ部分を避け
て、背景の画素と前景の画素とが混在しない基準ブロッ
クを用いてエリアベースマッチングを行うことにより検
出された対応点から求められた距離が、画素kの真の対
応点k’から求められる距離にほぼ等しいと推定し、そ
のような、いわば、より確からしい距離で、対応点が誤
検出された画素についての距離が置き換えられる。
Accordingly, in this correction processing, the pixel k at the boundary (edge) between the foreground and the background in the reference camera image is used.
Corresponding to the detected camera image k ''
While ignoring (FIG. 8), for example, as shown in FIG. 9 (B), a reference block in which background pixels and foreground pixels are not mixed is used to avoid an edge portion where erroneous detection of a corresponding point is likely to occur. It is estimated that the distance obtained from the corresponding point detected by performing the area-based matching is substantially equal to the distance obtained from the true corresponding point k ′ of the pixel k. Then, the distance for the pixel at which the corresponding point is erroneously detected is replaced.

【0063】即ち、図9において、画素kについては、
前景の画素と背景の画素とを含む基準ブロックが構成さ
れるが(図9(A))、その近くにある画素k2につい
ては、背景の画素だけで基準ブロックが構成される(図
9(B))。このため、画素kの対応点が誤検出される
可能性は高い一方で、画素k2の対応点が誤検出される
可能性は低いため、画素kについての距離は、より正確
である可能性が高い画素k2についての距離に置き換え
られる。
That is, in FIG. 9, for the pixel k,
A reference block containing a pixel of the foreground pixel and the background is constructed (FIG. 9 (A)), the pixel k 2 beside it, the reference block is formed only in the pixel in the background (Fig. 9 ( B)). For this reason, while the possibility that the corresponding point of the pixel k is erroneously detected is high, the possibility that the corresponding point of the pixel k 2 is erroneously detected is low, so that the distance for the pixel k may be more accurate. It is replaced by the distance for high pixel k 2.

【0064】なお、検索ブロックの大きさは特に限定さ
れるものではないが、あまり大きいと、画素kからの距
離が遠い位置にある画素についての距離による置き換え
が行われる場合がある。そして、そのような遠い位置に
ある画素についての距離が、画素kについての真の距離
にほぼ等しいとは推定し難いため、検索ブロックの大き
さはあまり大きくしない方が望ましい。一方、検索ブロ
ックの大きさが小さすぎると、基準カメラ画像におい
て、背景の画素と前景の画素とが混在しない基準ブロッ
ク(対応点の誤検出が生じやすいエッジ部分を避けた基
準ブロック)が構成される画素が、画素kの検索ブロッ
クに含まれなくなる。即ち、検索ブロックに、対応点の
誤検出の可能性の低い画素が含まれなくなり、その結
果、誤った対応点から求められた誤った距離による置き
換えが行われる場合が生じる。従って、検索ブロックの
大きさは、あまり小さくしない方が望ましい。即ち、検
索ブロックは、以上のような不都合が生じないように、
適切な大きさとするのが望ましい。
Although the size of the search block is not particularly limited, if it is too large, a pixel located far from the pixel k may be replaced by a distance. Then, it is difficult to estimate that the distance for such a distant pixel is substantially equal to the true distance for the pixel k, so it is desirable that the size of the search block is not too large. On the other hand, if the size of the search block is too small, a reference block in which the background pixel and the foreground pixel do not coexist in the reference camera image (a reference block that avoids an edge portion where a corresponding point is likely to be erroneously detected) is formed. Are not included in the search block for the pixel k. That is, the search block does not include a pixel having a low possibility of erroneous detection of the corresponding point, and as a result, replacement may be performed with an erroneous distance obtained from an erroneous corresponding point. Therefore, it is desirable not to make the size of the search block too small. That is, the search block is designed to avoid the above-mentioned inconvenience.
It is desirable to have an appropriate size.

【0065】また、距離画像を構成する画素の画素値と
しての距離の補正は、その距離画像を構成する画素すべ
てを、順次、補正の対象として行うことも可能である
が、補正の対象とする画素(以下、適宜、補正対象画素
という)を選択して行うことも可能である。この点につ
いては、後述する。
Further, the correction of the distance as the pixel value of the pixels forming the distance image can be performed sequentially on all the pixels forming the distance image, but the correction is performed on the pixels. It is also possible to select a pixel (hereinafter referred to as a correction target pixel as appropriate). This will be described later.

【0066】次に、図10は、上述のようなステレオ処
理および補正処理を行う図1の演算処理回路6の機能的
構成例を示している。なお、この機能的構成は、例え
ば、演算処理回路6が、記憶装置7に記憶されたアプリ
ケーションプログラムを実行することで実現される。
Next, FIG. 10 shows an example of a functional configuration of the arithmetic processing circuit 6 of FIG. 1 for performing the above-described stereo processing and correction processing. Note that this functional configuration is realized, for example, by the arithmetic processing circuit 6 executing an application program stored in the storage device 7.

【0067】ステレオ処理部11(検出手段)(処理手
段)は、フレームメモリ5に記憶された基準カメラ画像
および検出カメラ画像を読み出し、ステレオ処理を行う
ことで、距離画像等を求めるようになされている。即
ち、ステレオ処理部11は、エピポーララインを用いて
エリアベースマッチングを行うことにより、基準カメラ
画像の画素それぞれと対応する、検出カメラ画像の対応
点を検出し、その対応点に基づき、基準カメラ画像の各
画素について、その画素に投影された3次元空間上の点
までの距離を求める。そして、ステレオ処理部11は、
その距離を画素値とする距離画像や、対応点を検出する
ときに得られた評価値を、距離画像記憶部12に供給す
る。
The stereo processing unit 11 (detection means) (processing means) reads out the reference camera image and the detected camera image stored in the frame memory 5 and performs stereo processing to obtain a distance image and the like. I have. That is, the stereo processing unit 11 performs area-based matching using the epipolar line to detect corresponding points of the detected camera image corresponding to the respective pixels of the reference camera image, and based on the corresponding points, detects the reference camera image. For each pixel of, the distance to a point on the three-dimensional space projected on that pixel is determined. Then, the stereo processing unit 11
A distance image having the distance as a pixel value and an evaluation value obtained when a corresponding point is detected are supplied to the distance image storage unit 12.

【0068】距離画像記憶部12は、ステレオ処理部1
1から供給される距離画像および評価値を記憶するよう
になされている。
The distance image storage unit 12 stores the stereo processing unit 1
The distance image and the evaluation value supplied from 1 are stored.

【0069】補正対象画素選択部13(選択手段)は、
距離画像記憶部12に記憶された距離画像を構成する画
素から、その画素値となっている距離の補正を行う対象
(補正処理の対象)とする補正対象画素を選択し、補正
部14に指示するようになさている。補正部14(補正
手段)は、距離画像記憶部12に記憶された距離画像を
構成する画素のうち、補正対象画素選択部13から補正
対象画素として指示のあったものを対象に、その画素値
としての距離を補正するようになされている。
The correction target pixel selection section 13 (selection means)
From the pixels forming the distance image stored in the distance image storage unit 12, a correction target pixel to be subjected to the correction of the distance having the pixel value (target of correction processing) is selected, and the correction unit 14 is instructed. It is made to do. The correction unit 14 (correction unit) determines a pixel value of a pixel included in the distance image stored in the distance image storage unit 12 that has been instructed by the correction pixel selection unit 13 as a correction target pixel. As the distance is corrected.

【0070】距離画像記憶部15は、距離画像記憶部1
2に記憶された距離画像の、補正部14による補正後の
ものを記憶するようになされている。
The distance image storage unit 15 stores the distance image storage unit 1
2, the distance image after correction by the correction unit 14 is stored.

【0071】次に、図11のフローチャートを参照し
て、図10の演算処理回路6が行うステレオ処理につい
て説明する。なお、ステレオ処理は、上述のように、ス
テレオ処理部11で行われる。
Next, the stereo processing performed by the arithmetic processing circuit 6 of FIG. 10 will be described with reference to the flowchart of FIG. Note that the stereo processing is performed by the stereo processing unit 11 as described above.

【0072】上述のように、基準カメラ1または検出カ
メラ2それぞれでは、対象物3が撮影され、その結果得
られる、例えば1フレームの基準カメラ画像または検出
カメラ画像がフレームメモリ5に供給されて記憶され
る。
As described above, each of the reference camera 1 and the detection camera 2 captures an image of the object 3, and the resulting reference camera image or detection camera image of, for example, one frame is supplied to the frame memory 5 and stored. Is done.

【0073】フレームメモリ5に、基準カメラ画像およ
び検出カメラ画像が記憶されると、ステップS1におい
て、基準カメラ画像(および距離画像)を構成する画素
を表す変数iが、例えば、1に初期化され(i=1は、
例えば、基準カメラ画像の最も左上の画素を表す)、ス
テップS2に進む。ステップS2では、基準カメラ画像
の画素iについてのエピポーラライン(3次元空間の対
象物上の点と、基準カメラ1の光学中心O1とを結ぶ直
線を、検出カメラ画像(撮像面S2)上に投影したも
の)上にあらかじめ設定された設定点に対応する距離番
号jが、例えば、1に初期化され、ステップS3に進
む。
When the reference camera image and the detected camera image are stored in the frame memory 5, in step S1, a variable i representing a pixel constituting the reference camera image (and the distance image) is initialized to, for example, 1. (I = 1
For example, it represents the upper left pixel of the reference camera image), and proceeds to step S2. In step S2, a point on the object epipolar line (three-dimensional space for the pixel i in the reference camera image, a straight line connecting the optical center O 1 of the base camera 1, the detection camera image (imaging surface S 2) above The distance number j corresponding to the set point set in advance on the above is initialized to, for example, 1, and the process proceeds to step S3.

【0074】ここで、基準カメラ画像の各画素について
の、検出カメラ画像上におけるエピポーララインの検出
や設定点の設定は、例えば、基準カメラ1および検出カ
メラ2のキャリブレーション時に行われているものとす
る。なお、3次元空間におけるエピポーラライン上の、
距離番号jとj+1に対応する設定点どうし(隣接する
設定点どうし)の距離は、例えば、図1の距離測定装置
に対して要求される距離分解能にしたがって決定され
る。
Here, the detection of the epipolar line on the detected camera image and the setting of the set point for each pixel of the reference camera image are performed, for example, when the reference camera 1 and the detection camera 2 are calibrated. I do. In addition, on the epipolar line in the three-dimensional space,
The distance between the set points corresponding to the distance numbers j and j + 1 (adjacent set points) is determined, for example, according to the distance resolution required for the distance measuring device in FIG.

【0075】ステップS3では、基準カメラ画像の画素
iについてのエピポーラライン上の距離番号jに対応す
る設定点の画素n(i,j)が、検出カメラ画像から検
出される。なお、画素n(i,j)は、サブピクセルの
精度とすることもできる。また、距離番号jと、それに
対応する設定点n(i,j)との関係は、例えば、キャ
リブレーション時に求めておき、テーブル(ルックアッ
プテーブル)にしておくことで、距離番号jに対応する
設定点の画素n(i,j)は即座に求めることができ
る。
In step S3, the pixel n (i, j) at the set point corresponding to the distance number j on the epipolar line for the pixel i of the reference camera image is detected from the detected camera image. Note that the pixel n (i, j) can also have sub-pixel accuracy. The relationship between the distance number j and the corresponding set point n (i, j) is obtained, for example, at the time of calibration, and corresponds to the distance number j by making a table (lookup table). The pixel n (i, j) at the set point can be obtained immediately.

【0076】そして、ステップS4に進み、基準カメラ
画像の画素iを中心とする基準ブロックWA(i)が、
基準カメラ画像から抽出される(切り出される)ととも
に、検出カメラ画像の画素n(i,j)を中心とする検
出ブロックWB(i,j)が、検出カメラ画像から抽出
され、ステップS5に進む。
Then, the process proceeds to a step S4, wherein the reference block WA (i) centered on the pixel i of the reference camera image is
Along with being extracted (cut out) from the reference camera image, a detection block WB (i, j) centered on the pixel n (i, j) of the detected camera image is extracted from the detected camera image, and the process proceeds to step S5.

【0077】ステップS5では、基準ブロックWA
(i)を構成する画素と、検出ブロックWB(i,j)
を構成する画素とを用い、例えば、式(1)で定義され
る評価値S(i,n(i,j))が計算され、ステップ
S6に進む。ここで、以下、適宜、評価値S(i,n
(i,j))を、S(j)と表す。なお、式(1)で
は、画素の輝度値を用いて、評価値S(j)が計算され
るから、評価値S(j)は、基準ブロックWA(i)を
構成する画素と、検出ブロックWB(i,j)を構成す
る画素との間の輝度値に関する類似性を表すということ
ができる。また、このように、評価値S(j)を、輝度
値を用いて計算する場合には、基準カメラ画像および検
出カメラ画像は、輝度成分を有すれば良いから、基準カ
メラ1および検出カメラ2としては、輝度信号のみでな
る濃淡画像を出力する(色信号を出力しない)、いわゆ
る白黒カメラを用いることができる。但し、式(1)に
よる評価値の計算には、輝度信号だけでなく、色差信号
も用いるようにすることが可能である。
In step S5, the reference block WA
Pixels constituting (i) and detection block WB (i, j)
Is used to calculate the evaluation value S (i, n (i, j)) defined by the equation (1), for example, and the process proceeds to step S6. Here, the evaluation value S (i, n
(I, j)) is represented as S (j). In equation (1), the evaluation value S (j) is calculated using the luminance value of the pixel. Therefore, the evaluation value S (j) is calculated based on the pixel constituting the reference block WA (i) and the detection block. It can be said that the similarity regarding the luminance value between the pixels constituting WB (i, j) is expressed. When the evaluation value S (j) is calculated using the luminance value, the reference camera image and the detected camera image only need to have a luminance component. For example, a so-called black-and-white camera that outputs a grayscale image including only luminance signals (does not output color signals) can be used. However, it is possible to use not only the luminance signal but also the color difference signal in the calculation of the evaluation value according to the equation (1).

【0078】ステップS6では、距離番号jが、その最
大値Jに等しいかどうかが判定され、等しくないと判定
された場合、ステップS7に進み、距離番号jが1だけ
インクリメントされる。そして、ステップS3に戻り、
以下、ステップS3乃至S7の処理が繰り返される。即
ち、これにより、画素iについてのエピポーラライン上
に設定されたすべての設定点について、画素iとの相関
(ここでは、式(1)で表される評価値)が計算され
る。
In step S6, it is determined whether or not the distance number j is equal to the maximum value J. If it is determined that the distance number j is not equal, the process proceeds to step S7, where the distance number j is incremented by one. Then, returning to step S3,
Hereinafter, the processing of steps S3 to S7 is repeated. That is, thereby, the correlation with the pixel i (the evaluation value represented by the equation (1) here) is calculated for all the set points set on the epipolar line for the pixel i.

【0079】一方、ステップS6において、距離番号j
が最大値Jに等しいと判定された場合、即ち、画素iに
ついてのエピポーラライン上に設定されたすべての設定
点について、画素iとの評価値S(j)が計算された場
合、ステップS8に進み、評価値S(j)を最小にする
(相関を最大にする)距離番号jが求められる。ここ
で、この評価値S(j)を最小にする(相関を最大にす
る)距離番号jを、以下、適宜、最小距離番号jmax
表す。
On the other hand, in step S6, the distance number j
Is determined to be equal to the maximum value J, that is, when the evaluation value S (j) with the pixel i is calculated for all the set points set on the epipolar line for the pixel i, the process proceeds to step S8. Then, a distance number j that minimizes the evaluation value S (j) (maximizes the correlation) is obtained. Here, the distance number j that minimizes the evaluation value S (j) (maximizes the correlation) is hereinafter appropriately referred to as a minimum distance number jmax .

【0080】なお、最小距離番号jmaxに対応する設定
点n(i,jmax)が、画素iの対応点であり、従っ
て、最小距離番号jmaxを求めることは、対応点n
(i,jmax)を検出することと等価である。
[0080] Incidentally, the set point n (i, j max) corresponding to the minimum distance number j max is the corresponding point of pixel i, therefore, possible to obtain the minimum distance number j max, the corresponding point n
This is equivalent to detecting (i, j max ).

【0081】また、距離番号jは、ここでは、整数の値
をとるが、図5で説明したような補間を行うことで、小
数の値をとる最小距離番号jmaxを求めるようにするこ
とも可能である。
Although the distance number j takes an integer value here, it is also possible to obtain the minimum distance number j max taking a decimal value by performing interpolation as described with reference to FIG. It is possible.

【0082】その後、ステップS9に進み、最小距離番
号jmaxから特定される距離が、距離画像を構成する画
素iについての画素値として、ステレオ処理部11から
距離画像記憶部12に供給されて記憶される。さらに、
ステップS10に進み、評価値S(jmax)が、距離画
像記憶部12に供給され、画素iの最終的な評価値S
(i)として、その画素iについての距離と対応付けら
れて記憶され、ステップS11に進む。
Thereafter, the process proceeds to step S9, where the distance specified by the minimum distance number j max is supplied from the stereo processing unit 11 to the distance image storage unit 12 as a pixel value for the pixel i constituting the distance image and stored. Is done. further,
Proceeding to step S10, the evaluation value S (j max ) is supplied to the distance image storage unit 12, and the final evaluation value S
(I) is stored in association with the distance for the pixel i, and the process proceeds to step S11.

【0083】ステップS11では、画素iが、基準カメ
ラ画像を構成する最後の画素(例えば、基準カメラ画像
の最も右下の画素)Iに等しいかどうかが判定され、等
しくないと判定された場合、ステップS12に進み、変
数iが1だけインクリメントされ、ステップS2に戻
る。そして、次に処理すべき画素(例えば、いま処理対
象とされていた画素の、ラインスキャン順で次の画素)
iを対象に、以下、同様の処理が繰り返される。
In step S11, it is determined whether the pixel i is equal to the last pixel I (for example, the lower right pixel of the reference camera image) constituting the reference camera image. Proceeding to step S12, the variable i is incremented by 1 and returning to step S2. Then, the pixel to be processed next (for example, the next pixel in the line scan order of the pixel currently being processed)
Similar processing is repeated for i.

【0084】また、ステップS11において、画素i
が、基準カメラ画像を構成する最後の画素Iに等しいと
判定された場合、即ち、基準カメラ画像を構成する画素
すべてについて距離と評価値(最終的な評価値)S(j
max)が求められた場合、ステレオ処理を終了する。
In step S11, pixel i
Is determined to be equal to the last pixel I constituting the reference camera image, that is, the distance and the evaluation value (final evaluation value) S (j) for all the pixels constituting the reference camera image.
If max ) is obtained, the stereo processing ends.

【0085】なお、図11では、基準カメラ画像を構成
するすべての画素について、ステレオ処理を行うように
したが、ステレオ処理は、基準カメラ画像を構成する一
部の画素のみを対象に行うようにすることも可能であ
る。
In FIG. 11, the stereo processing is performed on all the pixels forming the reference camera image. However, the stereo processing is performed on only some of the pixels forming the reference camera image. It is also possible.

【0086】次に、図12のフローチャートを参照し
て、図10の演算処理回路6が行う補正処理について説
明する。なお、補正処理は、ステレオ処理が行われた
後、補正対象画素選択部13および補正部14において
行われる。
Next, the correction processing performed by the arithmetic processing circuit 6 of FIG. 10 will be described with reference to the flowchart of FIG. Note that the correction processing is performed by the correction target pixel selection unit 13 and the correction unit 14 after the stereo processing is performed.

【0087】補正処理では、まず最初に、ステップS2
1において、距離画像(および基準カメラ画像)を構成
する画素を表す変数iが、例えば、1に初期化され、ス
テップS22に進む。ステップS22では、補正対象画
素選択部13において、距離画像記憶部12に記憶され
ている、画素iの評価値S(i)(図11のステップS
10で記憶された最終的な評価値S(i))が読み出さ
れ、その評価値S(i)が、所定の閾値εよりも小さい
かどうかが判定される。
In the correction processing, first, in step S2
In 1, the variable i representing the pixels constituting the distance image (and the reference camera image) is initialized to, for example, 1, and the process proceeds to step S22. In step S22, in the correction target pixel selection unit 13, the evaluation value S (i) of the pixel i stored in the distance image storage unit 12 (step S22 in FIG. 11).
The final evaluation value S (i) stored at 10 is read, and it is determined whether the evaluation value S (i) is smaller than a predetermined threshold value ε.

【0088】ステップS22において、画素iの評価値
S(i)が閾値εより小さいと判定された場合、即ち、
基準カメラ画像の画素iについて、対応点を検出した際
の評価値の最小値S(i)(図11で説明したS(j
max)に等しい)が、所定の閾値εより小さく、従っ
て、検出した対応点が、真の対応点である確実性が高い
場合、ステップS31に進む。ステップS31では、補
正部14は、画素iの距離Z(i)を距離画像記憶部1
2から読み出して、距離画像記憶部15に供給して記憶
させ、ステップS29に進む。従って、この場合、ステ
レオ処理で求められた、画素iについての距離Z(i)
の補正は行われない。
If it is determined in step S22 that the evaluation value S (i) of the pixel i is smaller than the threshold value ε,
For the pixel i of the reference camera image, the minimum value S (i) of the evaluation value when the corresponding point is detected (S (j described in FIG. 11)
max )) is smaller than the predetermined threshold value ε, and therefore, if the detected corresponding point is highly certain that it is a true corresponding point, the process proceeds to step S31. In step S31, the correction unit 14 stores the distance Z (i) of the pixel i in the distance image storage unit 1.
2 and supplied to and stored in the distance image storage unit 15, and the process proceeds to step S29. Therefore, in this case, the distance Z (i) for the pixel i obtained by the stereo processing is obtained.
Is not corrected.

【0089】一方、ステップS22において、画素iの
評価値S(i)が閾値εより小さくないと判定された場
合、即ち、基準カメラ画像の画素iについて、対応点を
検出した際の評価値の最小値S(i)が、所定の閾値ε
以上であり、従って、検出した対応点が、真の対応点で
ある確実性が低い場合、ステップS23に進み、以下、
ステレオ処理で求められた、画素iについての距離の補
正が、図9で説明したようにして行われる。
On the other hand, in step S22, when it is determined that the evaluation value S (i) of the pixel i is not smaller than the threshold value ε, that is, for the pixel i of the reference camera image, The minimum value S (i) is equal to a predetermined threshold ε
If the detected corresponding point has low reliability as a true corresponding point, the process proceeds to step S23.
The correction of the distance for the pixel i obtained by the stereo processing is performed as described with reference to FIG.

【0090】即ち、補正対象画素選択部13では、画素
iが補正対象画素として選択され、補正部14に知らさ
れる。補正部14は、補正対象画素選択部13から、画
素iが補正対象画素であるとの知らせを受けると、ステ
ップS23において、画素iを中心とする検索ブロック
W内の画素を表す変数jが、例えば、その検索ブロック
W内の最も左上の画素を表す値j0に初期化される。さ
らに、ステップS23では、補正部14において、距離
画像記憶部12を参照することで、検索ブロックW内の
画素の最小の評価値を保持する変数Sminが、例えば、
画素j0の評価値S(j0)に初期化されるとともに、距
離を保持する変数Zが、例えば、画素j0についての距
離Z(j0)に初期化される。
That is, the pixel-to-be-corrected selecting section 13 selects the pixel i as the pixel to be corrected and notifies the correcting section 14 of the selected pixel. When the correction unit 14 receives a notification from the correction target pixel selection unit 13 that the pixel i is the correction target pixel, in step S23, the variable j representing the pixel in the search block W centered on the pixel i is For example, it is initialized to a value j 0 representing the upper left pixel in the search block W. Further, in step S23, by referring to the distance image storage unit 12 in the correction unit 14, the variable S min holding the minimum evaluation value of the pixel in the search block W becomes, for example,
The evaluation value S (j 0 ) of the pixel j 0 is initialized, and the variable Z holding the distance is initialized to, for example, the distance Z (j 0 ) for the pixel j 0 .

【0091】そして、ステップS24に進み、補正部1
4は、画素jについての評価値S(j)を、距離画像記
憶部12から読み出し、変数Sminが、評価値S(j)
より小さいかどうかを判定する。ステップS24におい
て、変数Sminが、評価値S(j)より小さくないと判
定された場合、即ち、評価値S(j)が、変数Smin
下である場合、ステップS25に進み、補正部14は、
変数Sminに、評価値S(j)を新たにセットするとと
もに、変数Zに、画素jについての距離Z(j)を新た
にセットし、ステップS26に進む。
Then, the process proceeds to a step S24, wherein the correction unit 1
4 reads the evaluation value S (j) for the pixel j from the distance image storage unit 12 and sets the variable S min to the evaluation value S (j).
Determine if it is less than. In step S24, when it is determined that the variable S min is not smaller than the evaluation value S (j), that is, when the evaluation value S (j) is equal to or less than the variable S min , the process proceeds to step S25, and the correction unit 14 Is
A variable S min, with newly set the evaluation value S (j), to the variable Z, newly set distance Z a (j) for the pixel j, the process proceeds to step S26.

【0092】また、ステップS24において、変数S
minが、評価値S(j)より小さいと判定された場合、
ステップS25をスキップして、ステップS26に進
み、画素jが、検索ブロックW内の最後の画素(例え
ば、検索ブロックWの最も右下の画素)であるかどうか
が判定される。ステップS26において、画素jが、検
索ブロックW内の最後の画素でないと判定された場合、
ステップS27に進み、変数jに、検索ブロックW内の
画素の中で、まだ、評価値が、変数Sminと比較されて
いないものを表す値がセットされ(例えば、検索ブロッ
クWの画素のうち、いま処理の対象となっている画素
の、ラインスキャン順で次の画素を表す値がセットさ
れ)、ステップS24に戻る。そして、ステップS26
において、画素jが、検索ブロックW内の最後の画素で
あると判定されるまで、ステップS24乃至S27の処
理が繰り返される。即ち、これにより、変数Smin
は、検索ブロックW内の画素の評価値のうちの最小値、
つまり最尤画素の評価値がセットされ、変数Zには、そ
の最尤画素についての距離がセットされる。
In step S24, the variable S
When it is determined that min is smaller than the evaluation value S (j),
The process skips step S25 and proceeds to step S26, where it is determined whether or not the pixel j is the last pixel in the search block W (for example, the lower right pixel of the search block W). When it is determined in step S26 that the pixel j is not the last pixel in the search block W,
Proceeding to step S27, the variable j is set to a value representing a pixel whose evaluation value has not yet been compared with the variable S min among the pixels in the search block W (for example, among the pixels in the search block W). Then, a value representing the next pixel in the line scan order of the pixel to be processed is set), and the process returns to step S24. Then, step S26
, The processes of steps S24 to S27 are repeated until it is determined that the pixel j is the last pixel in the search block W. That is, thereby, the minimum value of the evaluation values of the pixels in the search block W is set to the variable S min ,
That is, the evaluation value of the maximum likelihood pixel is set, and the distance for the maximum likelihood pixel is set in the variable Z.

【0093】そして、ステップS26において、画素j
が、検索ブロックW内の最後の画素であると判定される
と、ステップS28に進み、補正部14は、距離画像記
憶部12に記憶された画素iについての距離Z(i)
を、最尤画素の距離Zに置き換えることで補正し、ステ
ップS29に進む。即ち、補正部14は、距離画像記憶
部15に、画素iの距離として、最尤画素の距離Zを書
き込み、ステップS29に進む。
Then, in step S26, pixel j
Is determined to be the last pixel in the search block W, the process proceeds to step S28, and the correction unit 14 determines the distance Z (i) for the pixel i stored in the distance image storage unit 12.
Is replaced with the maximum likelihood pixel distance Z, and the process proceeds to step S29. That is, the correction unit 14 writes the maximum likelihood pixel distance Z as the distance of the pixel i into the distance image storage unit 15, and proceeds to step S29.

【0094】ステップS29では、図11のステップS
11における場合と同様に、画素iが、距離画像を構成
する最後の画素Iに等しいかどうかが判定され、等しく
ないと判定された場合、ステップS30に進み、変数i
が1だけインクリメントされ、ステップS22に戻る。
従って、この場合、次に処理すべき画素iを対象に、以
下、同様の処理が繰り返される。
In step S29, step S of FIG.
11, it is determined whether or not the pixel i is equal to the last pixel I that forms the range image. If it is determined that the pixel i is not equal to the pixel I, the process proceeds to step S30 and the variable i is determined.
Is incremented by 1, and the process returns to step S22.
Therefore, in this case, the same process is repeated for the pixel i to be processed next.

【0095】また、ステップS29において、画素i
が、距離画像を構成する最後の画素Iに等しいと判定さ
れた場合、補正処理を終了する。
In step S29, pixel i
Is determined to be equal to the last pixel I constituting the range image, the correction process ends.

【0096】以上のように、評価値が所定の閾値εをよ
り小さくない画素を補正対象画素として選択し、その補
正対象画素の距離を、検索ブロック内で評価値が最小の
画素の距離に置き換えることで補正するようにした場合
には、検出された対応点が真の対応点である確実性が低
い画素の距離が、その画素の近傍の画素であって、検出
された対応点が真の対応点である確実性が最も高いもの
の距離に置き換えられるので、エリアベースマッチング
による対応点の検出の確実性を保ちつつ、図8で説明し
たような前景と背景の境界部分、即ち、エッジ部分で生
じる対応点の誤検出に起因する距離への影響を低減し、
比較的正確な距離を得ることができる。
As described above, a pixel whose evaluation value is not smaller than the predetermined threshold value ε is selected as a correction target pixel, and the distance of the correction target pixel is replaced with the distance of the pixel having the minimum evaluation value in the search block. In this case, the distance of a pixel with low certainty that the detected corresponding point is a true corresponding point is a pixel in the vicinity of the pixel, and the detected corresponding point is a true corresponding point. Since the distance is replaced by the distance having the highest certainty as the corresponding point, the boundary between the foreground and the background, that is, the edge as described with reference to FIG. Reduce the effect on distance caused by erroneous detection of corresponding points,
A relatively accurate distance can be obtained.

【0097】なお、距離画像を構成する画素を、補正対
象画素とするか否かの判定に用いる評価値の閾値εは、
例えば、実験等により最適な値に設定する。あるいは、
また、閾値εは、フレームメモリ5に記憶された基準カ
メラ画像および検出カメラ画像の画素値から、適応的に
設定するようにすることも可能である。
The threshold value ε of the evaluation value used to determine whether or not the pixels forming the range image are to be corrected pixels is
For example, an optimal value is set by an experiment or the like. Or,
Further, the threshold value ε can be set adaptively based on the pixel values of the reference camera image and the detected camera image stored in the frame memory 5.

【0098】次に、上述のように、評価値が所定の閾値
εより小さくない画素を補正対象画素として選択し、そ
の補正対象画素の距離を、検索ブロック内で評価値が最
小の画素(最尤画素)の距離に置き換える場合には、評
価値にそれほど大きな差がないのに、その最尤画素を含
んで構成される検索ブロックの中心に位置する画素の距
離が、その最尤画素の距離に置き換えられることがあ
る。従って、例えば、あるひとかたまりの画素それぞれ
の評価値が、いずれも、閾値εより幾分大きく、かつ、
そのひとかたまりの画素の周辺に、評価値が閾値εより
幾分小さい画素が存在すると、そのひとかたまりの画素
それぞれの距離が、その周辺にある評価値の小さな画素
の距離に置き換えられる。この場合、そのひとかたまり
の画素それぞれの距離が、同一の距離とされるため、距
離画像に、ブロック状の歪みが生じる。
Next, as described above, a pixel whose evaluation value is not smaller than the predetermined threshold value ε is selected as a correction target pixel, and the distance of the correction target pixel is determined by the pixel having the minimum evaluation value (the maximum) in the search block. In the case of replacing with the distance of the maximum likelihood pixel, the distance of the pixel located at the center of the search block including the maximum likelihood pixel is the distance of the maximum likelihood pixel even though the evaluation value is not so large. May be replaced by Therefore, for example, each of the evaluation values of a certain set of pixels is somewhat larger than the threshold ε, and
If a pixel whose evaluation value is somewhat smaller than the threshold value ε exists around the set of pixels, the distance of each of the set of pixels is replaced with the distance of a pixel having a small evaluation value around the set. In this case, since the distance of each pixel in the group is the same, block-like distortion occurs in the distance image.

【0099】即ち、図13に示すように、例えば、円柱
などの、距離(奥行き)が連続して変化する対象物3に
ついて得られた距離画像に対して、図12で説明した補
正処理を施した場合には、円柱の側面のある点を投影し
た点が補正対象画素とされ、その補正対象画素とされた
画素の距離と最尤画素の距離とが連続して変化していて
も(その2つの距離の間に大きな差はないが、幾分かの
差がある)、その補正対象画素の距離が、それを中心と
する検索ブロック内の最尤画素の距離に置換されること
がある。この場合、補正対象画素とされた画素の距離
と、最尤画素の距離とが同一となるため、円柱の側面に
おける距離の滑らかな変化(距離の連続性)が失われ
る。
That is, as shown in FIG. 13, the correction processing described with reference to FIG. 12 is performed on the distance image obtained for the object 3 whose distance (depth) continuously changes, such as a cylinder. In this case, a point obtained by projecting a certain point on the side surface of the cylinder is set as a correction target pixel, and even if the distance between the correction target pixel and the maximum likelihood pixel continuously changes (the Although there is no large difference between the two distances, there is some difference), the distance of the pixel to be corrected may be replaced with the distance of the maximum likelihood pixel in the search block around the pixel. . In this case, since the distance between the pixel set as the pixel to be corrected and the distance of the maximum likelihood pixel are the same, a smooth change in distance (continuity of distance) on the side surface of the cylinder is lost.

【0100】そこで、補正処理は、ある画素の距離と、
その画素を中心とする検索ブロック内の最尤画素との距
離との差が、ある程度大きい場合に、その画素を補正対
象画素として行うようにすることができる。この場合、
ある画素の距離と、その画素を中心とする検索ブロック
内の最尤画素との距離との差が小さいときには、その画
素は補正対象画素とされなくなり、その結果、例えば、
上述したような円柱の側面などにおける距離の連続性が
失われることを防止し、エッジ部分で生じる対応点の誤
検出に起因する距離への影響のみを低減することが可能
となる。
Therefore, the correction processing is performed by calculating the distance between a certain pixel and
If the difference between the pixel and the distance from the maximum likelihood pixel in the search block to the center is large to some extent, the pixel can be set as the correction target pixel. in this case,
When the difference between the distance of a certain pixel and the distance between the pixel and the maximum likelihood pixel in the search block centered on the pixel is small, the pixel is no longer a correction target pixel, and as a result, for example,
It is possible to prevent loss of continuity of the distance on the side surface of the cylinder as described above, and to reduce only the influence on the distance due to erroneous detection of the corresponding point occurring at the edge portion.

【0101】即ち、図14は、図10の演算処理回路6
に、そのような補正処理を行わせる場合のフローチャー
トを示している。
That is, FIG. 14 shows the operation processing circuit 6 of FIG.
2 shows a flowchart in the case where such a correction process is performed.

【0102】この場合、まず最初に、ステップS41に
おいて、距離画像(および基準カメラ画像)を構成する
画素を表す変数iが、例えば、1に初期化され、ステッ
プS43に進む。ステップS43では、図12のステッ
プS23における場合と同様に、画素iを中心とする検
索ブロックW内の画素を表す変数jが、例えば、その検
索ブロックW内の最も左上の画素を表す値j0に初期化
され、検索ブロックW内の画素の最小の評価値を保持す
る変数Sminが、例えば、画素j0の評価値S(j0)に
初期化されるとともに、距離を保持する変数Zが、例え
ば、画素j0についての距離Z(j0)に初期化される。
In this case, first, in step S41, a variable i representing a pixel constituting the distance image (and the reference camera image) is initialized to, for example, 1, and the process proceeds to step S43. In step S43, as in step S23 of FIG. 12, the variable j representing a pixel in the search block W centered on the pixel i is, for example, a value j 0 representing the upper left pixel in the search block W. And a variable Z min that holds the minimum evaluation value of the pixel in the search block W is initialized to, for example, the evaluation value S (j 0 ) of the pixel j 0 and a variable Z that holds the distance. Is initialized to a distance Z (j 0 ) for the pixel j 0 , for example.

【0103】そして、ステップS44に進み、以下、ス
テップS44乃至47において、図12のステップS2
4乃至S27それぞれにおける場合と同様の処理が行わ
れることで、変数Sminには、検索ブロックW内の画素
の評価値のうちの最小値、即ち、最尤画素の評価値がセ
ットされ、変数Zには、その最尤画素についての距離が
セットされる。
Then, the process proceeds to a step S44, and thereafter, in the steps S44 to S47, the step S2 of FIG.
4 to S27, the minimum value of the evaluation values of the pixels in the search block W, that is, the evaluation value of the maximum likelihood pixel is set as the variable S min , In Z, the distance for the maximum likelihood pixel is set.

【0104】変数Sminに、最尤画素の評価値がセット
されるとともに、変数Zに、その最尤画素についての距
離がセットされると、ステップS46からステップS4
8に進み、補正対象画素選択部13において、距離画像
記憶部12から、画素iの距離Z(i)が読み出され、
その距離Z(i)と変数Zとの差の絶対値(=|Z
(i)−Z|)が、所定の閾値Thより小さいかどうか
が判定される。
When the evaluation value of the maximum likelihood pixel is set in the variable S min , and the distance for the maximum likelihood pixel is set in the variable Z, steps S 46 to S 4
8, the distance Z (i) of the pixel i is read from the distance image storage unit 12 by the correction target pixel selection unit 13,
The absolute value of the difference between the distance Z (i) and the variable Z (= | Z
It is determined whether (i) -Z |) is smaller than a predetermined threshold Th.

【0105】ステップS48において、画素iの距離Z
(i)と変数Zとの差の絶対値が、閾値Thより小さく
ないと判定された場合、即ち、画素iの距離Z(i)
と、その画素iを中心とする検索ブロックW内の最尤画
素との距離Zとの差が、ある程度大きい場合、補正対象
画素選択部13は、画素iを補正対象画素として選択
し、その旨を、補正部14に知らせる。補正部14は、
補正対象画素選択部13から、画素iが補正対象画素で
あるとの知らせを受けると、ステップS49に進み、距
離画像記憶部12に記憶された画素iについての距離Z
(i)を、最尤画素の距離Zに置き換えることで補正
し、即ち、距離画像記憶部15に、画素iの距離とし
て、最尤画素の距離Zを書き込み、ステップS50に進
む。
In step S48, the distance Z of the pixel i
When it is determined that the absolute value of the difference between (i) and the variable Z is not smaller than the threshold Th, that is, the distance Z (i) of the pixel i
And the distance Z between the pixel and the maximum likelihood pixel in the search block W centered on the pixel i is somewhat large, the correction target pixel selection unit 13 selects the pixel i as the correction target pixel. To the correction unit 14. The correction unit 14
When the notification that the pixel i is the correction target pixel is received from the correction target pixel selection unit 13, the process proceeds to step S49, and the distance Z for the pixel i stored in the distance image storage unit 12 is determined.
The correction is performed by replacing (i) with the maximum likelihood pixel distance Z, that is, the maximum likelihood pixel distance Z is written to the distance image storage unit 15 as the distance of the pixel i, and the process proceeds to step S50.

【0106】また、ステップS48において、画素iの
距離Z(i)と変数Zとの差の絶対値が、閾値Thより
小さいと判定された場合、補正対象画素選択部13は、
画素iを補正対象画素として選択しないで、ステップS
52に進む。ステップS52では、補正部14は、画素
iの距離Z(i)を距離画像記憶部12から読み出し
て、距離画像記憶部15に供給して記憶させ、ステップ
S50に進む。従って、この場合、ステレオ処理で求め
られた、画素iについての距離Z(i)の補正は行われ
ない。
If it is determined in step S48 that the absolute value of the difference between the distance Z (i) of the pixel i and the variable Z is smaller than the threshold Th, the correction target pixel selection unit 13
Without selecting the pixel i as the pixel to be corrected, step S
Go to 52. In step S52, the correction unit 14 reads the distance Z (i) of the pixel i from the distance image storage unit 12, supplies the distance Z (i) to the distance image storage unit 15, and stores the distance Z (i), and proceeds to step S50. Therefore, in this case, the correction of the distance Z (i) for the pixel i obtained by the stereo processing is not performed.

【0107】ステップS50では、図12のステップS
29における場合と同様に、画素iが、距離画像を構成
する最後の画素Iに等しいかどうかが判定され、等しく
ないと判定された場合、ステップS51に進み、変数i
が1だけインクリメントされ、ステップS43に戻る。
そして、次に処理すべき画素iを対象に、以下、同様の
処理が繰り返される。
In step S50, step S50 in FIG.
29, it is determined whether or not the pixel i is equal to the last pixel I constituting the range image. If it is determined that the pixel i is not equal, the process proceeds to step S51, where the variable i
Is incremented by 1, and the process returns to step S43.
Then, the same process is repeated for the pixel i to be processed next.

【0108】また、ステップS50において、画素i
が、距離画像を構成する最後の画素Iに等しいと判定さ
れた場合、補正処理を終了する。
In step S50, pixel i
Is determined to be equal to the last pixel I constituting the range image, the correction process ends.

【0109】なお、距離画像を構成する画素を、補正対
象画素とするか否かの判定に用いる距離の閾値Thは、
例えば、実験等により最適な値に設定し、あるいは、距
離画像記憶部5に記憶された距離画像の画素の画素値と
しての距離から、適応的に設定することが可能である。
The distance threshold Th used to determine whether or not the pixels forming the distance image are the correction target pixels is:
For example, the distance can be set to an optimal value by an experiment or the like, or can be set adaptively from the distance as the pixel value of the pixel of the distance image stored in the distance image storage unit 5.

【0110】また、図14の実施の形態では、ある画素
iの距離Z(i)と、その画素iを中心とする検索ブロ
ックW内の最尤画素との距離との差が、閾値Th以上の
場合にのみ、その画素iを補正対象画素として選択する
ようにしたが、ある画素iの距離Z(i)と、その画素
iを中心とする検索ブロックW内の最尤画素との距離と
の差が、閾値Th以上であり、かつ画素iの評価値S
(i)が閾値ε以上の場合に、その画素iを補正対象画
素として選択することも可能である。この場合の補正処
理は、図15のフローチャートに示すようになる。即
ち、そのような補正対象画素の選択は、図14のステッ
プS41の処理後に、図12のステップS22と同様
に、画素iの評価値S(i)が、閾値εよりも小さいか
どうかを判定するステップS42を設け、画素iの評価
値S(i)が、閾値εよりも小さくない場合には、ステ
ップS43に進み、小さい場合には、ステップS52に
進むようにすれば良い。
In the embodiment of FIG. 14, the difference between the distance Z (i) of a certain pixel i and the maximum likelihood pixel in the search block W centered on the pixel i is equal to or larger than the threshold Th. Only in the case of, the pixel i is selected as the correction target pixel. However, the distance Z (i) of a certain pixel i and the distance between the maximum likelihood pixel in the search block W centered on the pixel i are Is greater than or equal to the threshold Th and the evaluation value S of the pixel i
When (i) is equal to or larger than the threshold ε, the pixel i can be selected as a correction target pixel. The correction process in this case is as shown in the flowchart of FIG. That is, in the selection of the correction target pixel, it is determined whether or not the evaluation value S (i) of the pixel i is smaller than the threshold value ε after the process of step S41 in FIG. Step S42 is performed, and if the evaluation value S (i) of the pixel i is not smaller than the threshold value ε, the process proceeds to step S43, and if it is smaller, the process proceeds to step S52.

【0111】次に、図14の実施の形態では、ある画素
iを中心とする検索ブロックWを構成する画素の評価値
どうしを比較し、検索ブロックWの中で、最小の評価値
を有する画素(最尤画素)を見つけてから(ステップS
44乃至S47)、距離の差を考慮して、画素iを、補
正対象画素として選択するかどうかを判定するようにし
たが(ステップS48)、その他、例えば、距離の差を
考慮して、検索ブロックの中で、最尤画素となり得る画
素を、あらかじめ選択し、その選択された画素について
だけ、評価値どうしの比較を行うようにすることが可能
である。
Next, in the embodiment of FIG. 14, the evaluation values of the pixels constituting the search block W centered on a certain pixel i are compared with each other, and the pixel having the minimum evaluation value in the search block W is compared. (Maximum likelihood pixel) (Step S
44 to S47), it is determined whether or not the pixel i is selected as a correction target pixel in consideration of the difference in distance (step S48). However, for example, the search is performed in consideration of the difference in distance. It is possible to select a pixel that can be the maximum likelihood pixel in the block in advance, and to compare the evaluation values only for the selected pixel.

【0112】さらに、図14の実施の形態では、画素i
の距離Z(i)と、その画素iを中心とする検索ブロッ
クWの中の最尤画素の距離Zとの差(の絶対値)に基づ
いて、画素iを、補正対象画素として選択するかどうか
を判定するようにしたが(ステップS48)、その他、
例えば、画素iの、基準カメラ画像における輝度や色情
報(例えば、彩度や色相など)などの画素値にも基づい
て、画素iを、補正対象画素として選択するかどうかを
判定するようにすることが可能である。
Further, in the embodiment shown in FIG.
Pixel i is selected as a correction target pixel based on the difference (absolute value) between the distance Z (i) of the pixel and the distance Z of the maximum likelihood pixel in the search block W centered on the pixel i. Is determined (step S48).
For example, it is determined whether or not to select the pixel i as a correction target pixel based on the pixel value of the pixel i such as luminance and color information (for example, saturation and hue) in the reference camera image. It is possible.

【0113】即ち、図16は、図10の演算処理回路6
に、そのような補正処理を行わせる場合のフローチャー
トを示している。
That is, FIG. 16 shows the operation processing circuit 6 of FIG.
2 shows a flowchart in the case where such a correction process is performed.

【0114】この場合、まず最初に、ステップS61に
おいて、距離画像(および基準カメラ画像)を構成する
画素を表す変数iが、例えば、1に初期化され、ステッ
プS62に進む。ステップS62では、補正対象画素選
択部13において、画素iの基準カメラ画像上の画素値
としての、例えば、輝度Y(i)が、フレームメモリ5
から、図10において点線で示すように読み出される。
さらに、補正対象画素選択部13は、ステップS52に
おいて、距離画像記憶部12から、画素iの距離Z
(i)を読み出し、ステップS63に進む。
In this case, first, in step S61, a variable i representing a pixel constituting the distance image (and the reference camera image) is initialized to, for example, 1, and the process proceeds to step S62. In step S62, the correction target pixel selection unit 13 stores, for example, the luminance Y (i) as the pixel value of the pixel i on the reference camera image in the frame memory 5
Is read out as indicated by the dotted line in FIG.
Further, the correction target pixel selection unit 13 stores the distance Z of the pixel i from the distance image storage unit 12 in step S52.
(I) is read, and the process proceeds to step S63.

【0115】ステップS63では、補正対象画素選択部
13において、図12のステップS23における場合と
同様に、画素iを中心とする検索ブロックW内の画素を
表す変数jが、例えば、その検索ブロックW内の最も左
上の画素を表す値j0に初期化される。さらに、補正対
象画素選択部13は、ステップS63において、変数S
minまたはZを、評価値または距離としてそれぞれ取り
得ない値である、例えば、−1に初期化し、ステップS
64に進む。
In step S63, the variable j representing the pixel in the search block W centered on the pixel i is changed by the correction target pixel selection unit 13 in the same manner as in step S23 in FIG. Is initialized to the value j 0 representing the upper left pixel in Further, the correction target pixel selecting unit 13 determines in step S63 that the variable S
Initialize min or Z to a value that cannot be taken as an evaluation value or distance, for example, −1, and step S
Proceed to 64.

【0116】ステップS64では、補正対象画素選択部
13において、画素jの、基準カメラ画像上の輝度Y
(j)が、フレームメモリ5から読み出されるととも
に、その距離Z(j)が、距離画像記憶部12から読み
出される。さらに、ステップS64では、補正対象画素
記憶部13において、画素iの輝度Y(i)と、画素j
の輝度Y(j)との差の絶対値(=|Y(i)−Y
(j)|)が、所定の閾値ThYより小さく、かつ画素
iの距離Z(i)と、画素jの距離Z(j)との差の絶
対値(=|Z(i)−Z|)が、所定の閾値ThZより
大きいかどうかが判定される。
In step S64, the correction target pixel selector 13 selects the luminance Y of the pixel j on the reference camera image.
(J) is read from the frame memory 5 and the distance Z (j) is read from the distance image storage unit 12. Further, in step S64, in the correction target pixel storage unit 13, the luminance Y (i) of the pixel i and the pixel j
The absolute value of the difference from the luminance Y (j) (= | Y (i) −Y
(J) |) is smaller than the predetermined threshold value Th Y, and (a i), the absolute value of the difference between the distance Z (j) of the pixel j (= | Z (i) the distance of the pixel i Z -Z | ) whether greater than the predetermined threshold value Th Z is determined.

【0117】ここで、閾値ThYは、例えば、実験等に
より最適な値に設定し、あるいは、フレームメモリ5に
記憶された基準カメラ画像および検出カメラ画像の画素
値から、適応的に設定することが可能である。また、閾
値ThZは、図14で説明した閾値Thと同様に設定す
ることが可能である。
Here, the threshold value Th Y is set, for example, to an optimum value by an experiment or the like, or is adaptively set from the pixel values of the reference camera image and the detected camera image stored in the frame memory 5. Is possible. The threshold value Th Z can be set in the same manner as the threshold value Th described with reference to FIG.

【0118】ステップS64において、画素iの輝度Y
(i)と、画素jの輝度Y(j)との差の絶対値が、所
定の閾値ThYより小さくないか、または画素iの距離
Z(i)と、画素jの距離Z(j)との差の絶対値が、
所定の閾値ThZより大きいくないと判定された場合、
ステップS65乃至S68をスキップして、ステップS
69に進む。
In step S64, the luminance Y of pixel i
And (i), the absolute value of the difference between the luminance Y (j) of the pixel j is either not less than the predetermined threshold value Th Y, or the distance of the pixel i Z (i), the distance of the pixel j Z (j) The absolute value of the difference between
When it is determined that the value is not larger than the predetermined threshold Th Z ,
Steps S65 to S68 are skipped, and step S
Go to 69.

【0119】また、ステップS64において、画素iの
輝度Y(i)と、画素jの輝度Y(j)との差の絶対値
が、所定の閾値ThYより小さく、かつ画素iの距離Z
(i)と、画素jの距離Z(j)との差の絶対値が、所
定の閾値ThZより大きいと判定された場合、ステップ
S65に進み、補正対象画素選択部13において、変数
min(またはZ)が、初期値である−1に等しいかど
うかが判定される。
[0119] Further, in step S64, the luminance Y (i) of the pixel i, the absolute value of the difference between the luminance Y (j) of the pixel j is less than the predetermined threshold value Th Y, and the distance of the pixel i Z
And (i), the absolute value of the difference between the distance Z (j) of the pixel j is, if it is determined greater than the predetermined threshold value Th Z, the process proceeds to step S65, the correction target pixel selecting section 13, a variable S min (Or Z) is determined to be equal to the initial value -1.

【0120】ステップS65において、変数Sminが−
1に等しいと判定された場合、ステップS66に進み、
補正対象画素選択部13は、画素jについての評価値S
(j)を、距離画像記憶部12から読み出し、変数S
minにセットするとともに、画素jの距離Z(j)を、
変数Zにセットし、ステップS69に進む。
In step S65, the variable S min is
If it is determined that it is equal to 1, the process proceeds to step S66,
The correction target pixel selection unit 13 calculates the evaluation value S for the pixel j.
(J) is read from the distance image storage unit 12 and the variable S
together set to min, distance of the pixel j Z a (j),
The variable Z is set, and the process proceeds to step S69.

【0121】また、ステップS65において、変数S
minが−1に等しくないと判定された場合、ステップS
67に進み、補正対象画素選択部13において、変数S
minが、画素jについての評価値S(j)より小さいか
どうかが判定される。ステップS67において、変数S
minが、評価値S(j)より小さいと判定された場合、
ステップS68に進み、補正対象画素選択部13は、変
数Sminに、画素jについての評価値S(j)をセット
するとともに、変数Zに、画素jの距離Z(j)をセッ
トし、ステップS69に進む。
In step S65, the variable S
If it is determined that min is not equal to -1, step S
Proceeding to 67, the correction target pixel selection unit 13 sets the variable S
It is determined whether min is smaller than the evaluation value S (j) for pixel j. In step S67, the variable S
When it is determined that min is smaller than the evaluation value S (j),
Proceeding to step S68, the correction target pixel selecting unit 13 sets the evaluation value S (j) for the pixel j in the variable S min and sets the distance Z (j) of the pixel j in the variable Z. Proceed to S69.

【0122】また、ステップS67において、変数S
minが、評価値S(j)より小さくないと判定された場
合、ステップS68をスキップして、ステップS69に
進み、図12のステップS26における場合と同様に、
画素jが、検索ブロックW内の最後の画素であるかどう
かが判定される。ステップS69において、画素jが、
検索ブロックW内の最後の画素でないと判定された場
合、ステップS70に進み、図12のステップS27に
おける場合と同様に、変数jに、検索ブロックW内の画
素の中で、まだ、評価値が、変数Sminと比較されてい
ないものを表す値がセットされ、ステップS64に戻
る。そして、ステップS69において、画素jが、検索
ブロックW内の最後の画素であると判定されるまで、ス
テップS64乃至S70の処理が繰り返される。
In step S67, the variable S
If it is determined that min is not smaller than the evaluation value S (j), step S68 is skipped and the process proceeds to step S69, and as in step S26 of FIG.
It is determined whether the pixel j is the last pixel in the search block W. In step S69, pixel j is
If it is determined that the pixel is not the last pixel in the search block W, the process proceeds to step S70, and the evaluation value is still set to the variable j among the pixels in the search block W as in step S27 of FIG. , A value representing a value not compared with the variable S min is set, and the process returns to step S64. Then, in step S69, the processing of steps S64 to S70 is repeated until it is determined that the pixel j is the last pixel in the search block W.

【0123】即ち、これにより、検索ブロックW内に、
その中心に位置する画素iの輝度Y(i)との差が、閾
値ThY未満の輝度を有し、かつ画素iの距離Z(i)
との差が、閾値ThZより大きい画素jが存在すれば、
その画素jが、画素iの距離Z(i)の補正に用いるの
に適切な画素(以下、適宜、適切画素という)として選
択される。そして、検索ブロックWの中の適切画素のう
ち、評価値が最も小さいものが、最尤画素として選択さ
れ、その最尤画素の評価値または距離が、変数Smi n
たはZに、それぞれセットされる。
That is, the search block W
The difference between the luminance Y (i) of the pixel i to be located at the center has a luminance less than the threshold Th Y, and the distance of the pixel i Z (i)
Is greater than the threshold value Th Z ,
The pixel j is selected as a pixel appropriate for use in correcting the distance Z (i) of the pixel i (hereinafter, appropriately referred to as an appropriate pixel). Of the suitable pixels in the search block W, as evaluation value is smallest is selected as the maximum likelihood pixel, evaluation value or distance of the maximum likelihood pixel, the variable S mi n or Z, are set, respectively You.

【0124】そして、ステップS69において、画素j
が、検索ブロックW内の最後の画素であると判定される
と、ステップS71に進み、補正対象画素選択部13
は、変数Smin(またはZ)が、初期値である−1に等
しいかどうかを判定する。ステップS71において、変
数Sminが−1に等しくないと判定された場合、即ち、
変数minに、検索ブロックW内のいずれかの画素(最尤
画素)についての評価値がセットされている場合、補正
対象画素選択部13は、画素iを、補正対象画素として
選択し、補正部14に知らせ、ステップS72に進む。
Then, in step S69, pixel j
Is determined to be the last pixel in the search block W, the process proceeds to step S71, and the correction target pixel selection unit 13
Determines whether the variable S min (or Z) is equal to the initial value −1. When it is determined in step S71 that the variable S min is not equal to −1, that is,
When the evaluation value of any pixel (the maximum likelihood pixel) in the search block W is set in the variable min , the correction target pixel selection unit 13 selects the pixel i as the correction target pixel, and 14, and the process proceeds to step S72.

【0125】補正部14は、補正対象画素選択部13か
ら、画素iが補正対象画素であるとの知らせを受ける
と、ステップS72において、距離画像記憶部12に記
憶された画素iについての距離Z(i)を、最尤画素の
距離(変数)Zに置き換えることで補正し、即ち、距離
画像記憶部15に、画素iの距離として、最尤画素の距
離Zを書き込み、ステップS73に進む。
When the correction unit 14 receives a notification from the correction target pixel selection unit 13 that the pixel i is the correction target pixel, in step S72 the distance Z for the pixel i stored in the distance image storage unit 12 is determined. The correction is performed by replacing (i) with the distance (variable) Z of the maximum likelihood pixel, that is, the distance Z of the maximum likelihood pixel is written into the distance image storage unit 15 as the distance of the pixel i, and the process proceeds to step S73.

【0126】また、ステップS71において、変数S
minが−1に等しいと判定された場合、即ち、検索ブロ
ックW内に、その中心に位置する画素iの輝度Y(i)
との差が、閾値ThY未満の輝度を有し、かつ画素iの
距離Z(i)との差が、閾値ThZより大きい画素jが
存在しない場合、つまり、適切画素が存在しない場合、
ステップS75に進み、補正部14は、画素iの距離Z
(i)を距離画像記憶部12から読み出して、距離画像
記憶部15に供給して記憶させ、ステップS73に進
む。従って、この場合、画素iは補正対象画素として選
択されず、その結果、その距離Z(i)は補正されな
い。
In step S71, the variable S
When it is determined that min is equal to −1, that is, the luminance Y (i) of the pixel i located at the center of the search block W is determined.
The difference between the is case have a luminance less than the threshold Th Y, and the difference between the distance of the pixel i Z (i) is, if the threshold Th Z larger pixel j does not exist, that is, the right pixel is not present,
Proceeding to step S75, the correction unit 14 determines the distance Z of the pixel i.
(I) is read from the distance image storage unit 12 and supplied to and stored in the distance image storage unit 15, and the process proceeds to step S73. Therefore, in this case, the pixel i is not selected as a correction target pixel, and as a result, the distance Z (i) is not corrected.

【0127】ステップS73では、図11のステップS
11における場合と同様に、画素iが、距離画像を構成
する最後の画素Iに等しいかどうかが判定され、等しく
ないと判定された場合、ステップS74に進み、変数i
が1だけインクリメントされ、ステップS62に戻る。
そして、次に処理すべき画素iを対象に、以下、同様の
処理が繰り返される。
In step S73, step S of FIG.
11, it is determined whether the pixel i is equal to the last pixel I forming the range image. If it is determined that the pixel i is not equal, the process proceeds to step S74, where the variable i
Is incremented by 1, and the process returns to step S62.
Then, the same process is repeated for the pixel i to be processed next.

【0128】また、ステップS73において、画素i
が、距離画像を構成する最後の画素Iに等しいと判定さ
れた場合、補正処理を終了する。
In step S73, the pixel i
Is determined to be equal to the last pixel I constituting the range image, the correction process ends.

【0129】従って、図16の実施の形態によれば、検
索ブロックW内に、その中心に位置する画素iの輝度Y
(i)との差が、閾値ThY未満の輝度を有し、かつ画
素iの距離Z(i)との差が、閾値ThZより大きい適
切画素が存在すれば、画素iが補正対象画素として選択
される。そして、適切画素の中で、評価値が最も小さい
画素が最尤画素として選択され、その最尤画素の距離へ
の置換が行われることで、補正対象画素iの距離Z
(i)が補正される。
Therefore, according to the embodiment shown in FIG. 16, the luminance Y of the pixel i located at the center of the search block W is determined.
The difference between (i) is the threshold value Th Y less than a brightness, and the difference between the distance Z (i) of the pixel i is, if there is a threshold Th Z greater than right pixel, pixel i is the pixel to be corrected Is selected as Then, among the appropriate pixels, the pixel having the smallest evaluation value is selected as the maximum likelihood pixel, and replacement with the distance of the maximum likelihood pixel is performed.
(I) is corrected.

【0130】次に、図17は、補正処理の他の実施の形
態を示すフローチャートであり、この補正処理によって
も、図16のフローチャートに示した場合と同様の補正
処理を行うことができる。
Next, FIG. 17 is a flowchart showing another embodiment of the correction processing, and the same correction processing as that shown in the flowchart of FIG. 16 can be performed by this correction processing.

【0131】即ち、この場合、まず最初に、ステップS
81において、距離画像(および基準カメラ画像)を構
成する画素を表す変数iが、例えば、1に初期化され、
ステップS82に進む。ステップS82では、補正対象
画素選択部13において、画素iの基準カメラ画像上の
画素値としての、例えば、輝度Y(i)が、フレームメ
モリ5から、図10において点線で示すように読み出さ
れる。さらに、補正対象画素選択部13は、ステップS
82において、距離画像記憶部12から、画素iの距離
Z(i)を読み出し、ステップS83に進む。
That is, in this case, first, step S
At 81, a variable i representing a pixel constituting the distance image (and the reference camera image) is initialized to, for example, 1;
Proceed to step S82. In step S82, the correction target pixel selection unit 13 reads, for example, the luminance Y (i) as the pixel value of the pixel i on the reference camera image from the frame memory 5 as indicated by a dotted line in FIG. Further, the correction target pixel selection unit 13 determines in step S
At 82, the distance Z (i) of the pixel i is read from the distance image storage unit 12, and the process proceeds to step S83.

【0132】ステップS83では、補正対象画素選択部
13において、図12のステップS23における場合と
同様に、画素iを中心とする検索ブロックW内の画素を
表す変数jが、例えば、その検索ブロックW内の最も左
上の画素を表す値j0に初期化される。さらに、補正対
象画素選択部13は、ステップS83において、変数S
minまたはZを、画素iの評価値S(i)または距離Z
(i)にそれぞれ初期化し、ステップS84に進む。
In step S83, the variable j representing the pixel in the search block W centered on the pixel i is changed by the correction target pixel selection unit 13 in the same manner as in step S23 in FIG. Is initialized to the value j 0 representing the upper left pixel in Further, the correction target pixel selection unit 13 determines in step S83 that the variable S
min or Z is the evaluation value S (i) of the pixel i or the distance Z
Initialize to (i), respectively, and proceed to step S84.

【0133】ステップS84では、補正対象画素選択部
13において、画素jの、基準カメラ画像上の輝度Y
(j)が、フレームメモリ5から読み出されるととも
に、その距離Z(j)が、距離画像記憶部12から読み
出される。さらに、ステップS84では、補正対象画素
記憶部13において、画素iの輝度Y(i)と、画素j
の輝度Y(j)との差の絶対値(=|Y(i)−Y
(j)|)が、所定の閾値ThYより小さく、かつ画素
iの距離Z(i)と、画素jの距離Z(j)との差の絶
対値(=|Z(i)−Z|)が、所定の閾値ThZより
大きいかどうかが判定される。
In step S84, the correction target pixel selector 13 selects the luminance Y of the pixel j on the reference camera image.
(J) is read from the frame memory 5 and the distance Z (j) is read from the distance image storage unit 12. Further, in step S84, in the correction target pixel storage unit 13, the luminance Y (i) of the pixel i and the pixel j
The absolute value of the difference from the luminance Y (j) (= | Y (i) −Y
(J) |) is smaller than the predetermined threshold value Th Y, and (a i), the absolute value of the difference between the distance Z (j) of the pixel j (= | Z (i) the distance of the pixel i Z -Z | ) whether greater than the predetermined threshold value Th Z is determined.

【0134】ステップS84において、画素iの輝度Y
(i)と、画素jの輝度Y(j)との差の絶対値が、所
定の閾値ThYより小さくないか、または画素iの距離
Z(i)と、画素jの距離Z(j)との差の絶対値が、
所定の閾値ThZより大きいくないと判定された場合、
ステップS85および86をスキップして、ステップS
87に進む。
In step S84, the luminance Y of the pixel i is determined.
And (i), the absolute value of the difference between the luminance Y (j) of the pixel j is either not less than the predetermined threshold value Th Y, or the distance of the pixel i Z (i), the distance of the pixel j Z (j) The absolute value of the difference between
When it is determined that the value is not larger than the predetermined threshold Th Z ,
Steps S85 and 86 are skipped and step S85
Proceed to 87.

【0135】また、ステップS84において、画素iの
輝度Y(i)と、画素jの輝度Y(j)との差の絶対値
が、所定の閾値ThYより小さく、かつ画素iの距離Z
(i)と、画素jの距離Z(j)との差の絶対値が、所
定の閾値ThZより大きいと判定された場合、ステップ
S85に進み、補正対象画素選択部13において、変数
minが、画素jについての評価値S(j)より小さい
かどうかが判定される。ステップS85において、変数
minが、評価値S(j)より小さいと判定された場
合、ステップS86に進み、補正対象画素選択部13
は、変数Sminに、画素jについての評価値S(j)を
セットするとともに、変数Zに、画素jの距離Z(j)
をセットし、ステップS87に進む。
[0135] Further, in step S84, the luminance Y (i) of the pixel i, the absolute value of the difference between the luminance Y (j) of the pixel j is less than the predetermined threshold value Th Y, and the distance of the pixel i Z
And (i), the absolute value of the difference between the distance Z (j) of the pixel j is, if it is determined greater than the predetermined threshold value Th Z, the process proceeds to step S85, the in the correction target pixel selecting section 13, a variable S min Is smaller than the evaluation value S (j) for the pixel j. If it is determined in step S85 that the variable S min is smaller than the evaluation value S (j), the process proceeds to step S86, where the correction target pixel selection unit 13
Sets the evaluation value S (j) of the pixel j in the variable S min and sets the distance Z (j) of the pixel j in the variable Z.
Is set, and the process proceeds to step S87.

【0136】また、ステップS85において、変数S
minが、評価値S(j)より小さくないと判定された場
合、ステップS86をスキップして、ステップS87に
進み、図12のステップS26における場合と同様に、
画素jが、検索ブロックW内の最後の画素であるかどう
かが判定される。ステップS87において、画素jが、
検索ブロックW内の最後の画素でないと判定された場
合、ステップS88に進み、図12のステップS27に
おける場合と同様に、変数jに、検索ブロックW内の画
素の中で、まだ、評価値が、変数Sminと比較されてい
ないものを表す値がセットされ、ステップS84に戻
る。そして、ステップS87において、画素jが、検索
ブロックW内の最後の画素であると判定されるまで、ス
テップS84乃至S88の処理が繰り返される。
At step S85, the variable S
If it is determined that min is not smaller than the evaluation value S (j), step S86 is skipped and the process proceeds to step S87, and as in step S26 in FIG.
It is determined whether the pixel j is the last pixel in the search block W. In step S87, the pixel j is
When it is determined that the pixel is not the last pixel in the search block W, the process proceeds to step S88, and the variable j is set to the variable j as in the case of step S27 in FIG. , A value representing a value not compared with the variable S min is set, and the process returns to step S84. Then, in step S87, the processing in steps S84 to S88 is repeated until it is determined that the pixel j is the last pixel in the search block W.

【0137】即ち、これにより、検索ブロックWの中か
ら適切画素が選択され、その適切画素のうち、評価値が
最も小さいものが、最尤画素として選択され、その最尤
画素の評価値または距離が、変数SminまたはZに、そ
れぞれセットされる。なお、検索ブロックWの中に適切
画素が存在しない場合には、変数SminまたはZそれぞ
れは、ステップS83でセットされた画素iの評価値S
(i)または距離Z(i)がセットされたままの状態に
なっている。
That is, thereby, an appropriate pixel is selected from the search block W, and the appropriate pixel having the smallest evaluation value is selected as the maximum likelihood pixel, and the evaluation value or the distance of the maximum likelihood pixel is selected. Is set to a variable S min or Z, respectively. If no appropriate pixel exists in the search block W, the variable S min or Z is set to the evaluation value S of the pixel i set in step S83.
(I) or the distance Z (i) remains set.

【0138】そして、ステップS87において、画素j
が、検索ブロックW内の最後の画素であると判定される
と、ステップS89に進み、補正部14は、距離画像記
憶部12に記憶された画素iについての距離Z(i)
を、変数Zに置き換えることで補正し、即ち、変数Z
を、画素iの距離として、距離画像記憶部15に供給し
て記憶させ、ステップS90に進む。
Then, in step S87, the pixel j
Is determined to be the last pixel in the search block W, the process proceeds to step S89, and the correction unit 14 determines the distance Z (i) for the pixel i stored in the distance image storage unit 12.
Is replaced by a variable Z, that is, the variable Z
Is supplied to and stored in the distance image storage unit 15 as the distance of the pixel i, and the process proceeds to step S90.

【0139】ここで、上述したように、検索ブロックW
の中に適切画素が存在する場合には、そのうちの評価値
が最小のものが最尤画素として選択され、その距離が変
数Zにセットされるから、その場合の検索ブロックWの
中心にある画素iの距離Z(i)が、変数Zに置き換え
られるということは、実質的に、画素iが補正対象画素
として選択され、その距離Z(i)の補正が行われたこ
とになる。一方、検索ブロックWの中に適切画素が存在
しない場合には、変数Zには、画素iの距離Z(i)が
セットされた状態となっているから、その場合の検索ブ
ロックWの中心にある画素iの距離Z(i)が、変数Z
に置き換えられるということは、実質的に、何らの補正
も行われていないのと等価であり、従って、画素iは、
補正対象画素として選択されていないことになる。
Here, as described above, the search block W
If there is an appropriate pixel among the pixels, the one with the smallest evaluation value is selected as the maximum likelihood pixel and its distance is set to the variable Z, so that the pixel at the center of the search block W in that case The fact that the distance Z (i) of i is replaced by the variable Z substantially means that the pixel i has been selected as the correction target pixel and the distance Z (i) has been corrected. On the other hand, when there is no appropriate pixel in the search block W, the variable Z is set to the distance Z (i) of the pixel i. When the distance Z (i) of a certain pixel i is a variable Z
Is substantially equivalent to no correction being performed, and therefore the pixel i is
This means that the pixel has not been selected as a correction target pixel.

【0140】ステップS90では、図11のステップS
11における場合と同様に、画素iが、距離画像を構成
する最後の画素Iに等しいかどうかが判定され、等しく
ないと判定された場合、ステップS91に進み、変数i
が1だけインクリメントされ、ステップS82に戻る。
そして、次に処理すべき画素iを対象に、以下、同様の
処理が繰り返される。
In step S90, step S90 in FIG.
11, it is determined whether the pixel i is equal to the last pixel I forming the range image, and if it is not, the process proceeds to step S91, where the variable i
Is incremented by 1, and the process returns to step S82.
Then, the same process is repeated for the pixel i to be processed next.

【0141】また、ステップS90において、画素i
が、距離画像を構成する最後の画素Iに等しいと判定さ
れた場合、補正処理を終了する。
In step S90, pixel i
Is determined to be equal to the last pixel I constituting the range image, the correction process ends.

【0142】以上のように、画素iの距離Z(i)との
差だけでなく、その基準カメラ画像上の画素値との差に
基づいて、画素iを補正対象画素とするかどうかの選択
を行い、さらに、画素値の差が小さい画素である適切画
素から、最尤画素を選択し、画素iの距離を、最終画素
の距離で補正することにより、画素iについて、誤った
補正が行われるのを防止することが可能となる。
As described above, based on the difference between the pixel i and the distance Z (i) as well as the difference between the pixel i and the pixel value on the reference camera image, the selection of whether or not the pixel i is the pixel to be corrected is made. The most likely pixel is selected from the appropriate pixels having a small difference in pixel value, and the distance of the pixel i is corrected by the distance of the last pixel, whereby an erroneous correction is performed on the pixel i. Can be prevented.

【0143】即ち、基準カメラ画像および検出カメラ画
像として、例えば、前景の輝度が低く、かつ背景の輝度
が高い画像(前景が暗く、背景が明るい画像)が得られ
た場合においても、上述したように、エッジ部分では、
背景を構成するある画素iについて、対応点が誤検出さ
れ、これにより、その距離として、前景の距離が誤って
求められることがある。
That is, even when, for example, an image having a low foreground luminance and a high luminance of the background (an image having a dark foreground and a bright background) is obtained as the reference camera image and the detected camera image, as described above. In the edge part,
Corresponding points are erroneously detected for a certain pixel i that constitutes the background, so that the distance of the foreground may be erroneously obtained as the distance.

【0144】画素iを中心とする検索ブロックを構成す
る画素の中では、一般に、背景の画素のみで基準ブロッ
クが構成されるものについての評価値の方が、前景およ
び背景の両方の画素で基準ブロックが構成されるものに
ついての評価値より小さくなるので、図12で説明した
ように、そのような小さい評価値が得られる背景の画素
の距離で、画素iの距離を置換することにより、画素i
の距離は、誤った前景の距離から、正しい背景の距離に
補正されることになる。
Of the pixels constituting the search block centered on pixel i, the evaluation value for a pixel whose reference block is composed of only background pixels is generally smaller than the evaluation value of both the foreground and background pixels. As described with reference to FIG. 12, the distance of the pixel i is replaced by the distance of the pixel of the background at which such a small evaluation value is obtained. i
Is corrected from the wrong foreground distance to the correct background distance.

【0145】しかしながら、前景の輝度が低く、かつ背
景の輝度が高い場合には、上述の場合とは逆に、前景お
よび背景の両方の画素で基準ブロックが構成される画素
についての評価値の方が、背景の画素のみで基準ブロッ
クが構成される画素についての評価値より小さくなるこ
とがある。従って、そのような小さな評価値が得られる
画素が、前景の画素である場合には、図12で説明した
ように、小さい評価値が得られる前景の画素の距離で、
画素iの距離を置換すると、画素iの距離は、誤った前
景の距離から、やはり、誤った前景の距離に補正される
ことになる。
However, when the luminance of the foreground is low and the luminance of the background is high, contrary to the above case, the evaluation value of the pixel forming the reference block with both the foreground and background pixels is smaller. However, in some cases, the evaluation value may be smaller than the evaluation value of a pixel in which a reference block includes only background pixels. Therefore, when the pixel from which such a small evaluation value is obtained is a foreground pixel, as described with reference to FIG.
Replacing the distance of pixel i will result in the distance of pixel i being corrected from the wrong foreground distance to again the wrong foreground distance.

【0146】そこで、図16や図17で説明したよう
に、検索ブロック内に、その中心に位置する画素iの輝
度との差が、閾値ThY未満の輝度を有する画素である
適切画素が存在する場合には、画素iを補正対象画素と
して選択するとともに、その適切画素のうちの評価値が
最小のものの距離で、補正対象画素iの距離を置換する
ことで、前景の輝度が低く、かつ背景の輝度が高いとき
であっても、画素iについて、誤って求められた前景の
距離を、正しい背景の距離に置換することができる。
[0146] Therefore, as described with reference to FIGS. 16 and 17, in the search block, the difference between the luminance of the pixel i to be located at the center, right pixels there is a pixel having a luminance less than the threshold Th Y In such a case, the pixel i is selected as a correction target pixel, and the distance of the correction target pixel i is replaced with the distance of the evaluation value of the appropriate pixel having the smallest evaluation value. Even when the luminance of the background is high, the erroneously obtained foreground distance for pixel i can be replaced with the correct background distance.

【0147】即ち、適切画素は、画素iとの輝度が近い
ものであり、従って、検索ブロックの中で、適切画素
は、画素iと同一の背景を構成している可能性が高く、
それ以外の画素は、前景を構成している可能性が高い。
従って、前景を構成している可能性が高い画素を無視
し、背景を構成している可能性が高い適切画素だけを対
象に、その中から、評価値の最も小さいものを最尤画素
として選択し、その最尤画素の距離で、補正対象画素i
の距離を置換することで、画素iについては、誤って求
められた前景の距離が、正しい背景の距離に補正される
ことになり、これにより、誤った補正が行われるのを防
止することが可能となる。
That is, the appropriate pixel has a luminance close to that of the pixel i. Therefore, it is highly possible that the appropriate pixel forms the same background as the pixel i in the search block.
Other pixels are more likely to form the foreground.
Therefore, pixels having a high possibility of forming the foreground are ignored, and only the appropriate pixels having a high possibility of forming the background are selected, and the pixel having the smallest evaluation value is selected as the maximum likelihood pixel. The correction target pixel i is determined by the distance of the maximum likelihood pixel.
Is substituted for the pixel i, the erroneously obtained foreground distance is corrected to the correct background distance, thereby preventing erroneous correction from being performed. It becomes possible.

【0148】なお、補正処理は、ステレオ処理によって
求められた距離画像に対して、ノイズ除去または穴埋め
等を行った後に行うのが望ましい。これは、基準カメラ
画像や検出カメラ画像が、輝度の変化が少ないものであ
る場合には、ステレオ処理において、対応点の誤検出が
生じやすくなる一方で、各画素について求められる最終
的な評価値は小さくなることが多いため、そのようなス
テレオ処理の結果得られる距離画像をそのまま用いて補
正処理を行うと、ノイズが広がるような悪影響を生じる
ことがあるからである。
It is preferable that the correction process is performed after noise removal or hole filling is performed on the distance image obtained by the stereo processing. This is because when the reference camera image or the detected camera image has little change in luminance, erroneous detection of the corresponding point is likely to occur in the stereo processing, while the final evaluation value obtained for each pixel is obtained. Is often small, and if the correction processing is performed using the distance image obtained as a result of such stereo processing as it is, an adverse effect such as an increase in noise may occur.

【0149】ここで、距離画像に対して、ノイズ除去ま
たは穴埋めを施す方法としては、例えば、距離の値が近
い隣接する画素の集合を、1単位として、その1単位の
面積が小さい部分をノイズと判定し、そのノイズと判定
された画素の集合のうち、ノイズでない画素に隣接して
いる画素にメディアンフィルタをかけて補正し、ノイズ
の部分を徐々に狭くして、最終的にはなくすようなもの
がある。なお、この方法の詳細については、例えば、本
件出願人が先に出願した特願平9−288479号に記
載されている。
Here, as a method of performing noise removal or padding on a distance image, for example, a set of adjacent pixels having a short distance value is defined as one unit, and a portion having a small area of one unit is subjected to noise reduction. In the set of pixels determined to be noise, pixels adjacent to non-noise pixels are corrected by applying a median filter, and the noise portion is gradually narrowed and finally eliminated. There is something. The details of this method are described, for example, in Japanese Patent Application No. 9-288479 filed earlier by the present applicant.

【0150】以上、本発明を、距離を測定する距離測定
装置に適用した場合について説明したが、本発明は、上
述したように、視差を測定する場合、その視差から、さ
らに距離を求める場合、対象物の3次元形状を解析する
場合等にも適用可能である。ここで、視差から距離を求
める場合には、視差に対して補正処理を施した後に距離
を求めても、また、視差から距離を求め、その距離に対
して補正処理を施しても、同様の効果を得ることができ
る。
As described above, the case where the present invention is applied to a distance measuring apparatus for measuring a distance has been described. However, as described above, the present invention relates to a case where parallax is measured and a case where a further distance is obtained from the parallax. The present invention is also applicable to the case of analyzing a three-dimensional shape of an object. Here, in the case of obtaining the distance from the parallax, the same applies to the case where the distance is obtained after performing the correction processing on the parallax, or the case where the distance is obtained from the parallax and the correction processing is performed on the distance. The effect can be obtained.

【0151】なお、本実施の形態では、ステレオ処理の
終了後に、補正処理を行うようにしたが、補正処理が可
能となるまでステレオ処理を行い、その後は、ステレオ
処理と補正処理とを並列に行うようにすることが可能で
ある。
In this embodiment, the correction processing is performed after the stereo processing is completed. However, the stereo processing is performed until the correction processing becomes possible, and thereafter, the stereo processing and the correction processing are performed in parallel. It is possible to do.

【0152】また、本実施の形態では、検索ブロックか
らの最尤画素の検出を、その検索ブロックを構成するす
べての画素を対象に行うようにしたが、最尤画素の検出
は、その他、例えば、検索ブロックの外周に位置する画
素のみを対象としたり、検索ブロックを構成する画素の
うちの1つおきの画素のみを対象とすることなどが可能
である。この場合、最尤画素の検出を、高速に行うこと
が可能となる。
Further, in the present embodiment, the detection of the maximum likelihood pixel from the search block is performed for all the pixels constituting the search block. It is possible to target only the pixels located on the outer periphery of the search block, or to target only every other pixel among the pixels constituting the search block. In this case, detection of the maximum likelihood pixel can be performed at high speed.

【0153】さらに、本実施の形態では、演算処理回路
6に、コンピュータプログラムを実行させることによ
り、ステレオ処理および補正処理を行わせるようにした
が、ステレオ処理および補正処理は、それ専用のハード
ウェアによって行うことも可能である。
Further, in the present embodiment, the stereo processing and the correction processing are performed by causing the arithmetic processing circuit 6 to execute a computer program, but the stereo processing and the correction processing are performed by dedicated hardware. It is also possible to do this.

【0154】また、本実施の形態では、ステレオ処理お
よび補正処理を行うためのアプリケーションプログラム
を、記憶装置7に記憶させて提供するようにしたが、こ
のようなアプリケーションプログラムは、例えば、イン
ターネットその他の伝送媒体を介して伝送して提供する
ことも可能である。
Further, in the present embodiment, the application program for performing the stereo processing and the correction processing is stored in the storage device 7 and provided. It is also possible to provide by transmitting via a transmission medium.

【0155】さらに、本実施の形態では、基準ブロッ
ク、検出ブロック、および検索ブロックとして、長方形
状のブロックを構成するようにしたが、基準ブロック、
検出ブロック、および検索ブロックは、長方形状のブロ
ックに限定されるものではなく、例えば、ある画素から
一定距離内にある画素でなる円形状のブロックを、基準
ブロックや、検出ブロック、検索ブロックとして採用す
ることも可能である。また、基準ブロック、検出ブロッ
ク、および検索ブロックは、隣接している画素で構成す
る必要はなく、例えば、1画素おきの画素の集合などで
構成することも可能である。
Further, in this embodiment, rectangular blocks are configured as the reference block, the detection block, and the search block.
The detection block and the search block are not limited to rectangular blocks. For example, a circular block including pixels within a certain distance from a certain pixel is adopted as a reference block, a detection block, and a search block. It is also possible. Further, the reference block, the detection block, and the search block do not need to be configured by adjacent pixels, and may be configured by a set of pixels every other pixel, for example.

【0156】さらに、本実施の形態では、基準カメラと
して機能する1台のカメラ1と、検出カメラとして機能
する1台のカメラ2を用いるようにしたが、検出カメラ
は、複数台用いるようにすることが可能である。また、
カメラは1台だけ用意し、それを移動させることによ
り、その1台のカメラを、基準カメラおよび検出カメラ
の両方として使用することも可能である。
Further, in the present embodiment, one camera 1 functioning as a reference camera and one camera 2 functioning as a detection camera are used, but a plurality of detection cameras are used. It is possible. Also,
By preparing only one camera and moving it, it is also possible to use that one camera as both the reference camera and the detection camera.

【0157】また、本実施の形態では、ステレオ処理お
よび補正処理により得られた距離画像を、出力装置8に
表示し、あるいは、記憶装置7に記憶させるようにした
が、その他、距離画像は、例えば、インターネット等の
伝送媒体を介して伝送して他の装置等に提供するように
することが可能である。
Further, in the present embodiment, the distance image obtained by the stereo processing and the correction processing is displayed on the output device 8 or stored in the storage device 7. For example, it is possible to transmit the data via a transmission medium such as the Internet and provide the data to another device or the like.

【0158】さらに、本実施の形態では、補正対象画素
の距離を、1の最尤画素の距離に置換することによって
補正を行うようにしたが、補正対象画素の距離は、その
他、例えば、評価値の小さい順に、複数の最尤画素を選
択し、その複数の最尤画素の距離の平均値などに基づい
て補正したり、また、その複数の最尤画素の距離を用い
て補間を行うことにより補正することなどが可能であ
る。
Further, in the present embodiment, the correction is performed by replacing the distance of the pixel to be corrected with the distance of one maximum likelihood pixel. Selecting a plurality of maximum likelihood pixels in the order of smaller values, correcting based on an average value of the distances of the plurality of maximum likelihood pixels, and performing interpolation using the distances of the plurality of maximum likelihood pixels. And so on.

【0159】また、本実施の形態では、補正後の距離画
像を、距離画像記憶部12とは別の距離画像記憶部15
に記憶させるようにしたが、補正後の距離画像は、補正
前の距離画像が記憶されている距離画像記憶部12に、
いわば上書きする形で記憶させるようにすることも可能
である。
Further, in the present embodiment, the corrected distance image is stored in a distance image storage unit 15 different from distance image storage unit 12.
The distance image after correction is stored in the distance image storage unit 12 in which the distance image before correction is stored.
It is also possible to store the data in an overwritten form.

【0160】さらに、本実施の形態では、ステレオ処理
後の距離画像に対して、1度だけ補正処理を施すように
したが、補正処理は、補正処理を施した距離画像に対し
て、さらに施すようにすることも可能である。
Further, in the present embodiment, the distance image after the stereo processing is subjected to the correction processing only once, but the correction processing is further applied to the corrected distance image. It is also possible to do so.

【0161】[0161]

【発明の効果】請求項1に記載の画像処理装置および請
求項20に記載の画像処理方法、並びに請求項38に記
載の提供媒体によれば、第1の画像の画素と対応する、
第2の画像の対応画素が検出され、その対応画素に基づ
き、第1の画像の画素について、距離関係情報が求めら
れる。さらに、距離関係情報を画素値とする距離関係情
報画像の画素から、距離関係情報の補正を行う対象とす
る補正対象画素が選択され、その補正対象画素について
の距離関係情報が、距離関係情報画像の他の画素につい
ての距離関係情報に基づいて補正される。従って、第1
および第2の画像どうしでの画素の対応付けを正確に行
うことができなかった場合であっても、精度の高い距離
関係情報を得ることが可能となる。
According to the image processing apparatus according to the first aspect, the image processing method according to the twentieth aspect, and the providing medium according to the thirty-eighth aspect, the pixels correspond to the pixels of the first image.
The corresponding pixel of the second image is detected, and distance-related information is obtained for the pixel of the first image based on the corresponding pixel. Further, from the pixels of the distance-related information image having the pixel value of the distance-related information, a correction target pixel for which the distance-related information is to be corrected is selected. Is corrected based on the distance relationship information for the other pixels. Therefore, the first
Even if it is not possible to accurately associate pixels between the second images, it is possible to obtain highly accurate distance relationship information.

【0162】請求項39に記載の提供媒体によれば、第
1の画像の画素と対応する、第2の画像の対応画素を検
出し、対応画素に基づき、第1の画像の画素について、
距離関係情報を求め、距離関係情報を画素値とする距離
関係情報画像の画素から、距離関係情報の補正を行う対
象とする補正対象画素を選択し、補正対象画素について
の距離関係情報を、距離関係情報画像の他の画素につい
ての距離関係情報に基づいて補正することにより得られ
る距離関係情報が提供される。従って、精度の高い距離
関係情報を提供することができる。
According to the providing medium of claim 39, a corresponding pixel of the second image corresponding to a pixel of the first image is detected, and based on the corresponding pixel, a pixel of the first image is detected.
The distance relationship information is obtained, and a correction target pixel for which the distance relationship information is to be corrected is selected from the pixels of the distance relationship information image having the pixel value of the distance relationship information. Distance relationship information obtained by performing correction based on the distance relationship information for other pixels of the relationship information image is provided. Therefore, highly accurate distance relation information can be provided.

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

【図1】本発明を適用した距離測定装置の一実施の形態
の構成例を示すブロック図である。
FIG. 1 is a block diagram showing a configuration example of an embodiment of a distance measuring device to which the present invention is applied.

【図2】基準カメラ1および検出カメラ1で、対象物3
を撮影している状態を示す図である。
FIG. 2 shows an object 3 with a reference camera 1 and a detection camera 1;
It is a figure showing the state where it is photographing.

【図3】エピポーララインを説明するための図である。FIG. 3 is a diagram for explaining an epipolar line.

【図4】基準カメラ画像および検出カメラ画像を示す図
である。
FIG. 4 is a diagram showing a reference camera image and a detected camera image.

【図5】評価値の推移を示す図である。FIG. 5 is a diagram showing a transition of an evaluation value.

【図6】設定点/距離テーブルおよび視差/距離テーブ
ルを示す図である。
FIG. 6 is a diagram showing a set point / distance table and a parallax / distance table.

【図7】壁の手前に配置された対象物3を撮影している
状態を示す図である。
FIG. 7 is a diagram showing a state in which an object 3 placed in front of a wall is being photographed.

【図8】エッジ部分で生じる対応点の誤検出を説明する
ための図である。
FIG. 8 is a diagram for explaining erroneous detection of a corresponding point occurring in an edge portion.

【図9】対応点の誤検出に起因する距離の誤りの補正方
法を説明するための図である。
FIG. 9 is a diagram for explaining a method of correcting a distance error caused by erroneous detection of a corresponding point.

【図10】図1の演算処理回路6の機能的構成例を示す
ブロック図である。
FIG. 10 is a block diagram illustrating a functional configuration example of an arithmetic processing circuit 6 in FIG. 1;

【図11】ステレオ処理を説明するためのフローチャー
トである。
FIG. 11 is a flowchart illustrating stereo processing.

【図12】補正処理の第1の実施の形態を説明するため
のフローチャートである。
FIG. 12 is a flowchart illustrating a first embodiment of a correction process.

【図13】距離の連続性が失われる場合を説明するため
の図である。
FIG. 13 is a diagram for explaining a case where distance continuity is lost.

【図14】補正処理の第2の実施の形態を説明するため
のフローチャートである。
FIG. 14 is a flowchart for explaining a second embodiment of the correction processing.

【図15】補正処理の第3の実施の形態を説明するため
のフローチャートである。
FIG. 15 is a flowchart illustrating a third embodiment of the correction process.

【図16】補正処理の第4の実施の形態を説明するため
のフローチャートである。
FIG. 16 is a flowchart for explaining a fourth embodiment of the correction processing.

【図17】補正処理の第5の実施の形態を説明するため
のフローチャートである。
FIG. 17 is a flowchart for describing a fifth embodiment of the correction processing.

【符号の説明】[Explanation of symbols]

1 基準カメラ(撮像手段), 2 検出カメラ(撮像
手段), 3 対象物, 4 カメラインターフェイ
ス, 5 フレームメモリ, 6 演算処理回路, 6
A CPU, 6B ROM, 6C RAM, 6D
DSP, 7記憶装置, 8 出力装置, 11 ス
テレオ処理部(検出手段)(処理手段), 12 距離
画像記憶部, 13 補正対象画素選択部(選択手
段), 14補正部(補正手段), 15 距離画像記
憶部
1 reference camera (imaging means), 2 detection camera (imaging means), 3 object, 4 camera interface, 5 frame memory, 6 arithmetic processing circuit, 6
A CPU, 6B ROM, 6C RAM, 6D
DSP, 7 storage device, 8 output device, 11 stereo processing unit (detection unit) (processing unit), 12 distance image storage unit, 13 correction target pixel selection unit (selection unit), 14 correction unit (correction unit), 15 distance Image storage unit

フロントページの続き Fターム(参考) 2F065 AA04 AA06 AA53 BB05 FF05 JJ03 JJ26 QQ24 QQ31 UU05 5B057 DA07 DB03 DC08 DC34 5L096 AA09 CA05 FA34 FA66 FA67 GA53 JA18 9A001 HH23 JJ49 JJ71 Continued on the front page F term (reference) 2F065 AA04 AA06 AA53 BB05 FF05 JJ03 JJ26 QQ24 QQ31 UU05 5B057 DA07 DB03 DC08 DC34 5L096 AA09 CA05 FA34 FA66 FA67 GA53 JA18 9A001 HH23 JJ49 JJ71

Claims (39)

【特許請求の範囲】[Claims] 【請求項1】 所定の対象物を撮影した第1および第2
の画像に基づいて、前記対象物までの距離に関係する距
離関係情報を求める画像処理装置であって、 前記第1の画像の画素と対応する、前記第2の画像の対
応画素を検出する検出手段と、 前記対応画素に基づき、前記第1の画像の画素につい
て、前記距離関係情報を求める処理手段と、 前記距離関係情報を画素値とする距離関係情報画像の画
素から、前記距離関係情報の補正を行う対象とする補正
対象画素を選択する選択手段と、 前記補正対象画素についての前記距離関係情報を、前記
距離関係情報画像の他の画素についての前記距離関係情
報に基づいて補正する補正手段とを備えることを特徴と
する画像処理装置。
1. A first and a second photographing a predetermined object.
An image processing apparatus that obtains distance-related information related to a distance to the target object based on the image of (a), wherein detection corresponding to pixels of the first image and corresponding pixels of the second image are detected. Means, based on the corresponding pixels, processing means for obtaining the distance relationship information for the pixels of the first image, from the pixels of the distance relationship information image having the distance relationship information as a pixel value, Selecting means for selecting a correction target pixel to be corrected; and correcting means for correcting the distance relation information for the correction target pixel based on the distance relation information for other pixels of the distance relation information image. An image processing apparatus comprising:
【請求項2】 前記処理手段は、前記第1の画像の画素
とその対応画素との間の視差を、前記距離関係情報とし
て求めることを特徴とする請求項1に記載の画像処理装
置。
2. The image processing apparatus according to claim 1, wherein the processing unit obtains a parallax between a pixel of the first image and a corresponding pixel as the distance relation information.
【請求項3】 前記処理手段は、前記視差に基づいて、
前記対象物までの距離を、さらに求めることを特徴とす
る請求項2に記載の画像処理装置。
3. The processing unit, based on the parallax,
3. The image processing apparatus according to claim 2, wherein a distance to the object is further obtained.
【請求項4】 前記処理手段は、前記対象物までの距離
を、前記距離関係情報として求めることを特徴とする請
求項1に記載の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the processing unit obtains a distance to the object as the distance relation information.
【請求項5】 前記検出手段は、前記第1および第2の
画像の画素の画素値を用いて、所定の評価関数を演算
し、その演算結果に基づいて、前記対応画素を検出する
ことを特徴とする請求項1に記載の画像処理装置。
5. The detecting means calculates a predetermined evaluation function using pixel values of pixels of the first and second images, and detects the corresponding pixel based on a result of the calculation. The image processing apparatus according to claim 1, wherein:
【請求項6】 前記選択手段は、前記所定の評価関数の
値に基づいて、前記補正対象画素を選択することを特徴
とする請求項5に記載の画像処理装置。
6. The image processing apparatus according to claim 5, wherein the selection unit selects the correction target pixel based on a value of the predetermined evaluation function.
【請求項7】 前記選択手段は、前記距離関係情報に基
づいて、前記補正対象画素を選択することを特徴とする
請求項1に記載の画像処理装置。
7. The image processing apparatus according to claim 1, wherein the selection unit selects the correction target pixel based on the distance relation information.
【請求項8】 前記選択手段は、前記第1の画像の画素
の画素値に基づいて、前記補正対象画素を選択すること
を特徴とする請求項1に記載の画像処理装置。
8. The image processing apparatus according to claim 1, wherein the selection unit selects the correction target pixel based on a pixel value of a pixel of the first image.
【請求項9】 前記補正手段は、前記補正対象画素につ
いての前記距離関係情報を、その補正対象画素の近隣に
位置する画素についての前記距離関係情報に基づいて補
正することを特徴とする請求項1に記載の画像処理装
置。
9. The method according to claim 1, wherein the correction unit corrects the distance relation information on the correction target pixel based on the distance relation information on a pixel located near the correction target pixel. 2. The image processing device according to 1.
【請求項10】 前記補正手段は、前記補正対象画素に
ついての前記距離関係情報を、前記距離関係情報画像の
他の画素についての前記距離関係情報に置換することに
より補正することを特徴とする請求項1に記載の画像処
理装置。
10. The correction unit according to claim 1, wherein the correction unit performs the correction by replacing the distance relation information about the correction target pixel with the distance relation information about another pixel of the distance relation information image. Item 2. The image processing device according to Item 1.
【請求項11】 前記補正手段は、前記補正対象画素に
ついての前記距離関係情報を、その補正対象画素を含む
所定の領域内の他の画素についての前記距離関係情報に
基づいて補正することを特徴とする請求項1に記載の画
像処理装置。
11. The correction means for correcting the distance relationship information for the correction target pixel based on the distance relationship information for another pixel in a predetermined area including the correction target pixel. The image processing apparatus according to claim 1.
【請求項12】 前記補正手段は、前記第1の画像の画
素とその対応画素との対応関係の確実性に基づいて、前
記所定の領域内の画素を選択し、その選択した画素の前
記距離関係情報に基づいて、前記補正対象画素について
の前記距離関係情報を補正することを特徴とする請求項
11に記載の画像処理装置。
12. The correction means selects a pixel in the predetermined area based on the certainty of the correspondence between the pixel of the first image and the corresponding pixel, and selects the distance between the selected pixel and the distance. The image processing apparatus according to claim 11, wherein the distance relation information on the correction target pixel is corrected based on the relation information.
【請求項13】 前記補正手段は、前記所定の領域内の
画素のうち、前記第1の画像の画素とその対応画素との
対応関係の確実性が最も高いものを選択することを特徴
とする請求項12に記載の画像処理装置。
13. The method according to claim 1, wherein the correction unit selects, from among the pixels in the predetermined area, a pixel having the highest certainty in the correspondence between the pixel of the first image and its corresponding pixel. The image processing device according to claim 12.
【請求項14】 前記補正手段は、前記所定の領域内の
画素の一部を選択の対象とすることを特徴とする請求項
12に記載の画像処理装置。
14. The image processing apparatus according to claim 12, wherein the correction unit selects a part of the pixels in the predetermined area as a selection target.
【請求項15】 前記補正手段は、前記所定の領域の最
外周に位置する画素を選択の対象とすることを特徴とす
る請求項14に記載の画像処理装置。
15. The image processing apparatus according to claim 14, wherein the correction unit selects a pixel located at an outermost periphery of the predetermined area as a selection target.
【請求項16】 前記検出手段は、前記第1および第2
の画像の画素の画素値を用いて、所定の評価関数を演算
し、その演算結果に基づいて、前記対応画素を検出し、 前記補正手段は、前記所定の評価関数の値に基づいて、
前記第1の画像の画素とその対応画素との対応関係の確
実性を評価することを特徴とする請求項12に記載の画
像処理装置。
16. The method according to claim 16, wherein the detecting unit includes the first and second detectors.
Using a pixel value of the pixel of the image of, a predetermined evaluation function is calculated, based on the calculation result, the corresponding pixel is detected, the correction unit, based on the value of the predetermined evaluation function,
13. The image processing apparatus according to claim 12, wherein the certainty of the correspondence between the pixels of the first image and the corresponding pixels is evaluated.
【請求項17】 前記検出手段は、前記第1の画像の画
素の画素値と、その画素に対応する可能性のある前記第
2の画像の画素群それぞれの画素値とについて、所定の
評価関数を演算し、その演算結果に基づき、前記第2の
画像の画素群の中から、前記対応画素を検出し、 前記補正手段は、前記所定の評価関数の値に基づいて、
前記第1の画像の画素とその対応画素との対応関係の確
実性を評価することを特徴とする請求項12に記載の画
像処理装置。
17. The method according to claim 1, wherein the detecting unit determines a predetermined evaluation function for a pixel value of a pixel of the first image and a pixel value of each pixel group of the second image which may correspond to the pixel. Is calculated, and based on the calculation result, the corresponding pixel is detected from the pixel group of the second image. The correction unit is configured to calculate the corresponding pixel based on a value of the predetermined evaluation function.
13. The image processing apparatus according to claim 12, wherein the certainty of the correspondence between the pixels of the first image and the corresponding pixels is evaluated.
【請求項18】 前記検出手段は、前記第1の画像の画
素を含む第1の画素ブロックと、その画素に対応する可
能性のある前記第2の画像の画素群それぞれの画素を含
む第2の画素ブロックとを用いて、所定の評価関数を演
算し、その演算結果に基づいて、前記対応画素を検出
し、 前記補正手段は、前記所定の評価関数の値に基づいて、
前記第1の画像の画素とその対応画素との対応関係の確
実性を評価し、前記補正対象画素を含む第3の画素ブロ
ックから、前記確実性が最も高い前記距離関係情報画像
の画素を選択し、前記補正対象画素についての前記距離
関係情報を、その選択した画素についての前記距離関係
情報に置換することにより補正することを特徴とする請
求項12に記載の画像処理装置。
18. The method according to claim 17, wherein the detecting unit includes a first pixel block including a pixel of the first image, and a second pixel including a pixel of a pixel group of the second image which may correspond to the pixel. A predetermined evaluation function is calculated using the pixel block of the above, the corresponding pixel is detected based on the calculation result, and the correction unit is configured based on a value of the predetermined evaluation function.
Evaluate the certainty of the correspondence between the pixels of the first image and the corresponding pixels, and select the pixel of the distance relationship information image having the highest certainty from the third pixel block including the correction target pixel 13. The image processing apparatus according to claim 12, wherein the correction is performed by replacing the distance relation information about the correction target pixel with the distance relation information about the selected pixel.
【請求項19】 前記所定の対象物を撮影し、前記第1
および第2の画像を出力する撮像手段をさらに備えるこ
とを特徴とする請求項1に記載の画像処理装置。
19. The method according to claim 19, further comprising: photographing the predetermined object;
The image processing apparatus according to claim 1, further comprising an imaging unit that outputs a second image.
【請求項20】 所定の対象物を撮影した第1および第
2の画像に基づいて、前記対象物までの距離に関係する
距離関係情報を求める画像処理方法であって、 前記第1の画像の画素と対応する、前記第2の画像の対
応画素を検出する検出ステップと、 前記対応画素に基づき、前記第1の画像の画素につい
て、前記距離関係情報を求める処理ステップと、 前記距離関係情報を画素値とする距離関係情報画像の画
素から、前記距離関係情報の補正を行う対象とする補正
対象画素を選択する選択ステップと、 前記補正対象画素についての前記距離関係情報を、前記
距離関係情報画像の他の画素についての前記距離関係情
報に基づいて補正する補正ステップとを備えることを特
徴とする画像処理方法。
20. An image processing method for obtaining distance-related information relating to a distance to the target object based on first and second images of a predetermined target object, the image processing method comprising: A detection step of detecting a corresponding pixel of the second image corresponding to a pixel; a processing step of obtaining the distance relation information for a pixel of the first image based on the corresponding pixel; A selection step of selecting a correction target pixel to be subjected to the correction of the distance relation information from the pixels of the distance relation information image having a pixel value; and the distance relation information about the correction target pixel is the distance relation information image. A correction step based on the distance-related information for other pixels.
【請求項21】 前記処理ステップにおいて、前記第1
の画像の画素とその対応画素との間の視差を、前記距離
関係情報として求めることを特徴とする請求項20に記
載の画像処理方法。
21. In the processing step, the first
21. The image processing method according to claim 20, wherein a parallax between a pixel of the image and a corresponding pixel is obtained as the distance relation information.
【請求項22】 前記処理ステップにおいて、前記視差
に基づいて、前記対象物までの距離を、さらに求めるこ
とを特徴とする請求項21に記載の画像処理方法。
22. The image processing method according to claim 21, wherein in the processing step, a distance to the object is further obtained based on the parallax.
【請求項23】 前記処理ステップにおいて、前記対象
物までの距離を、前記距離関係情報として求めることを
特徴とする請求項20に記載の画像処理方法。
23. The image processing method according to claim 20, wherein in the processing step, a distance to the object is obtained as the distance relation information.
【請求項24】 前記検出ステップにおいて、前記第1
および第2の画像の画素の画素値を用いて、所定の評価
関数を演算し、その演算結果に基づいて、前記対応画素
を検出することを特徴とする請求項20に記載の画像処
理方法。
24. In the detecting step, the first
21. The image processing method according to claim 20, wherein a predetermined evaluation function is calculated using pixel values of pixels of the second image and the second image, and the corresponding pixel is detected based on a result of the calculation.
【請求項25】 前記選択ステップにおいて、前記所定
の評価関数の値に基づいて、前記補正対象画素を選択す
ることを特徴とする請求項24に記載の画像処理方法。
25. The image processing method according to claim 24, wherein, in the selecting step, the correction target pixel is selected based on a value of the predetermined evaluation function.
【請求項26】 前記選択ステップにおいて、前記距離
関係情報に基づいて、前記補正対象画素を選択すること
を特徴とする請求項20に記載の画像処理方法。
26. The image processing method according to claim 20, wherein, in the selecting step, the correction target pixel is selected based on the distance relation information.
【請求項27】 前記選択ステップにおいて、前記第1
の画像の画素の画素値に基づいて、前記補正対象画素を
選択することを特徴とする請求項20に記載の画像処理
方法。
27. The method according to claim 27, wherein in the selecting step, the first
21. The image processing method according to claim 20, wherein the correction target pixel is selected based on a pixel value of a pixel of the image.
【請求項28】 前記補正ステップにおいて、前記補正
対象画素についての前記距離関係情報を、その補正対象
画素の近隣に位置する画素についての前記距離関係情報
に基づいて補正することを特徴とする請求項20に記載
の画像処理方法。
28. The correction step, wherein the distance relation information about the correction target pixel is corrected based on the distance relation information about a pixel located near the correction target pixel. 20. The image processing method according to 20.
【請求項29】 前記補正ステップにおいて、前記補正
対象画素についての前記距離関係情報を、前記距離関係
情報画像の他の画素についての前記距離関係情報に置換
することにより補正することを特徴とする請求項20に
記載の画像処理方法。
29. The method according to claim 29, wherein in the correcting step, the distance-related information about the pixel to be corrected is replaced with the distance-related information about another pixel of the distance-related information image. Item 21. The image processing method according to Item 20,
【請求項30】 前記補正ステップにおいて、前記補正
対象画素についての前記距離関係情報を、その補正対象
画素を含む所定の領域内の他の画素についての前記距離
関係情報に基づいて補正することを特徴とする請求項2
0に記載の画像処理方法。
30. In the correcting step, the distance relation information on the correction target pixel is corrected based on the distance relation information on another pixel in a predetermined area including the correction target pixel. Claim 2
0. The image processing method according to 0.
【請求項31】 前記補正ステップにおいて、前記第1
の画像の画素とその対応画素との対応関係の確実性に基
づいて、前記所定の領域内の画素を選択し、その選択し
た画素の前記距離関係情報に基づいて、前記補正対象画
素についての前記距離関係情報を補正することを特徴と
する請求項30に記載の画像処理方法。
31. In the correcting step, the first
Based on the certainty of the correspondence between the pixels of the image and the corresponding pixels, a pixel in the predetermined area is selected, and based on the distance relationship information of the selected pixel, The image processing method according to claim 30, wherein the distance relation information is corrected.
【請求項32】 前記補正ステップにおいて、前記所定
の領域内の画素のうち、前記第1の画像の画素とその対
応画素との対応関係の確実性が最も高いものを選択する
ことを特徴とする請求項31に記載の画像処理方法。
32. In the correcting step, among the pixels in the predetermined area, a pixel having the highest certainty of the correspondence between the pixel of the first image and its corresponding pixel is selected. The image processing method according to claim 31.
【請求項33】 前記補正ステップにおいて、前記所定
の領域内の画素の一部を選択の対象とすることを特徴と
する請求項31に記載の画像処理方法。
33. The image processing method according to claim 31, wherein in the correction step, a part of the pixels in the predetermined area is selected.
【請求項34】 前記補正ステップにおいて、前記所定
の領域の最外周に位置する画素を選択の対象とすること
を特徴とする請求項33に記載の画像処理方法。
34. The image processing method according to claim 33, wherein in the correction step, a pixel located at an outermost periphery of the predetermined area is selected.
【請求項35】 前記検出ステップにおいて、前記第1
および第2の画像の画素の画素値を用いて、所定の評価
関数を演算し、その演算結果に基づいて、前記対応画素
を検出し、 前記補正ステップにおいて、前記所定の評価関数の値に
基づいて、前記第1の画像の画素とその対応画素との対
応関係の確実性を評価することを特徴とする請求項31
に記載の画像処理方法。
35. In the detecting step, the first
And a predetermined evaluation function is calculated using the pixel values of the pixels of the second image, and the corresponding pixel is detected based on the calculation result. In the correction step, based on the value of the predetermined evaluation function 32. The method according to claim 31, further comprising: evaluating the certainty of the correspondence between the pixel of the first image and the corresponding pixel.
The image processing method according to 1.
【請求項36】 前記検出ステップにおいて、前記第1
の画像の画素の画素値と、その画素に対応する可能性の
ある前記第2の画像の画素群それぞれの画素値とについ
て、所定の評価関数を演算し、その演算結果に基づき、
前記第2の画像の画素群の中から、前記対応画素を検出
し、 前記補正ステップにおいて、前記所定の評価関数の値に
基づいて、前記第1の画像の画素とその対応画素との対
応関係の確実性を評価することを特徴とする請求項31
に記載の画像処理方法。
36. In the detecting step, the first
A predetermined evaluation function is calculated for the pixel value of the pixel of the image and the pixel value of each pixel group of the second image that may correspond to the pixel, and based on the calculation result,
Detecting the corresponding pixel from the pixel group of the second image, and, in the correcting step, the correspondence between the pixel of the first image and the corresponding pixel based on the value of the predetermined evaluation function 32. The method according to claim 31, further comprising: evaluating a certainty of the information.
The image processing method according to 1.
【請求項37】 前記検出ステップにおいて、前記第1
の画像の画素を含む第1の画素ブロックと、その画素に
対応する可能性のある前記第2の画像の画素群それぞれ
の画素を含む第2の画素ブロックとを用いて、所定の評
価関数を演算し、その演算結果に基づいて、前記対応画
素を検出し、 前記補正ステップにおいて、前記所定の評価関数の値に
基づいて、前記第1の画像の画素とその対応画素との対
応関係の確実性を評価し、前記補正対象画素を含む第3
の画素ブロックから、前記確実性が最も高い前記距離関
係情報画像の画素を選択し、前記補正対象画素について
の前記距離関係情報を、その選択した画素についての前
記距離関係情報に置換することにより補正することを特
徴とする請求項31に記載の画像処理方法。
37. The method according to claim 37, wherein:
By using a first pixel block including pixels of the image of the second image and a second pixel block including pixels of each pixel group of the second image which may correspond to the pixel, a predetermined evaluation function is calculated. Calculating, based on the result of the calculation, detecting the corresponding pixel, and in the correcting step, based on the value of the predetermined evaluation function, ensuring the correspondence between the pixel of the first image and the corresponding pixel. The third pixel including the pixel to be corrected.
From the pixel block, the pixel having the highest reliability is selected in the distance-related information image, and the distance-related information about the pixel to be corrected is replaced with the distance-related information about the selected pixel. The image processing method according to claim 31, wherein the image processing is performed.
【請求項38】 所定の対象物を撮影した第1および第
2の画像に基づいて、前記対象物までの距離に関係する
距離関係情報を求める処理を、情報処理装置に行わせる
ための制御情報を提供する提供媒体であって、 前記第1の画像の画素と対応する、前記第2の画像の対
応画素を検出する検出ステップと、 前記対応画素に基づき、前記第1の画像の画素につい
て、前記距離関係情報を求める処理ステップと、 前記距離関係情報を画素値とする距離関係情報画像の画
素から、前記距離関係情報の補正を行う対象とする補正
対象画素を選択する選択ステップと、 前記補正対象画素についての前記距離関係情報を、前記
距離関係情報画像の他の画素についての前記距離関係情
報に基づいて補正する補正ステップとを備える制御情報
を提供することを特徴とする提供媒体。
38. Control information for causing an information processing apparatus to perform a process of obtaining distance-related information relating to a distance to an object based on first and second images of a predetermined object. A providing step of detecting a corresponding pixel of the second image, which corresponds to a pixel of the first image, based on the corresponding pixel, for a pixel of the first image, A processing step of obtaining the distance relation information; a selection step of selecting a correction target pixel for which the distance relation information is to be corrected from the pixels of the distance relation information image having the distance relation information as a pixel value; Correcting the distance-related information for the target pixel based on the distance-related information for other pixels of the distance-related information image. Providing medium characterized.
【請求項39】 所定の対象物を撮影した第1および第
2の画像に基づいて、前記対象物までの距離に関係する
距離関係情報を求めることにより得られる前記距離関係
情報を提供する提供媒体であって、 前記第1の画像の画素と対応する、前記第2の画像の対
応画素を検出し、 前記対応画素に基づき、前記第1の画像の画素につい
て、前記距離関係情報を求め、 前記距離関係情報を画素値とする距離関係情報画像の画
素から、前記距離関係情報の補正を行う対象とする補正
対象画素を選択し、 前記補正対象画素についての前記距離関係情報を、前記
距離関係情報画像の他の画素についての前記距離関係情
報に基づいて補正することにより得られる前記距離関係
情報を提供することを特徴とする提供媒体。
39. A providing medium for providing distance-related information obtained by obtaining distance-related information relating to a distance to an object based on first and second images of a predetermined object. Detecting a corresponding pixel of the second image corresponding to a pixel of the first image, obtaining the distance relationship information for a pixel of the first image based on the corresponding pixel, From the pixels of the distance relationship information image whose pixel value is the distance relationship information, a correction target pixel for which the distance relationship information is to be corrected is selected, and the distance relationship information for the correction target pixel is represented by the distance relationship information. A providing medium for providing the distance relationship information obtained by performing correction based on the distance relationship information for another pixel of an image.
JP29321298A 1998-10-15 1998-10-15 Image processing apparatus, image processing method, and recording medium Expired - Fee Related JP4296617B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29321298A JP4296617B2 (en) 1998-10-15 1998-10-15 Image processing apparatus, image processing method, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29321298A JP4296617B2 (en) 1998-10-15 1998-10-15 Image processing apparatus, image processing method, and recording medium

Publications (3)

Publication Number Publication Date
JP2000121319A true JP2000121319A (en) 2000-04-28
JP2000121319A5 JP2000121319A5 (en) 2005-12-02
JP4296617B2 JP4296617B2 (en) 2009-07-15

Family

ID=17791884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29321298A Expired - Fee Related JP4296617B2 (en) 1998-10-15 1998-10-15 Image processing apparatus, image processing method, and recording medium

Country Status (1)

Country Link
JP (1) JP4296617B2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2008053649A1 (en) * 2006-11-02 2010-02-25 コニカミノルタホールディングス株式会社 Wide-angle image acquisition method and wide-angle stereo camera device
JP2010165248A (en) * 2009-01-16 2010-07-29 Casio Computer Co Ltd Image processor, image collation method, and program
JP2010251878A (en) * 2009-04-13 2010-11-04 National Institute Of Information & Communication Technology Depth estimating device, depth estimating method, and depth estimate program
JP2012079251A (en) * 2010-10-06 2012-04-19 Konica Minolta Holdings Inc Image processing apparatus and image processing system
JP2013092885A (en) * 2011-10-25 2013-05-16 Nippon Telegr & Teleph Corp <Ntt> Image processing device, method and program
JP2013114477A (en) * 2011-11-29 2013-06-10 Konica Minolta Inc Image processing device, image processing method and image processing program
JP2014106543A (en) * 2012-11-22 2014-06-09 Canon Inc Image processor, image processing method and program
JP2014215840A (en) * 2013-04-25 2014-11-17 富士通株式会社 Image processing circuit, image processor, and image processing method
WO2016067541A1 (en) * 2014-10-27 2016-05-06 Canon Kabushiki Kaisha Data processing apparatus, imaging apparatus and data processing method
JPWO2017145945A1 (en) * 2016-02-25 2018-11-29 京セラ株式会社 Stereo camera device, vehicle, and parallax calculation method
JP2020016628A (en) * 2018-07-27 2020-01-30 日立オートモティブシステムズ株式会社 Distance calculation device
JP2020506484A (en) * 2017-02-07 2020-02-27 コーニンクレッカ フィリップス エヌ ヴェKoninklijke Philips N.V. Method and apparatus for processing image property maps
JP2021033345A (en) * 2019-08-14 2021-03-01 日立オートモティブシステムズ株式会社 Image processing device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5870510B2 (en) * 2010-09-14 2016-03-01 株式会社リコー Stereo camera device, calibration method and program

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2008053649A1 (en) * 2006-11-02 2010-02-25 コニカミノルタホールディングス株式会社 Wide-angle image acquisition method and wide-angle stereo camera device
US8269820B2 (en) 2006-11-02 2012-09-18 Konica Minolta Holdings, Inc. Wide-angle image acquiring method and wide-angle stereo camera device
JP2010165248A (en) * 2009-01-16 2010-07-29 Casio Computer Co Ltd Image processor, image collation method, and program
US8224069B2 (en) 2009-01-16 2012-07-17 Casio Computer Co., Ltd. Image processing apparatus, image matching method, and computer-readable recording medium
JP2010251878A (en) * 2009-04-13 2010-11-04 National Institute Of Information & Communication Technology Depth estimating device, depth estimating method, and depth estimate program
JP2012079251A (en) * 2010-10-06 2012-04-19 Konica Minolta Holdings Inc Image processing apparatus and image processing system
JP2013092885A (en) * 2011-10-25 2013-05-16 Nippon Telegr & Teleph Corp <Ntt> Image processing device, method and program
JP2013114477A (en) * 2011-11-29 2013-06-10 Konica Minolta Inc Image processing device, image processing method and image processing program
JP2014106543A (en) * 2012-11-22 2014-06-09 Canon Inc Image processor, image processing method and program
JP2014215840A (en) * 2013-04-25 2014-11-17 富士通株式会社 Image processing circuit, image processor, and image processing method
CN107077725A (en) * 2014-10-27 2017-08-18 佳能株式会社 Data processing equipment, imaging device and data processing method
US11044453B2 (en) 2014-10-27 2021-06-22 Canon Kabushiki Kaisha Data processing apparatus, imaging apparatus and data processing method
WO2016067541A1 (en) * 2014-10-27 2016-05-06 Canon Kabushiki Kaisha Data processing apparatus, imaging apparatus and data processing method
JP2016085637A (en) * 2014-10-27 2016-05-19 キヤノン株式会社 Data processor, imaging device, and data processing method
US10547824B2 (en) 2014-10-27 2020-01-28 Canon Kabushiki Kaisha Data processing apparatus, imaging apparatus and data processing method
JPWO2017145945A1 (en) * 2016-02-25 2018-11-29 京セラ株式会社 Stereo camera device, vehicle, and parallax calculation method
US11703326B2 (en) 2016-02-25 2023-07-18 Kyocera Corporation Stereo camera apparatus, vehicle, and parallax calculation method
JP2020506484A (en) * 2017-02-07 2020-02-27 コーニンクレッカ フィリップス エヌ ヴェKoninklijke Philips N.V. Method and apparatus for processing image property maps
JP6998388B2 (en) 2017-02-07 2022-01-18 コーニンクレッカ フィリップス エヌ ヴェ Methods and equipment for processing image property maps
JP2020016628A (en) * 2018-07-27 2020-01-30 日立オートモティブシステムズ株式会社 Distance calculation device
WO2020022021A1 (en) * 2018-07-27 2020-01-30 日立オートモティブシステムズ株式会社 Distance calculation device
CN112513571A (en) * 2018-07-27 2021-03-16 日立汽车系统株式会社 Distance calculating device
JP7042185B2 (en) 2018-07-27 2022-03-25 日立Astemo株式会社 Distance calculation device
CN112513571B (en) * 2018-07-27 2023-08-25 日立安斯泰莫株式会社 Distance calculating device
JP2021033345A (en) * 2019-08-14 2021-03-01 日立オートモティブシステムズ株式会社 Image processing device
JP7269130B2 (en) 2019-08-14 2023-05-08 日立Astemo株式会社 Image processing device

Also Published As

Publication number Publication date
JP4296617B2 (en) 2009-07-15

Similar Documents

Publication Publication Date Title
US8401274B2 (en) Image processing apparatus and method
US11830216B2 (en) Information processing apparatus, information processing method, and storage medium
US7471809B2 (en) Method, apparatus, and program for processing stereo image
US10659762B2 (en) Stereo camera
CN109640066B (en) Method and device for generating high-precision dense depth image
CN104685513A (en) Feature based high resolution motion estimation from low resolution images captured using an array source
WO2007052191A2 (en) Filling in depth results
JP2000121319A (en) Image processor, image processing method and supply medium
US11928805B2 (en) Information processing apparatus, information processing method, and storage medium for defect inspection and detection
US6519358B1 (en) Parallax calculating apparatus, distance calculating apparatus, methods of the same, and information providing media
JP2016024052A (en) Three-dimensional measurement system, three-dimensional measurement method and program
JPH10122838A (en) Method and device for three-dimensional structure estimation
JP2001194126A (en) Apparatus and method for measuring three-dimensional shape and program providing medium
JPH10240934A (en) Object extractor
JP2005250994A (en) Stereo image processor
US9380285B2 (en) Stereo image processing method, stereo image processing device and display device
US20230419524A1 (en) Apparatus and method for processing a depth map
CN109565544B (en) Position designating device and position designating method
JP2961140B2 (en) Image processing method
JPH10289315A (en) Parallax calculation device and method, and distance calculation device and method
JP2016081088A (en) Image processing device, and image processing method and program
JP4351090B2 (en) Image processing apparatus and image processing method
KR101804157B1 (en) Disparity map generating method based on enhanced semi global matching
JPH10320560A (en) Image measuring instrument
EP3001141B1 (en) Information processing system and information processing method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051012

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090204

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090324

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090406

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

Free format text: PAYMENT UNTIL: 20120424

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees