JP2004164479A - Device, method, and program for generating image deformation information - Google Patents

Device, method, and program for generating image deformation information Download PDF

Info

Publication number
JP2004164479A
JP2004164479A JP2002331879A JP2002331879A JP2004164479A JP 2004164479 A JP2004164479 A JP 2004164479A JP 2002331879 A JP2002331879 A JP 2002331879A JP 2002331879 A JP2002331879 A JP 2002331879A JP 2004164479 A JP2004164479 A JP 2004164479A
Authority
JP
Japan
Prior art keywords
straight line
image
candidate
parameter
deformation information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002331879A
Other languages
Japanese (ja)
Other versions
JP4133246B2 (en
Inventor
Masahide Naemura
昌秀 苗村
Toshihiko Misu
俊彦 三須
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Broadcasting Corp
Original Assignee
Nippon Hoso Kyokai NHK
Japan Broadcasting Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Hoso Kyokai NHK, Japan Broadcasting Corp filed Critical Nippon Hoso Kyokai NHK
Priority to JP2002331879A priority Critical patent/JP4133246B2/en
Publication of JP2004164479A publication Critical patent/JP2004164479A/en
Application granted granted Critical
Publication of JP4133246B2 publication Critical patent/JP4133246B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device, method and program for generating image deformation information capable of improving the accuracy of deformation information, reducing a calculation amount for finding the deformation information and realizing high-speed processing in the case of generating the deformation information from a reference image which is a reference in continuous images inputted in time series. <P>SOLUTION: The image deformation information generation device 1 extracts straight lines similar in Hough space to a reference straight line on a reference image previously set by a reference straight line setting part 2 as candidate straight lines from intra-image straight lines of an input image which is detected by a straight line detection part 3. A matching rate calculation part 5 calculates a matching rate between the reference straight line and each candidate straight line on the basis of a Hough parameter and a deformation information determination part 6 specifies a moving straight line moved from the reference straight line out of the candidate straight lines on the basis of respective matching rates and determines deformation information from the reference straight line to the moving straight line as deformation information from the reference image to the input image. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、時系列に入力される画像の動きを変形情報として生成する画像変形情報生成装置、画像変形情報生成方法及び画像変形情報生成プログラムに関する。
【0002】
【従来の技術】
従来、異なる2つの画像において、一方の画像が他方の画像にどのように変形したかを、アフィン、回転、拡大/縮小、並進等を表すパラメータ(変形情報:以下変形パラメータという)によって表現する手法が存在する。この変形パラメータを求める手法としては、画像内の各画素が移動した距離を最小化する変形パラメータを最適な変形パラメータとして特定する手法が広く用いられている(例えば、非特許文献1参照。)。なお、この非特許文献1には、変形パラメータを2つの画像間の動きパラメータとして求める問題として記載されている。
【0003】
ここで、図8を参照して、従来の変形パラメータを求める手法について説明する。図8は、異なる2つの画像において、一方の画像(基準画像という)が他方の画像(比較画像という)に変形したときの変形パラメータを求める動作の概略を示すフローチャートである。
【0004】
この従来の手法では、まず、ブロックマッチング法によって、基準画像Istdと比較画像Icmpとの間で特定の大きさのブロック毎にマッチングを行い動きベクトルを検出する(ステップS21:ブロックマッチング法)。そして、基準画像Istdと比較画像Icmpとに対応する画素毎に(1)式によって、変形パラメータによる動き予測誤差errを計算する(ステップS22)。
【0005】
【数1】

Figure 2004164479
【0006】
ここで、ρはコスト関数(ここではベクトルの大きさを求めることで、特定の統計モデルに合致する確率を示す関数)、vはブロック毎の動きベクトル、xは各ブロック内の画素位置(ベクトル)、pは変形パラメータ、Aはパラメータ変換を示すものとする。前記(1)式に示したように、動き予測誤差errは、ブロック毎の動きベクトルvから、そのブロック内における各画素位置(ベクトル)を変形パラメータpによってパラメータ変換したベクトルを引いた差分ベクトルの大きさに基づいて、特定の統計モデルに合致する確率を画素毎に加算したものとなる。
【0007】
そして、この動き予測誤差errの特定の統計モデルに合致する確率が最大となる変形パラメータpを、最適な変形パラメータとして出力する(ステップS23)。
このように、従来は、画像内の各画素が移動した距離を最小化する変形パラメータを最適な変形パラメータとして求めていた。
【0008】
【非特許文献1】
A.Murat Tekalp著、“Digital VideoProcessing”、Prentice Hall、1995年
【0009】
【発明が解決しようとする課題】
しかし、前記従来の技術では、前記(1)式に示したように、変形パラメータを画像上の画素レベルの統計的な性質に基づいて求めるため、連続した複数の画像で逐次変形パラメータを求めようとすると、誤差が時間と共に画像に伝播してしまうという問題がある。さらに、この誤差の伝播に伴い正しい変形パラメータが得られなかった場合、その間違った変形パラメータによって変形された画像からは、正しい画像を回復させることができないという問題がある。
【0010】
さらに、前記従来の技術では、変形パラメータの精度を上げるために、画素単位での計算を繰り返し行う必要があるため、処理時間がかかってしまうという問題がある。
【0011】
本発明は、以上のような問題点に鑑みてなされたものであり、変形パラメータの精度を高めると共に、変形パラメータを求める計算量を軽減し、高速処理を実現することを可能にした画像変形情報生成装置、画像変形情報生成方法及び画像変形情報生成プログラムを提供することを目的とする。
【0012】
【課題を解決するための手段】
本発明は、前記目的を達成するために創案されたものであり、まず、請求項1に記載の画像変形情報生成装置は、時系列に入力される連続した画像において、予め基準画像に含まれる基準直線を特定する基準直線パラメータを設定し、前記画像が変化することに伴う前記基準直線の変化に基づいて、前記基準画像から前記基準画像以降に入力される入力画像への変形情報を生成する画像変形情報生成装置であって、前記入力画像に含まれる直線を画像内直線として検出し、その画像内直線を画像内直線パラメータによって特定する直線検出手段と、前記基準直線パラメータ及び前記画像内直線パラメータに基づいて、前記直線検出手段で検出された画像内直線の中から、前記基準直線の位置が移動した候補となる候補直線を抽出し、その候補直線を候補直線パラメータとして特定する候補直線抽出手段と、前記基準直線パラメータと前記候補直線パラメータとに基づいて、前記基準直線と前記候補直線とが同一の直線である度合いを示す一致度を算出する一致度算出手段と、この一致度算出手段で算出された一致度に基づいて、前記候補直線の中から前記基準直線の位置が移動した移動直線を特定し、前記基準直線から前記移動直線への変形情報を、前記基準画像から前記入力画像への変形情報として決定する変形情報決定手段と、を備える構成とした。
【0013】
かかる構成によれば、画像変形情報生成装置は、基準となる基準画像に含まれる基準直線を特定するパラメータ(基準直線パラメータ)として設定しておき、その基準直線が基準画像以降に入力される入力画像上でどのように変形していくかを示す変形情報を算出し、その変形情報を基準画像が変形していく変形情報として生成する。
【0014】
すなわち、画像変形情報生成装置は、直線検出手段によって、基準画像以降に入力される入力画像内の直線(画像内直線)を、ハフ変換等の一般的なエッジ検出技術により検出する。これによって、画像内直線を特定するパラメータ(画像直線内パラメータ)が求められる。ここで検出された画像内直線には、基準画像で設定した基準直線が変形した直線以外の直線も含まれている可能性がある。
【0015】
そこで、画像変形情報生成装置は、候補直線抽出手段によって、画像内直線から基準直線に類似する直線を基準直線の位置が移動した候補となる候補直線として抽出し、その候補直線を候補直線パラメータとして特定する。この類似性の判断は、直線の傾き、画像座標上の原点からの距離等のパラメータに基づいて判断する。例えば、画像座標上の原点からの距離が近いものであっても、直線の傾きが大きく異なるものは類似していないと判断する。これによって、基準直線に類似した候補直線が抽出され、基準直線とその基準直線が入力画像上で変形したであろう直線の候補(候補直線)との組み合わせ数を減らすことができる。
【0016】
そして、画像変形情報生成装置は、一致度算出手段によって、この組み合わせ数を減らした基準直線と候補直線との各組み合わせにおいて、基準直線パラメータと前記候補直線パラメータとにより、基準直線と候補直線とが同一の直線である度合いを示す一致度の算出を行い、変形情報決定手段によって、候補直線の中から基準直線の位置が移動した直線(移動直線)を1つに特定し、基準直線から移動直線への変形情報を、基準画像から入力画像への変形情報として決定する。
【0017】
また、請求項2に記載の画像変形情報生成装置は、請求項1に記載の画像変形情報生成装置において、前記直線検出手段が、前記入力画像において、前記基準直線の位置に対応し、その基準直線の近傍領域からなる領域を前記画像内直線の探索領域として設定する探索領域設定手段を備え、前記探索領域に対してハフ変換を行うことで前記画像内直線を検出することを特徴とする。
【0018】
かかる構成によれば、画像変形情報生成装置は、探索領域設定手段によって、入力画像上に、基準直線の位置を基準に特定の幅を持った領域(近傍領域)を、基準直線数分加算した探索領域として設定する。そして、直線検出手段は、基準直線の位置が移動したと想定される探索領域内でハフ変換により画像内直線を検出する。これによって探索領域が狭くなり、直線検出の時間を短縮することができる。
【0019】
なお、ここで基準直線に対する近傍領域を設定する際の幅は、例えば、変化(動き)が激しい画像の場合は、基準画像上の基準直線が入力画像上で大きく移動するため、その移動量以上の幅を設定する。また、変化が穏やかな画像の場合は幅を狭く設定するものとする。
【0020】
また、請求項3に記載の画像変形情報生成装置は、請求項1又は請求項2に記載の画像変形情報生成装置において、前記候補直線抽出手段が、前記基準直線及び前記画像内直線のそれぞれを特定するパラメータ間の距離に基づいて、前記画像内直線から前記候補直線を抽出することを特徴とする。
【0021】
かかる構成によれば、画像変形情報生成装置は、候補直線抽出手段によって、画像内直線から候補直線を抽出する際に、基準直線と画像内直線とのパラメータ間距離が予め定めた距離以内のものを候補直線として抽出する。例えば、このパラメータ間距離は、各直線をハフパラメータで表現することで、そのハフパラメータ間の距離として定義しておく。このように、各直線をパラメータによって表現しておくことで、直線間の距離を容易に求めることができる。
【0022】
また、請求項4に記載の画像変形情報生成装置は、請求項1乃至請求項3のいずれか1項に記載の画像変形情報生成装置において、前記変形情報決定手段によって決定された変形情報により、前記基準画像を変形した変形画像を生成し、その変形画像と前記入力画像との誤差に基づいて、前記変形情報を補正する変形情報補正手段を備えたことを特徴とする。
【0023】
かかる構成によれば、画像変形情報生成装置は、変形情報補正手段によって、変形情報決定手段で決定された変形情報(変形パラメータ)を用いて、基準画像を変形し、その変形した変形画像と入力画像との誤差、例えば、動きベクトルにおける予測誤差に基づいて、変形パラメータを補正する。これによって、変形パラメータの精度を高めることができる。
【0024】
さらに、請求項5に記載の画像変形情報生成方法は、時系列に入力される連続した画像において、予め基準画像に含まれる基準直線を特定する基準直線パラメータを設定し、前記画像が変化することに伴う前記基準直線の変化に基づいて、前記基準画像から前記基準画像以降に入力される入力画像への変形情報を生成する画像変形情報生成方法であって、前記入力画像から、前記基準直線の位置に対応し、その基準直線の近傍領域からなる領域を直線の探索領域として設定する探索領域設定ステップと、この探索領域設定ステップで設定された探索領域に対してハフ変換を行い、この探索領域に含まれる画像内直線を検出する直線検出ステップと、この直線検出ステップで検出された画像内直線の中で、前記基準直線に近接する直線を、前記基準直線の位置が移動した候補となる候補直線とし、その候補直線の候補直線パラメータを特定する候補直線パラメータ特定ステップと、前記基準直線パラメータと前記候補直線パラメータとに基づいて、前記基準直線と前記候補直線とが同一の直線である度合いを示す一致度を算出する一致度算出ステップと、この一致度算出ステップで算出された一致度に基づいて、前記候補直線の中から前記基準直線の位置が移動した移動直線を特定し、前記基準直線から前記移動直線への変形情報を、前記基準画像から前記入力画像への変形情報として決定する変形情報決定ステップと、を含むことを特徴とする。
【0025】
この方法によれば、画像変形情報生成方法は、探索領域設定ステップで、入力画像上に、基準直線の位置を基準に特定の幅を持った領域(近傍領域)を、基準直線数分加算した探索領域として設定する。そして、直線検出ステップで、探索領域設定ステップで設定された探索領域に対してハフ変換を行い、この探索領域に含まれる画像内直線を検出する。このように、直線検出ステップでは、基準直線の位置が移動したと想定される探索領域内で画像内直線を探索することで、直線検出の時間を短縮することができる。また、ハフ変換によって、画像内直線を画素の集合としてではなく、パラメータ(ハフパラメータ)として扱うことが可能になる。
【0026】
さらに、候補直線パラメータ特定ステップで、画像内直線の中で、基準直線に近接するものを基準直線の位置が移動した候補直線とし、その候補直線のハフパラメータである候補直線パラメータを特定する。なお、画像内直線の中から、基準直線に近接する候補直線を特定するには、画像内直線のハフパラメータと、基準直線のハフパラメータとの距離を求め、その距離が予め定めた距離以内のものを候補直線とする。これによって、基準直線に類似した候補直線が抽出され、基準直線とその基準直線が入力画像上で変形したであろう直線の候補(候補直線)との組み合わせ数を減らすことができる。
【0027】
また、一致度算出ステップで、この組み合わせ数を減らした基準直線と候補直線との各組み合わせにおいて、基準直線と候補直線とが同一の直線である度合いを示す一致度の算出を行い、変形情報決定ステップで、候補直線の中から基準直線の位置が移動した直線(移動直線)を1つに特定し、基準直線から移動直線への変形情報を、基準画像から入力画像への変形情報として決定する。
【0028】
また、請求項6に記載の画像変形情報生成プログラムは、時系列に入力される連続した画像において、予め基準画像に含まれる基準直線を特定する基準直線パラメータを設定し、前記画像が変化することに伴う前記基準直線の変化に基づいて、前記基準画像から前記基準画像以降に入力される入力画像への変形情報を生成するために、コンピュータを、以下の手段によって機能させる構成とした。
【0029】
すなわち、前記入力画像から、前記基準直線の位置に対応し、その基準直線の近傍領域からなる領域を直線の探索領域として設定する探索領域設定手段、この探索領域設定手段で設定された探索領域に対してハフ変換を行い、この探索領域に含まれる画像内直線を検出し、その画像内直線を画像内直線パラメータによって特定する直線検出手段、前記基準直線パラメータ及び前記画像内直線パラメータに基づいて、前記直線検出手段で検出された画像内直線の中から、前記基準直線の位置が移動した候補となる候補直線を抽出し、その候補直線を候補直線パラメータとして特定する候補直線特定手段、前記基準直線パラメータと前記候補直線パラメータとに基づいて、前記基準直線と前記候補直線とが同一の直線である度合いを示す一致度を算出する一致度算出手段、この一致度算出手段で算出された一致度に基づいて、前記候補直線の中から前記基準直線の位置が移動した移動直線を特定し、前記基準直線から前記移動直線への変形情報を、前記基準画像から前記入力画像への変形情報として決定する変形情報決定手段、とした。
【0030】
かかる構成によれば、画像変形情報生成プログラムは、探索領域設定手段によって、入力画像上に、基準直線の位置を基準に特定の幅を持った領域(近傍領域)を、基準直線数分加算した探索領域として設定し、直線検出手段によって、探索領域に対してハフ変換を行うことで、画像内直線を検出して画像内直線を特定するパラメータ(画像直線内パラメータ)を求める。ここで検出された画像内直線には、基準画像で設定した基準直線が変形した直線以外の直線も含まれている可能性がある。
【0031】
そして、画像変形情報生成プログラムは、候補直線抽出手段によって、画像内直線から基準直線に類似する直線を基準直線の位置が移動した候補となる候補直線として抽出する。ここでは、基準直線と画像内直線とのパラメータ間距離が予め定めた距離以内のものを候補直線として抽出し、その候補直線を候補直線パラメータとして特定する。
【0032】
そして、画像変形情報生成プログラムは、一致度算出手段によって、基準直線と候補直線との各組み合わせにおいて、基準直線パラメータと前記候補直線パラメータとにより、基準直線と候補直線とが同一の直線である度合いを示す一致度の算出を行い、変形情報決定手段によって、候補直線の中から基準直線の位置が移動した直線(移動直線)を1つに特定し、基準直線から移動直線への変形情報を、基準画像から入力画像への変形情報として決定する。
【0033】
【発明の実施の形態】
以下、本発明の実施の形態について図面を参照して説明する。
[画像変形情報生成装置の構成]
図1は、本発明における画像変形情報生成装置1の構成を示したブロック図である。図1に示すように画像変形情報生成装置1は、時系列に入力される連続画像の動きを、アフィン、回転、拡大/縮小、並進等の変形関係で特定し、その変形関係を示す変形パラメータを出力するものである。ここでは、連続画像において、最初に入力される画像を変形の基準となる基準画像Istd、その基準画像Istd以降に入力される入力画像を基準画像Istdと比較する画像として比較画像Icmpと呼ぶこととする。また、ここでは、画像変形情報生成装置1を、直線パラメータ検出手段10と、基準直線パラメータ記憶手段20と、候補直線パラメータ記憶手段30と、変形パラメータ特定手段40とを備えて構成した。
【0034】
直線パラメータ検出手段10は、入力された画像(基準画像Istd及び比較画像Icmp)から直線を検出し、その直線を特定するパラメータを出力するもので、基準直線設定部2と、直線検出部3と、候補直線抽出部4とを備えて構成した。
【0035】
基準直線設定部2は、入力された基準画像Istdにおいて、画像の特徴となる直線(基準直線)を図示していない入力手段により設定されることで、その基準直線を特定するパラメータ(基準直線パラメータ)を、基準直線パラメータ記憶手段20に記憶するものである。なお、基準直線設定部2は、直線が存在する領域のみを図示していない入力手段により設定されることで、その領域をハフ変換(Hough transform)し、直線を検出することとしてもよい。
【0036】
この基準直線設定部2で基準直線パラメータ記憶手段20に記憶される基準直線パラメータは、直線を特定するパラメータであって、例えば後記するハフ空間におけるハフパラメータとする。
【0037】
なお、ここで設定する直線の数に応じて、アフィン、回転、拡大/縮小、並進等の画像の変形関係が特定される。例えば、画像の変形は変形パラメータの数を増やすほど、自由な変形を表現することが可能であるが、その場合には、画像上に必要な数の直線が存在している必要がある。図2に変形パラメータの数と、その必要条件を示す。
【0038】
図2に示すように、例えば、変形パラメータを1〜2とする場合は、画像上に傾きが異なる2本以上の直線の組み合わせが1組以上存在する必要がある。これによって表現される代表的な変形モデルには並進がある。すなわち、基準直線設定部2では、傾きが異なる2本以上の直線の組み合わせを1組設定することで、変形モデルとして並進を表現することが可能になる。
【0039】
次に、図3を参照して、ハフ変換及び直線を特定するパラメータについて説明する。図3(a)は、一般的な(x,y)座標によって表現された座標空間(以下画像空間という)に直線lが存在している状態を示している。ハフ変換は、この直線lを構成する画素(複数の画素)を、その直線lを特定するパラメータ(ハフパラメータ)に変換するものである。一般的に、ハフ変換は、直線lを座標空間の原点Oから直線lに垂線を引いた線分とx軸との角度Θ、及びその線分の長さρの2つのハフパラメータに変換する。
【0040】
このようにハフ変換によって、2つのハフパラメータに変換された直線lは、図3(b)に示すように、(ρ,Θ)座標によって表現された座標空間(以下ハフ空間という)上で、点として表現される。なお、直線を特定するパラメータは必ずしもハフパラメータ(ρ,Θ)である必要はない、例えば、図3(a)において、直線lの傾き及び直線lとy軸との交点であるy切片をパラメータとして用いることとしてもよい。
図1に戻って説明を続ける。
【0041】
直線検出部(直線検出手段)3は、基準画像Istd以降に入力される入力画像である比較画像Icmpに含まれる直線を、画像内直線として検出するものである。この直線検出部3では、比較画像Icmpに対してハフ変換を行うことで画像内直線を検出する。ここで検出された画像内直線のハフパラメータは、候補直線パラメータ記憶手段30に記憶される。なお、ここでは、この直線検出部3に探索領域設定部3aを備えて構成した。
【0042】
探索領域設定部(探索領域設定手段)3aは、基準直線設定部2で検出された基準直線に基づいて、直線検出部3が比較画像Icmpから画像内直線を検出する探索領域を設定するものである。この基準直線は、基準直線パラメータ記憶手段20に記憶されているハフパラメータによって位置と長さが特定される。
【0043】
この探索領域設定部3aでは、基準直線設定部2で検出された基準直線から予め定めた特定の幅を持つ近傍領域を設定し、その近傍領域の集合を探索領域とする。ここで特定の幅は、入力される画像の特性によって予め異なる値を設定するものとする。例えば、変化(動き)が激しい画像の場合は、基準画像Istd上の基準直線が比較画像Icmp上で大きく移動するため、その移動量以上の幅を設定する。また、変化が穏やかな画像の場合は幅を狭く設定するものとする。
【0044】
このように、直線検出部3は、探索領域設定部3aで基準直線に基づいて設定された探索領域にのみハフ変換を行うことで、直線の探索時間の高速化と、候補直線抽出部4での抽出すべき直線の高精度化を実現することができる。
【0045】
ここで、図4を参照(適宜図1参照)して、比較画像Icmpから、基準直線の近傍領域からなる探索領域を設定し、その探索領域の画像内直線を検出する方法について説明する。
【0046】
図4は、サッカー中継においてゴール近辺を撮影した時間的に連続した画像を示しており、図4(a)は、ある時刻に撮影した基準画像Istd、図4(b)は、基準画像Istdに対して、次の時刻でカメラの倍率を下げることで、より広い範囲を撮影した比較画像Icmpを示している。
【0047】
まず、画像変形情報生成装置1は、基準直線設定部2によって、図4(a)の基準画像Istdにおいて、サッカーのゴールエリアを4本の基準直線BLとして設定する。そして、探索領域設定部3aによって、図4(b)の比較画像Icmpにおいて、基準直線BLに対して特定の幅を持たせた領域を近接領域ARとし、その近接領域ARの集合を探索領域SAとして設定する。このように、探索領域SAを設定することで、基準画像Istdが比較画像Icmpに変化したときの基準画像Istd上の基準直線BLに対応する直線が、探索領域SA内に存在すると仮定することができる。すなわち、直線検出部3は、比較画像Icmpの中で、探索領域SAのみをハフ変換することで、基準直線BLに近接する画像内直線ILを検出することができる。
【0048】
なお、図4(b)において、点線で示された基準直線BLは、比較画像Icmp上に実在する直線ではなく、図4(a)で検出された基準直線BLの位置を仮想的に示したものである。
図1に戻って説明を続ける。
【0049】
候補直線抽出部(候補直線抽出手段)4は、基準直線パラメータ記憶手段20に記憶されている基準画像Istdにおける基準直線のハフパラメータと、候補直線パラメータ記憶手段30に記憶されている比較画像Icmpにおける画像内直線のハフパラメータとに基づいて、画像内直線の中から基準直線に類似する直線を、基準直線の位置が移動した候補となる候補直線として抽出するものである。なお、候補直線から除外された画像内直線のハフパラメータは、候補直線パラメータ記憶手段30から削除される。
【0050】
例えば、候補直線抽出部4は、この類似の判定をハフパラメータである(ρ,Θ)の2つのパラメータに基づいて行う。すなわち、この2つのパラメータ(ρ,Θ)に基づいて、基準直線と画像内直線とのハフ空間上の距離を求め、予め定めた距離以内の画像内直線を、基準直線に類似し、基準直線の位置が移動した候補となる候補直線と判定する。
【0051】
ここで、図5及び図6を参照(適宜図1参照)して、候補直線を抽出する方法について説明する。図5は、基準画像Istdの基準直線と、比較画像Icmpの探索領域SA(図4(b))内における画像内直線とを、それぞれ、ハフパラメータで表したものである。図6は、図5のハフパラメータをハフ空間上に表したものである。
【0052】
図5に示すように、基準画像Istdの基準直線(Lstd[0]〜Lstd[3])を、ハフパラメータによって表現する。例えば、基準直線Lstd[0]を、(ρstd[0],Θstd[0])の2つのパラメータで表現する。また、比較画像Icmpの画像内直線(Lcmp[0]〜Lcmp[6])も同様にハフパラメータによって表現する。例えば、画像内直線Lcmp[0]を、(ρcmp[0],Θcmp[0])の2つのパラメータで表現する。このように、直線をハフパラメータで表現することで、図6に示したように、各直線は、ハフ空間上の点として表現される。
【0053】
そして、図6に示したように、各基準直線(Lstd[0]〜Lstd[3])を中心として、予め定めた距離(一定距離範囲CI)内に存在する画像内直線を候補直線として判定する。
【0054】
例えば、図6では、Lstd[0]に対する候補直線はLcmp[0]及びLcmp[1]、Lstd[1]に対する候補直線はLcmp[2]、Lstd[2]に対する候補直線はLcmp[5]、Lstd[3]に対する候補直線はLcmp[3]及びLcmp[4]となる。また、Lcmp[6]は、探索領域SA(図4(b))内には存在するが、基準直線の候補からは外れることになる。これによって、各基準直線(Lstd[0]〜Lstd[3])に類似する候補直線を抽出することができる。これ以降、画像内直線(Lcmp[0]〜Lcmp[5])を候補直線と呼ぶこととする。
図1に戻って説明を続ける。
【0055】
基準直線パラメータ記憶手段20は、基準直線設定部2で設定された基準画像Istd上の基準直線のパラメータ(基準直線パラメータ)を記憶しておくもので、一般的なメモリ等で構成される。例えば、図5に示した基準直線(Lstd[0]〜Lstd[3])のパラメータを記憶する。この基準直線パラメータ記憶手段20に記憶された基準直線パラメータは、探索領域設定部3a及び後記する一致度算出部5から参照される。
【0056】
候補直線パラメータ記憶手段30は、直線検出部3で検出された比較画像Icmp上の直線のパラメータを記憶しておくもので、一般的なメモリ等で構成される。例えば、図5に示した直線検出部3で検出した画像内直線(Lcmp[0]〜Lcmp[6])のパラメータを記憶する。なお、この画像内直線(Lcmp[0]〜Lcmp[6])のパラメータは、候補直線抽出部4によって、候補直線(Lcmp[0]〜Lcmp[5])に更新される。
【0057】
また、この候補直線パラメータ記憶手段30内の候補直線のパラメータ(候補直線パラメータ)は、候補直線抽出部4によって、基準直線毎に対応付けて記憶される。この候補直線パラメータ記憶手段30に記憶された候補直線パラメータは、後記する一致度算出部5から参照される。なお、ここでは基準直線パラメータ記憶手段20と候補直線パラメータ記憶手段30とを分離して構成したが、同一のメモリあるいはハードディスク上で記憶領域を分割して記憶することとしてもよい。
【0058】
変形パラメータ特定手段40は、直線パラメータ検出手段10で検出された基準画像Istd及び比較画像Icmpの各直線のパラメータに基づいて、基準画像Istdから比較画像Icmpへの画像の動き(変化)を表現する変形パラメータを特定するものである。ここでは、変形パラメータ特定手段40を、一致度算出部5と、変形情報決定部6と、変形情報補正部7とを備えて構成した。
【0059】
一致度算出部(一致度算出手段)5は、基準直線パラメータ記憶手段20に記憶されている基準直線のパラメータ(基準直線パラメータ)と、候補直線パラメータ記憶手段30に記憶されている候補直線のパラメータ(候補直線パラメータ)との組み合わせにおいて、基準直線を候補直線に変形する変形パラメータに基づいて、基準直線と候補直線とが一致する度合いを示す一致度を算出するものである。
【0060】
なお、図5に示した基準画像Istd上の4本の基準直線{Lstd[0],Lstd[1],Lstd[2],Lstd[3]}と、比較画像Icmp上の7本の画像内直線{Lcmp[0],Lcmp[1],Lcmp[2],Lcmp[3],Lcmp[4],Lcmp[5],Lcmp[6]}との各パラメータの組み合わせは、(=7×6×5×4=840)通り存在する。しかし、画像変形情報生成装置1では、候補直線抽出部4によって、画像内直線から基準直線に対する候補直線が抽出されるため、図6に示したように基準直線のパラメータ(基準直線パラメータ)と候補直線のパラメータ(候補直線パラメータ)との組み合わせは、(2)式に示した4通りとなる。
【0061】
【数2】
Figure 2004164479
【0062】
このように、一致度算出部5では組み合わせ数が軽減された基準直線パラメータと候補直線パラメータとの組み合わせ数分だけ、一致度の算出を行う。
ここでは、基準直線パラメータと候補直線パラメータとのk番目の組み合わせにおいて、基準直線を変形パラメータpによって変形したときの基準直線と候補直線との一致度sim(p)を(3)式で定義する。
【0063】
【数3】
Figure 2004164479
【0064】
ここで、ρはコスト関数(例えば、差の2乗和や絶対値差分を求めることで、特定の統計モデルに合致する確率を示す関数)、Lstdは基準画像Istdの基準直線パラメータ、Lcmpは比較画像Icmpの候補直線パラメータ、Cは基準直線パラメータと候補直線パラメータとのk番目の組み合わせ、iは基準直線を識別する番号、jは候補直線を識別する番号、pは変形パラメータ、Aはパラメータ変換を示すものとする。前記(3)式に示したように、一致度sim(p)は、基準直線パラメータLstdを変形パラメータpによってパラメータ変換したハフパラメータと、候補直線パラメータとの差に基づいて、特定の統計モデルに合致する確率を基準直線パラメータと候補直線パラメータとの組み合わせ数分(k個)加算したものである。
【0065】
変形情報決定部(変形情報決定手段)6は、一致度算出部5で算出された一致度に基づいて、最大の一致度を与える組み合わせとなる変形パラメータを決定するものである。ここでは、(4)式に示すように、前記(3)式の値を最大にする変形パラメータpを求めることとする。
【0066】
【数4】
Figure 2004164479
【0067】
より具体的には、前記(3)式を、前記(4)式を満たす変形パラメータpの各要素で偏微分した値は0となることから、この偏微分した結果である変形パラメータpの連立方程式を解くことで、変形パラメータpを求めることができる。
なお、ここで変形パラメータpの各要素とは、並進、アフィン等の変形モデルにおける変形式を特定するパラメータの値で、例えば、(5)式に示す並進モデルの変形式におけるp及びp、また、例えば、(6)式に示すアフィンモデルの変形式におけるp〜pを指す。
【0068】
【数5】
Figure 2004164479
【0069】
【数6】
Figure 2004164479
【0070】
なお、この(5)式及び(6)式において、(x,y)は基準画像Istdの任意の座標、(x´,y´)は変形モデルにより変形した(x,y)の変形後の座標を意味する。
【0071】
これによって、例えば、図5に示した例において、前記(2)式の組み合わせの中で、基準直線と候補直線とが一致する組み合わせは、(7)式の組み合わせとなり、変形情報決定部6では、この(7)式の組み合わせにおける変形パラメータが出力(決定)される。すなわち、{Lcmp[1],Lcmp[2],Lcmp[3],Lcmp[5]}が、基準直線が移動した移動直線として特定されたことになる。
【0072】
【数7】
Figure 2004164479
【0073】
このように変形パラメータは、変形情報決定部6によって決定されるため、この出力を画像変形情報生成装置1の出力としてもよい。ただし、この変形パラメータには、画像空間とハフ空間(図3参照)との解像度の違いにより、誤差が存在する。そこで、ここでは、さらに変形情報補正部7を備え、その誤差を補正するものとする。
【0074】
変形情報補正部7は、変形情報決定部6で決定された変形パラメータに基づいて、基準画像Istdを変形した変形画像を生成し、その変形画像と比較画像Icmpとを、従来の手法(図8及び(1)式参照)に基づいて画素レベルで演算することで、変形情報決定部6で決定された変形パラメータを補正した最適な変形パラメータを生成するものである。
【0075】
なお、この変形画像は、変形情報決定部6で決定された変形パラメータによって変形されたものであるため、比較画像Icmpとほぼ一致したものとなる。これによって、変形画像から比較画像Icmpへの微細な変更分のみを変形パラメータに対して補正することとなるため、従来の手法に比べてパラメータ精度が高くなる。
【0076】
以上、一実施形態に基づいて、画像変形情報生成装置1の構成について説明したが、画像変形情報生成装置1は、コンピュータにおいて各手段を各機能プログラムとして実現することも可能であり、各機能プログラムを結合して画像変形情報生成プログラムとして動作させることも可能である。
【0077】
[画像変形情報生成装置の動作]
次に、図1及び図7を参照して、画像変形情報生成装置1の動作について説明する。図7は、画像変形情報生成装置1の動作を示すフローチャートである。
【0078】
(基準直線パラメータ設定ステップ)
まず、画像変形情報生成装置1は、基準直線設定部2によって、入力された基準画像Istd内において、画像の特徴となる直線(基準直線)を図示していない入力手段により設定する(ステップS1)。この基準直線は、連続する画像に存在する直線で、位置や大きさが大きく変化しないものとする。例えば、サッカー中継でゴール近辺を撮影した映像において、ゴールポストやゴールエリア等の直線部分を基準直線とする。そして、この基準直線をハフ変換した基準直線パラメータ(ハフパラメータ)を求め、その基準直線パラメータを基準直線パラメータ記憶手段20に記憶する(ステップS2)。
なお、この基準直線は、アフィン、回転、拡大/縮小、並進等の画像の変形関係で必要となる数の直線(図2参照)を設定するものとする。
【0079】
(探索領域設定ステップ)
次に、画像変形情報生成装置1は、直線検出部3の探索領域設定部3aによって、基準画像以降の入力画像である比較画像Icmpにおいて、基準直線パラメータで位置と長さが特定された基準直線の予め定めた特定の幅を持つ近傍領域からなる領域を、探索領域として設定する(ステップS3)。
【0080】
(直線検出ステップ)
また、画像変形情報生成装置1は、直線検出部3によって、探索領域設定部3aで設定された探索領域のみをハフ変換することで、比較画像Icmp内の直線(画像内直線)を検出する(ステップS4)。なお、ここで検出された画像内直線のハフパラメータである画像内直線ハフパラメータを、一旦候補直線パラメータ記憶手段30に記憶しておく(ステップS5)。このように、直線検出ステップでは、探索領域についてのみハフ変換を行い直線を検出するため、処理速度を早めることができる。
【0081】
(候補直線パラメータ特定ステップ)
さらに、画像変形情報生成装置1は、候補直線抽出部4によって、基準直線パラメータ記憶手段20に記憶されている基準直線パラメータと、候補直線パラメータ記憶手段30に記憶されている画像内直線ハフパラメータとに基づいて、基準直線に近接する画像内直線を、基準直線の位置が移動した候補となる候補直線として抽出する(ステップS6)。また、候補直線パラメータ記憶手段30に記憶されている画像内直線ハフパラメータは、候補直線として抽出された直線のハフパラメータである候補直線パラメータに更新される(ステップS7)。
【0082】
(一致度算出ステップ)
そして、画像変形情報生成装置1は、一致度算出部5によって、基準直線パラメータと、候補直線パラメータとの組み合わせにおいて、基準直線と候補直線とが一致する度合いを示す一致度を算出する(ステップS8)。
【0083】
(変形情報決定ステップ)
そして、画像変形情報生成装置1は、変形情報決定部6によって、一致度算出部5で算出された一致度に基づいて、最大の一致度を与える基準直線と候補直線との組み合わせとなる変形パラメータを決定する(ステップS9)。
さらに、画像変形情報生成装置1は、変形情報補正部7によって、変形パラメータで基準画像Istdを変形した変形画像を生成し、その変形画像から比較画像Icmpへの変形に基づいて変形パラメータを補正して出力する(ステップS10)。
【0084】
以上の各ステップによって、画像変形情報生成装置1は、基準画像Istdを基準にして、基準画像Istdから、その基準画像Istd以降に入力される入力画像(比較画像Icmp)への最適な変形パラメータ(変形情報)を高速に求めることができる。
【0085】
【発明の効果】
以上説明したとおり、本発明に係る画像変形情報生成装置、画像変形情報生成方法及び画像変形情報生成プログラムでは、以下に示す優れた効果を奏する。
【0086】
請求項1、請求項5又は請求項6に記載の発明によれば、基準画像内の直線(基準直線)を元にして、基準直線が変形した変形情報を基準画像から各入力画像への変形情報とするため、従来のように入力画像毎に変形情報の誤差が伝播し、蓄積されることがない。また、入力画像の途中に画像内容の存在しない画像(例えば全面黒色の画像等)が存在しても、その次に入力される画像の変形情報を、基準画像に基づいて生成することが可能になり、画像の欠損に対する回復機能を有することになる。
【0087】
また、直線を画像空間ではなく、例えばハフ空間上の2つのパラメータ(ハフパラメータ)で扱うことができるため、直線を画像としてではなく、ハフパラメータで表現された点として扱うことができる。これにより、直線間の距離、一致度等を求める際に画素レベルの演算を行う必要がなく、処理時間を短縮(高速処理)することができる。
【0088】
また、例えば、カメラの操作によって入力画像が変化する場合、変形情報のみを伝送するだけで背景の画像を再現することが可能になるため、伝送時における画像の大幅な圧縮が可能になる。
【0089】
請求項2に記載の発明によれば、基準画像の基準直線を元に入力画像に探索領域を設定し、その探索領域内のみから直線(画像内直線)を検出することになるため、入力画像全体から直線を検出する場合に比べて、処理時間を短縮することができる。
【0090】
請求項3に記載の発明によれば、直線の類似性を、直線の画素レベルの演算を行わずに、パラメータ間の距離により求めるため、処理時間を短縮することができる。
【0091】
請求項4に記載の発明によれば、画像空間とハフ空間の解像度の違いによる誤差を補正することができるため、最適な変形情報(変形パラメータ)を生成することができる。なお、ハフ空間上のハフパラメータによって算出された変形パラメータに基づいて基準画像を変形した変形画像と入力画像とは、ほぼ一致したものとなっている。このため、従来のような画像空間のみで変形パラメータを生成する場合に比べて誤差を軽減し、変形パラメータの精度を高めることができる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係る画像変形情報生成装置の全体構成を示すブロック図である。
【図2】変形関係を特定するための変形パラメータ数とその必要条件との関係を示した図である。
【図3】(a)はある直線を画像空間上の座標で表現した図である。(b)はある直線をハフ空間上の座標で表現した図である。
【図4】(a)は基準画像上で基準直線を設定した例を示す図である。(b)は比較画像上で基準直線に基づいて探索領域を設定した図である。
【図5】探索領域内の直線をハフパラメータで表した図である。
【図6】探索領域内の直線をハフ空間上の座標で表現し、基準直線に近似する候補直線の抽出方法を説明するための説明図である。
【図7】本発明の実施の形態に係る画像変形情報生成装置の動作を示すフローチャートである。
【図8】従来の変形情報(変形パラメータ)を生成する動作を示すフローチャートである。
【符号の説明】
1 ……画像変形情報生成装置
2 ……基準直線設定部
3 ……直線検出部(直線検出手段)
3a……探索領域設定部(探索領域設定手段)
4 ……候補直線抽出部(候補直線抽出手段)
5 ……一致度算出部(一致度算出手段)
6 ……変形情報決定部(変形情報決定手段)
7 ……変形情報補正部(変形情報補正手段)
10……直線パラメータ検出手段
20……基準直線パラメータ記憶手段
30……候補直線パラメータ記憶手段
40……変形パラメータ特定手段[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image deformation information generation device, an image deformation information generation method, and an image deformation information generation program that generate, as deformation information, a motion of an image input in time series.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a method of expressing how one image is transformed into another image in two different images by using parameters (deformation information: hereinafter referred to as transformation parameters) representing affine, rotation, enlargement / reduction, translation, and the like. Exists. As a method of obtaining this deformation parameter, a method of specifying a deformation parameter that minimizes the distance that each pixel in the image has moved as an optimum deformation parameter is widely used (for example, see Non-Patent Document 1). Note that Non-Patent Document 1 describes a problem in which a deformation parameter is obtained as a motion parameter between two images.
[0003]
Here, a conventional method for obtaining a deformation parameter will be described with reference to FIG. FIG. 8 is a flowchart showing an outline of an operation for obtaining deformation parameters when one image (referred to as a reference image) is deformed into another image (referred to as a comparative image) in two different images.
[0004]
In this conventional method, first, a reference image I std And comparison image I cmp And a motion vector is detected by performing matching for each block of a specific size (step S21: block matching method). Then, the reference image I std And comparison image I cmp Then, the motion prediction error err based on the deformation parameter is calculated by the equation (1) for each pixel corresponding to (step S22).
[0005]
(Equation 1)
Figure 2004164479
[0006]
Here, ρ is a cost function (here, a function indicating the probability of matching with a specific statistical model by obtaining the magnitude of a vector), v is a motion vector for each block, and x is a pixel position (vector ) And p are deformation parameters and A is parameter conversion. As shown in the above equation (1), the motion prediction error err is a difference vector obtained by subtracting, from the motion vector v for each block, a vector obtained by parameter-converting each pixel position (vector) in the block by the deformation parameter p. Based on the size, the probability of matching with a specific statistical model is added for each pixel.
[0007]
Then, the deformation parameter p that maximizes the probability that the motion prediction error err matches the specific statistical model is output as the optimum deformation parameter (step S23).
As described above, conventionally, the deformation parameter that minimizes the distance that each pixel in the image has moved has been determined as the optimum deformation parameter.
[0008]
[Non-patent document 1]
A. "Digital Video Processing" by Murat Tekalp, Prentice Hall, 1995
[0009]
[Problems to be solved by the invention]
However, in the conventional technique, as shown in the above equation (1), since the deformation parameter is obtained based on the statistical property of the pixel level on the image, it is necessary to sequentially obtain the deformation parameter in a plurality of continuous images. Then, there is a problem that the error propagates to the image with time. Further, when a correct deformation parameter cannot be obtained due to the propagation of the error, there is a problem that a correct image cannot be recovered from an image deformed by the wrong deformation parameter.
[0010]
Further, in the above-described conventional technique, it is necessary to repeatedly perform calculation in pixel units in order to increase the accuracy of the deformation parameter, so that there is a problem that processing time is required.
[0011]
The present invention has been made in view of the above-described problems, and has been made to improve the accuracy of the deformation parameters, reduce the amount of calculation for obtaining the deformation parameters, and realize image deformation information that can realize high-speed processing. It is an object to provide a generation device, an image deformation information generation method, and an image deformation information generation program.
[0012]
[Means for Solving the Problems]
The present invention has been devised to achieve the above object. First, the image deformation information generating device according to claim 1 is included in a reference image in advance in a continuous image input in time series. A reference straight line parameter for specifying a reference straight line is set, and deformation information from the reference image to an input image input after the reference image is generated from the reference image based on a change in the reference straight line accompanying a change in the image. An image deformation information generating apparatus, comprising: a straight line detecting unit that detects a straight line included in the input image as a straight line in an image, and specifies the straight line in the image by a straight line parameter in the image; and the reference straight line parameter and the straight line in the image. Based on the parameters, a candidate straight line which is a candidate whose position of the reference straight line has been moved is extracted from the straight lines in the image detected by the straight line detecting means, and the candidate straight line is extracted. A candidate straight line extracting means for specifying a line as a candidate straight line parameter; and calculating a degree of coincidence indicating a degree that the reference straight line and the candidate straight line are the same straight line based on the reference straight line parameter and the candidate straight line parameter. Based on the degree of coincidence calculated by the degree-of-coincidence calculating means, a moving line in which the position of the reference line has moved is specified from among the candidate lines, and a moving line from the reference line to the moving line is identified. And deformation information determining means for determining deformation information as deformation information from the reference image to the input image.
[0013]
According to this configuration, the image deformation information generation device sets the reference straight line included in the reference image serving as the reference as a parameter (reference straight line parameter), and the input reference line is input after the reference image. Deformation information indicating how the image is deformed is calculated, and the deformation information is generated as deformation information for deforming the reference image.
[0014]
That is, the image deformation information generating apparatus detects a straight line (a straight line in the image) in the input image input after the reference image by the straight line detecting means by a general edge detection technique such as Hough transform. As a result, a parameter (parameter in the image straight line) for specifying the straight line in the image is obtained. The detected straight line in the image may include a straight line other than the straight line obtained by deforming the reference straight line set in the reference image.
[0015]
Therefore, the image deformation information generating apparatus extracts a straight line similar to the reference straight line from the straight line in the image as a candidate straight line which is a candidate whose position of the reference straight line has moved by the candidate straight line extracting means, and uses the candidate straight line as a candidate straight line parameter Identify. This similarity is determined based on parameters such as the inclination of the straight line and the distance from the origin on the image coordinates. For example, even if the distance from the origin on the image coordinates is short, it is determined that the straight lines having significantly different inclinations are not similar. As a result, a candidate straight line similar to the reference straight line is extracted, and the number of combinations of the reference straight line and the candidates of the straight line (candidate straight line) that may be deformed on the input image can be reduced.
[0016]
Then, the image deformation information generating apparatus uses the coincidence calculating means to determine the reference straight line and the candidate straight line by the reference straight line parameter and the candidate straight line parameter in each combination of the reference straight line and the candidate straight line with the reduced number of combinations. The degree of coincidence indicating the degree of the same straight line is calculated, and a straight line (moving straight line) in which the position of the reference straight line is moved is identified as one of the candidate straight lines by the deformation information determining means. Is determined as transformation information from the reference image to the input image.
[0017]
Also, in the image deformation information generating apparatus according to claim 2, in the image deformation information generating apparatus according to claim 1, the straight line detecting means corresponds to a position of the reference straight line in the input image, and The image processing apparatus further includes a search area setting unit that sets a region including a region near a straight line as a search region of the straight line in the image, and detects the straight line in the image by performing Hough transform on the search region.
[0018]
According to this configuration, the image deformation information generation device adds, by the search area setting unit, an area (neighboring area) having a specific width based on the position of the reference line on the input image by the number of reference lines. Set as search area. Then, the straight line detecting means detects a straight line in the image by Hough transform in a search area where the position of the reference straight line is assumed to have moved. As a result, the search area is narrowed, and the time for detecting a straight line can be reduced.
[0019]
Here, the width when setting the neighborhood area with respect to the reference straight line is, for example, in the case of an image having a large change (movement), since the reference straight line on the reference image largely moves on the input image, the moving amount is larger than the moving amount. Set the width of In the case of an image having a gentle change, the width is set to be small.
[0020]
Also, in the image deformation information generating apparatus according to claim 3, in the image deformation information generating apparatus according to claim 1 or 2, the candidate straight line extracting means sets each of the reference straight line and the straight line in the image. The candidate straight line is extracted from the straight line in the image based on a distance between the specified parameters.
[0021]
According to this configuration, when the candidate straight line extracting unit extracts the candidate straight line from the straight line in the image, the image deformation information generating apparatus may be configured such that the distance between the reference straight line and the straight line in the image is within a predetermined distance. Is extracted as a candidate straight line. For example, the distance between the parameters is defined as a distance between the Hough parameters by expressing each straight line with a Hough parameter. As described above, by expressing each straight line by the parameter, the distance between the straight lines can be easily obtained.
[0022]
According to a fourth aspect of the present invention, in the image deformation information generating apparatus according to any one of the first to third aspects, the image deformation information generating apparatus includes: The image processing apparatus further includes a deformation information correction unit that generates a deformation image obtained by deforming the reference image, and corrects the deformation information based on an error between the deformation image and the input image.
[0023]
According to this configuration, the image deformation information generating device deforms the reference image by using the deformation information (deformation parameter) determined by the deformation information determining means, and inputs the deformed deformed image by the deformation information correcting means. The deformation parameter is corrected based on an error from an image, for example, a prediction error in a motion vector. Thereby, the accuracy of the deformation parameter can be improved.
[0024]
Furthermore, in the image deformation information generation method according to claim 5, in a continuous image input in time series, a reference straight line parameter for specifying a reference straight line included in the reference image is set in advance, and the image changes. An image deformation information generation method for generating deformation information from the reference image to an input image input after the reference image based on a change in the reference line with A search area setting step of setting a region corresponding to the position and consisting of a region near the reference straight line as a straight line search area; and performing a Hough transform on the search area set in the search area setting step. A straight line detecting step of detecting a straight line in an image included in the image, and a straight line close to the reference straight line in the straight lines in the image detected in the straight line detecting step, A candidate straight line that is a candidate whose position of the quasi straight line has moved, a candidate straight line parameter specifying step of specifying a candidate straight line parameter of the candidate straight line, and the reference straight line and the candidate straight line parameter based on the reference straight line parameter and the candidate straight line parameter. A coincidence calculating step of calculating a degree of coincidence indicating the degree to which the candidate straight line is the same line; and a position of the reference straight line from the candidate straight lines based on the degree of coincidence calculated in the degree of coincidence calculating step. A deformation information determining step of specifying a moved moving straight line and determining deformation information from the reference straight line to the moving straight line as deformation information from the reference image to the input image.
[0025]
According to this method, in the image deformation information generating method, in the search area setting step, an area (neighboring area) having a specific width based on the position of the reference straight line is added to the input image by the number of reference straight lines. Set as search area. Then, in the straight line detection step, Hough transform is performed on the search area set in the search area setting step, and a straight line in the image included in the search area is detected. In this way, in the straight line detection step, the time for straight line detection can be reduced by searching for a straight line in the image within the search area where the position of the reference straight line is assumed to have moved. In addition, the Hough transform enables a straight line in an image to be handled not as a set of pixels but as a parameter (Hough parameter).
[0026]
Further, in the candidate straight line parameter specifying step, a straight line in the image that is close to the reference straight line is set as a candidate straight line whose reference straight line position is shifted, and a candidate straight line parameter which is a Hough parameter of the candidate straight line is specified. In order to specify a candidate straight line close to the reference straight line from the straight lines in the image, the distance between the Hough parameter of the straight line in the image and the Hough parameter of the reference straight line is obtained, and the distance is within a predetermined distance. These are set as candidate straight lines. As a result, a candidate straight line similar to the reference straight line is extracted, and the number of combinations of the reference straight line and the candidates of the straight line (candidate straight line) that may be deformed on the input image can be reduced.
[0027]
In the matching degree calculation step, for each combination of the reference straight line and the candidate straight line in which the number of combinations is reduced, the matching degree indicating the degree of the same straight line between the reference straight line and the candidate straight line is calculated, and the deformation information is determined. In the step, a straight line (moving straight line) in which the position of the reference straight line has been moved is identified as one of the candidate straight lines, and deformation information from the reference straight line to the moving straight line is determined as deformation information from the reference image to the input image. .
[0028]
Further, in the image deformation information generation program according to claim 6, in a continuous image input in a time series, a reference straight line parameter for specifying a reference straight line included in the reference image is set in advance, and the image changes. In order to generate deformation information from the reference image to an input image input after the reference image based on the change of the reference straight line accompanying the above, the computer is made to function by the following means.
[0029]
That is, from the input image, a search area corresponding to the position of the reference straight line and a search area set by the search area set by the search area setting means for setting an area consisting of an area near the reference straight line as a search area of the straight line. A Hough transform is performed on the image, a straight line in the image included in the search area is detected, and a straight line detecting unit that specifies the straight line in the image by the straight line parameter in the image, based on the reference straight line parameter and the straight line parameter in the image, Candidate straight line identifying means for extracting a candidate straight line which is a candidate to which the position of the reference straight line has moved from among the straight lines in the image detected by the straight line detecting means, and identifying the candidate straight line as a candidate straight line parameter; Based on the parameter and the candidate straight line parameter, the degree of coincidence indicating the degree to which the reference straight line and the candidate straight line are the same straight line is determined. Based on the degree of coincidence calculated by the degree of coincidence calculation means, the degree of coincidence calculated by the degree of coincidence calculation means is used to specify a moving line in which the position of the reference line has moved from among the candidate lines, and The transformation information is determined as transformation information from the reference image to the input image.
[0030]
According to this configuration, the image deformation information generation program adds, by the search area setting unit, an area (neighboring area) having a specific width based on the position of the reference line on the input image by the number of reference lines. The parameter is set as a search area, and a Hough transform is performed on the search area by the straight line detecting means, thereby detecting a straight line in the image and obtaining a parameter (parameter in the image straight line) for specifying the straight line in the image. The detected straight line in the image may include a straight line other than the straight line obtained by deforming the reference straight line set in the reference image.
[0031]
Then, the image deformation information generating program extracts a straight line similar to the reference straight line from the straight line in the image as a candidate straight line that is a candidate whose position of the reference straight line has moved by the candidate straight line extracting means. Here, a candidate straight line in which the parameter distance between the reference straight line and the straight line in the image is within a predetermined distance is extracted, and the candidate straight line is specified as a candidate straight line parameter.
[0032]
Then, the image deformation information generation program uses the coincidence calculating means to determine, for each combination of the reference straight line and the candidate straight line, the degree to which the reference straight line and the candidate straight line are the same straight line based on the reference straight line parameter and the candidate straight line parameter. Is calculated, and the deformation information determining means specifies one straight line (moving straight line) in which the position of the reference straight line has moved from among the candidate straight lines, and outputs the deformation information from the reference straight line to the moving straight line. It is determined as transformation information from the reference image to the input image.
[0033]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[Configuration of Image Deformation Information Generating Device]
FIG. 1 is a block diagram showing a configuration of an image deformation information generation device 1 according to the present invention. As illustrated in FIG. 1, the image deformation information generation device 1 specifies a motion of a continuous image that is input in a time series by a deformation relationship such as affine, rotation, enlargement / reduction, or translation, and a deformation parameter indicating the deformation relationship. Is output. Here, in the continuous image, the first input image is changed to a reference image I serving as a reference for deformation. std , Its reference image I std An input image to be input thereafter is a reference image I std Comparison image I as an image to be compared with cmp Shall be called. Here, the image deformation information generation device 1 is configured to include a straight line parameter detection unit 10, a reference straight line parameter storage unit 20, a candidate straight line parameter storage unit 30, and a deformation parameter identification unit 40.
[0034]
The straight line parameter detecting means 10 receives the input image (the reference image I std And comparative image I cmp ) Detects a straight line and outputs a parameter for specifying the straight line. The reference straight line setting unit 2, the straight line detecting unit 3, and the candidate straight line extracting unit 4 are provided.
[0035]
The reference straight line setting unit 2 receives the input reference image I std A parameter (reference straight line parameter) for specifying the reference straight line is stored in the reference straight line parameter storage means 20 by setting a straight line (reference straight line) which is a feature of the image by an input means (not shown). It is. The reference straight line setting unit 2 may set a region where a straight line exists by an input unit (not shown), perform Hough transform on that region, and detect a straight line.
[0036]
The reference straight line parameter stored in the reference straight line parameter storage means 20 in the reference straight line setting unit 2 is a parameter for specifying a straight line, for example, a Hough parameter in a Hough space described later.
[0037]
In addition, the deformation relationship of the image such as affine, rotation, enlargement / reduction, and translation is specified according to the number of straight lines set here. For example, as for the deformation of an image, as the number of deformation parameters is increased, it is possible to express free deformation, but in that case, a necessary number of straight lines must exist on the image. FIG. 2 shows the number of deformation parameters and their necessary conditions.
[0038]
As shown in FIG. 2, for example, when the deformation parameters are set to 1 and 2, there must be at least one combination of two or more straight lines having different inclinations on the image. A typical deformation model represented by this is translation. That is, the reference straight line setting unit 2 can express the translation as a deformation model by setting one combination of two or more straight lines having different inclinations.
[0039]
Next, the parameters for specifying the Hough transform and the straight line will be described with reference to FIG. FIG. 3A shows a state in which a straight line 1 exists in a coordinate space (hereinafter, referred to as an image space) represented by general (x, y) coordinates. The Hough transform is for converting the pixels (a plurality of pixels) constituting the straight line 1 into parameters (Hough parameters) for specifying the straight line l. In general, the Hough transform converts a straight line 1 into two Hough parameters of an angle と between a line segment obtained by drawing a perpendicular from the origin O of the coordinate space to the straight line 1 and the x-axis and a length ρ of the line segment. .
[0040]
As shown in FIG. 3B, a straight line 1 converted into two Hough parameters by the Hough transform as described above is expressed in a coordinate space (hereinafter, referred to as a Hough space) represented by (ρ, Θ) coordinates. Expressed as a point. Note that the parameter specifying the straight line does not necessarily need to be the Hough parameter (ρ, Θ). For example, in FIG. May be used.
Returning to FIG. 1, the description will be continued.
[0041]
The straight line detecting section (straight line detecting means) 3 std Comparative image I which is an input image to be input thereafter cmp Are detected as straight lines in the image. In the straight line detection unit 3, the comparison image I cmp Is subjected to Hough transform to detect a straight line in the image. The Hough parameter of the straight line in the image detected here is stored in the candidate straight line parameter storage unit 30. Here, the straight line detecting section 3 is provided with a search area setting section 3a.
[0042]
The search area setting unit (search area setting means) 3a uses the straight line detection unit 3 based on the reference straight line detected by the reference straight line setting unit 2, cmp To set a search area for detecting a straight line in the image from. The position and length of this reference straight line are specified by the Hough parameters stored in the reference straight line parameter storage means 20.
[0043]
The search area setting unit 3a sets a neighboring area having a predetermined specific width from the reference straight line detected by the reference straight line setting unit 2, and sets a set of the neighboring areas as a search area. Here, it is assumed that the specific width has different values set in advance depending on the characteristics of the input image. For example, in the case of an image having a large change (movement), the reference image I std The upper reference line is the comparison image I cmp To move a large distance above, set a width equal to or greater than the amount of movement. In the case of an image having a gentle change, the width is set to be small.
[0044]
As described above, the straight line detection unit 3 performs the Hough transform only on the search area set based on the reference straight line by the search area setting unit 3a, thereby speeding up the search time of the straight line and allowing the candidate straight line extraction unit 4 Of the straight line to be extracted can be improved.
[0045]
Here, referring to FIG. 4 (see FIG. 1 as appropriate), the comparison image I cmp A method of setting a search area including a region near the reference straight line and detecting a straight line in the image of the search area will be described.
[0046]
FIG. 4 shows temporally continuous images of the vicinity of the goal taken in a live broadcast of soccer. FIG. 4A shows a reference image I taken at a certain time. std FIG. 4B shows the reference image I. std On the other hand, by reducing the magnification of the camera at the next time, the comparative image I cmp Is shown.
[0047]
First, the image deformation information generating apparatus 1 uses the reference straight line setting unit 2 to set the reference image I in FIG. std In, the goal area of soccer is set as four reference straight lines BL. Then, the comparison image I of FIG. cmp In, a region having a specific width with respect to the reference straight line BL is set as a proximity region AR, and a set of the proximity regions AR is set as a search region SA. By setting the search area SA in this manner, the reference image I std Is the comparative image I cmp Reference image I when changed to std It can be assumed that a straight line corresponding to the upper reference straight line BL exists in the search area SA. That is, the straight line detector 3 outputs the comparison image I cmp By performing the Hough transform only on the search area SA in the above, the straight line IL in the image close to the reference straight line BL can be detected.
[0048]
In FIG. 4B, a reference straight line BL indicated by a dotted line is a comparative image I. cmp The position of the reference straight line BL detected in FIG.
Returning to FIG. 1, the description will be continued.
[0049]
The candidate straight line extracting unit (candidate straight line extracting unit) 4 is configured to store the reference image I stored in the reference straight line parameter storing unit 20. std And the comparison image I stored in the candidate straight line parameter storage means 30. cmp And extracting a straight line similar to the reference straight line from the straight lines in the image as a candidate straight line which is a candidate whose position of the reference straight line has been moved, based on the Hough parameter of the straight line in the image. The Hough parameters of the straight lines in the image excluded from the candidate straight lines are deleted from the candidate straight line parameter storage unit 30.
[0050]
For example, the candidate straight line extraction unit 4 performs the similarity determination based on two parameters (ρ, Θ) which are Hough parameters. That is, the distance in the Hough space between the reference straight line and the straight line in the image is determined based on the two parameters (ρ, Θ), and the straight line in the image within a predetermined distance is similar to the straight line. Is determined as a candidate straight line that is a candidate whose position has moved.
[0051]
Here, a method of extracting a candidate straight line will be described with reference to FIGS. 5 and 6 (see FIG. 1 as appropriate). FIG. 5 shows the reference image I. std Reference line and the comparison image I cmp And the straight line in the image in the search area SA (FIG. 4 (b)) are represented by Hough parameters. FIG. 6 shows the Huff parameters of FIG. 5 on a Huff space.
[0052]
As shown in FIG. std Reference line (L std [0] to L std [3]) is expressed by Hough parameters. For example, the reference straight line L std [0] to (ρ std [0], Θ std [0]). Also, the comparative image I cmp Line in the image (L cmp [0] to L cmp [6]) is similarly represented by Hough parameters. For example, a straight line L in the image cmp [0] to (ρ cmp [0], Θ cmp [0]). In this way, by expressing the straight line by the Hough parameter, each straight line is expressed as a point on the Hough space as shown in FIG.
[0053]
Then, as shown in FIG. 6, each reference straight line (L std [0] to L std A straight line in the image existing within a predetermined distance (constant distance range CI) around [3]) is determined as a candidate straight line.
[0054]
For example, in FIG. std The candidate straight line for [0] is L cmp [0] and L cmp [1], L std The candidate straight line for [1] is L cmp [2], L std The candidate straight line for [2] is L cmp [5], L std The candidate straight line for [3] is L cmp [3] and L cmp [4] is obtained. Also, L cmp [6] exists in the search area SA (FIG. 4B), but falls outside the reference straight line candidate. Thereby, each reference straight line (L std [0] to L std Candidate straight lines similar to [3]) can be extracted. Thereafter, a straight line (L cmp [0] to L cmp [5]) is called a candidate straight line.
Returning to FIG. 1, the description will be continued.
[0055]
The reference straight line parameter storage unit 20 stores the reference image I set by the reference straight line setting unit 2. std It stores the parameters of the upper reference straight line (reference straight line parameters), and is configured by a general memory or the like. For example, the reference straight line (L std [0] to L std [3]) The parameters are stored. The reference straight line parameters stored in the reference straight line parameter storage means 20 are referred to by the search area setting unit 3a and the coincidence calculating unit 5 described later.
[0056]
The candidate straight line parameter storage means 30 stores the comparison image I detected by the straight line detecting unit 3. cmp It stores the parameters of the upper straight line, and is composed of a general memory or the like. For example, a straight line (L) in the image detected by the straight line detecting unit 3 shown in FIG. cmp [0] to L cmp [6]) The parameters are stored. Note that a straight line (L cmp [0] to L cmp The parameter of [6]) is set by the candidate straight line extraction unit 4 to the candidate straight line (L cmp [0] to L cmp [5]) is updated.
[0057]
The candidate straight line parameters (candidate straight line parameters) in the candidate straight line parameter storage means 30 are stored by the candidate straight line extraction unit 4 in association with each reference straight line. The candidate straight line parameters stored in the candidate straight line parameter storage means 30 are referred to by the coincidence calculating unit 5 described later. Although the reference straight line parameter storage unit 20 and the candidate straight line parameter storage unit 30 are configured separately here, the storage area may be divided and stored on the same memory or hard disk.
[0058]
The deformation parameter identification unit 40 is configured to output the reference image I detected by the straight line parameter detection unit 10. std And comparative image I cmp Of the reference image I based on the parameters of each straight line std From comparison image I cmp This specifies the deformation parameter that expresses the movement (change) of the image. Here, the deformation parameter specifying unit 40 is configured to include the matching degree calculation unit 5, the deformation information determination unit 6, and the deformation information correction unit 7.
[0059]
The coincidence calculating section (coincidence calculating means) 5 includes a parameter of the reference straight line (reference straight line parameter) stored in the reference straight line parameter storing means 20 and a parameter of the candidate straight line stored in the candidate straight line parameter storing means 30. In the combination with (candidate straight line parameter), a matching degree indicating a degree of matching between the reference straight line and the candidate straight line is calculated based on a deformation parameter for deforming the reference straight line into a candidate straight line.
[0060]
The reference image I shown in FIG. std Upper four reference straight lines {L std [0], L std [1], L std [2], L std [3]} and comparative image I cmp Straight line {L in the above seven images cmp [0], L cmp [1], L cmp [2], L cmp [3], L cmp [4], L cmp [5], L cmp [6] The combination of each parameter with} 7 P 4 (= 7 × 6 × 5 × 4 = 840). However, in the image deformation information generating apparatus 1, since the candidate straight line extraction unit 4 extracts the candidate straight line for the reference straight line from the straight line in the image, the parameters of the reference straight line (reference straight line parameter) and the candidate straight line as shown in FIG. There are four combinations with straight line parameters (candidate straight line parameters) shown in equation (2).
[0061]
(Equation 2)
Figure 2004164479
[0062]
As described above, the coincidence calculating unit 5 calculates the coincidence by the number of combinations of the reference straight line parameter and the candidate straight line parameter whose number of combinations is reduced.
Here, in the k-th combination of the reference straight line parameter and the candidate straight line parameter, the degree of coincidence sim between the reference straight line and the candidate straight line when the reference straight line is deformed by the deformation parameter p k (P) is defined by equation (3).
[0063]
[Equation 3]
Figure 2004164479
[0064]
Here, ρ is a cost function (for example, a function indicating the probability of matching with a specific statistical model by calculating the sum of squares of the difference or the absolute value difference), L std Is the reference image I std Reference line parameter of L cmp Is the comparison image I cmp Of the candidate straight line, C k Is the k-th combination of the reference straight line parameter and the candidate straight line parameter, i is the number for identifying the reference straight line, j is the number for identifying the candidate straight line, p is the deformation parameter, and A is the parameter conversion. As shown in the above equation (3), the coincidence sim k (P) is the reference straight line parameter L std Is obtained by adding (k) probabilities of matching with a specific statistical model by the number of combinations of the reference straight line parameter and the candidate straight line parameter, based on the difference between the Huff parameter obtained by converting the parameter by the deformation parameter p and the candidate straight line parameter. It is.
[0065]
The deformation information determining unit (deformation information determining means) 6 determines a deformation parameter that is a combination that gives the maximum matching degree based on the matching degree calculated by the matching degree calculating unit 5. Here, as shown in Expression (4), a deformation parameter p that maximizes the value of Expression (3) is determined.
[0066]
(Equation 4)
Figure 2004164479
[0067]
More specifically, since the value obtained by partially differentiating the above equation (3) with each element of the deformation parameter p that satisfies the above equation (4) is 0, the system of the deformation parameter p which is the result of this partial differentiation is By solving the equation, the deformation parameter p can be obtained.
Here, each element of the deformation parameter p is a value of a parameter for specifying a deformation formula in a deformation model such as translation, affine, etc., for example, p in the deformation formula of the translation model shown in Expression (5) 0 And p 1 Also, for example, p in the modified expression of the affine model shown in Expression (6) 0 ~ P 5 Point to.
[0068]
(Equation 5)
Figure 2004164479
[0069]
(Equation 6)
Figure 2004164479
[0070]
In the expressions (5) and (6), (x, y) represents the reference image I. std (X ', y') means the coordinates of the (x, y) after deformation by the deformation model.
[0071]
Thereby, for example, in the example shown in FIG. 5, among the combinations of the above equation (2), the combination in which the reference straight line and the candidate straight line coincide with each other becomes the combination of the equation (7). The transformation parameters in the combination of the equations (7) are output (determined). That is, {L cmp [1], L cmp [2], L cmp [3], L cmp [5]} is specified as a moving straight line that has moved the reference straight line.
[0072]
(Equation 7)
Figure 2004164479
[0073]
Since the deformation parameters are determined by the deformation information determination unit 6 in this manner, this output may be used as the output of the image deformation information generation device 1. However, an error exists in the deformation parameter due to a difference in resolution between the image space and the Hough space (see FIG. 3). Therefore, here, the deformation information correction unit 7 is further provided to correct the error.
[0074]
The deformation information correction unit 7 performs the reference image I based on the deformation parameters determined by the deformation information determination unit 6. std Is generated, and the deformed image and the comparative image I are generated. cmp Is calculated at the pixel level based on the conventional method (see FIG. 8 and equation (1)) to generate an optimal deformation parameter obtained by correcting the deformation parameter determined by the deformation information determining unit 6. is there.
[0075]
Since this deformed image has been deformed by the deformation parameters determined by the deformation information determining unit 6, the comparative image I cmp It is almost the same as. Thereby, the comparison image I cmp Since only the minute change to the parameter is corrected for the deformation parameter, the parameter accuracy is higher than that of the conventional method.
[0076]
As described above, the configuration of the image deformation information generation device 1 has been described based on one embodiment. However, the image deformation information generation device 1 can implement each unit in a computer as each function program. Can be combined to operate as an image deformation information generation program.
[0077]
[Operation of Image Deformation Information Generating Device]
Next, the operation of the image deformation information generation device 1 will be described with reference to FIGS. FIG. 7 is a flowchart showing the operation of the image deformation information generation device 1.
[0078]
(Reference line parameter setting step)
First, the image deformation information generation device 1 uses the reference straight line setting unit 2 to input the reference image I std Inside, a straight line (reference straight line) serving as a feature of the image is set by an input unit (not shown) (step S1). This reference straight line is a straight line existing in a continuous image, and its position and size do not change significantly. For example, a straight line portion such as a goal post or a goal area is set as a reference straight line in an image of the vicinity of a goal shot in a soccer broadcast. Then, a reference straight line parameter (Hough parameter) obtained by Huff-transforming the reference straight line is obtained, and the reference straight line parameter is stored in the reference straight line parameter storage means 20 (step S2).
Note that, as the reference straight line, a necessary number of straight lines (see FIG. 2) are set according to image deformation relations such as affine, rotation, enlargement / reduction, and translation.
[0079]
(Search area setting step)
Next, the image deformation information generation device 1 uses the search area setting unit 3a of the straight line detection unit 3 to output the comparison image I, which is the input image after the reference image. cmp In, an area including a neighboring area having a predetermined specific width of the reference straight line whose position and length are specified by the reference straight line parameter is set as a search area (step S3).
[0080]
(Line detection step)
In addition, the image deformation information generating apparatus 1 performs the Hough transform of only the search area set by the search area setting unit 3a by the straight line detection unit 3, thereby obtaining the comparative image I. cmp Are detected (step S4). The intra-image straight line Hough parameter, which is the detected intra-image straight line Huff parameter, is temporarily stored in the candidate straight line parameter storage means 30 (step S5). As described above, in the straight line detecting step, since the Hough transform is performed only on the search area to detect the straight line, the processing speed can be increased.
[0081]
(Candidate line parameter identification step)
Further, the image deformation information generation device 1 uses the candidate straight line extraction unit 4 to store the reference straight line parameters stored in the reference straight line parameter storage unit 20 and the in-image straight line Hough parameters stored in the candidate straight line parameter storage unit 30. , A straight line in the image that is close to the reference straight line is extracted as a candidate straight line that is a candidate whose position of the reference straight line has moved (step S6). The in-image straight line Hough parameters stored in the candidate straight line parameter storage means 30 are updated to candidate straight line parameters which are Hough parameters of straight lines extracted as candidate straight lines (step S7).
[0082]
(Match calculation step)
Then, in the image deformation information generating device 1, the matching degree calculating unit 5 calculates a matching degree indicating a degree of matching between the reference straight line and the candidate straight line in the combination of the reference straight line parameter and the candidate straight line parameter (step S8). ).
[0083]
(Deformation information determination step)
Then, the image deformation information generating device 1 uses the deformation information determination unit 6 based on the degree of coincidence calculated by the degree of coincidence calculation unit 5 to obtain a deformation parameter that is a combination of a reference line that gives the maximum degree of coincidence and a candidate line Is determined (step S9).
Further, the image deformation information generation device 1 uses the deformation information correction unit 7 to change the reference image I with the deformation parameters. std Is generated, and a comparative image I is generated from the deformed image. cmp The transformation parameters are corrected based on the transformation into and output (step S10).
[0084]
Through the above steps, the image deformation information generation device 1 sets the reference image I std With reference to the reference image I std From the reference image I std The input image (comparative image I cmp ) Can be obtained at high speed.
[0085]
【The invention's effect】
As described above, the image deformation information generation device, the image deformation information generation method, and the image deformation information generation program according to the present invention have the following excellent effects.
[0086]
According to the first, fifth, or sixth aspect of the present invention, based on a straight line (reference straight line) in the reference image, deformation information obtained by deforming the reference straight line is transformed from the reference image to each input image. Since the information is used as information, an error of deformation information is not propagated and accumulated for each input image as in the related art. Further, even if an image having no image content (for example, an entire black image) exists in the middle of an input image, it is possible to generate deformation information of an image to be input next based on the reference image. In other words, it has a function of recovering from image loss.
[0087]
Further, since a straight line can be handled not by an image space but by, for example, two parameters (Hough parameters) in a Hough space, the straight line can be handled not as an image but as a point expressed by a Hough parameter. This eliminates the need to perform pixel-level calculations when obtaining the distance between straight lines, the degree of coincidence, and the like, thereby reducing processing time (high-speed processing).
[0088]
Further, for example, when the input image changes due to the operation of the camera, it is possible to reproduce the background image only by transmitting the deformation information alone, so that the image can be greatly compressed during transmission.
[0089]
According to the second aspect of the present invention, a search area is set in the input image based on the reference straight line of the reference image, and a straight line (a straight line in the image) is detected only from within the search area. Processing time can be reduced as compared to the case where a straight line is detected from the whole.
[0090]
According to the third aspect of the present invention, the similarity of the straight line is obtained by the distance between the parameters without calculating the pixel level of the straight line, so that the processing time can be reduced.
[0091]
According to the fourth aspect of the present invention, an error due to a difference in resolution between the image space and the Hough space can be corrected, so that optimal deformation information (deformation parameters) can be generated. It should be noted that the input image and the deformed image obtained by deforming the reference image based on the deformation parameters calculated based on the Hough parameters in the Hough space substantially match. For this reason, it is possible to reduce the error and improve the accuracy of the deformation parameter as compared with the case where the deformation parameter is generated only in the image space as in the related art.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an overall configuration of an image deformation information generation device according to an embodiment of the present invention.
FIG. 2 is a diagram showing the relationship between the number of deformation parameters for specifying a deformation relationship and its necessary conditions.
FIG. 3A is a diagram in which a certain straight line is represented by coordinates in an image space. (B) is a diagram in which a certain straight line is represented by coordinates on a Hough space.
FIG. 4A is a diagram illustrating an example in which a reference straight line is set on a reference image. (B) is a diagram in which a search area is set on the comparison image based on a reference straight line.
FIG. 5 is a diagram in which a straight line in a search area is represented by Hough parameters.
FIG. 6 is an explanatory diagram illustrating a method of extracting a candidate straight line that approximates a reference straight line by expressing a straight line in a search area by coordinates in a Hough space.
FIG. 7 is a flowchart showing an operation of the image deformation information generation device according to the embodiment of the present invention.
FIG. 8 is a flowchart showing an operation of generating conventional deformation information (deformation parameters).
[Explanation of symbols]
1 ... image deformation information generation device
2 Reference straight line setting section
3. Straight line detection unit (straight line detection means)
3a Search area setting section (search area setting means)
4... Candidate line extracting unit (candidate line extracting means)
5. Matching degree calculating section (matching degree calculating means)
6 Deformation information determination unit (deformation information determination means)
7. Deformation information correction unit (deformation information correction means)
10. Linear parameter detecting means
20: Reference straight line parameter storage means
30... Candidate line parameter storage means
40 ... deformation parameter specifying means

Claims (6)

時系列に入力される連続した画像において、予め基準画像に含まれる基準直線を特定する基準直線パラメータを設定し、前記画像が変化することに伴う前記基準直線の変化に基づいて、前記基準画像から前記基準画像以降に入力される入力画像への変形情報を生成する画像変形情報生成装置であって、
前記入力画像に含まれる直線を画像内直線として検出し、その画像内直線を画像内直線パラメータによって特定する直線検出手段と、
前記基準直線パラメータ及び前記画像内直線パラメータに基づいて、前記直線検出手段で検出された画像内直線の中から、前記基準直線の位置が移動した候補となる候補直線を抽出し、その候補直線を候補直線パラメータとして特定する候補直線抽出手段と、
前記基準直線パラメータと前記候補直線パラメータとに基づいて、前記基準直線と前記候補直線とが同一の直線である度合いを示す一致度を算出する一致度算出手段と、
この一致度算出手段で算出された一致度に基づいて、前記候補直線の中から前記基準直線の位置が移動した移動直線を特定し、前記基準直線から前記移動直線への変形情報を、前記基準画像から前記入力画像への変形情報として決定する変形情報決定手段と、
を備えていることを特徴とする画像変形情報生成装置。
In a continuous image that is input in a time series, a reference straight line parameter that specifies a reference straight line included in the reference image is set in advance, and based on a change in the reference straight line that accompanies a change in the image, from the reference image. An image deformation information generation device that generates deformation information for an input image input after the reference image,
A straight line detecting unit that detects a straight line included in the input image as a straight line in the image, and specifies the straight line in the image by a straight line parameter in the image;
Based on the reference straight line parameter and the straight line parameter in the image, from the straight lines in the image detected by the straight line detecting means, extract a candidate straight line that is a candidate to which the position of the reference straight line has moved, and extract the candidate straight line. Candidate straight line extracting means for specifying as a candidate straight line parameter,
Based on the reference straight line parameter and the candidate straight line parameter, a matching score calculating unit that calculates a matching score indicating a degree that the reference straight line and the candidate straight line are the same straight line,
Based on the degree of coincidence calculated by the degree-of-coincidence calculation means, a moving line in which the position of the reference line has moved is specified from among the candidate lines, and deformation information from the reference line to the moving line is identified by the reference line. Deformation information determining means for determining as the deformation information from the image to the input image,
An image deformation information generation device, comprising:
前記直線検出手段は、前記入力画像において、前記基準直線の位置に対応し、その基準直線の近傍領域からなる領域を前記画像内直線の探索領域として設定する探索領域設定手段を備え、前記探索領域に対してハフ変換を行うことで前記画像内直線を検出することを特徴とする請求項1に記載の画像変形情報生成装置。The straight line detecting means includes a search area setting means corresponding to a position of the reference straight line in the input image, and setting an area consisting of an area near the reference straight line as a search area for a straight line in the image, 2. The image deformation information generation apparatus according to claim 1, wherein the straight line in the image is detected by performing Hough transform on the image. 前記候補直線抽出手段は、前記基準直線及び前記画像内直線のそれぞれを特定するパラメータ間の距離に基づいて、前記画像内直線から前記候補直線を抽出することを特徴とする請求項1又は請求項2に記載の画像変形情報生成装置。The said candidate straight-line extraction means extracts the said candidate straight line from the said straight line in an image based on the distance between the parameter which specifies each of the said reference straight line and the said straight line in an image. 3. The image deformation information generation device according to 2. 前記変形情報決定手段によって決定された変形情報により、前記基準画像を変形した変形画像を生成し、その変形画像と前記入力画像との誤差に基づいて、前記変形情報を補正する変形情報補正手段を備えたことを特徴とする請求項1乃至請求項3のいずれか1項に記載の画像変形情報生成装置。Based on the deformation information determined by the deformation information determining means, generates a deformed image obtained by deforming the reference image, and based on an error between the deformed image and the input image, deforming information correcting means for correcting the deforming information. The image deformation information generation device according to claim 1, further comprising: 時系列に入力される連続した画像において、予め基準画像に含まれる基準直線を特定する基準直線パラメータを設定し、前記画像が変化することに伴う前記基準直線の変化に基づいて、前記基準画像から前記基準画像以降に入力される入力画像への変形情報を生成する画像変形情報生成方法であって、
前記入力画像から、前記基準直線の位置に対応し、その基準直線の近傍領域からなる領域を直線の探索領域として設定する探索領域設定ステップと、
この探索領域設定ステップで設定された探索領域に対してハフ変換を行い、この探索領域に含まれる画像内直線を検出する直線検出ステップと、
この直線検出ステップで検出された画像内直線の中で、前記基準直線に近接する直線を、前記基準直線の位置が移動した候補となる候補直線とし、その候補直線の候補直線パラメータを特定する候補直線パラメータ特定ステップと、
前記基準直線パラメータと前記候補直線パラメータとに基づいて、前記基準直線と前記候補直線とが同一の直線である度合いを示す一致度を算出する一致度算出ステップと、
この一致度算出ステップで算出された一致度に基づいて、前記候補直線の中から前記基準直線の位置が移動した移動直線を特定し、前記基準直線から前記移動直線への変形情報を、前記基準画像から前記入力画像への変形情報として決定する変形情報決定ステップと、
を含んでいることを特徴とする画像変形情報生成方法。
In a continuous image that is input in a time series, a reference straight line parameter that specifies a reference straight line included in the reference image is set in advance, and based on a change in the reference straight line that accompanies a change in the image, from the reference image. An image deformation information generation method for generating deformation information for an input image input after the reference image,
From the input image, a search area setting step corresponding to the position of the reference straight line and setting an area consisting of an area near the reference straight line as a straight line search area,
Performing a Hough transform on the search area set in the search area setting step, and detecting a straight line in an image included in the search area;
Among the straight lines in the image detected in the straight line detecting step, a straight line that is close to the reference straight line is set as a candidate straight line that is a candidate whose position of the reference straight line has moved, and a candidate straight line that specifies a candidate straight line parameter of the candidate straight line Linear parameter identification step;
Based on the reference straight line parameter and the candidate straight line parameter, a matching score calculating step of calculating a matching score indicating a degree that the reference straight line and the candidate straight line are the same straight line,
Based on the degree of coincidence calculated in the degree of coincidence calculation step, a moving straight line in which the position of the reference straight line has moved is specified from among the candidate straight lines, and deformation information from the reference straight line to the moving straight line is identified by the reference line. Deformation information determining step of determining as deformation information from the image to the input image,
A method for generating image deformation information, comprising:
時系列に入力される連続した画像において、予め基準画像に含まれる基準直線を特定する基準直線パラメータを設定し、前記画像が変化することに伴う前記基準直線の変化に基づいて、前記基準画像から前記基準画像以降に入力される入力画像への変形情報を生成するために、コンピュータを、
前記入力画像から、前記基準直線の位置に対応し、その基準直線の近傍領域からなる領域を直線の探索領域として設定する探索領域設定手段、
この探索領域設定手段で設定された探索領域に対してハフ変換を行い、この探索領域に含まれる画像内直線を検出し、その画像内直線を画像内直線パラメータによって特定する直線検出手段、
前記基準直線パラメータ及び前記画像内直線パラメータに基づいて、前記直線検出手段で検出された画像内直線の中から、前記基準直線の位置が移動した候補となる候補直線を抽出し、その候補直線を候補直線パラメータとして特定する候補直線特定手段、
前記基準直線パラメータと前記候補直線パラメータとに基づいて、前記基準直線と前記候補直線とが同一の直線である度合いを示す一致度を算出する一致度算出手段、
この一致度算出手段で算出された一致度に基づいて、前記候補直線の中から前記基準直線の位置が移動した移動直線を特定し、前記基準直線から前記移動直線への変形情報を、前記基準画像から前記入力画像への変形情報として決定する変形情報決定手段、
として機能させることを特徴とする画像変形情報生成プログラム。
In a continuous image that is input in a time series, a reference straight line parameter that specifies a reference straight line included in the reference image is set in advance, and based on a change in the reference straight line that accompanies a change in the image, from the reference image. In order to generate deformation information to the input image input after the reference image, a computer,
Search area setting means for setting, as the straight line search area, an area corresponding to the position of the reference straight line from the input image, the area including a region near the reference straight line,
Line detection means for performing a Hough transform on the search area set by the search area setting means, detecting a straight line in the image included in the search area, and identifying the straight line in the image by a straight line parameter in the image;
Based on the reference straight line parameter and the straight line parameter in the image, from the straight lines in the image detected by the straight line detecting means, extract a candidate straight line that is a candidate to which the position of the reference straight line has moved, and extract the candidate straight line. Candidate straight line specifying means for specifying as a candidate straight line parameter,
Based on the reference straight line parameter and the candidate straight line parameter, a matching score calculating unit that calculates a matching score indicating a degree that the reference straight line and the candidate straight line are the same straight line,
Based on the degree of coincidence calculated by the degree-of-coincidence calculation means, a moving line in which the position of the reference line has moved is specified from among the candidate lines, and deformation information from the reference line to the moving line is identified by the reference line. Deformation information determining means for determining as the deformation information from the image to the input image,
An image deformation information generation program characterized by functioning as:
JP2002331879A 2002-11-15 2002-11-15 Image deformation information generation apparatus, image deformation information generation method, and image deformation information generation program Expired - Fee Related JP4133246B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002331879A JP4133246B2 (en) 2002-11-15 2002-11-15 Image deformation information generation apparatus, image deformation information generation method, and image deformation information generation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002331879A JP4133246B2 (en) 2002-11-15 2002-11-15 Image deformation information generation apparatus, image deformation information generation method, and image deformation information generation program

Publications (2)

Publication Number Publication Date
JP2004164479A true JP2004164479A (en) 2004-06-10
JP4133246B2 JP4133246B2 (en) 2008-08-13

Family

ID=32809120

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002331879A Expired - Fee Related JP4133246B2 (en) 2002-11-15 2002-11-15 Image deformation information generation apparatus, image deformation information generation method, and image deformation information generation program

Country Status (1)

Country Link
JP (1) JP4133246B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008171280A (en) * 2007-01-12 2008-07-24 Nippon Hoso Kyokai <Nhk> Position detection device, method, and program
CN101561254B (en) * 2009-06-05 2010-11-24 中国航空工业集团公司西安飞机设计研究所 Measuring method of intracavity geometric quantity
JP2011103031A (en) * 2009-11-10 2011-05-26 Victor Co Of Japan Ltd Perspective conversion parameter generation device, image correction device, perspective conversion parameter generation method, image correction method and program
JP2012533325A (en) * 2009-07-16 2012-12-27 日立アロカメディカル株式会社 Ultrasonic imaging method and apparatus
WO2020090250A1 (en) * 2018-10-31 2020-05-07 ソニー株式会社 Image processing apparatus, image processing method and program
CN116740385A (en) * 2023-08-08 2023-09-12 深圳探谱特科技有限公司 Equipment quality inspection method, device and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008171280A (en) * 2007-01-12 2008-07-24 Nippon Hoso Kyokai <Nhk> Position detection device, method, and program
JP4733651B2 (en) * 2007-01-12 2011-07-27 日本放送協会 Position detection apparatus, position detection method, and position detection program
CN101561254B (en) * 2009-06-05 2010-11-24 中国航空工业集团公司西安飞机设计研究所 Measuring method of intracavity geometric quantity
JP2012533325A (en) * 2009-07-16 2012-12-27 日立アロカメディカル株式会社 Ultrasonic imaging method and apparatus
US8882675B2 (en) 2009-07-16 2014-11-11 Hitachi Aloka Medical, Ltd. Methods and apparatus for ultrasound imaging
JP2011103031A (en) * 2009-11-10 2011-05-26 Victor Co Of Japan Ltd Perspective conversion parameter generation device, image correction device, perspective conversion parameter generation method, image correction method and program
WO2020090250A1 (en) * 2018-10-31 2020-05-07 ソニー株式会社 Image processing apparatus, image processing method and program
CN116740385A (en) * 2023-08-08 2023-09-12 深圳探谱特科技有限公司 Equipment quality inspection method, device and system
CN116740385B (en) * 2023-08-08 2023-10-13 深圳探谱特科技有限公司 Equipment quality inspection method, device and system

Also Published As

Publication number Publication date
JP4133246B2 (en) 2008-08-13

Similar Documents

Publication Publication Date Title
US8718324B2 (en) Method, apparatus and computer program product for providing object tracking using template switching and feature adaptation
US8582887B2 (en) Image processing system, learning device and method, and program
JP4952625B2 (en) Perspective transformation distortion generating document image correcting apparatus and method
CN110909591B (en) Self-adaptive non-maximum suppression processing method for pedestrian image detection by using coding vector
CN105009170A (en) Object identification device, method, and storage medium
JP2010079545A (en) Image processing apparatus, image processing method and program
US9256802B2 (en) Object or shape information representation method
JP2009211177A (en) Feature point location determination method and device
JP2010062911A (en) Image processing apparatus, image processing method, and program
KR20160123871A (en) Method and apparatus for estimating image optical flow
CN111144213A (en) Object detection method and related equipment
US9077926B2 (en) Image processing method and image processing apparatus
JP4133246B2 (en) Image deformation information generation apparatus, image deformation information generation method, and image deformation information generation program
JP4565396B2 (en) Image processing apparatus and image processing program
US8270770B1 (en) Region-based dense feature correspondence
JP2005252359A (en) Motion vector detecting apparatus, motion vector detection method and computer program
JP5417312B2 (en) Image search apparatus and image search program
JP2009187204A (en) Image processing apparatus
CN116188535A (en) Video tracking method, device, equipment and storage medium based on optical flow estimation
JP5761353B2 (en) Ridge direction extraction device, ridge direction extraction method, ridge direction extraction program
JP5126124B2 (en) Image processing device
US20200334483A1 (en) Reading system, reading device, and storage medium
JP2007140729A (en) Method and device detecting position and attitude of article
CN113129332A (en) Method and apparatus for performing target object tracking
CN117197249B (en) Target position determining method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050310

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080421

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

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

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

Free format text: PAYMENT UNTIL: 20110606

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120606

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120606

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130606

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees