JP4286565B2 - Corresponding point search method, corresponding point search device, and corresponding point search program - Google Patents
Corresponding point search method, corresponding point search device, and corresponding point search program Download PDFInfo
- Publication number
- JP4286565B2 JP4286565B2 JP2003075534A JP2003075534A JP4286565B2 JP 4286565 B2 JP4286565 B2 JP 4286565B2 JP 2003075534 A JP2003075534 A JP 2003075534A JP 2003075534 A JP2003075534 A JP 2003075534A JP 4286565 B2 JP4286565 B2 JP 4286565B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- similarity
- corresponding point
- pixel
- maximum value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
- Image Analysis (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、入力画像と該入力画像の比較対象となる参照画像とを対応づける対応点を探索する画像の対応点探索方法、対応点探索装置および対応点探索プログラムに関し、特に、画像間の対応付けをおこなう際に、局所解に陥りにくい安定した対応付け結果を高速かつ効率良く取得することができる画像の対応点探索方法、対応点探索装置および対応点探索プログラムに関する。
【0002】
【従来の技術】
従来、スキャナなどの画像入力装置から入力された入力画像をあらかじめ登録した参照画像とを照合する際に、両画像の対応点を探索して画像間の対応付けをおこなう技術が知られている。
【0003】
たとえば、非特許文献1(従来技術1)には、設定したエネルギー関数を変分法の枠組みにより最小化する標準正則化理論を適用した技術が開示されている。この従来技術1が採用する標準正則化理論は、局所的な情報のみを使った繰り返し計算によりエネルギーを最小化することによって対応点を計算するものであるので、並列分散処理をおこなうことができ、人間の脳情報処理に近い処理を実現できる可能性がある。
【0004】
また、非特許文献2(従来技術2)には、DP(Dynamic Programming)を用いて効率的に最適解を探索する2次元DPワープ法を採用した技術が開示されている。この従来技術2によれば、最適化問題を効率的に計算することができる。
【0005】
ところが、上記従来技術1のものは、局所的な情報のみを使った繰り返し計算によってエネルギーを最小化して対応点を計算するため、初期値の影響が大きくなるという問題や、局所解(ローカルミニマム)に陥り易いことから最適な対応付け結果を得られ難いという問題がある。また、従来技術2のものは、DPによって効率よく最適解を探索できるものの、その計算量が膨大なものになるという問題がある。具体的には、最適解を得るためには画像サイズの指数オーダーの計算時間が必要となる。
【0006】
これらのことから、本願特許出願人は、特願2002−056661号(従来技術3)において、画像間の対応付けをおこなう際に、局所解に陥ることなく安定した対応付け結果を得ることができる画像の対応点探索装置、対応点探索方法およびその方法をコンピュータに実行させるプログラムを提案した。また、非特許文献3において、弛緩法を用いた画像マッチング法(従来技術4)を提案した。
【0007】
【非特許文献1】
T.Poggio,V.TorreandC.Koch,”Computational vision and regularization theory”,NATURE Vol.317,pp. 314-319,1985
【非特許文献2】
内田誠一,迫江博昭,”動的計画法に基づく単調連続2次元ワープ法の検討”,信学論(D-II) Vol. J81-D-II no. 6,pp.1251-1258,June 1998
【非特許文献3】
大西弘之,金出武雄,”大局的弛緩法による画像マッチング”,画像の認識・理解シンポジウム(MIRU2002),Vol. 1 , pp.95-100,July 2002
【0008】
【発明が解決しようとする課題】
この従来技術3によれば、j方向、−j方向、i方向、−i方向にそれぞれ累積加算した類似度画像をさらに加算する時に、注目する類似度画像に、j方向、−j方向、i方向、−i方向にそれぞれ隣接した類似度画像の近傍領域の最大値を加算することにより、大局的な整合性を考慮することができる。
【0009】
しかしながら、この従来技術3では、複数の類似度画像を作成し、j方向に累積加算をおこなった後に、−j方向に累積加算をおこない、その後i方向に累積加算をおこない、さらに−i方向に累積加算する一連の処理を繰り返すこととしていたので、これらの処理を並列化することができず、処理を迅速化する上での制約がある。
【0010】
また、上記従来技術4では、弛緩法の更新式において方向別(j方向、−j方向、i方向、−i方向)に独立に累積加算した4つの類似度画像をさらに加算して1つの類似度画像を作成するようになっており、その際更新された類似度画像の各点には、更新前の値に4倍の重みが付けられ、局所的に重みを付けた更新式を計算しているため、局所解に陥りやすくなるという問題がある。
【0011】
この発明は、上述した従来技術による問題点を解消するためになされたものであり、画像間の対応付けをおこなう際に、局所解に陥ることなく安定した対応付け結果を高速かつ効率良く取得することができる画像の対応点探索方法、対応点探索装置および対応点探索プログラムを提供することを目的とする。
【0012】
【課題を解決するための手段】
上述した課題を解決し、目的を達成するため、請求項1の発明に係る画像の対応点探索方法は、入力画像と該入力画像の比較対象となる参照画像とを対応づける対応点を探索する画像の対応点探索方法であって、前記入力画像と参照画像をそれぞれ複数のブロックに分割した入力部分画像と参照部分画像の間の類似度を画素値として持つ縦方向および横方向に整列した複数の類似度画像を生成する類似度画像生成工程と、前記類似度画像生成工程により生成された複数の類似度画像を形成する各画素の周辺画素の最大値を、横方向(j方向)、該横方向の逆方向(−j方向)、縦方向(i方向)、該縦方向の逆方向(−i方向)にそれぞれ隣接する類似度画像の画素値に対してそれぞれ独立に累積加算する処理を繰り返す累積加算工程と、前記累積加算工程により累積加算処理された類似度画像の各画素の周辺画素の最大値を前記類似度画像生成工程により生成された類似度画像の各画素の画素値に累積加算して前記類似度画像を更新する類似度画像更新工程と、前記類似度画像更新工程により更新された更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となるまで前記累積加算工程による累積加算と前記類似度画像更新工程による更新を繰り返して、前記入力画像と参照画像の対応点を決定する対応点決定工程とを含んだことを特徴とする。
【0013】
また、請求項2の発明に係る画像の対応点探索方法は、請求項1の発明において、前記対応点決定工程は、前記類似度画像更新工程により更新された更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となったときの更新後の各類似度画像の最大値の位置を前記対応点として決定することを特徴とする。
【0014】
また、請求項3の発明に係る画像の対応点探索装置は、入力画像と該入力画像の比較対象となる参照画像とを対応づける対応点を探索する画像の対応点探索装置であって、前記入力画像と参照画像をそれぞれ複数のブロックに分割した入力部分画像と参照部分画像の間の類似度を画素値として持つ縦方向および横方向に整列した複数の類似度画像を生成する類似度画像生成手段と、前記類似度画像生成手段により生成された複数の類似度画像を形成する各画素の周辺画素の最大値を、横方向(j方向)、該横方向の逆方向(−j方向)、縦方向(i方向)、該縦方向の逆方向(−i方向)にそれぞれ隣接する類似度画像の画素値に対してそれぞれ独立に累積加算する処理を繰り返す累積加算手段と、前記累積加算手段により累積加算処理された類似度画像の各画素の周辺画素の最大値を前記類似度画像生成手段により生成された類似度画像の各画素の画素値に累積加算して前記類似度画像を更新する類似度画像更新手段と、前記類似度画像更新手段により更新された更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となった際の最大値の位置に基づいて、前記入力画像と参照画像の対応点を決定する対応点決定手段とを備えたことを特徴とする。
【0015】
また、請求項4の発明に係る画像の対応点探索プログラムは、入力画像と該入力画像の比較対象となる参照画像とを対応づける対応点を探索する画像の対応点探索プログラムであって、前記入力画像と参照画像をそれぞれ複数のブロックに分割した入力部分画像と参照部分画像の間の類似度を画素値として持つ縦方向および横方向に整列した複数の類似度画像を生成する類似度画像生成手順と、前記類似度画像生成手順により生成された複数の類似度画像を形成する各画素の周辺画素の最大値を、横方向(j方向)、該横方向の逆方向(−j方向)、縦方向(i方向)、該縦方向の逆方向(−i方向)にそれぞれ隣接する類似度画像の画素値に対してそれぞれ独立に累積加算する処理を繰り返す累積加算手順と、前記累積加算手順により累積加算処理された類似度画像の各画素の周辺画素の最大値を前記類似度画像生成手順により生成された類似度画像の各画素の画素値に累積加算して前記類似度画像を更新する類似度画像更新手順と、前記類似度画像更新手順により更新された更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となるまで前記累積加算手順による累積加算と前記類似度画像更新手順による更新を繰り返して、前記入力画像と参照画像の対応点を決定する対応点決定手順とをコンピュータに実行させることを特徴とする。
【0016】
【発明の実施の形態】
以下に添付図面を参照して、この発明に係る画像の対応点探索方法、対応点探索装置および対応点探索プログラムの実施の形態を詳細に説明する。
【0017】
図1は、本実施の形態で用いる対応点探索装置の構成を示す機能ブロック図である。同図に示す対応点探索装置1は、大まかには、(1)入力画像を分割した入力部分画像と参照画像を分割した参照部分画像との間の類似度を示す類似度画像を作成する類似度画像作成段階と、(2)複数の類似度画像を累積加算した結果に基づいて最適な対応点を決定する対応点決定段階の2つの段階の処理を行う。
【0018】
具体的には、(1)類似度画像作成段階では、たとえば7×7画素のサイズからなる参照部分画像を21×21画素のサイズからなる入力部分画像内を移動させつつ順次相関値を求め、この相関値を画素値として持つ類似度画像を作成する。このため、この類似度画像は、参照部分画像上の中心点が入力部分画像上の点にどの程度類似しているかを示すことになる。
【0019】
次に、(2)対応点決定段階では、各類似度画像の画素値を垂直方向および水平方向別に独立に累積加算を繰り返した後に、これらの累積加算結果から得られる各画素の周辺画素の最大値を類似度画像の各画素の画素値に累積加算して類似度画像を更新し、更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となるまでこれらの処理を繰り返して、入力部分画像上での対応点を求める。
【0020】
次に、図1に示した対応点探索装置1の構成について説明する。なお、ここでは参照画像、入力画像の順に画像を入力する場合を示すこととする。図1に示すように、この対応点探索装置1は、画像入力部10と、分割処理部11と、参照部分画像一時記憶部12と、類似度画像作成部13と、累積加算処理部14と、類似度画像更新部15と、対応点決定部16とからなる。
【0021】
画像入力部10は、縦横のサイズI、Jからなる参照画像I0(i,j)および入力画像I1(i,j)(0≦i≦I−1,0≦j≦J−1)を入力する入力部である。具体的には、光学的に原稿を読み取って画像を取得するスキャナや、ネットワークから画像を取得するインターフェース部や、二次記憶装置から画像を読み出す読み出し部が該当する。ここで、この入力画像とは、対応点の探索対象となる画像であって、歪みや変形を伴うものであっても良い。これに対して、参照画像とは、入力画像の比較の対象となる画像であり、歪みなどを伴わないものであることが望ましい。
【0022】
図2(a)には参照画像21を示しており、同図(b)には入力画像22を示している。これらの参照画像21および入力画像22は、いずれもアルファベット「a」の文字画像であり、32×32画素からなる。
【0023】
分割処理部11は、画像入力部10により入力された入力画像および参照画像を入力部分画像および参照部分画像にそれぞれ分割する処理部である。ただし、入力画像の分割手順と参照画像の分割手順はそれぞれ異なる。
【0024】
参照画像を分割する場合には、参照画像上で縦方向にM個、横方向にN個サンプリングした点(pm,qn)(0≦m≦M−1,0≦n≦N−1)を中心とした参照部分画像を作成する。図3は、図2(a)に示した参照画像21の分割結果の一例を示す図であり、同図に示すように、ここでは32×32画素の参照画像21を7×7画素からなる25個の参照部分画像に分割している。具体的には、pm=round(I/M)、qn=round(J/N)としている。ただし、round()は四捨五入を示している。
【0025】
入力画像を分割する場合には、参照画像を分割する場合と異なり、各入力部分画像の一部が重なり合う重複したデータを持つように分割する。図4は、図2(b)に示した入力画像22の分割結果の一例を示す図であり、同図に示すように、ここでは32×32画素の入力画像22を21×21画素からなる25個の入力部分画像に分割している。
【0026】
参照部分画像一時記憶部12は、分割処理部11で分割した各参照部分画像を一時記憶する記憶部であり、類似度画像作成部13が類似度画像を作成する際に該当する参照部分画像が取り出される。
【0027】
類似度画像作成部13は、入力部分画像と参照部分画像の間の変形を考慮した類似度を算定して、該類似度を画素値として持つ類似度画像C(m , n , u , v)(0≦m≦M−1,0≦n≦N−1,0≦u≦U−1,0≦v≦V−1)を作成する処理部である。ただし、U,Vはそれぞれ類似度画像の縦横のサイズであるものとする。この類似度として正規化相関係数を用いることができる。
【0028】
図5は、参照部分画像と入力部分画像から類似度画像を作成する概念を説明するための説明図である。なお、ここでは図3および図4の2行2列に位置する入力部分画像と参照部分画像を用いることとする。
【0029】
同図に示すように、入力部分画像51と参照部分画像52の類似度を求める場合には、参照部分画像52の中心画素を入力部分画像52の左上部の画素に対応づけて正規化相関係数を計算し、その計算結果を類似度画像53の左上部の画素の画素値とする。その後、参照部分画像52を右にずらし、同様の処理をおこなう。上記処理を参照部分画像52をずらしながら入力部分画像51の全画素についておこなうことにより、類似度画像53が求められる。
【0030】
かかる類似度画像の作成処理を各入力部分画像ごとにおこなうと、図6に示すような複数の類似度画像が得られる。なお、参照部分画像の全ての画素の画素値が一定値である場合には、正規化相関係数の分母がゼロとなるため、この場合の類似度画像の画素値もゼロとなる。
【0031】
累積加算処理部14は、図7に示すように、各類似度画像をj方向、−j方向、i方向、−i方向にそれぞれ独立して累積加算する処理部である。具体的には、類似度画像全体C(m , n , u , v)を4枚複写して、これをそれぞれD1(m , n , u , v)、D2(m , n , u , v)、D3(m , n , u , v)、D4(m , n , u , v)とし、それぞれj方向、−j方向、i方向、−i方向の累積加算に使用する。たとえば、D1(m , n , u , v)を用いてj方向に累積加算する場合には、n=1〜N−1の類似度画像について、
D1(m , n , u , v)=C(m , n , u , v)+α・Max(D1(m , n-1 , p , q))
を順次再帰的に計算する。ただし、Max()は最大値を示し、αは定数であり、0≦u≦U−1、0≦v≦V−1、0≦m≦M−1、0≦n≦N−1、u−1≦p≦u+1、v−1≦q≦v+1とする。
【0032】
すなわち、j方向に累積加算する場合には、図8に示すように、D1(m , n-1 , u , v)を中心とする8近傍内の9画素のうちの最大の画素値を求め、この最大の画素値をα倍してC(m , n , u , v)の画素値に加算する処理を再帰的に繰り返すことになる。
【0033】
また、−j方向に累積加算する場合には、n=N−2〜0の類似度画像について、
D3(m , n , u , v )=C(m , n , u , v)+α・Max(D3(m , n+1 , p , q))
を順次再帰的に計算する。ただし、0≦u≦U−1、0≦v≦V−1、0≦m≦M−1、0≦n≦N−2とする。すなわち、−j方向に累積加算する場合には、図9に示すように、D3(m , n+1 ,u , v)を中心とする8近傍内の9画素のうちの最大の画素値を求め、この最大の画素値をα倍してC(m , n , u , v)の画素値に加算する処理を再帰的に繰り返すことになる。
【0034】
また、i方向に累積加算する場合には、m=1〜M−1の類似度画像について、
D2(m , n , u , v)=C(m , n , u , v)+α・Max(D2(m-1 , n , p , q))
を順次再帰的に計算する。ただし、0≦u≦U−1、0≦v≦V−1、1≦m≦M−1、0≦n≦N−1とする。すなわち、i方向に累積加算する場合には、図10に示すように、D2(m-1 , n , u , v)を中心とする8近傍内の9画素のうちの最大の画素値を求め、この最大の画素値をα倍してC(m , n , u , v)の画素値に加算する処理を再帰的に繰り返すことになる。
【0035】
また、−i方向に累積加算する場合には、m=M−2〜0の類似度画像について、
D4(m , n , u , v)=C(m , n , u , v)+α・Max(D4(m+1 , n , p , q))
を順次再帰的に計算する。ただし、0≦u≦U−1、0≦v≦V−1、0≦m≦M−2、0≦n≦N−1とする。すなわち、−i方向に累積加算する場合には、図11に示すように、D4(m+1 , n , u , v)を中心とする8近傍内の9画素のうちの最大の画素値を求め、この最大の画素値をα倍してC(m , n , u , v)の画素値に加算する処理を再帰的に繰り返すことになる。
【0036】
類似度画像更新部15は、累積加算処理部14の累積加算後の類似度画像に基づいて類似度画像を更新する処理部である。具体的には、まず各方向についての累積加算処理をおこなったならば、図12の概念図に示すように、
C(m , n , u , v)=C(m , n , u , v)+α・Max(D1(m , n-1 , p , q))
+α・Max(D2(m-1 , n , p , q))
+α・Max(D3(m , n+1 , p , q))
+α・Max(D4(m+1, n , p , q))
の算定式によりC( m , n , u , v)を更新する。
【0037】
その後、対応点決定部16は、各類似度画像の最大値の位置を検出し、それらの位置と前回の各類似度画像の最大値の位置との変化が所定の範囲内でなければ累積加算処理をフィードバックして繰り返し、所定の範囲内となった時点で繰り返しを終了し、そのときの各類似度画像の最大値の位置を対応点として決定する。なお、上述の前回の各類似度画像というのは、初回処理の場合は、類似度画像作成部13により作成された各類似度画像であり、初回以降は類似度画像更新部15により前回更新処理された各類似度画像となる。
【0038】
たとえば、累積加算処理および更新処理によって図13に示す各類似度画像が得られた場合には、各類似度画像の最大値の位置の前回の類似度画像の最大値の位置からの変化分を調べ、その変化分が所定の範囲内となった場合には、この時の最大値の位置を対応点とする。この最大値の位置の様子を図14に示す。そして、この対応点に基づいて入力画像の歪みを図示すると図15のようになる。
【0039】
次に、図1に示した対応点検索装置1の処理手順について説明する。なお、上記説明と一部重複するが、図2〜図15を用いて処理の流れを例示しつつ処理手順について説明することとする。
【0040】
図16は、図1に示した対応点検索装置1の処理手順を示すフローチャートである。同図に示すように、この対応点検出装置1が参照画像と入力画像を取得したならば、この参照画像を参照部分画像に分割する(ステップS101)。たとえば、図2(a)に示した32×32画素の参照画像21を図3に示した7×7画素からなる25個の参照部分画像に分割して記憶する。この参照部分画像は、参照したい画像毎に予め記憶しておいてもよいし、また、参照部分画像ではなく、参照画像のみを予め別途記憶しておき、後述する入力画像と参照画像との類似度の計算の際に、記憶された参照画像から参照部分画像に分割してもよい。
【0041】
その後、入力画像を入力部分画像に分割する(ステップS102)。たとえば、図2(b)に示した32×32画素の入力画像22を図4に示した21×21画素からなる25個の入力部分画像に分割する。
【0042】
そして、この参照部分画像と入力部分画像の間の類似度画像を作成する(ステップS103)。たとえば、図5に示すようにして入力部分画像51と参照部分画像52の類似度を画素値とする類似度画像53の作成を各入力部分画像ごとにおこなって、図6に示したような複数の類似度画像を作成する。続いて、各類似度画像の画素値が最大となる位置(以下、「最大値の位置」と記す)を検出する(ステップS104)。
【0043】
その後、4方向、すなわち、j方向の累積加算処理、−j方向の累積加算処理、i方向の累積加算処理、−i方向の累積加算処理をそれぞれ独立しておこない(ステップ105)、j、−j、i、−i方向の累積加算された類似度画像の各画素の8近傍内の9画素の最大値をステップS103で作成された類似度画像の各画素に加算して各類似度画像を更新し(ステップS106)、続いて、この更新された類似度画像の最大値の位置を検出する(ステップS107)。具体的には、図8〜図12に示した加算処理を繰り返すことにより、図13に示したような類似度画像を作成し、図14に示すような各類似度画像の最大値の位置を検出する。
【0044】
次に、各類似度画像の最大値の位置変動を算出し(ステップS108)、すべての最大値の位置変動が所定値以内であるか否かを調べ(ステップS109)、所定値以内でなければ(ステップS109否定)、ステップS105に移行して同様の処理を繰り返し、所定値以内であれば(ステップS109肯定)、この位置を対応点と決定し(ステップS110)、処理を終了する。なお、上述のステップS109における処理は、各類似度画像の最大値の位置の前回の各類似度画像の最大値の位置からの変化分が所定値以内であるか否かを調べるという処理であり、所定値以内であれば、ステップS110において、更新処理後の各類似度画像の最大値の位置を入力画像の参照画像に対する対応点と決定する。
【0045】
なお、ここでは説明の便宜上、j方向の累積加算処理、−j方向の累積加算処理、i方向の累積加算処理および−i方向の累積加算処理を順次おこなうこととしたが、これらはそれぞれ独立した処理をおこなうことができるので、並列処理化することもできる。
【0046】
次に、図1に示した累積加算処理部14によるj方向の累積加算処理手順について詳細に説明する。図17は、図1に示した累積加算処理部14によるj方向の累積加算処理手順を示すフローチャートである。なお、−j方向、i方向、−i方向の累積加算処理も同様におこなうことができる。
【0047】
同図に示すように、まず変数m、uおよびvを0にするとともに、変数nを1とする初期化をおこなう(ステップS201〜S204)。ここで、この変数mはi方向のインデックスとして用いる変数であり、変数nはj方向のインデックスとして用いる変数である。また、変数u,vは探索範囲を示すi方向およびj方向の変数である。
【0048】
そして、この初期化を終えたならば、
D1(m , n , u , v)=C(m , n , u , v)+α・Max(D1(m , n-1 , p , q))
の算定式による計算をおこなう(ステップS205)。
【0049】
その後、変数vをインクリメントし(ステップS206)、この変数vがVよりも小さければ(ステップS207肯定)、ステップS205に移行して加算処理を繰り返す。つまり、探索範囲をj方向にずらすのである。
【0050】
これに対して、変数vがV以上であれば(ステップS207否定)、変数uをインクリメントし(ステップS208)、この変数uがUよりも小さければ(ステップS209肯定)、ステップS204に移行して加算処理を繰り返す。つまり、探索範囲をi方向にずらすことになる。
【0051】
そして、変数uがU以上であれば(ステップS209否定)、ある画素についての計算を終了し、次の画素に移行する。具体的には、変数nをインクリメントして注目画素をj方向に移行させた後に(ステップS210)、この変数nをNと比較し(ステップS211)、この変数nがNよりも小さければ(ステップS211肯定)、ステップS203に移行して加算処理を繰り返す。
【0052】
これに対して、変数nがN以上であれば(ステップS211否定)、変数mをインクリメントして注目画素をi方向に移行させた後に(ステップS212)、この変数mがMよりも小さければ(ステップS213肯定)、ステップS202に移行して加算処理を繰り返し、変数mがM以上であれば(ステップS213否定)、処理を終了する。上記一連の処理をおこなうことにより、各類似度画像の全画素についてj方向の累積加算結果が得られることになる。
【0053】
ところで、上記図17のフローチャートでは、変数u,vのインクリメントをおこないながら最大値を算出していた。別の計算方法として、あらかじめC(m , n-1 , u , v)に最大値フィルターをかけた最大値フィルター画像D1'(m , n-1, u , v)を作成しておき、α倍してからC(m , n , u , v)と加算することもできる。
【0054】
そこで、かかる最大値フィルターを用いる場合の処理手順を図18および図19を用いて説明する。図18は、図1に示した累積加算処理部14による最大値フィルターを用いたj方向の累積加算処理手順を示すフローチャートであり、図19は、最大値フィルターの処理手順を示すフローチャートである。
【0055】
図18に示すように、変数mを0に初期化し(ステップS301)、変数nを1に初期化した後(ステップS302)、最大値フィルターD1'(m , n-1 , u
, v)を算定する(ステップS303)。
【0056】
具体的には、図19に示すように、変数u,vを0に初期化した後に(ステップS401〜S402)、D1'(m , n , u , v)=Max[D1(m , n , p , q)]を計算する(ステップS403)。ただし、u−1≦p≦u+1、v−1≦q≦v+1とする。そして、vをインクリメントして(ステップS404)、この変数vがVよりも小さい場合には(ステップS405肯定)、ステップS403に移行して同様に計算をおこなう。また、変数vがV以上である場合には(ステップS405否定)、変数uをインクリメントして(ステップS406)、この変数uがUよりも小さい場合には(ステップS406肯定)、ステップS402に移行して同様の処理を繰り返し、結果的に最大値を求める。
【0057】
このようにして最大値フィルターを算定したならば、変数uおよびvを0に初期化した後(ステップS304〜S305)、
D1(m , n , u , v)=C(m , n , u , v)+α・Max(D1'(m , n-1 , p , q))
の算定式による計算をおこなう(ステップS306)。
【0058】
その後、変数vをインクリメントし(ステップS307)、この変数vがVよりも小さければ(ステップS308肯定)、ステップS306に移行して加算処理を繰り返す。つまり、探索範囲をj方向にずらすのである。
【0059】
これに対して、変数vがV以上であれば(ステップS308否定)、変数uをインクリメントし(ステップS309)、この変数uがUよりも小さければ(ステップS310肯定)、ステップS305に移行して加算処理を繰り返す。つまり、探索範囲をi方向にずらすことになる。
【0060】
そして、変数uがU以上であれば(ステップS310否定)、ある画素についての計算を終了し、次の画素に移行する。具体的には、変数nをインクリメントして注目画素をj方向に移行させた後に(ステップS311)、この変数nをNと比較し(ステップS312)、この変数nがNよりも小さければ(ステップS312肯定)、ステップS303に移行して加算処理を繰り返す。
【0061】
これに対して、変数nがN以上であれば(ステップS312否定)、変数mをインクリメントして注目画素をi方向に移行させた後に(ステップS313)、この変数mがMよりも小さければ(ステップS314肯定)、ステップS302に移行して加算処理を繰り返し、変数mがM以上であれば(ステップS314否定)、処理を終了する。
【0062】
上述してきたように、本実施の形態によれば、画像入力部10から参照画像と入力画像をそれぞれ入力し、分割処理部11で参照部分画像および入力部分画像をそれぞれ作成、類似度画像作成部13で参照部分画像と入力部分画像の類似度を求めた類似度画像をそれぞれ作成し、累積加算処理部14で複数の類似度画像の累積加算処理を各方向ごと独立して再帰的に行い、更新前の値に重みが付かないように、類似度画像更新部15で累積加算処理前の類似度画像の各画素の画素値に対して,4方向の類似度画像の累積加算処理後の画素値を加算して類似度画像を更新し、その結果に基づいて対応点決定部16が対応点を決定するよう構成したので、大局的な最適化が行われローカルミニマムに陥るケースを低減することができる。
【0063】
なお、本実施の形態では、説明の便宜上、参照画像と入力画像のサイズが同じ場合を示したが、本発明はこれに限定されるものではなく、参照画像と入力画像のサイズを異なる場合に適用することもできる。かかる場合にも同様の処理をおこなうことができる。
【0064】
また、本実施の形態では、各類似度画像をj方向、−j方向、i方向、−i方向の順序で再帰的に累積加算する場合を示したが、本発明は必ずしもこれに限定されるものではなく、斜め方向或いは一方向のみについて累積加算する場合に適用することもできる。一方向のみであっても、類似度が加算されることにより一定の大局情報が得られる。
【0065】
また、本実施の形態では、類似度として正規化相関係数を用いた場合を示したが、本発明はこれに限定されるものではなく、ユークリッド距離などの他の指標を類似度として用いることもできる。
【0066】
【発明の効果】
以上説明したように、本発明によれば、入力画像と参照画像をそれぞれ複数のブロックに分割した入力部分画像と参照部分画像の間の類似度を画素値として持つ縦方向および横方向に整列した複数の類似度画像を生成し、生成した複数の類似度画像を形成する各画素の周辺画素の最大値を、横方向(j方向)、該横方向の逆方向(−j方向)、縦方向(i方向)、該縦方向の逆方向(−i方向)にそれぞれ隣接する類似度画像の画素値に対してそれぞれ独立に累積加算する処理を繰り返し、累積加算処理された類似度画像の各画素の周辺画素の最大値を類似度画像の各画素の画素値に累積加算して類似度画像を更新する処理を更新前後の各類似度画像の最大値の位置の変動が所定値未満となるまで繰り返し、入力画像と参照画像の対応点を決定するよう構成したので、画像間の対応付けをおこなう際に、局所解に陥りにくい安定した対応付け結果を高速かつ効率良く取得することができる。
【図面の簡単な説明】
【図1】この発明の実施の形態に係る対応点探索装置の構成を示す機能ブロック図である。
【図2】本実施の形態で用いる参照画像および入力画像の一例を示す図である。
【図3】参照部分画像の一例を示す図である。
【図4】入力部分画像の一例を示す図である。
【図5】類似度画像の作成概念を説明するための説明図である。
【図6】図4に示した各入力部分画像に対応する類似度画像を示す図である。
【図7】累積加算手順を説明するための説明図である。
【図8】j方向の累積加算処理を説明するための説明図である。
【図9】−j方向の累積加算処理を説明するための説明図である。
【図10】i方向の累積加算処理を説明するための説明図である。
【図11】−i方向の累積加算処理を説明するための説明図である。
【図12】各累積加算結果を加算する概念図である。
【図13】累積加算後の類似度画像を示す図である。
【図14】図13に示した類似度画像の最大値の位置を示す図である。
【図15】対応点に基づいて再構成した入力画像の歪み(変形)の一例を示す図である。
【図16】図1に示した対応点探索装置の処理手順を示すフローチャートである。
【図17】累積加算処理手順の一例を示すフローチャートである。
【図18】最大値フィルターを用いて累積加算処理をおこなう場合の処理手順の一例を示すフローチャートである。
【図19】最大値フィルターの処理手順の一例を示すフローチャートである。
【符号の説明】
1 対応点探索装置
10 画像入力部
11 分割処理部
12 参照部分画像一時記憶部
13 類似度画像作成部
14 累積加算処理部
15 類似度画像更新部
16 対応点決定部
21 参照画像
22 入力画像
51 入力部分画像
52 参照部分画像
53 類似度画像[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image corresponding point search method, a corresponding point search device, and a corresponding point search program for searching for corresponding points that associate an input image with a reference image to be compared with the input image, and in particular, correspondence between images. The present invention relates to a corresponding point search method, a corresponding point search device, and a corresponding point search program for an image that can acquire a stable matching result that is difficult to fall into a local solution at high speed and efficiency.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a technique is known in which when an input image input from an image input device such as a scanner is collated with a reference image registered in advance, a corresponding point between both images is searched and the images are associated with each other.
[0003]
For example, Non-Patent Document 1 (Prior Art 1) discloses a technique that applies a standard regularization theory that minimizes a set energy function by a framework of a variational method. The standard regularization theory adopted by this
[0004]
Non-Patent Document 2 (Prior Art 2) discloses a technique that employs a two-dimensional DP warp method that efficiently searches for an optimal solution using DP (Dynamic Programming). According to this prior art 2, the optimization problem can be calculated efficiently.
[0005]
However, in the above
[0006]
From these facts, the applicant of the present patent application can obtain a stable matching result without falling into a local solution when performing matching between images in Japanese Patent Application No. 2002-056661 (Prior Art 3). An image corresponding point searching apparatus, a corresponding point searching method, and a program for causing a computer to execute the method have been proposed. In Non-Patent Document 3, an image matching method using the relaxation method (prior art 4) was proposed.
[0007]
[Non-Patent Document 1]
T.Poggio, V.TorreandC.Koch, “Computational vision and regularization theory”, NATURE Vol.317, pp. 314-319, 1985
[Non-Patent Document 2]
Seiichi Uchida and Hiroaki Sakoe, “Study of monotonic continuous two-dimensional warp method based on dynamic programming”, IEICE theory (D-II) Vol. J81-D-II no. 6, pp.1251-1258, June 1998
[Non-Patent Document 3]
Hiroyuki Onishi, Takeo Kanade, “Image Matching by Global Relaxation”, Image Recognition and Understanding Symposium (MIRU2002), Vol. 1, pp.95-100, July 2002
[0008]
[Problems to be solved by the invention]
According to this prior art 3, when the similarity images cumulatively added in the j direction, −j direction, i direction, and −i direction are further added, the similarity image to be noticed is added to the j direction, −j direction, i, The global consistency can be taken into consideration by adding the maximum values of the neighborhood regions of the similarity images adjacent to each other in the direction and the -i direction.
[0009]
However, in this prior art 3, after creating a plurality of similarity images, performing cumulative addition in the j direction, performing cumulative addition in the -j direction, then performing cumulative addition in the i direction, and further in the -i direction. Since a series of processes for accumulative addition is repeated, these processes cannot be parallelized, and there are restrictions in speeding up the processes.
[0010]
Further, in the above-mentioned conventional technique 4, four similarity images that are cumulatively added independently for each direction (j direction, -j direction, i direction, -i direction) in the update method of the relaxation method are further added to obtain one similarity. An image is created, and each point of the similarity image updated at that time is weighted four times as much as the value before the update, and a locally weighted update formula is calculated. Therefore, there is a problem that it is easy to fall into a local solution.
[0011]
The present invention was made to solve the above-described problems caused by the prior art, and when performing association between images, a stable association result can be acquired quickly and efficiently without falling into a local solution. An object of the present invention is to provide a corresponding point searching method, a corresponding point searching apparatus, and a corresponding point searching program.
[0012]
[Means for Solving the Problems]
In order to solve the above-described problems and achieve the object, the corresponding point search method for an image according to the invention of
[0013]
According to a second aspect of the present invention, the corresponding point searching method according to the first aspect of the present invention is the method according to the first aspect, wherein the corresponding point determining step is a maximum of each updated similarity image updated by the similarity image updating step. The position of the maximum value of each similarity image after update when the variation between the position of the value and the position of the maximum value of each similarity image before the update is less than a predetermined value is determined as the corresponding point. And
[0014]
An image corresponding point search device according to the invention of claim 3 is an image corresponding point search device that searches for a corresponding point that associates an input image with a reference image to be compared with the input image, and Similarity image generation that generates a plurality of similarity images arranged in the vertical and horizontal directions with the similarity between the input partial image and the reference partial image as pixel values obtained by dividing the input image and the reference image into a plurality of blocks, respectively. And the maximum value of the peripheral pixels of each pixel forming the plurality of similarity images generated by the similarity image generation unit, the horizontal direction (j direction), the reverse direction of the horizontal direction (-j direction), A cumulative addition unit that repeatedly performs cumulative addition on pixel values of similarity images adjacent to each other in the vertical direction (i direction) and in the opposite direction (−i direction) of the vertical direction, and the cumulative addition unit Cumulative addition processing Similarity image update means for updating the similarity image by cumulatively adding the maximum value of neighboring pixels of each pixel of the similarity image to the pixel value of each pixel of the similarity image generated by the similarity image generation means; The maximum value when the variation between the position of the maximum value of each similarity image updated by the similarity image update unit and the position of the maximum value of each similarity image before the update is less than a predetermined value. And corresponding point determining means for determining corresponding points between the input image and the reference image based on the position of the input image.
[0015]
An image corresponding point search program according to the invention of claim 4 is an image corresponding point search program for searching for a corresponding point that associates an input image with a reference image to be compared with the input image, Similarity image generation that generates a plurality of similarity images arranged in the vertical and horizontal directions with the similarity between the input partial image and the reference partial image as pixel values obtained by dividing the input image and the reference image into a plurality of blocks, respectively. A maximum value of peripheral pixels of each pixel forming the plurality of similarity images generated by the procedure and the similarity image generation procedure in the horizontal direction (j direction), the reverse direction of the horizontal direction (−j direction), A cumulative addition procedure that repeats cumulative addition processing independently for pixel values of similarity images adjacent to each other in the vertical direction (i direction) and the reverse direction (−i direction) of the vertical direction, and the cumulative addition procedure Accumulation A similarity degree that updates the similarity image by cumulatively adding a maximum value of peripheral pixels of each pixel of the similarity degree image that has been subjected to the arithmetic processing to a pixel value of each pixel of the similarity degree image generated by the similarity degree image generation procedure Until the variation between the image update procedure and the position of the maximum value of each similarity image updated by the similarity image update procedure and the position of the maximum value of each similarity image before the update is less than a predetermined value The cumulative addition by the cumulative addition procedure and the update by the similarity image update procedure are repeated to cause the computer to execute a corresponding point determination procedure for determining corresponding points between the input image and the reference image.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Exemplary embodiments of a corresponding point search method, a corresponding point search apparatus, and a corresponding point search program according to the present invention will be described below in detail with reference to the accompanying drawings.
[0017]
FIG. 1 is a functional block diagram showing the configuration of the corresponding point search apparatus used in the present embodiment. The corresponding
[0018]
Specifically, (1) in the similarity image creation stage, for example, a correlation value is sequentially obtained while moving a reference partial image having a size of 7 × 7 pixels within an input partial image having a size of 21 × 21 pixels, A similarity image having the correlation value as a pixel value is created. Therefore, this similarity image indicates how similar the center point on the reference partial image is to the point on the input partial image.
[0019]
Next, in (2) the corresponding point determination stage, the pixel values of each similarity image are repeatedly accumulated and added separately for each of the vertical direction and the horizontal direction, and then the maximum of the peripheral pixels of each pixel obtained from these cumulative addition results The value is cumulatively added to the pixel value of each pixel of the similarity image to update the similarity image, and the position of the maximum value of each similarity image after the update and the position of the maximum value of each similarity image before the update These processes are repeated until the fluctuation becomes less than a predetermined value, and corresponding points on the input partial image are obtained.
[0020]
Next, the configuration of the corresponding
[0021]
The
[0022]
FIG. 2A shows a
[0023]
The
[0024]
When the reference image is divided, M points in the vertical direction and N points in the horizontal direction on the reference image (p m , Q n ) A reference partial image centered on (0 ≦ m ≦ M−1, 0 ≦ n ≦ N−1) is created. FIG. 3 is a diagram showing an example of the division result of the
[0025]
When the input image is divided, unlike the case of dividing the reference image, the input image is divided so that a part of each input partial image has overlapping data. FIG. 4 is a diagram showing an example of the division result of the
[0026]
The reference partial image
[0027]
The similarity
[0028]
FIG. 5 is an explanatory diagram for explaining the concept of creating a similarity image from a reference partial image and an input partial image. Here, the input partial image and the reference partial image located in 2 rows and 2 columns of FIGS. 3 and 4 are used.
[0029]
As shown in the figure, when obtaining the similarity between the input partial image 51 and the reference
[0030]
When such similarity image creation processing is performed for each input partial image, a plurality of similarity images as shown in FIG. 6 are obtained. Note that when the pixel values of all the pixels of the reference partial image are constant, the denominator of the normalized correlation coefficient is zero, and the pixel value of the similarity image in this case is also zero.
[0031]
As shown in FIG. 7, the cumulative
D1 (m, n, u, v) = C (m, n, u, v) + α · Max (D1 (m, n-1, p, q))
Are sequentially recursively calculated. However, Max () indicates the maximum value, α is a constant, 0 ≦ u ≦ U−1, 0 ≦ v ≦ V−1, 0 ≦ m ≦ M−1, 0 ≦ n ≦ N−1, u −1 ≦ p ≦ u + 1 and v−1 ≦ q ≦
[0032]
That is, when accumulatively adding in the j direction, as shown in FIG. 8, the maximum pixel value of 9 pixels in 8 neighborhoods centering on D1 (m, n-1, u, v) is obtained. The process of multiplying the maximum pixel value by α and adding it to the pixel value of C (m, n, u, v) is recursively repeated.
[0033]
When accumulatively adding in the −j direction, n = N−2 to 0 similarity images,
D3 (m, n, u, v) = C (m, n, u, v) + α · Max (D3 (m, n + 1, p, q))
Are sequentially recursively calculated. However, 0≤u≤U-1, 0≤v≤V-1, 0≤m≤M-1, and 0≤n≤N-2. That is, in the case of cumulative addition in the −j direction, as shown in FIG. 9, the maximum pixel value among 9 pixels in 8 neighborhoods centered on D3 (m, n + 1, u, v) is set. The process of obtaining and multiplying the maximum pixel value by α and adding it to the pixel value of C (m, n, u, v) is recursively repeated.
[0034]
In addition, in the case of cumulative addition in the i direction, for m = 1 to M−1 similarity images,
D2 (m, n, u, v) = C (m, n, u, v) + α · Max (D2 (m−1, n, p, q))
Are sequentially recursively calculated. However, 0≤u≤U-1, 0≤v≤V-1, 1≤m≤M-1, and 0≤n≤N-1. That is, when accumulatively adding in the i direction, as shown in FIG. 10, the maximum pixel value of 9 pixels in 8 neighborhoods centering on D2 (m−1, n, u, v) is obtained. The process of multiplying the maximum pixel value by α and adding it to the pixel value of C (m, n, u, v) is recursively repeated.
[0035]
In addition, in the case of cumulative addition in the -i direction, for similarity images of m = M-2 to 0,
D4 (m, n, u, v) = C (m, n, u, v) + α · Max (D4 (m + 1, n, p, q))
Are sequentially recursively calculated. However, 0≤u≤U-1, 0≤v≤V-1, 0≤m≤M-2, and 0≤n≤N-1. That is, when accumulatively adding in the -i direction, as shown in FIG. 11, the maximum pixel value of 9 pixels in 8 neighborhoods centered on D4 (m + 1, n, u, v) is set. The process of obtaining and multiplying the maximum pixel value by α and adding it to the pixel value of C (m, n, u, v) is recursively repeated.
[0036]
The similarity
C (m, n, u, v) = C (m, n, u, v) + α · Max (D1 (m, n-1, p, q))
+ Α · Max (D2 (m−1, n, p, q))
+ Α · Max (D3 (m, n + 1, p, q))
+ Α · Max (D4 (m + 1, n, p, q))
C (m, n, u, v) is updated by the following formula.
[0037]
Thereafter, the corresponding
[0038]
For example, when each similarity image shown in FIG. 13 is obtained by the cumulative addition process and the update process, the change from the position of the maximum value of the previous similarity image to the position of the maximum value of each similarity image is calculated. When the change is within a predetermined range, the position of the maximum value at this time is set as the corresponding point. The state of the maximum value position is shown in FIG. FIG. 15 illustrates the distortion of the input image based on the corresponding points.
[0039]
Next, the processing procedure of the corresponding
[0040]
FIG. 16 is a flowchart showing a processing procedure of the corresponding
[0041]
Thereafter, the input image is divided into input partial images (step S102). For example, the 32 × 32
[0042]
Then, a similarity image between the reference partial image and the input partial image is created (step S103). For example, as shown in FIG. 5, the similarity image 53 having the similarity between the input partial image 51 and the reference
[0043]
Thereafter, the cumulative addition process in four directions, that is, the j direction, the cumulative addition process in the -j direction, the cumulative addition process in the i direction, and the cumulative addition process in the -i direction are performed independently (step 105), j,- Each similarity image is obtained by adding the maximum value of 9 pixels within 8 neighborhoods of each pixel of the similarity image cumulatively added in the j, i, and -i directions to each pixel of the similarity image created in step S103. Update (step S106), and then detect the position of the maximum value of the updated similarity image (step S107). Specifically, by repeating the addition processing shown in FIGS. 8 to 12, a similarity image as shown in FIG. 13 is created, and the position of the maximum value of each similarity image as shown in FIG. To detect.
[0044]
Next, the position fluctuation of the maximum value of each similarity image is calculated (step S108), and it is checked whether or not the position fluctuations of all the maximum values are within a predetermined value (step S109). (No at step S109), the process proceeds to step S105, and the same process is repeated. If it is within the predetermined value (Yes at step S109), this position is determined as a corresponding point (step S110), and the process is terminated. Note that the process in step S109 described above is a process of checking whether or not the change in the position of the maximum value of each similarity image from the position of the maximum value of each previous similarity image is within a predetermined value. If it is within the predetermined value, in step S110, the position of the maximum value of each similarity image after the update process is determined as the corresponding point of the input image with respect to the reference image.
[0045]
Here, for convenience of explanation, the cumulative addition process in the j direction, the cumulative addition process in the -j direction, the cumulative addition process in the i direction, and the cumulative addition process in the -i direction are sequentially performed. Since processing can be performed, parallel processing can also be performed.
[0046]
Next, the cumulative addition processing procedure in the j direction by the cumulative
[0047]
As shown in the figure, first, the variables m, u, and v are set to 0, and the variable n is set to 1 (steps S201 to S204). Here, the variable m is a variable used as an index in the i direction, and the variable n is a variable used as an index in the j direction. Variables u and v are i-direction and j-direction variables indicating the search range.
[0048]
And when this initialization is finished,
D1 (m, n, u, v) = C (m, n, u, v) + α · Max (D1 (m, n-1, p, q))
The calculation is performed according to the formula (step S205).
[0049]
Thereafter, the variable v is incremented (step S206). If the variable v is smaller than V (Yes in step S207), the process proceeds to step S205 and the addition process is repeated. That is, the search range is shifted in the j direction.
[0050]
On the other hand, if the variable v is greater than or equal to V (No at Step S207), the variable u is incremented (Step S208). If the variable u is smaller than U (Yes at Step S209), the process proceeds to Step S204. Repeat the addition process. That is, the search range is shifted in the i direction.
[0051]
If the variable u is greater than or equal to U (No at step S209), the calculation for a certain pixel is terminated and the process proceeds to the next pixel. Specifically, after the variable n is incremented to shift the pixel of interest in the j direction (step S210), the variable n is compared with N (step S211). If the variable n is smaller than N (step S211) (Yes in S211), the process proceeds to step S203 and the addition process is repeated.
[0052]
On the other hand, if the variable n is greater than or equal to N (No in step S211), the variable m is incremented to shift the pixel of interest in the i direction (step S212), and if the variable m is smaller than M (step S212). If the result of step S213 is affirmative, the process proceeds to step S202 and the addition process is repeated. By performing the above-described series of processing, a cumulative addition result in the j direction is obtained for all the pixels of each similarity image.
[0053]
By the way, in the flowchart of FIG. 17, the maximum value is calculated while incrementing the variables u and v. As another calculation method, a maximum value filter image D1 ′ (m, n−1, u, v) obtained by applying a maximum value filter to C (m, n−1, u, v) in advance is created, and α It is also possible to add C (m, n, u, v) after multiplying.
[0054]
Therefore, a processing procedure when using such a maximum value filter will be described with reference to FIGS. FIG. 18 is a flowchart showing the cumulative addition processing procedure in the j direction using the maximum value filter by the cumulative
[0055]
As shown in FIG. 18, after the variable m is initialized to 0 (step S301) and the variable n is initialized to 1 (step S302), the maximum value filter D1 ′ (
, v) is calculated (step S303).
[0056]
Specifically, as shown in FIG. 19, after the variables u and v are initialized to 0 (steps S401 to S402), D1 ′ (m, n, u, v) = Max [D1 (m, n, p, q)] is calculated (step S403). However, u−1 ≦ p ≦ u + 1 and v−1 ≦ q ≦
[0057]
If the maximum value filter is calculated in this way, after the variables u and v are initialized to 0 (steps S304 to S305),
D1 (m, n, u, v) = C (m, n, u, v) + α · Max (D1 ′ (m, n−1, p, q))
The calculation is performed according to the formula (step S306).
[0058]
Thereafter, the variable v is incremented (step S307). If the variable v is smaller than V (Yes at step S308), the process proceeds to step S306 and the addition process is repeated. That is, the search range is shifted in the j direction.
[0059]
On the other hand, if the variable v is equal to or greater than V (No at Step S308), the variable u is incremented (Step S309). If the variable u is smaller than U (Yes at Step S310), the process proceeds to Step S305. Repeat the addition process. That is, the search range is shifted in the i direction.
[0060]
If the variable u is greater than or equal to U (No at step S310), the calculation for a certain pixel is terminated and the process proceeds to the next pixel. Specifically, after the variable n is incremented to shift the pixel of interest in the j direction (step S311), the variable n is compared with N (step S312), and if the variable n is smaller than N (step S311). (S312 Yes), it moves to step S303 and repeats an addition process.
[0061]
On the other hand, if the variable n is greater than or equal to N (No in step S312), the variable m is incremented to shift the pixel of interest in the i direction (step S313), and if the variable m is smaller than M (step S313). If step S314 is affirmative, the process proceeds to step S302 and the addition process is repeated.
[0062]
As described above, according to the present embodiment, the reference image and the input image are respectively input from the
[0063]
In this embodiment, for convenience of explanation, the case where the size of the reference image and the input image is the same is shown. However, the present invention is not limited to this, and the size of the reference image and the input image is different. It can also be applied. In such a case, similar processing can be performed.
[0064]
Further, in the present embodiment, a case has been described in which each similarity image is recursively added in the order of j direction, −j direction, i direction, and −i direction, but the present invention is not necessarily limited thereto. However, the present invention can be applied to the case where cumulative addition is performed only in an oblique direction or only in one direction. Even in only one direction, constant global information can be obtained by adding similarities.
[0065]
In this embodiment, the case where the normalized correlation coefficient is used as the similarity is shown. However, the present invention is not limited to this, and another index such as the Euclidean distance is used as the similarity. You can also.
[0066]
【The invention's effect】
As described above, according to the present invention, the input image and the reference image are divided into a plurality of blocks, and the input partial image and the reference partial image are aligned in the vertical direction and the horizontal direction having pixel values as similarities. A plurality of similarity images are generated, and the maximum value of the peripheral pixels of each pixel forming the generated plurality of similarity images is set in the horizontal direction (j direction), the reverse direction of the horizontal direction (−j direction), and the vertical direction. (I direction), each pixel value of the similarity image subjected to the cumulative addition process is repeated by repeatedly accumulating the pixel values of the similarity image pixels adjacent to each other in the reverse direction (−i direction) of the vertical direction. The process of updating the similarity image by cumulatively adding the maximum value of the peripheral pixels of the image to the pixel value of each pixel of the similarity image until the variation in the position of the maximum value of each similarity image before and after the update becomes less than a predetermined value Repeatedly determine the corresponding points between the input image and the reference image Since it is configured to, when performing correspondence between images, a correlation result of fall hardly stable in a local solution can be obtained fast and efficient manner.
[Brief description of the drawings]
FIG. 1 is a functional block diagram showing a configuration of a corresponding point search apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of a reference image and an input image used in the present embodiment.
FIG. 3 is a diagram illustrating an example of a reference partial image.
FIG. 4 is a diagram illustrating an example of an input partial image.
FIG. 5 is an explanatory diagram for explaining a concept of creating a similarity image.
6 is a view showing a similarity image corresponding to each input partial image shown in FIG. 4. FIG.
FIG. 7 is an explanatory diagram for explaining a cumulative addition procedure.
FIG. 8 is an explanatory diagram for explaining cumulative addition processing in the j direction.
FIG. 9 is an explanatory diagram for explaining cumulative addition processing in the −j direction.
FIG. 10 is an explanatory diagram for explaining cumulative addition processing in the i direction.
FIG. 11 is an explanatory diagram for explaining cumulative addition processing in the -i direction.
FIG. 12 is a conceptual diagram for adding each cumulative addition result.
FIG. 13 is a diagram showing a similarity image after cumulative addition.
14 is a diagram showing the position of the maximum value of the similarity image shown in FIG.
FIG. 15 is a diagram illustrating an example of distortion (deformation) of an input image reconstructed based on corresponding points.
16 is a flowchart showing a processing procedure of the corresponding point search apparatus shown in FIG. 1;
FIG. 17 is a flowchart illustrating an example of a cumulative addition processing procedure.
FIG. 18 is a flowchart illustrating an example of a processing procedure when cumulative addition processing is performed using a maximum value filter.
FIG. 19 is a flowchart illustrating an example of a maximum value filter processing procedure;
[Explanation of symbols]
1 Corresponding point search device
10 Image input section
11 Division processing part
12 Reference partial image temporary storage unit
13 Similarity Image Creation Unit
14 Cumulative addition processing unit
15 Similarity image update unit
16 Corresponding point determination part
21 Reference image
22 Input image
51 Input partial image
52 Reference partial image
53 Similarity Image
Claims (4)
前記入力画像と参照画像をそれぞれ複数のブロックに分割した入力部分画像と参照部分画像の間の類似度を画素値として持つ縦方向および横方向に整列した複数の類似度画像を生成する類似度画像生成工程と、
前記類似度画像生成工程により生成された複数の類似度画像を形成する各画素の周辺画素の最大値を、横方向(j方向)、該横方向の逆方向(−j方向)、縦方向(i方向)、該縦方向の逆方向(−i方向)にそれぞれ隣接する類似度画像の画素値に対してそれぞれ独立に累積加算する処理を繰り返す累積加算工程と、
前記累積加算工程により累積加算処理された類似度画像の各画素の周辺画素の最大値を前記類似度画像生成工程により生成された類似度画像の各画素の画素値に累積加算して前記類似度画像を更新する類似度画像更新工程と、
前記類似度画像更新工程により更新された更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となるまで前記累積加算工程による累積加算と前記類似度画像更新工程による更新を繰り返して、前記入力画像と参照画像の対応点を決定する対応点決定工程と
を含んだことを特徴とする画像の対応点探索方法。A corresponding point search method for an image for searching for a corresponding point that associates an input image with a reference image to be compared with the input image,
A similarity image for generating a plurality of similarity images aligned in the vertical and horizontal directions having the similarity between the input partial image and the reference partial image obtained by dividing the input image and the reference image into a plurality of blocks, respectively, as pixel values Generation process;
The maximum value of the peripheral pixels of each pixel forming the plurality of similarity images generated by the similarity image generation step is set in the horizontal direction (j direction), the reverse direction of the horizontal direction (−j direction), the vertical direction ( i direction), and a cumulative addition step of repeating a process of independently cumulatively adding to pixel values of similarity images respectively adjacent in the reverse direction (−i direction) of the vertical direction;
The similarity is obtained by accumulatively adding the maximum value of the peripheral pixels of each pixel of the similarity image subjected to the cumulative addition process in the cumulative addition process to the pixel value of each pixel of the similarity image generated by the similarity image generation process. A similarity image update process for updating the image;
By the cumulative addition process until the variation between the maximum value position of each updated similarity image updated by the similarity image update process and the maximum value position of each similarity image before the update is less than a predetermined value. A corresponding point search method for an image, comprising: a corresponding point determination step for determining a corresponding point between the input image and a reference image by repeating cumulative addition and updating by the similarity image updating step.
前記入力画像と参照画像をそれぞれ複数のブロックに分割した入力部分画像と参照部分画像の間の類似度を画素値として持つ縦方向および横方向に整列した複数の類似度画像を生成する類似度画像生成手段と、
前記類似度画像生成手段により生成された複数の類似度画像を形成する各画素の周辺画素の最大値を、横方向(j方向)、該横方向の逆方向(−j方向)、縦方向(i方向)、該縦方向の逆方向(−i方向)にそれぞれ隣接する類似度画像の画素値に対してそれぞれ独立に累積加算する処理を繰り返す累積加算手段と、
前記累積加算手段により累積加算処理された類似度画像の各画素の周辺画素の最大値を前記類似度画像生成手段により生成された類似度画像の各画素の画素値に累積加算して前記類似度画像を更新する類似度画像更新手段と、
前記類似度画像更新手段により更新された更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となった際の最大値の位置に基づいて、前記入力画像と参照画像の対応点を決定する対応点決定手段と
を備えたことを特徴とする画像の対応点探索装置。An image corresponding point search device that searches for corresponding points that associate an input image with a reference image to be compared with the input image,
A similarity image for generating a plurality of similarity images aligned in the vertical and horizontal directions having the similarity between the input partial image and the reference partial image obtained by dividing the input image and the reference image into a plurality of blocks, respectively, as pixel values Generating means;
The maximum values of the peripheral pixels of each pixel forming the plurality of similarity images generated by the similarity image generating means are set in the horizontal direction (j direction), the reverse direction of the horizontal direction (−j direction), the vertical direction ( i direction), and cumulative addition means for repeating the process of independently cumulatively adding to the pixel values of the similarity images respectively adjacent in the vertical direction (−i direction).
The similarity is obtained by cumulatively adding the maximum value of the peripheral pixels of each pixel of the similarity image that has been cumulatively added by the cumulative addition means to the pixel value of each pixel of the similarity image generated by the similarity image generation means. Similarity image updating means for updating an image;
The maximum value when the variation between the position of the maximum value of each similarity image updated by the similarity image update unit and the position of the maximum value of each similarity image before the update is less than a predetermined value. A corresponding point searching apparatus for an image, comprising: a corresponding point determining means for determining a corresponding point between the input image and the reference image based on a position.
前記入力画像と参照画像をそれぞれ複数のブロックに分割した入力部分画像と参照部分画像の間の類似度を画素値として持つ縦方向および横方向に整列した複数の類似度画像を生成する類似度画像生成手順と、
前記類似度画像生成手順により生成された複数の類似度画像を形成する各画素の周辺画素の最大値を、横方向(j方向)、該横方向の逆方向(−j方向)、縦方向(i方向)、該縦方向の逆方向(−i方向)にそれぞれ隣接する類似度画像の画素値に対してそれぞれ独立に累積加算する処理を繰り返す累積加算手順と、
前記累積加算手順により累積加算処理された類似度画像の各画素の周辺画素の最大値を前記類似度画像生成手順により生成された類似度画像の各画素の画素値に累積加算して前記類似度画像を更新する類似度画像更新手順と、
前記類似度画像更新手順により更新された更新後の各類似度画像の最大値の位置と更新前の各類似度画像の最大値の位置との変動が所定値未満となるまで前記累積加算手順による累積加算と前記類似度画像更新手順による更新を繰り返して、前記入力画像と参照画像の対応点を決定する対応点決定手順と
をコンピュータに実行させることを特徴とする画像の対応点探索プログラム。A corresponding point search program for an image for searching for a corresponding point that associates an input image with a reference image to be compared with the input image,
A similarity image for generating a plurality of similarity images aligned in the vertical and horizontal directions having the similarity between the input partial image and the reference partial image obtained by dividing the input image and the reference image into a plurality of blocks, respectively, as pixel values Generation procedure,
The maximum values of the peripheral pixels of each pixel forming the plurality of similarity images generated by the similarity image generation procedure are set in the horizontal direction (j direction), the reverse direction of the horizontal direction (−j direction), the vertical direction ( i direction), and a cumulative addition procedure that repeats a process of cumulatively adding each pixel value of the similarity image adjacent to each other in the reverse direction (−i direction) of the vertical direction,
The similarity value is obtained by cumulatively adding the maximum value of the peripheral pixels of each pixel of the similarity image that has been cumulatively added by the cumulative addition procedure to the pixel value of each pixel of the similarity image generated by the similarity image generation procedure. Similarity image update procedure for updating an image,
According to the cumulative addition procedure until the variation between the position of the maximum value of each similarity image after update updated by the similarity image update procedure and the position of the maximum value of each similarity image before update is less than a predetermined value. A corresponding point search program for an image, characterized by causing a computer to execute a corresponding point determination procedure for determining a corresponding point between the input image and a reference image by repeating cumulative addition and updating by the similarity image updating procedure.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003075534A JP4286565B2 (en) | 2003-03-19 | 2003-03-19 | Corresponding point search method, corresponding point search device, and corresponding point search program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003075534A JP4286565B2 (en) | 2003-03-19 | 2003-03-19 | Corresponding point search method, corresponding point search device, and corresponding point search program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004287522A JP2004287522A (en) | 2004-10-14 |
| JP4286565B2 true JP4286565B2 (en) | 2009-07-01 |
Family
ID=33290830
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003075534A Expired - Fee Related JP4286565B2 (en) | 2003-03-19 | 2003-03-19 | Corresponding point search method, corresponding point search device, and corresponding point search program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4286565B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5164912B2 (en) * | 2009-04-20 | 2013-03-21 | グローリー株式会社 | Corresponding point search method, corresponding point search device, and corresponding point search program |
-
2003
- 2003-03-19 JP JP2003075534A patent/JP4286565B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004287522A (en) | 2004-10-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Huang et al. | YOLO-LITE: a real-time object detection algorithm optimized for non-GPU computers | |
| JP4298749B2 (en) | Time-series data dimension compressor | |
| EP0525804B1 (en) | Character thinning using emergent behavior of populations of competitive locally independent processes | |
| CN114998703B (en) | A remote sensing image change detection method based on high-resolution convolutional neural network | |
| CN110826457B (en) | Vehicle detection method and device under complex scene | |
| Garg et al. | Structure preservation of image using an efficient content-aware image retargeting technique | |
| JP4160762B2 (en) | Corresponding point search device for image, corresponding point searching method, and program for causing computer to execute the method | |
| JP4339221B2 (en) | Image construction method, fingerprint image construction apparatus and program | |
| JP2001043368A5 (en) | ||
| JP5743501B2 (en) | Object tracking device, object tracking method, and object tracking program | |
| CN118644435A (en) | Document image highlight removal method, device and electronic device | |
| JP4286565B2 (en) | Corresponding point search method, corresponding point search device, and corresponding point search program | |
| JP4460277B2 (en) | Corresponding point search method of image, corresponding point search device, and corresponding point search program | |
| JP2012043437A (en) | Image processing method and image processing device | |
| CN114596486B (en) | Target detection methods, devices and storage media | |
| JP4460274B2 (en) | Corresponding point search method of image, corresponding point search device, and corresponding point search program | |
| CN111400314A (en) | Method and device for retrieving node vector from database using vector graph index | |
| JP3842080B2 (en) | Signature verification apparatus, signature verification method, and signature verification program | |
| JP4181811B2 (en) | Corresponding point search method of image, corresponding point search device, and corresponding point search program | |
| JPH08137908A (en) | Image retrieval method and device | |
| CN116680435B (en) | A similar image retrieval and matching method based on multi-layer feature extraction | |
| JP3898936B2 (en) | Corresponding point search device, corresponding point search processing method, and corresponding point search processing program | |
| JP6778625B2 (en) | Image search system, image search method and image search program | |
| JP5164912B2 (en) | Corresponding point search method, corresponding point search device, and corresponding point search program | |
| JP2001337990A (en) | Image retrieval system and image retrieval method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20051213 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060116 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090227 |
|
| 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: 20090317 |
|
| 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: 20090325 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120403 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4286565 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: 20120403 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130403 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130403 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140403 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140403 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |