JP2009294733A - Image processor and image processing method - Google Patents
Image processor and image processing method Download PDFInfo
- Publication number
- JP2009294733A JP2009294733A JP2008145290A JP2008145290A JP2009294733A JP 2009294733 A JP2009294733 A JP 2009294733A JP 2008145290 A JP2008145290 A JP 2008145290A JP 2008145290 A JP2008145290 A JP 2008145290A JP 2009294733 A JP2009294733 A JP 2009294733A
- Authority
- JP
- Japan
- Prior art keywords
- corresponding point
- image
- point search
- resolution
- processing
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000012545 processing Methods 0.000 claims abstract description 306
- 238000000034 method Methods 0.000 claims description 98
- 238000004364 calculation method Methods 0.000 claims description 41
- 230000015654 memory Effects 0.000 description 27
- 238000010586 diagram Methods 0.000 description 14
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000013459 approach Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
本発明は、ステレオ画像処理または時系列画像処理を行う画像処理装置および画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method for performing stereo image processing or time-series image processing.
特許文献1は、1対のカメラにより物体を撮像し、その画像間のずれ量(視差)によりカメラから物体までの距離分布を高速に算出する相関演算方法として基本的なステレオマッチング方法を開示する。すなわち、1対の撮像装置で物体を撮像し、多重解像度画像生成部でその画像をピラミッド構造の多重解像度画像にし、次いで、演算量を削減するため空間フィルタによって各層の画像をエッジ画像化し、次いで、相関演算部によって、各層間でステレオ照合を行い、この時、先ず低解像度画像である上層の画像間でそれを行い概略の視差を求める。また、その視差より次層のステレオ照合に対する照合領域と探索領域を設定する。これを繰り返すことにより、最終層までステレオ照合を短時間で終了させる(要約参照)。
特許文献1では、すべてのピラミッド階層でステレオ演算をするか、または途中のピラミッド階層で低信頼度であると、それ以上の階層では演算を行わないようにしている。このように基本的にすべてのピラミッド階層でステレオマッチングの演算を行うので、演算量が増えてしまう。このため、演算処理時間が長くなったり回路構成が大規模になってしまい、装置コストの増大につながってしまう。
In
本発明は、上述のような従来技術の問題に鑑み、演算量を減らすことができるとともに、信頼性の高いデータが得られかつ精度も高い画像処理装置および画像処理方法を提供することを目的とする。 An object of the present invention is to provide an image processing apparatus and an image processing method that can reduce the amount of calculation, obtain highly reliable data, and have high accuracy in view of the problems of the conventional technology as described above. To do.
上記目的を達成するための本実施形態の画像処理装置について図1〜図10を参照して説明する。 The image processing apparatus of this embodiment for achieving the above object will be described with reference to FIGS.
図1の画像処理装置は、基準画像と参照画像とを入力し取得する画像入力部11と、前記基準画像および前記参照画像の各多重解像度画像を生成する多重解像度画像生成部12と、対応点探索処理を行う画像解像度を選択するともに対応点探索処理を行う基準画像上の各領域に対応する参照画像の探索領域を設定する解像度選択・対応点探索領域設定部13と、前記解像度選択・対応点探索領域設定部13の情報に基づいて前記基準画像と前記参照画像との間の対応点を探索する対応点探索処理部14と、を備えことを特徴とする。前記多重解像度画像を用いてステレオ画像処理または時系列画像処理を行うことができる。また、対応点探索処理結果は出力部15から出力する。
1 includes an
図1の画像処理装置によれば、解像度選択・対応点探索領域設定部13で、対応点探索処理を行う画像解像度を選択し、対応点探索処理を行う基準画像上の各領域に対応する参照画像の探索領域を設定し、これらの画像解像度および探索領域に基づいて対応点探索処理部14で基準画像と参照画像との間の対応点を探索することにより、すべての解像度画像で演算をせずに一段の階層でしか演算をしないことで演算量を減らすことができ、信頼性の高いデータが得られかつ精度も高い。
According to the image processing apparatus of FIG. 1, the resolution selection / corresponding point search
図2の画像処理装置は、図1において、前記解像度選択・対応点探索領域設定部13が、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択する解像度選択部16と、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定部17と、前記解像度選択部16で選択された解像度情報を保持する選択解像度保持部18と、前記対応点探索領域設定部17で設定された領域情報を保持する設定対応点探索領域保持部19と、を備えることを特徴とする。
The image processing apparatus of FIG. 2 is the image resolution in which the resolution selection / corresponding point search
図2の画像処理装置によれば、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択し、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定することにより、一段の階層でしか演算をしないことで演算量を減らすことができ、信頼性の高いデータが得られかつ精度も高い。 According to the image processing apparatus of FIG. 2, the image resolution for performing the corresponding point search process is selected based on one or more corresponding point search process results before the current process, and one or more corresponding points prior to the current process are selected. By setting the search area on the reference image corresponding to each area on the reference image for which the corresponding point search process is performed based on the search process result, the amount of calculation can be reduced by performing the calculation only in one level. Highly reliable data can be obtained and the accuracy is high.
図3の画像処理装置は、図1において、前記解像度選択・対応点探索領域設定部13が、現在の処理より以前の1以上の対応点探索処理結果を保持する対応点探索処理結果保持部20と、前記対応点探索処理結果保持部20の情報に基づいて対応点探索処理を行う画像解像度を選択する解像度選択部21と、前記対応点探索処理結果保持部20の情報に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定部22と、を備えることを特徴とする。
The image processing apparatus of FIG. 3 includes a corresponding point search processing
図3の画像処理装置によれば、現在の処理より以前の1以上の対応点探索処理結果を保持し、その対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択することにより、一段の階層でしか演算をしないことで演算量を減らすことができ、信頼性の高いデータが得られかつ精度も高い。 According to the image processing apparatus of FIG. 3, by holding one or more corresponding point search processing results before the current processing and selecting an image resolution for performing the corresponding point search processing based on the corresponding point search processing results. The calculation amount can be reduced by performing the calculation only in one layer, and highly reliable data can be obtained and the accuracy is high.
図2において前記選択解像度保持部18および前記設定対応点探索領域保持部19は、前記基準画像もしくは前記参照画像の画素数分だけ、または、前記対応点探索処理を行う点数分だけの前記画像解像度情報と前記探索領域情報を保持しておくことを特徴とする。
In FIG. 2, the selected
図3において前記対応点探索処理結果保持部20は、1フレームまたは複数フレームの各フレームの対応点探索処理結果を保持することを特徴とする。
In FIG. 3, the corresponding point search processing
図4,図5の画像処理装置は、図2,図3において前記解像度選択部16,21は、n番目のフレーム以前の1以上のフレームにおける所定値を演算する所定値演算部25を備え、前記所定値を用いて(n+1)番目のフレームの画像解像度を選択することを特徴とする。
4 and 5, the
図2〜図5において前記解像度選択部16,21は、前記画像解像度の選択をフレーム毎に行うことを特徴とする。この具体例について図6のフローチャートによりnフレーム(n:2以上の整数)目の処理で説明する。nフレーム目の選択解像度を、図2,図4の選択解像度保持部18(または、図2〜図5の解像度選択部16,21)から取得する(S01)。i=0とし(S02)、i番目の対応点探索領域を、図2,図4の対応点探索領域保持部19(または、図2〜図5の対応点探索領域設定部17,22)から取得する(S03)。次に、図2〜図5の対応点探索処理部14で対応点探索処理を行う(S04)。次に、i=i+1とし(S05)、iが所定の処理点数に達しなければ(S06)、ステップS03に戻り、次の対応点探索領域を取得し対応点探索処理を行う。iが所定の処理点数に達すると(S06)、nフレーム目の処理が完了する。
2 to 5, the
図2〜図5において前記解像度選択部16,21は、前記画像解像度の選択を画素毎または対応点を演算する点毎に行うことを特徴とする。この具体例について図7のフローチャートによりnフレーム(n:2以上の整数)目の処理で説明する。i=0とし(S11)、i番目の画素の選択解像度を、図2,図4の選択解像度保持部18(または、図2〜図5の解像度選択部16,21)から取得する(S12)。i番目の画素の対応点探索領域を、図2,図4の対応点探索領域保持部19(または、図2〜図5の対応点探索領域設定部17,22)から取得する(S13)。次に、図2〜図5の対応点探索処理部14で対応点探索処理を行う(S14)。次に、i=i+1とし(S15)、iが所定の処理点数に達しなければ(S16)、ステップS12に戻り、次の画素の選択解像度および対応点探索領域を取得し対応点探索処理を行う。iが所定の処理点数に達すると(S16)、nフレーム目の処理が完了する。
2 to 5, the
図4,図5の前記所定値演算部25は、前記対応点探索処理の処理結果における信頼度を所定値とすることを特徴とする。この具体例について図8のフローチャートによりnフレーム(n:2以上の整数)目の処理で説明する。まず、i=0とし(S21)、(n−1)フレーム目のi番目の対応点探索処理結果を、図5の対応点探索処理結果保持部20(または、図4,図5の対応点探索処理部14)から取得する(S22)。その対応点探索処理結果の信頼度が閾値以上であるか否かを判断し(S23)、閾値以上である(高信頼度)場合には、図4,図5の解像度選択部16,21で、(n−1)フレーム目よりも1段だけ高解像度の画像を選択する(S24)。ただし、(n−1)フレーム目の解像度が最高解像度の場合は最高解像度を選択する。次に、図4,図5の対応点探索領域設定部17,22で、(n−1)フレーム目の対応点探索処理結果からnフレーム目の参照画像の推定点にウィンドウを設定する(S25)。
The predetermined
上記ステップS23で、対応点探索処理結果の信頼度が閾値未満である(低信頼度)場合には、図4,図5の解像度選択部16,21で最低解像度を選択する(S26)。次に、図4,図5の対応点探索領域設定部17,22でウィンドウを基準画像と同一座標に設定する(S27)。
If the reliability of the corresponding point search processing result is less than the threshold value (low reliability) in step S23, the minimum resolution is selected by the
次に、図4,図5の対応点探索処理部14で基準画像のウィンドウに対応する参照画像のウィンドウ位置について対応点探索処理を行う(S28)。次に、図4,図5の対応点探索処理部14または対応点探索処理結果保持部20で対応点探索処理結果を保持する(S29)。次に、i=i+1とし(S30)、iが所定の処理点数に達しなければ(S31)、ステップS22に戻る。iが所定の処理点数に達すると(S31)、nフレーム目の処理が完了する。
Next, the corresponding point
また、図4,図5の前記所定値演算部25は、対応点探索処理における距離値を所定値とすることを特徴とする。この具体例について図9のフローチャートによりnフレーム(n:2以上の整数)目の処理で説明する。まず、i=0とし(S41)、(n−1)フレーム目のi番目の対応点探索処理結果を、図5の対応点探索処理結果保持部20(または、図4,図5の対応点探索処理部14)から取得する(S42)。その対応点探索処理の対応点探索処理結果を距離値に変換し(S43)、その距離値を三段階に判断する(S44)。
4 and 5 is characterized in that the distance value in the corresponding point search process is set to a predetermined value. A specific example of this will be described with reference to the flowchart of FIG. First, i = 0 is set (S41), and the i-th corresponding point search processing result of the (n-1) th frame is set as the corresponding point search processing
すなわち、遠距離の場合は、図4,図5の解像度選択部16,21で高解像度を選択する(S45)。中距離の場合は、解像度選択部16,21で中解像度を選択する(S46)。近距離の場合は、解像度選択部16,21で低解像度を選択する(S47)。
That is, in the case of a long distance, a high resolution is selected by the
次に、図4,図5の対応点探索領域設定部17,22で、(n−1)フレーム目の対応点探索処理結果からnフレーム目の参照画像の推定点にウィンドウを設定する(S48)。次に、図4,図5の対応点探索処理部14で基準画像のウィンドウ位置に対応する参照画像のウィンドウ位置について対応点探索処理を行う(S49)。次に、図4,図5の対応点探索処理部14または対応点探索処理結果保持部20で対応点探索処理結果を保持する(S50)。次に、i=i+1とし(S51)、iが所定の処理点数に達しなければ(S52)、ステップS42に戻る。iが所定の処理点数に達すると(S52)、nフレーム目の処理が完了する。
Next, the corresponding point search
また、図4,図5の前記所定値演算部25は、時系列処理における移動量または速度を所定値とすることを特徴とする。この具体例について図10のフローチャートによりnフレーム(n:2以上の整数)目の処理で説明する。まず、i=0とし(S61)、(n−1)フレーム目のi番目の対応点探索処理結果を、図5の対応点探索処理結果保持部20(または、図4,図5の対応点探索処理部14)から取得する(S62)。その時系列処理の対応点探索処理結果を移動量に変換し(S63)、その移動量を三段階に判断する(S64)。
4 and 5 is characterized in that the movement amount or speed in the time series processing is set to a predetermined value. A specific example of this will be described with reference to the flowchart of FIG. First, i = 0 is set (S61), and the i-th corresponding point search processing result of the (n-1) th frame is converted into the corresponding point search
すなわち、移動量が小の場合は、図4,図5の解像度選択部16,21で高解像度を選択する(S65)。移動量が中の場合は、解像度選択部16,21で中解像度を選択する(S66)。移動量が大の場合は、解像度選択部16,21で低解像度を選択する(S67)。
That is, when the movement amount is small, a high resolution is selected by the
次に、図4,図5の対応点探索領域設定部17,22で、(n−1)フレーム目の対応点探索処理結果からnフレーム目の参照画像の推定点にウィンドウを設定する(S68)。次に、図4,図5の対応点探索処理部14で基準画像のウィンドウに対応する参照画像のウィンドウ位置について対応点探索処理を行う(S69)。次に、図4,図5の対応点探索処理部14または対応点探索処理結果保持部20で対応点探索処理結果を保持する(S70)。次に、i=i+1とし(S71)、iが所定の処理点数に達しなければ(S72)、ステップS62に戻る。iが所定の処理点数に達すると(S72)、nフレーム目の処理が完了する。
Next, the corresponding point search
本実施形態の画像処理方法は、基準画像と参照画像とを入力し取得するステップと、前記基準画像および前記参照画像の各多重解像度画像を生成する多重解像度画像生成ステップと、対応点探索処理を行う画像解像度を選択するともに対応点探索処理を行う基準画像上の各領域に対応する参照画像の探索領域を設定する解像度選択・対応点探索領域設定ステップと、前記解像度選択・対応点探索領域設定ステップの情報に基づいて前記基準画像と前記参照画像との間の対応点を探索する対応点探索処理ステップと、を含むことを特徴とする。 The image processing method of the present embodiment includes a step of inputting and acquiring a base image and a reference image, a multi-resolution image generation step of generating multi-resolution images of the base image and the reference image, and corresponding point search processing. A resolution selection / corresponding point search region setting step for selecting a reference image search region corresponding to each region on the reference image for selecting the image resolution to be performed and performing corresponding point search processing, and the resolution selection / corresponding point search region setting A corresponding point search processing step of searching for a corresponding point between the reference image and the reference image based on step information.
この画像処理方法によれば、対応点探索処理を行う画像解像度を選択し、対応点探索処理を行う基準画像上の各領域に対応する参照画像の探索領域を設定し、これらの画像解像度および探索領域に基づいて基準画像と参照画像との間の対応点を探索することにより、すべての解像度画像で演算をせずに一段の階層でしか演算をしないことで演算量を減らすことができ、信頼性の高いデータが得られかつ精度も高い。また、前記多重解像度画像を用いてステレオ画像処理または時系列画像処理を行うことができる。 According to this image processing method, the image resolution for performing the corresponding point search process is selected, the search area of the reference image corresponding to each area on the reference image for performing the corresponding point search process is set, and the image resolution and the search are set. By searching for corresponding points between the base image and the reference image based on the region, it is possible to reduce the amount of computation by performing computation only in one level without performing computation on all resolution images. Highly accurate data can be obtained and accuracy is high. In addition, stereo image processing or time-series image processing can be performed using the multi-resolution image.
前記解像度選択・対応点探索領域設定ステップは、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択する解像度選択ステップと、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定ステップと、前記解像度選択ステップで選択された解像度情報を保持する選択解像度保持ステップと、前記対応点探索領域設定ステップで設定された領域情報を保持する設定対応点探索領域保持ステップと、を含むことを特徴とする。 The resolution selection / corresponding point search region setting step includes a resolution selection step of selecting an image resolution for performing corresponding point search processing based on one or more corresponding point search processing results prior to the current processing, and prior to the current processing. A corresponding point search region setting step for setting a search region on the reference image corresponding to each region on the reference image on which the corresponding point search processing is performed based on one or more corresponding point search processing results, and the resolution selection step. A selected resolution holding step for holding the resolution information, and a set corresponding point search region holding step for holding the region information set in the corresponding point search region setting step.
上述のように、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択し、現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定することにより、一段の階層でしか演算をしないことで演算量を減らすことができ、信頼性の高いデータが得られかつ精度も高い。 As described above, the image resolution for performing the corresponding point search process is selected based on one or more corresponding point search process results prior to the current process, and based on the one or more corresponding point search process results prior to the current process. By setting a search area on the reference image corresponding to each area on the reference image for which the corresponding point search processing is performed, it is possible to reduce the amount of calculation by performing the calculation only at one level, and the reliability is high Data is obtained and accuracy is high.
また、前記解像度選択・対応点探索領域設定ステップは、現在の処理より以前の1以上の対応点探索処理結果を保持する対応点探索処理結果保持ステップと、前記対応点探索処理結果保持ステップの情報に基づいて対応点探索処理を行う画像解像度を選択する解像度選択ステップと、前記対応点探索処理結果保持ステップの情報に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定ステップと、を含むことを特徴とする。 The resolution selection / corresponding point search region setting step includes information on a corresponding point search processing result holding step for holding one or more corresponding point search processing results before the current processing, and the corresponding point search processing result holding step. On the reference image corresponding to each area on the reference image on which the corresponding point search processing is performed based on the information of the resolution selection step for selecting the image resolution for performing the corresponding point search processing based on the information and the corresponding point search processing result holding step And a corresponding point search area setting step for setting the search area.
上述のように、現在の処理より以前の1以上の対応点探索処理結果を保持し、その対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択することにより、一段の階層でしか演算をしないことで演算量を減らすことができ、信頼性の高いデータが得られかつ精度も高い。 As described above, one or more corresponding point search processing results prior to the current processing are held, and by selecting an image resolution for performing the corresponding point search processing based on the corresponding point search processing results, it is possible to achieve a one-level hierarchy. However, the amount of calculation can be reduced by performing only the calculation, and highly reliable data can be obtained and the accuracy is high.
また、前記選択解像度保持ステップおよび前記設定対応点探索領域保持ステップでは、前記基準画像もしくは前記参照画像の画素数分だけ、または、前記対応点探索処理を行う点数分だけの前記画像解像度情報と前記探索領域情報を保持しておくことを特徴とする。 In the selection resolution holding step and the set corresponding point search area holding step, the image resolution information and the number of pixels corresponding to the number of pixels of the reference image or the reference image, or the number of points for which the corresponding point search processing is performed, and the The search area information is retained.
また、前記対応点探索処理結果保持ステップでは、各フレームの対応点探索処理結果を保持することを特徴とする。 In the corresponding point search processing result holding step, the corresponding point search processing result of each frame is held.
また、前記解像度選択ステップは、n番目のフレーム以前の1以上のフレームにおける所定値を演算する所定値演算ステップを含み、前記所定値を用いて(n+1)番目のフレームの画像解像度を選択することを特徴とする。 The resolution selecting step includes a predetermined value calculating step of calculating a predetermined value in one or more frames before the nth frame, and selecting the image resolution of the (n + 1) th frame using the predetermined value. It is characterized by.
また、前記解像度選択ステップでは、前記画像解像度の選択をフレーム毎に行うことを特徴とする。具体例は図6のとおりである。 In the resolution selection step, the image resolution is selected for each frame. A specific example is shown in FIG.
また、前記解像度選択ステップでは、前記画像解像度の選択を画素毎または対応点を演算する点毎に行うことを特徴とする。具体例は図7のとおりである。 In the resolution selection step, the image resolution is selected for each pixel or each point for calculating a corresponding point. A specific example is as shown in FIG.
また、前記所定値演算ステップでは、前記対応点探索処理の処理結果における信頼度を所定値とすることを特徴とする。具体例は図8のとおりである。 In the predetermined value calculating step, the reliability in the processing result of the corresponding point search process is set to a predetermined value. A specific example is shown in FIG.
また、前記所定値演算ステップでは、対応点探索処理における距離値を所定値とすることを特徴とする。具体例は図9のとおりである。 In the predetermined value calculating step, the distance value in the corresponding point search process is set to a predetermined value. A specific example is as shown in FIG.
また、前記所定値演算ステップでは、時系列処理における移動量または速度を所定値とすることを特徴とする。具体例は図10のとおりである。 In the predetermined value calculating step, the movement amount or speed in the time series processing is set to a predetermined value. A specific example is as shown in FIG.
上述の画像処理方法は、図1〜図5の画像処理装置により実行することができる。 The above-described image processing method can be executed by the image processing apparatus shown in FIGS.
本発明の画像処理装置および画像処理方法によれば、例えばステレオ画像処理または時系列画像処理などを行う際の演算量を減らすことができるとともに、信頼性の高いデータが得られかつ精度も高くなる。 According to the image processing apparatus and the image processing method of the present invention, it is possible to reduce the amount of calculation when performing, for example, stereo image processing or time-series image processing, and to obtain highly reliable data and to improve accuracy. .
以下、本発明を実施するための最良の形態について図面を用いて説明する。 The best mode for carrying out the present invention will be described below with reference to the drawings.
まず、図11により本実施の形態による画像処理装置の基本的動作を説明する。図11は本実施の形態による画像処理装置の基本的な動作例(処理結果を次フレームに用いる)を説明するための概念図である。 First, the basic operation of the image processing apparatus according to the present embodiment will be described with reference to FIG. FIG. 11 is a conceptual diagram for explaining a basic operation example (using the processing result for the next frame) of the image processing apparatus according to the present embodiment.
本実施の形態による画像処理装置は、対応点探索処理や時系列処理を行うための、ピラミッド画像を使用した対応点探索処理において、n番目(n:1以上の整数)のフレームにおける所定値を用いて、(n+1)番目のフレームの画像解像度を選択するようにしたものである。この画像解像度の選択は、フレーム毎に行うこともできるし、画素毎(対応点を演算する点毎)に行うこともできる。ここで、所定値とは、例えば、処理結果の信頼度、対応点探索処理における距離値、または、時系列処理における移動量(速度)である。 The image processing apparatus according to the present embodiment uses a predetermined value in an nth (n: integer greater than or equal to 1) frame in corresponding point search processing using a pyramid image for performing corresponding point search processing and time series processing. And the image resolution of the (n + 1) th frame is selected. The selection of the image resolution can be performed for each frame or for each pixel (for each point at which the corresponding point is calculated). Here, the predetermined value is, for example, the reliability of the processing result, the distance value in the corresponding point search process, or the movement amount (speed) in the time series process.
図11のように、処理結果の信頼度を所定値とする場合、n(n:1以上の整数)フレームにおいて基準画像と参照画像の対応点探索処理結果が高信頼度であると、次の(n+1)フレームの画像解像度を上げる。(n+1)フレームにおける処理結果が高信頼度であると、次の(n+2)フレームの画像解像度を上げる。(n+2)フレームにおける処理結果が低信頼度であると、次の(n+3)フレームでは対応点探索処理に使用する解像度を例えば、最低解像度とする。 As shown in FIG. 11, when the reliability of the processing result is set to a predetermined value, if the corresponding point search processing result of the base image and the reference image is high in n (n: an integer of 1 or more) frames, Increase the image resolution of (n + 1) frames. If the processing result in the (n + 1) frame is highly reliable, the image resolution of the next (n + 2) frame is increased. If the processing result in the (n + 2) frame is low in reliability, the resolution used for the corresponding point search process in the next (n + 3) frame is set to the lowest resolution, for example.
図11において、対応点探索のためのウィンドウは前フレームの結果から推定して設定するが、この場合の対応点の推定およびウィンドウ(探索範囲)の設定について説明する。 In FIG. 11, the window for searching for corresponding points is estimated and set from the result of the previous frame. The estimation of corresponding points and setting of the window (search range) in this case will be described.
まず、前フレームの対応点探索結果、または、それ以前のフレームの対応点探索結果から、現フレームの対応点を推定する。以下の(1)〜(9)の方法から選択できる。 First, the corresponding point of the current frame is estimated from the corresponding point search result of the previous frame or the corresponding point search result of the previous frame. It can be selected from the following methods (1) to (9).
(1)前フレームの対応点探索結果を、現フレームで対応点探索処理をする解像度に対応させて、その点を推定点とする。 (1) The corresponding point search result of the previous frame is made to correspond to the resolution at which the corresponding point search process is performed in the current frame, and that point is used as the estimated point.
(2)現フレーム以前のフレーム結果の平均値を、現フレームで対応点探索処理をする解像度に対応させて、その点を推定点とする。 (2) The average value of the frame results before the current frame is made to correspond to the resolution at which the corresponding point search process is performed in the current frame, and that point is used as the estimated point.
(3)現フレーム以前のフレーム結果の重み付け平均値を、現フレームで対応点探索処理をする解像度に対応させて、その点を推定点とする。その場合に新しいフレームに重み付けする。 (3) The weighted average value of the frame results before the current frame is made to correspond to the resolution at which the corresponding point search process is performed in the current frame, and that point is used as the estimated point. In that case, the new frame is weighted.
(4)現フレーム以前のフレーム結果の重み付け平均値を、現フレームで対応点探索処理をする解像度に対応させて、その点を推定点とする。その場合に結果の解像度に応じて重み付けする。 (4) The weighted average value of the frame results before the current frame is made to correspond to the resolution at which the corresponding point search process is performed in the current frame, and that point is used as the estimated point. In that case, weighting is performed according to the resolution of the result.
(5)現フレーム以前の信頼度の高いフレーム結果を、現フレームで対応点探索処理をする解像度に対応させて、その点を推定点とする。 (5) A frame result with high reliability before the current frame is made to correspond to the resolution at which the corresponding point search process is performed in the current frame, and that point is used as an estimated point.
(6)現フレーム以前の信頼度の高いフレームの平均値を、現フレームで対応点探索処理をする解像度に対応させて、その点を推定点とする。 (6) The average value of frames with high reliability before the current frame is made to correspond to the resolution for the corresponding point search process in the current frame, and that point is used as the estimated point.
(7)現フレーム以前の信頼度の高いフレームの重み付け平均値を、現フレームで対応点探索処理をする解像度に対応させて、その点を推定点とする。その場合に高信頼度フレームに重み付けする。 (7) The weighted average value of the highly reliable frame before the current frame is made to correspond to the resolution for the corresponding point search process in the current frame, and that point is used as the estimated point. In that case, the high reliability frame is weighted.
(8)オプティカルフローで移動していなければ、現フレーム以前の複数フレームを使用して推定する。 (8) If it is not moving in the optical flow, the estimation is performed using a plurality of frames before the current frame.
(9)オプティカルフローで移動していなければ、前フレームの移動量から推定する。 (9) If it is not moving in the optical flow, it is estimated from the movement amount of the previous frame.
次に、推定された対応点に対して探索範囲(ウィンドウ)を設定する。すなわち、推定点の信頼度によって、ウィンドウを設定するピラミッド画像の解像度を変えて、その解像度で画像の対応点探索処理を行う。以下の(10)〜(14)の方法から選択できる。 Next, a search range (window) is set for the estimated corresponding points. That is, the resolution of the pyramid image for setting the window is changed according to the reliability of the estimated point, and the corresponding point search process of the image is performed at the resolution. It can be selected from the following methods (10) to (14).
(10)推定点の信頼度が閾値以上(高信頼度)であれば、前フレームよりも高解像度で対応点探索処理を行う。推定点の信頼度が閾値以下(低信頼度)であれば、前フレームよりも低解像度で対応点探索処理を行う。 (10) If the reliability of the estimated point is equal to or higher than the threshold (high reliability), the corresponding point search process is performed at a higher resolution than the previous frame. If the reliability of the estimated point is equal to or less than the threshold (low reliability), the corresponding point search process is performed at a lower resolution than the previous frame.
(11)推定点の信頼度が閾値以上(高信頼度)であれば、前フレームよりも高解像度で対応点探索処理を行う。推定点の信頼度が閾値以下(低信頼度)であれば、最低解像度で対応点探索処理を行う(図11参照)。 (11) If the reliability of the estimated point is equal to or higher than the threshold (high reliability), the corresponding point search process is performed at a higher resolution than the previous frame. If the reliability of the estimated point is equal to or lower than the threshold (low reliability), the corresponding point search process is performed with the lowest resolution (see FIG. 11).
(12)推定点が高信頼度であれば、前フレームよりも高解像度で対応点探索処理を行う。推定点が中信頼度であれば、前フレームよりも低解像度で対応点探索処理を行う。推定点が低信頼度であれば、最低解像度で対応点探索処理を行う。 (12) If the estimated point is highly reliable, the corresponding point search process is performed at a higher resolution than the previous frame. If the estimated point is medium reliability, corresponding point search processing is performed at a lower resolution than the previous frame. If the estimated point is low in reliability, the corresponding point search process is performed with the lowest resolution.
(13)推定点が高信頼度もしくは中信頼度であれば、前フレームよりも高解像度で対応点探索処理を行う。ただし、高信頼度のほうがより解像度を上げられる。推定点が低信頼度であれば、前フレームよりも低解像度で対応点探索処理を行う。 (13) If the estimated point is high reliability or medium reliability, the corresponding point search process is performed at a higher resolution than the previous frame. However, the higher the reliability, the higher the resolution. If the estimated point is low in reliability, the corresponding point search process is performed at a lower resolution than the previous frame.
(14)推定点が高信頼度もしくは中信頼度であれば、前フレームよりも高解像度で対応点探索処理を行う。ただし、高信頼度のほうがより解像度を上げられる。推定点が低信頼度であれば、最低解像度で対応点探索処理を行う。 (14) If the estimated point is high reliability or medium reliability, the corresponding point search process is performed at a higher resolution than the previous frame. However, the higher the reliability, the higher the resolution. If the estimated point is low in reliability, the corresponding point search process is performed with the lowest resolution.
また、本実施の形態による画像処理装置では、解像度と探索領域情報または対応点探索処理結果を以下の(15)〜(17)のような手段(ハードウエア)で保持することができる。 In the image processing apparatus according to the present embodiment, the resolution and the search area information or the corresponding point search processing result can be held by means (hardware) such as the following (15) to (17).
(15)次フレームで処理する「解像度と探索領域情報」を処理点数分だけメモリに保持する構成のハードウェア。 (15) Hardware configured to hold “resolution and search area information” to be processed in the next frame in the memory for the number of processing points.
(16)現フレームの対応点探索処理結果を処理点数分だけメモリに保持しておき、次フレームでその情報を使用する構成のハードウェア。 (16) Hardware configured to store the corresponding point search processing results of the current frame in the memory for the number of processing points and use the information in the next frame.
(17)現フレームとそれ以前のフレームの対応点探索処理結果を処理点数分だけメモリに保持しておき、次フレームでその情報を使用する構成のハードウェア。 (17) Hardware having a configuration in which the corresponding point search processing results of the current frame and previous frames are stored in the memory for the number of processing points, and the information is used in the next frame.
〈第1例〉
次に、本実施の形態の画像処理装置の第1例について図12〜図16を参照して具体的に説明する。
<First example>
Next, a first example of the image processing apparatus according to the present embodiment will be specifically described with reference to FIGS.
図12は本実施の形態による画像処理装置(第1例)の概略的構成を示す要部ブロック図である。図13は本実施の形態の画像処理装置において用いるピラミッド画像(画像A〜D)を説明するための模式図である。 FIG. 12 is a principal block diagram showing a schematic configuration of the image processing apparatus (first example) according to the present embodiment. FIG. 13 is a schematic diagram for explaining pyramid images (images A to D) used in the image processing apparatus according to the present embodiment.
図12に示す画像処理装置101は、図1,図2に対応した構成を有し、基準画像と参照画像とを入力し取得する画像入力部11と、基準画像および参照画像の各多重解像度画像を生成する多重解像度画像生成部12と、対応点探索処理を行う画像解像度を選択するともに対応点探索処理を行う基準画像上の各領域に対応する参照画像の探索領域を設定する解像度選択・対応点探索領域設定部13と、解像度選択・対応点探索領域設定部13の情報に基づいて基準画像と参照画像との間の対応点を探索する対応点探索処理部14と、対応点探索処理結果を出力する出力部15と、を備える。
An
図12の画像処理装置101は、一対のカメラ(ステレオカメラ)で撮像したステレオ画像を基準画像と参照画像とし、基準画像と参照画像との間の視差(位置ずれ量)に基づいて三角測量の原理により物体の3次元空間における位置を検出する際に、かかる視差を求めるために基準画像と参照画像とを対応点探索処理により対応づける画像処理を行うように構成可能であるが、これに限定されず、基準画像と参照画像とが時系列的な画像であってもよい。
The
図12のように、多重解像度画像生成部12は、画像入力部11からの基準画像と参照画像について解像度変換を行う複数の解像度変換部12a、12b、12cを有し、さらに、各解像度の画像を保持し基準画像と参照画像のフレームバッファのためのRAM等からなる複数のメモリ12d、12e、12f、12gを有する。
As shown in FIG. 12, the multi-resolution
多重解像度画像生成部12では、画像入力部11から入力した画像データからピラミッド構造の多重解像度画像を生成する。例えば、図13の画像サイズが160×120の画像Dの画像データが画像入力部11から入力すると、画像Dの画像データをメモリ12dに保存するとともに、解像度変換部12aで図13の画像サイズが80×60の画像C(画像Dの画像サイズの1/2)に解像度変換し、画像Cの画像データをメモリ12eに保存する。同様にして、解像度変換部12bで図13の画像サイズが40×30の画像B(画像Cの画像サイズの1/2)に解像度変換し、画像Bの画像データをメモリ12fに保存し、次に、解像度変換部12cで図13の画像サイズが20×15の画像A(画像Bの画像サイズの1/2)に解像度変換し、画像Aの画像データをメモリ12gに保存する。
The multi-resolution
対応点探索処理部14は、各メモリ12d〜12gから画像D〜Aの各画像データを読み込み、さらに解像度選択・対応点探索領域設定部13から解像度と対応点探索領域を読み込むことで、基準画像のウィンドウ画像と参照画像上の対応点探索領域のウィンドウ画像とを読み取る読取部14aと、読取部14aからのウィンドウ画像データに基づいて基準画像と参照画像との間の対応点探索処理のために並列演算を行う複数の演算ユニットからなる演算部14bと、を有する。
The corresponding point
演算部14bの各演算ユニットは、例えば、差分絶対値和(Sum of Absolute Difference:SAD)による相関法や位相限定相関法(Phase-Only Correlation:POC)を用いて視差演算のための対応点探索処理を並列的に実行する。演算部14bでの対応点探索処理結果は、出力部15から外部に出力し、また、解像度選択・対応点探索領域設定部13に入力する。
Each calculation unit of the
解像度選択・対応点探索領域設定部13は、対応点探索処理部14での対応点探索処理結果に基づいて解像度と対応点探索領域を計算し、その解像度をRAM等のメモリからなる選択解像度保持部18で保持し、その対応点探索領域をRAM等のメモリからなる対応点探索領域保持部19で保持する。
The resolution selection / corresponding point search
画像処理装置101では対応点探索処理結果の信頼度を所定値とし、解像度選択・対応点探索領域設定部13で対応点探索処理部14での結果に基づいて信頼度を演算する。かかる信頼度について図14を参照して、差分絶対値和(Sum of Absolute Difference:SAD)による相関法で対応点探索処理を行う場合を例にして説明する。
In the
図14はステレオ画像による基準画像(a)および参照画像(b)を模式的に示し、本実施の形態における信頼度の演算式を説明するための図である。 FIG. 14 schematically shows a standard image (a) and a reference image (b) based on a stereo image, and is a diagram for explaining a calculation formula for reliability in the present embodiment.
対応点探索処理部14では、図14(a)のように基準画像Ga内に測距点Waoを設定し、測距点Waoを中心とした、所定サイズ、例えば9×9のウインドウWaを設定する。また、図14(b)のように参照画像Gb内に測距点Wboを設定し、測距点Wboを中心とした、基準画像と同じサイズ9×9のウインドウWbを設定する。基準画像と参照画像の各測距点Wao,Wboの設定座標は同一座標である。ウインドウWa〜Wb間の相関度をSAD法で算出する。SAD法とはウインドウ内の各画素毎の「差の絶対値の和」である。例えば、ウインドウサイズが9×9の場合は81画素における「差の絶対値の和」となり、その値が小さいほど相関度が高い。相関値Rは、差の絶対値の和SADから図14の式(1)により算出される。この相関度Rを信頼度とし、信頼度Rは、相関度が高く(信頼性が高く)なると1に近づき、相関度が低く(信頼性が低い)なると0に近づく。
The corresponding point
解像度選択・対応点探索領域設定部13(図4,図5の所定値演算部25)では、対応点探索処理部14での対応点探索処理結果の上述のSAD値から図14の式(1)により信頼度Rを演算する。
In the resolution selection / corresponding point search area setting unit 13 (predetermined
次に、図12の画像処理装置における1フレーム目の対応点探索処理について図15のフローチャートを参照して説明する。図15は図12の画像処理装置における1フレーム目の対応点探索処理を説明するためのフローチャートである。 Next, the corresponding point search process for the first frame in the image processing apparatus of FIG. 12 will be described with reference to the flowchart of FIG. FIG. 15 is a flowchart for explaining corresponding point search processing for the first frame in the image processing apparatus of FIG.
まず、i=0とし(S101)、対応点探索処理部14において、最低解像度(図13の画像A)を用い(S102)、参照画像のウィンドウを基準画像のウィンドウと同じ座標に設定し、対応点探索処理を行う(S103)。
First, i = 0 is set (S101), and the corresponding point
その対応点探索処理結果を解像度選択・対応点探索領域設定部13の各メモリ18,19に書き込んで保持する(S104)。次に、i=i+1とし(S105)、iが所定の処理点数の19200(1フレームあたり、160×120=19200点の処理をする場合)に達しなければ(S106)、ステップS102に戻る。iが所定の処理点数(19200点)に達すると(S106)、1フレーム目の処理が完了する。
The corresponding point search processing result is written and held in the
次に、図12の画像処理装置におけるn(n:2以上の整数)フレーム目の対応点探索処理について図16のフローチャートを参照して説明する。図16は図12の画像処理装置におけるnフレーム目の対応点探索処理を説明するためのフローチャートである。 Next, the corresponding point search process of the nth (n: integer greater than or equal to 2) frame in the image processing apparatus of FIG. 12 will be described with reference to the flowchart of FIG. FIG. 16 is a flowchart for explaining the corresponding point search process of the nth frame in the image processing apparatus of FIG.
まず、i=0とし(S111)、解像度選択・対応点探索領域設定部13の各メモリ18,19からnフレーム目のi番目の解像度と対応点探索領域を読み込み(S112)、その解像度と対応点探索領域を用いて対応点探索処理部14で対応点探索処理を行う(S113)。
First, i = 0 is set (S111), and the i-th resolution and corresponding point search area of the nth frame are read from each of the
上記ステップS113での対応点探索処理結果から図14のようにして解像度選択・対応点探索領域設定部13で信頼度Rを演算し、その信頼度を所定の閾値と比較して信頼度を判断する(S114)。
As shown in FIG. 14, the resolution selection / corresponding point search
そして、解像度選択・対応点探索領域設定部13において、信頼度が閾値以上であり、高信頼度と判断されると(S114)、nフレーム目よりも一段だけ高解像度の画像を(n+1)フレーム目の画像として選択する(S115)。このとき、nフレーム目の画像サイズが160×120で最高解像度のときは、最高解像度である160×120の画像サイズの画像Dを選択する。また、nフレーム目の対応点探索処理結果から(n+1)フレーム目の対応点探索領域を設定する(S116)。
When the resolution selection / corresponding point search
また、信頼度が閾値未満で低信頼度と判断されると(S114)、最低解像度の画像(20×15の画像サイズの画像A)を選択する(S117)。また、基準画像と同じ座標に参照画像の対応点探索領域を設定する(S118)。 If the reliability is less than the threshold and it is determined that the reliability is low (S114), the lowest resolution image (image A having an image size of 20 × 15) is selected (S117). In addition, a corresponding point search area of the reference image is set at the same coordinates as the standard image (S118).
上述のようにして選択された解像度および設定された対応点探索領域を解像度選択・対応点探索領域設定部13の各メモリ18,19に書き込むことで保持する(S119)。
The resolution selected as described above and the set corresponding point search area are stored in the
次に、i=i+1とし(S120)、iが所定の処理点数の19200点に達しなければ(S121)、ステップS112に戻る。iが所定の処理点数(19200点)に達すると(S121)、nフレーム目の処理が完了する。 Next, i = i + 1 is set (S120), and if i does not reach the predetermined number of processing points of 19,200 (S121), the process returns to step S112. When i reaches a predetermined number of processing points (19200 points) (S121), the processing of the nth frame is completed.
図12の画像処理装置101は、上述のような制御および演算を実行するハードウエアとしての集積素子から構成できるが、上述のような制御および演算を実行するソフトウエアであるプログラムにより動作するCPU(中央演算処理回路)やDSP(デジタルシグナルプロセッサ)やMPU(マイクロプロセッサ)から構成してもよい。
The
図12の画像処理装置101によれば、4段のピラミッド画像からなる多重解像度画像(画像サイズは160×120、最低解像度は20×15)を用いて、nフレーム目の対応点探索処理結果による信頼度が閾値以上であったら、(n+1)フレーム目の対応点探索領域の画像解像度を1段上の高解像度に設定し(最高解像度だったら、最高解像度に設定する)、信頼度が閾値以下だったら、最低解像度に設定することで、すべての解像度の画像で対応点探索のための演算をせずに一段の階層でしか演算をしないことで演算量を減らすことができ、それでいて信頼性の高いデータが得られかつ精度も高い。
According to the
したがって、図12の画像処理装置101をハードウエアである集積素子から構成した場合には、その回路規模を削減することができ、また、プログラムにより動作するCPU(中央演算処理回路)等から構成した場合には、そのプログラムによる処理時間を短縮することができる。
Therefore, when the
〈第2例〉
次に、本実施の形態の画像処理装置の第2例について図17〜図19を参照して説明する。図17は本実施の形態による画像処理装置(第2例)の概略的構成を示す要部ブロック図である。
<Second example>
Next, a second example of the image processing apparatus according to the present embodiment will be described with reference to FIGS. FIG. 17 is a principal block diagram showing a schematic configuration of the image processing apparatus (second example) according to the present embodiment.
図17に示す画像処理装置102は、図1,図3に対応した構成を有する一方、図12と同一の構成部分を有し、同一の構成部分には図12と同じ符号を付してその説明を省略する。
The
図17の画像処理装置102は、図12の画像処理装置101と同様に、一対のカメラ(ステレオカメラ)で撮像したステレオ画像を基準画像と参照画像とし、基準画像と参照画像との間の視差(位置ずれ量)に基づいて三角測量の原理により物体の3次元空間における位置を検出する際に、かかる視差を求めるために基準画像と参照画像とを対応点探索処理により対応づける画像処理を行うように構成可能であるが、これに限定されず、基準画像と参照画像とが時系列的な画像であってもよい。
The
図17の画像処理装置102の解像度選択・対応点探索領域設定部13は、現在の処理より以前の1以上の対応点探索処理結果を保持する対応点探索処理結果保持部20を有し、対応点探索処理結果保持部20の情報に基づいて対応点探索処理を行う画像解像度を選択するとともに、対応点探索処理結果保持部20の情報に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する。
The resolution selection / corresponding point search
対応点探索処理結果保持部20は、図17のように、RAM等からなる複数のバッファメモリ20a,20b,20cを有し、nフレーム目(n:2以上の整数)に対し、バッファメモリ20aは(n−3)フレーム目の対応点探索処理結果および信頼度を保持し、バッファメモリ20bは(n−2)フレーム目の対応点探索処理結果および信頼度を保持し、バッファメモリ20cは(n−1)フレーム目の対応点探索処理結果および信頼度を保持するようになっている。
As shown in FIG. 17, the corresponding point search processing
図17の解像度選択・対応点探索領域設定部13は、3フレーム分の対応点探索処理結果と図14のようにして演算した信頼度とを各バッファメモリ20a〜20cで保持し、各フレームの対応点探索処理結果に対して信頼度で重み付けして対応点探索領域を設定し、また、3フレームの信頼度の総和から解像度を設定するようになっている。
The resolution selection / corresponding point search
次に、図17の画像処理装置における1フレーム目の対応点探索処理について図18のフローチャートを参照して説明する。図18は図17の画像処理装置における1フレーム目の対応点探索処理を説明するためのフローチャートである。 Next, the corresponding point search process for the first frame in the image processing apparatus of FIG. 17 will be described with reference to the flowchart of FIG. FIG. 18 is a flowchart for explaining corresponding point search processing for the first frame in the image processing apparatus of FIG.
まず、i=0とし(S131)、対応点探索処理部14において、最低解像度(図13の画像A)を用い(S132)、参照画像のウィンドウを基準画像のウィンドウと同じ座標に設定し、対応点探索処理を行う(S133)。
First, i = 0 is set (S131), and the corresponding point
その対応点探索処理結果および図14のようにして演算した信頼度を解像度選択・対応点探索領域設定部13のバッファメモリ20aに書き込んで保持する(S134)。次に、i=i+1とし(S135)、iが所定の処理点数の19200(1フレームあたり、160×120=19200点の処理をする場合)に達しなければ(S136)、ステップS132に戻る。iが所定の処理点数(19200点)に達すると(S136)、1フレーム目の処理が完了する。
The corresponding point search processing result and the reliability calculated as shown in FIG. 14 are written and held in the
なお、2,3フレーム目の各対応点探索処理も例えば上述と同様にして行い、対応点探索処理結果および信頼度を各バッファメモリ20b,20cに書き込んで保持する。
The corresponding point search processing for the second and third frames is also performed in the same manner as described above, for example, and the corresponding point search processing result and reliability are written and held in the
次に、図17の画像処理装置におけるn(n:4以上の整数)フレーム目の対応点探索処理について図19のフローチャートを参照して説明する。図19は図17の画像処理装置におけるnフレーム目の対応点探索処理を説明するためのフローチャートである。 Next, the corresponding point search process of the nth (n: integer of 4 or more) frame in the image processing apparatus of FIG. 17 will be described with reference to the flowchart of FIG. FIG. 19 is a flowchart for explaining the corresponding point search process of the nth frame in the image processing apparatus of FIG.
まず、i=0とし(S141)、解像度選択・対応点探索領域設定部13において、各バッファメモリ20a〜20cから(n−1)フレーム目、(n−2)フレーム目、(n−3)フレーム目の各i番目の対応点探索処理結果および信頼度を読み込み(S142)、各信頼度の総和を計算する(S143)。
First, i = 0 is set (S141), and in the resolution selection / corresponding point search
次に、信頼度の総和を所定の閾値と比較して信頼度を判断する(S144)。そして、解像度選択・対応点探索領域設定部13において、信頼度の総和が閾値以上で、高信頼度と判断されると(S144)、(n−1)フレーム目よりも一段だけ高解像度の画像を選択する(S145)。このとき、(n−1)フレーム目の画像サイズが160×120で最高解像度のときは、最高解像度である160×120の画像サイズの画像Dを選択する。
Next, the reliability is judged by comparing the sum of the reliability with a predetermined threshold (S144). When the resolution selection / corresponding point search
次に、(n−1)フレーム目、(n−2)フレーム目、(n−3)フレーム目の各信頼度に基づいて各対応点探索処理結果に重み付けを持たせて平均値を算出し、その平均値を用いてnフレーム目の対応点探索領域を設定する(S146)。 Next, based on the reliability of the (n-1) th frame, the (n-2) th frame, and the (n-3) th frame, each corresponding point search processing result is weighted to calculate an average value. Then, the corresponding point search region of the nth frame is set using the average value (S146).
また、信頼度の総和が閾値未満で低信頼度と判断されると(S144)、最低解像度の画像(20×15の画像サイズの画像A)を選択する(S147)。また、基準画像と同じ座標に参照画像の対応点探索領域を設定する(S148)。 If it is determined that the total reliability is less than the threshold and the reliability is low (S144), the lowest resolution image (image A having an image size of 20 × 15) is selected (S147). In addition, a corresponding point search area of the reference image is set at the same coordinates as the base image (S148).
上述のようにして選択された解像度および設定された対応点探索領域を用いて対応点探索処理部14において対応点探索処理を行う(S149)。その対応点探索処理および演算された信頼度をバッファメモリ20a,20bまたは20cに書き込んで保持する(S150)。
The corresponding point
次に、i=i+1とし(S151)、iが所定の処理点数の19200点に達しなければ(S152)、ステップS142に戻る。iが所定の処理点数(19200点)に達すると(S152)、nフレーム目の処理が完了する。 Next, i = i + 1 is set (S151), and if i does not reach the predetermined number of processing points of 19,200 (S152), the process returns to step S142. When i reaches a predetermined number of processing points (19200 points) (S152), the processing of the nth frame is completed.
図17の画像処理装置102は、上述のような制御および演算を実行するハードウエアとしての集積素子から構成できるが、上述のような制御および演算を実行するソフトウエアであるプログラムにより動作するCPU(中央演算処理回路)やDSP(デジタルシグナルプロセッサ)やMPU(マイクロプロセッサ)から構成してもよい。
The
図17の画像処理装置102によれば、4段のピラミッド画像からなる多重解像度画像(画像サイズは160×120、最低解像度は20×15)を用いて、(n−3),(n−2),(n−1)の3フレーム分の信頼度の総和が閾値以上であったら、nフレーム目の対応点探索領域の画像解像度を1段上の高解像度に設定し(最高解像度だったら、最高解像度に設定する)、信頼度の総和が閾値以下だったら、nフレーム目の解像度を最低解像度に設定することで、すべての解像度の画像で対応点探索のための演算をせずに一段の階層でしか演算をしないことで演算量を減らすことができ、それでいて信頼性の高いデータが得られかつ精度も高い。
According to the
また、3フレーム分の信頼度の総和に基づいて解像度を設定するとともに、各フレームの各信頼度に基づいて各対応点探索処理結果に重み付けを持たせて平均値を算出し、その平均値を用いてnフレーム目の対応点探索領域を設定するので、データの信頼性および精度がいっそう高いものとなる。 In addition, the resolution is set based on the total reliability of the three frames, and the average value is calculated by weighting each corresponding point search processing result based on the reliability of each frame. Since the corresponding point search region for the nth frame is set by using the data, the reliability and accuracy of the data are further increased.
したがって、図17の画像処理装置102をハードウエアである集積素子から構成した場合には、その回路規模を削減することができ、また、プログラムにより動作するCPU(中央演算処理回路)等から構成した場合には、その処理時間を短縮することができる。
Therefore, when the
以上のように本発明を実施するための最良の形態について説明したが、本発明はこれらに限定されるものではなく、本発明の技術的思想の範囲内で各種の変形が可能である。例えば、本実施の形態では、差分絶対値和(SAD)による相関法で対応点探索処理を行う場合を例にし、図14のように信頼度をSAD値から求めたが、本発明ではこれに限定されず、例えば、対応点探索処理を位相限定相関法(POC)で行う場合には、位相限定相関(POC)値を用いて信頼度を得ることができ、この場合のPOC値の算出法については、例えば、本発明者が先に提案した特願2007−149005で説明されている。さらに、SAD法の代わりに、SSD(Sum of Squared Difference)法やNCC(Normalized Cross Correlation)法を用いてもよく、また、POC法の代わりに、フーリエ変換や離散コサイン変換(DCT:Discrete cosine Transform)やウェーブレット変換を用いてもよい。 As described above, the best mode for carrying out the present invention has been described. However, the present invention is not limited to these, and various modifications are possible within the scope of the technical idea of the present invention. For example, in this embodiment, the case where the corresponding point search process is performed by the correlation method using the sum of absolute differences (SAD) is taken as an example, and the reliability is obtained from the SAD value as shown in FIG. For example, when the corresponding point search process is performed by the phase-only correlation method (POC), the reliability can be obtained using the phase-only correlation (POC) value. In this case, the POC value is calculated. Is described in Japanese Patent Application No. 2007-149005 previously proposed by the present inventor. Further, an SSD (Sum of Squared Difference) method or an NCC (Normalized Cross Correlation) method may be used instead of the SAD method, and a Fourier transform or a discrete cosine transform (DCT) is used instead of the POC method. ) Or wavelet transform may be used.
また、画像処理装置101,102は、例えば、ステレオカメラを有する距離計測装置に適用でき、このような距離計測装置は例えば自動車等の車両に搭載可能であるが、本発明はこれに限定されず、基準画像と参照画像との間の位置ずれ量を用いる他の装置にも適用可能であり、例えばカメラの手ぶれ補正処理等に適用できる。
The
11 画像入力部
12 多重解像度画像生成部
12a,12b,12c 解像度変換部
12d〜12g メモリ
13 対応点探索領域設定部
14 対応点探索処理部
14a 読取部
14b 演算部
15 出力部
16 解像度選択部
17 対応点探索領域設定部
18 選択解像度保持部、メモリ
19 設定対応点探索領域保持部、メモリ
20 対応点探索処理結果保持部
20a〜20c バッファメモリ
21 解像度選択部
22 対応点探索領域設定部
25 所定値演算部
101,102 画像処理装置
Ga 基準画像
Gb 参照画像
R 信頼度、相関値
Wa 基準画像に設定したウインドウ
Wb 参照画像に設定したウインドウ
DESCRIPTION OF
Claims (22)
前記基準画像および前記参照画像の各多重解像度画像を生成する多重解像度画像生成手段と、
対応点探索処理を行う画像解像度を選択するともに対応点探索処理を行う基準画像上の各領域に対応する参照画像の探索領域を設定する解像度選択・対応点探索領域設定手段と、
前記解像度選択・対応点探索領域設定手段の情報に基づいて前記基準画像と前記参照画像との間の対応点を探索する対応点探索処理手段と、を備えることを特徴とする画像処理装置。 Image input means for inputting and acquiring a reference image and a reference image;
Multi-resolution image generating means for generating multi-resolution images of the standard image and the reference image;
Resolution selection / corresponding point search area setting means for selecting an image resolution for performing the corresponding point search process and setting a search area for a reference image corresponding to each area on the reference image for performing the corresponding point search process;
An image processing apparatus comprising: corresponding point search processing means for searching for corresponding points between the base image and the reference image based on information of the resolution selection / corresponding point search area setting means.
現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択する解像度選択手段と、
現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定手段と、
前記解像度選択手段で選択された解像度情報を保持する選択解像度保持手段と、
前記対応点探索領域設定手段で設定された領域情報を保持する設定対応点探索領域保持手段と、を備えることを特徴とする請求項1に記載の画像処理装置。 The resolution selection / corresponding point search area setting means includes:
Resolution selection means for selecting an image resolution for performing corresponding point search processing based on one or more corresponding point search processing results prior to the current processing;
Corresponding point search region setting means for setting a search region on the reference image corresponding to each region on the reference image for performing the corresponding point search processing based on one or more corresponding point search processing results prior to the current processing;
Selection resolution holding means for holding resolution information selected by the resolution selection means;
The image processing apparatus according to claim 1, further comprising: a set corresponding point search area holding unit that holds area information set by the corresponding point search area setting unit.
現在の処理より以前の1以上の対応点探索処理結果を保持する対応点探索処理結果保持手段と、
前記対応点探索処理結果保持手段の情報に基づいて対応点探索処理を行う画像解像度を選択する解像度選択手段と、
前記対応点探索処理結果保持手段の情報に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定手段と、を備えることを特徴とする請求項1に記載の画像処理装置。 The resolution selection / corresponding point search area setting means includes:
Corresponding point search processing result holding means for holding one or more corresponding point search processing results before the current processing;
Resolution selection means for selecting an image resolution for performing corresponding point search processing based on information of the corresponding point search processing result holding means;
Corresponding point search area setting means for setting a search area on a reference image corresponding to each area on a reference image for performing corresponding point search processing based on information of the corresponding point search processing result holding means. The image processing apparatus according to claim 1.
前記基準画像もしくは前記参照画像の画素数分だけ、または、前記対応点探索処理を行う点数分だけの前記画像解像度情報と前記探索領域情報を保持しておくことを特徴とする請求項2に記載の画像処理装置。 The selected resolution holding means and the setting corresponding point search area holding means are:
3. The image resolution information and the search area information corresponding to the number of pixels of the reference image or the reference image or the number of points for which the corresponding point search processing is performed are stored. Image processing apparatus.
前記基準画像および前記参照画像の各多重解像度画像を生成する多重解像度画像生成ステップと、
対応点探索処理を行う画像解像度を選択するともに対応点探索処理を行う基準画像上の各領域に対応する参照画像の探索領域を設定する解像度選択・対応点探索領域設定ステップと、
前記解像度選択・対応点探索領域設定ステップの情報に基づいて前記基準画像と前記参照画像との間の対応点を探索する対応点探索処理ステップと、を含むことを特徴とする画像処理方法。 Inputting and acquiring a reference image and a reference image;
A multi-resolution image generating step of generating multi-resolution images of the reference image and the reference image;
A resolution selection / corresponding point search area setting step for selecting an image resolution for performing the corresponding point search process and setting a search area for a reference image corresponding to each area on the reference image for performing the corresponding point search process;
And a corresponding point search processing step of searching for a corresponding point between the reference image and the reference image based on information of the resolution selection / corresponding point search region setting step.
現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う画像解像度を選択する解像度選択ステップと、
現在の処理より以前の1以上の対応点探索処理結果に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定ステップと、
前記解像度選択ステップで選択された解像度情報を保持する選択解像度保持ステップと、
前記対応点探索領域設定ステップで設定された領域情報を保持する設定対応点探索領域保持ステップと、を含むことを特徴とする請求項12に記載の画像処理方法。 The resolution selection / corresponding point search region setting step includes:
A resolution selection step of selecting an image resolution for performing the corresponding point search processing based on one or more corresponding point search processing results before the current processing;
A corresponding point search region setting step for setting a search region on the reference image corresponding to each region on the reference image for performing the corresponding point search processing based on one or more corresponding point search processing results before the current processing;
A selection resolution holding step for holding the resolution information selected in the resolution selection step;
The image processing method according to claim 12, further comprising: a set corresponding point search area holding step for holding area information set in the corresponding point search area setting step.
現在の処理より以前の1以上の対応点探索処理結果を保持する対応点探索処理結果保持ステップと、
前記対応点探索処理結果保持ステップの情報に基づいて対応点探索処理を行う画像解像度を選択する解像度選択ステップと、
前記対応点探索処理結果保持ステップの情報に基づいて対応点探索処理を行う基準画像上の各領域に対応する参照画像上の探索領域を設定する対応点探索領域設定ステップと、を含むことを特徴とする請求項12に記載の画像処理方法。 The resolution selection / corresponding point search region setting step includes:
A corresponding point search process result holding step for holding one or more corresponding point search process results prior to the current process;
A resolution selection step of selecting an image resolution for performing the corresponding point search processing based on the information of the corresponding point search processing result holding step;
A corresponding point search region setting step for setting a search region on the reference image corresponding to each region on the reference image for performing the corresponding point search processing based on the information of the corresponding point search processing result holding step. The image processing method according to claim 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008145290A JP5062531B2 (en) | 2008-06-03 | 2008-06-03 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008145290A JP5062531B2 (en) | 2008-06-03 | 2008-06-03 | Image processing apparatus and image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009294733A true JP2009294733A (en) | 2009-12-17 |
JP5062531B2 JP5062531B2 (en) | 2012-10-31 |
Family
ID=41542908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008145290A Expired - Fee Related JP5062531B2 (en) | 2008-06-03 | 2008-06-03 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5062531B2 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012132167A1 (en) * | 2011-03-31 | 2012-10-04 | 株式会社ソニー・コンピュータエンタテインメント | Information processing system, information processing device, imaging device, and information processing method |
WO2012132168A1 (en) * | 2011-03-31 | 2012-10-04 | 株式会社ソニー・コンピュータエンタテインメント | Information processing device, information processing method, and data structure of location information |
WO2013001885A1 (en) | 2011-06-27 | 2013-01-03 | コニカミノルタホールディングス株式会社 | Image processing device, image processing method, and program |
WO2013001710A1 (en) * | 2011-06-29 | 2013-01-03 | コニカミノルタホールディングス株式会社 | Corresponding-point search apparatus |
JP2013117969A (en) * | 2011-12-01 | 2013-06-13 | Sony Corp | System and method for generating robust depth map utilizing multiple resolution procedure |
US20150287215A1 (en) * | 2012-10-22 | 2015-10-08 | Sony Computer Entertainment Inc. | Image processor and image processing method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001319229A (en) * | 2000-05-10 | 2001-11-16 | Toyota Central Res & Dev Lab Inc | Correlation calculation method for image |
JP2005157924A (en) * | 2003-11-27 | 2005-06-16 | Tech Res & Dev Inst Of Japan Def Agency | Image movement detector |
-
2008
- 2008-06-03 JP JP2008145290A patent/JP5062531B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001319229A (en) * | 2000-05-10 | 2001-11-16 | Toyota Central Res & Dev Lab Inc | Correlation calculation method for image |
JP2005157924A (en) * | 2003-11-27 | 2005-06-16 | Tech Res & Dev Inst Of Japan Def Agency | Image movement detector |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2693394A4 (en) * | 2011-03-31 | 2015-04-01 | Sony Computer Entertainment Inc | Information processing system, information processing device, imaging device, and information processing method |
WO2012132167A1 (en) * | 2011-03-31 | 2012-10-04 | 株式会社ソニー・コンピュータエンタテインメント | Information processing system, information processing device, imaging device, and information processing method |
EP2693394A1 (en) * | 2011-03-31 | 2014-02-05 | Sony Computer Entertainment Inc. | Information processing system, information processing device, imaging device, and information processing method |
TWI462052B (en) * | 2011-03-31 | 2014-11-21 | 新力電腦娛樂股份有限公司 | Information processing system, information processing device, image capturing device and information processing method |
WO2012132168A1 (en) * | 2011-03-31 | 2012-10-04 | 株式会社ソニー・コンピュータエンタテインメント | Information processing device, information processing method, and data structure of location information |
US20140002604A1 (en) * | 2011-03-31 | 2014-01-02 | Akio Ohba | Information processing apparatus, information processing method, and data structure of position information |
CN103430210A (en) * | 2011-03-31 | 2013-12-04 | 索尼电脑娱乐公司 | Information processing system, information processing device, imaging device, and information processing method |
US9710923B2 (en) | 2011-03-31 | 2017-07-18 | Sony Corporation | Information processing system, information processing device, imaging device, and information processing method |
JP2012216946A (en) * | 2011-03-31 | 2012-11-08 | Sony Computer Entertainment Inc | Information processing device, information processing method, and positional information data structure |
JP2012216006A (en) * | 2011-03-31 | 2012-11-08 | Sony Computer Entertainment Inc | Information processing system, information processing device, imaging device, and information processing method |
US9699432B2 (en) * | 2011-03-31 | 2017-07-04 | Sony Corporation | Information processing apparatus, information processing method, and data structure of position information |
WO2013001885A1 (en) | 2011-06-27 | 2013-01-03 | コニカミノルタホールディングス株式会社 | Image processing device, image processing method, and program |
WO2013001710A1 (en) * | 2011-06-29 | 2013-01-03 | コニカミノルタホールディングス株式会社 | Corresponding-point search apparatus |
US9117135B2 (en) | 2011-06-29 | 2015-08-25 | Konica Minolta, Inc. | Corresponding point searching apparatus |
JPWO2013001710A1 (en) * | 2011-06-29 | 2015-02-23 | コニカミノルタ株式会社 | Corresponding point search device |
JP2013117969A (en) * | 2011-12-01 | 2013-06-13 | Sony Corp | System and method for generating robust depth map utilizing multiple resolution procedure |
US20150287215A1 (en) * | 2012-10-22 | 2015-10-08 | Sony Computer Entertainment Inc. | Image processor and image processing method |
US9542755B2 (en) * | 2012-10-22 | 2017-01-10 | Sony Corporation | Image processor and image processing method |
Also Published As
Publication number | Publication date |
---|---|
JP5062531B2 (en) | 2012-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108961327B (en) | Monocular depth estimation method and device, equipment and storage medium thereof | |
US10455152B2 (en) | Panoramic video processing method and device and non-transitory computer-readable medium | |
JP6395506B2 (en) | Image processing apparatus and method, program, and imaging apparatus | |
JP5954668B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
JP5062531B2 (en) | Image processing apparatus and image processing method | |
US9436981B2 (en) | Dictionary creation device, image processing device, image processing system, dictionary creation method, image processing method, and program | |
US9508153B2 (en) | Distance measurement apparatus, imaging apparatus, distance measurement method, and program | |
US9361704B2 (en) | Image processing device, image processing method, image device, electronic equipment, and program | |
JP2005128619A (en) | Object measurement apparatus, object measurement method, and program | |
US8416989B2 (en) | Image processing apparatus, image capture apparatus, image processing method, and program | |
JP4941565B2 (en) | Corresponding point search apparatus and corresponding point searching method | |
CN113711276A (en) | Scale-aware monocular positioning and mapping | |
US9811909B2 (en) | Image processing apparatus, distance measuring apparatus, imaging apparatus, and image processing method | |
JP2006245677A (en) | Image processor, image processing method, and image processing program | |
CN107403440B (en) | Method and apparatus for determining a pose of an object | |
KR20150114950A (en) | Increasing frame rate of an image stream | |
JP4877243B2 (en) | Corresponding point search apparatus and method | |
JP7027776B2 (en) | Movement vector calculation method, device, program, and movement vector calculation method including noise reduction processing. | |
JP4985542B2 (en) | Corresponding point search device | |
JP6614824B2 (en) | Image processing apparatus, image processing system, imaging apparatus, image processing method, and program | |
JP2016164709A (en) | Image processing device, imaging apparatus, and image processing program | |
JP2012181710A (en) | Object tracking device, method and program | |
CN115191928A (en) | Information processing apparatus, information processing method, learning method, and storage medium | |
JP6604783B2 (en) | Image processing apparatus, imaging apparatus, and image processing program | |
JP2010039968A (en) | Object detecting apparatus and detecting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110208 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120223 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120228 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120424 |
|
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: 20120713 |
|
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: 20120726 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5062531 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150817 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |