JP2004246526A - Image processor, image processing method, recording medium, and program - Google Patents

Image processor, image processing method, recording medium, and program Download PDF

Info

Publication number
JP2004246526A
JP2004246526A JP2003034571A JP2003034571A JP2004246526A JP 2004246526 A JP2004246526 A JP 2004246526A JP 2003034571 A JP2003034571 A JP 2003034571A JP 2003034571 A JP2003034571 A JP 2003034571A JP 2004246526 A JP2004246526 A JP 2004246526A
Authority
JP
Japan
Prior art keywords
pixel
pixels
data
image
continuity
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
JP2003034571A
Other languages
Japanese (ja)
Other versions
JP2004246526A5 (en
JP4161729B2 (en
Inventor
Tetsujiro Kondo
哲二郎 近藤
Takahiro Nagano
隆浩 永野
Junichi Ishibashi
淳一 石橋
Takashi Sawao
貴志 沢尾
Naoki Fujiwara
直樹 藤原
Seiji Wada
成司 和田
Toru Miyake
徹 三宅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2003034571A priority Critical patent/JP4161729B2/en
Publication of JP2004246526A publication Critical patent/JP2004246526A/en
Publication of JP2004246526A5 publication Critical patent/JP2004246526A5/ja
Application granted granted Critical
Publication of JP4161729B2 publication Critical patent/JP4161729B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain an accurate image processed result of high precision for an event in a real world, taking the real world from which a data is acquired into account, in an image processor. <P>SOLUTION: An area detecting part 4111 detects whether an image (marked picture element) supplied to a selector 4112 is within a stationary area or a non-stationary area, based on area specifying information supplied from a data constancy detecting part 4101, and supplies a detected result to the selector 4112. The selector 4112 selects either of an image supplied from an image generating part 4103 or an image supplied from an image generating part 4104, based on the detected result supplied from the area detecting part 4111, and outputs the selected image to an outside as an output image. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、画像処理装置および方法、記録媒体、並びにプログラムに関し、特に、データが取得された現実世界を考慮した信号処理装置および方法、記録媒体、並びにプログラムに関する。
【0002】
【従来の技術】
実世界(現実世界)における事象をセンサで検出し、センサが出力するサンプリングデータを処理する技術が広く利用されている。例えば、実世界をイメージセンサで撮像し、画像データであるサンプリングデータを処理する画像処理技術が広く利用されている。
【0003】
また、第1の次元を有する現実世界の信号である画像をセンサによって検出することにより得た、第1の次元に比較し次元が少ない第2の次元を有し、第1の信号に対する歪を含む第1の画像データを取得し、第1の画像データに基づく画像処理を行うことにより、第1の画像データに比して歪の軽減された第2の画像データを生成するようにしているものもある(例えば、特許文献1参照)。
【0004】
【特許文献1】
特開2001−250119号公報
【0005】
【発明が解決しようとする課題】
しかしながら、データが取得された現実世界を考慮した画像処理はこれまで考えられていなかった。
【0006】
本発明はこのような状況に鑑みてなされたものであり、データが取得された現実世界を考慮し、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようにすることを目的とする。
【0007】
【課題を解決するための手段】
本発明の画像処理装置は、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、画像データのデータの定常性を有する領域を検出する定常領域検出手段と、現実世界の光信号の定常性の一部が欠落した画像データのデータの定常性に基づいて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定する実世界推定手段とを備えることを特徴とする。
【0008】
現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、画像データのデータの定常性の基準軸に対する角度を検出する角度検出手段をさらに設け、定常領域検出手段は、角度に基いて画像データのデータの定常性を有する領域を検出し、実世界推定手段は、領域に対して、欠落した現実世界の光信号の定常性を推定することにより光信号を推定するようにすることができる。
【0009】
定常領域検出手段は、角度に沿って定常であるモデルと画像データとの誤差に基づいて画像データのデータの定常性を有する領域を検出するようにすることができる。
【0010】
定常領域検出手段は、実世界推定手段の後段に配され、実世界推定手段により演算される、画像データに対応する現実世界の光信号を表す実世界モデルと、画像データとの誤差に基いて、実世界推定手段により推定された実世界モデルを選択的に出力するようにすることができる。
【0011】
本発明の画像処理方法は、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、画像データのデータの定常性を有する領域を検出する定常領域検出ステップと、現実世界の光信号の定常性の一部が欠落した画像データのデータの定常性に基づいて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定する実世界推定ステップとを含むことを特徴とする。
【0012】
本発明の記録媒体のプログラムは、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、画像データのデータの定常性を有する領域を検出する定常領域検出ステップと、現実世界の光信号の定常性の一部が欠落した画像データのデータの定常性に基づいて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定する実世界推定ステップとを含むことを特徴とする。
【0013】
本発明のプログラムは、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、画像データのデータの定常性を有する領域を検出する定常領域検出ステップと、現実世界の光信号の定常性の一部が欠落した画像データのデータの定常性に基づいて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定する実世界推定ステップとを含むことを特徴とする。
【0014】
本発明の画像処理装置および方法、記録媒体、並びにプログラムにおいては、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、画像データのデータの定常性を有する領域が検出されるととともに、現実世界の光信号の定常性の一部が欠落した画像データのデータの定常性に基づいて、欠落した現実世界の光信号の定常性が推定される。
【0015】
画像処理装置は、独立した装置であっても良いし、画像処理を行うブロックであっても良い。
【0016】
【発明の実施の形態】
図1は、本発明の原理を表している。同図で示されるように、空間、時間、および質量の次元を有する実世界1の事象(現象)は、センサ2により取得され、データ化される。実世界1の事象とは、光(画像)、音声、圧力、温度、質量、濃度、明るさ/暗さ、またはにおいなどをいう。実世界1の事象は、時空間方向に分布している。例えば、実世界1の画像は、実世界1の光の強度の時空間方向の分布である。
【0017】
センサ2に注目すると、空間、時間、および質量の次元を有する実世界1の事象のうち、センサ2が取得可能な、実世界1の事象が、センサ2により、データ3に変換される。センサ2によって、実世界1の事象を示す情報が取得されるとも言える。
【0018】
すなわち、センサ2は、実世界1の事象を示す情報を、データ3に変換する。空間、時間、および質量の次元を有する実世界1の事象(現象)を示す情報である信号がセンサ2により取得され、データ化されるとも言える。
【0019】
以下、実世界1における、画像、音声、圧力、温度、質量、濃度、明るさ/暗さ、またはにおいなどの事象の分布を、実世界1の事象を示す情報である信号とも称する。また、実世界1の事象を示す情報である信号を、単に、実世界1の信号とも称する。本明細書において、信号は、現象および事象を含み、送信側に意思がないものも含むものとする。
【0020】
センサ2から出力されるデータ3(検出信号)は、実世界1の事象を示す情報を、実世界1に比較して、より低い次元の時空間に射影して得られた情報である。例えば、動画像の画像データであるデータ3は、実世界1の3次元の空間方向および時間方向の画像が、2次元の空間方向、および時間方向からなる時空間に射影されて得られた情報である。また、例えば、データ3がデジタルデータであるとき、データ3は、サンプリングの単位に応じて、丸められている。データ3がアナログデータであるとき、データ3において、ダイナミックレンジに応じて、情報が圧縮されているか、またはリミッタなどにより、情報の一部が削除されている。
【0021】
このように、所定の次元を有する実世界1の事象を示す情報である信号をデータ3(検出信号)に射影することにより、実世界1の事象を示す情報の一部が欠落する。すなわち、センサ2が出力するデータ3において、実世界1の事象を示す情報の一部が欠落している。
【0022】
しかしながら、射影により実世界1の事象を示す情報の一部が欠落しているものの、データ3は、実世界1の事象(現象)を示す情報である信号を推定するための有意情報を含んでいる。
【0023】
本発明においては、実世界1の情報である信号を推定するための有意情報として、データ3に含まれる定常性を有する情報を利用する。定常性は、新たに定義する概念である。
【0024】
ここで、実世界1に注目すると、実世界1の事象は、所定の次元の方向に一定の特徴を含む。例えば、実世界1の物体(有体物)において、空間方向または時間方向に、形状、模様、若しくは色彩などが連続するか、または形状、模様、若しくは色彩などのパターンが繰り返す。
【0025】
従って、実世界1の事象を示す情報には、所定の次元の方向に一定の特徴が含まれることになる。
【0026】
より具体的な例を挙げれば、糸、紐、またはロープなどの線状の物体は、長さ方向の任意の位置において、断面形状が同じであるという長さ方向、すなわち空間方向に一定の特徴を有する。長さ方向の任意の位置において、断面形状が同じであるという空間方向に一定の特徴は、線状の物体が長いという特徴から生じる。
【0027】
従って、線状の物体の画像は、長さ方向の任意の位置において、断面形状が同じであるという長さ方向、すなわち空間方向に一定の特徴を有している。
【0028】
また、空間方向に広がりを有する有体物である、単色の物体は、部位にかかわらず、同一の色を有するという空間方向に一定の特徴を有していると言える。
【0029】
同様に、空間方向に広がりを有する有体物である、単色の物体の画像は、部位にかかわらず、同一の色を有するという空間方向に一定の特徴を有している。
【0030】
このように、実世界1(現実世界)の事象は、所定の次元の方向に一定の特徴を有しているので、実世界1の信号は、所定の次元の方向に一定の特徴を有する。
【0031】
本明細書において、このような所定の次元の方向に一定の特徴を定常性と称する。実世界1(現実世界)の信号の定常性とは、実世界1(現実世界)の事象を示す信号が有している、所定の次元の方向に一定の特徴をいう。
【0032】
実世界1(現実世界)には、このような定常性が無数に存在する。
【0033】
次に、データ3に注目すると、データ3は、センサ2により、所定の次元を有する実世界1の事象を示す情報である信号が射影されたものであるので、実世界の信号の定常性に対応する定常性を含んでいる。データ3は、実世界の信号の定常性が射影された定常性を含んでいるとも言える。
【0034】
しかしながら、上述したように、センサ2が出力するデータ3において、実世界1の情報の一部が欠落しているので、データ3から、実世界1(現実世界)の信号に含まれる定常性の一部が欠落してしまう。
【0035】
換言すれば、データ3は、データの定常性として、実世界1(現実世界)の信号の定常性の中の、一部の定常性を含む。データの定常性とは、データ3が有している、所定の次元の方向に一定の特徴である。
【0036】
本発明においては、実世界1の事象を示す情報である信号を推定するための有意情報として、データ3が有する、データの定常性が利用される。
【0037】
例えば、本発明においては、データの定常性を利用して、データ3を信号処理することで、欠落した、実世界1の事象を示す情報が生成される。
【0038】
なお、本発明においては、実世界1の事象を示す情報である信号の次元の、長さ(空間)、時間、および質量のうち、空間方向または時間方向の定常性が利用される。
【0039】
図1に戻り、センサ2は、例えば、デジタルスチルカメラ、またはビデオカメラなどで構成され、実世界1の画像を撮像し、得られたデータ3である画像データを信号処理装置4に出力する。センサ2は、例えば、サーモグラフィ装置、または光弾性を利用した圧力センサなどとすることができる。
【0040】
信号処理装置4は、例えば、パーソナルコンピュータなどで構成される。
【0041】
信号処理装置4は、例えば、図2で示されるように構成される。CPU(Central Processing Unit)21は、ROM(Read Only Memory)22、または記憶部28に記憶されているプログラムに従って各種の処理を実行する。RAM(Random Access Memory)23には、CPU21が実行するプログラムやデータなどが適宜記憶される。これらのCPU21、ROM22、およびRAM23は、バス24により相互に接続されている。
【0042】
CPU21にはまた、バス24を介して入出力インタフェース25が接続されている。入出力インタフェース25には、キーボード、マウス、マイクロホンなどよりなる入力部26、ディスプレイ、スピーカなどよりなる出力部27が接続されている。CPU21は、入力部26から入力される指令に対応して各種の処理を実行する。そして、CPU21は、処理の結果得られた画像や音声等を出力部27に出力する。
【0043】
入出力インタフェース25に接続されている記憶部28は、例えばハードディスクなどで構成され、CPU21が実行するプログラムや各種のデータを記憶する。通信部29は、インターネット、その他のネットワークを介して外部の装置と通信する。この例の場合、通信部29はセンサ2の出力するデータ3を取り込む取得部として働く。
【0044】
また、通信部29を介してプログラムを取得し、記憶部28に記憶してもよい。
【0045】
入出力インタフェース25に接続されているドライブ30は、磁気ディスク51、光ディスク52、光磁気ディスク53、或いは半導体メモリ54などが装着されたとき、それらを駆動し、そこに記録されているプログラムやデータなどを取得する。取得されたプログラムやデータは、必要に応じて記憶部28に転送され、記憶される。
【0046】
図3は、信号処理装置4を示すブロック図である。
【0047】
なお、信号処理装置4の各機能をハードウェアで実現するか、ソフトウェアで実現するかは問わない。つまり、本明細書の各ブロック図は、ハードウェアのブロック図と考えても、ソフトウェアによる機能ブロック図と考えても良い。
【0048】
図3に構成を示す信号処理装置4においては、データ3の一例である画像データが入力され、入力された画像データ(入力画像)からデータの定常性が検出される。次に、検出されたデータの定常性から、センサ2により取得された実世界1の信号が推定される。そして、推定された実世界1の信号を基に、画像が生成され、生成された画像(出力画像)が出力される。すなわち、図3は、画像処理装置である信号処理装置4の構成を示す図である。
【0049】
信号処理装置4に入力された入力画像(データ3の一例である画像データ)は、データ定常性検出部101および実世界推定部102に供給される。
【0050】
データ定常性検出部101は、入力画像からデータの定常性を検出して、検出した定常性を示すデータ定常性情報を実世界推定部102および画像生成部103に供給する。データ定常性情報は、例えば、入力画像における、データの定常性を有する画素の領域の位置、データの定常性を有する画素の領域の方向(時間方向および空間方向の角度または傾き)、またはデータの定常性を有する画素の領域の長さなどを含む。データ定常性検出部101の構成の詳細は、後述する。
【0051】
実世界推定部102は、入力画像、およびデータ定常性検出部101から供給されたデータ定常性情報を基に、実世界1の信号を推定する。すなわち、実世界推定部102は、入力画像が取得されたときセンサ2に入射された、実世界の信号である画像を推定する。実世界推定部102は、実世界1の信号の推定の結果を示す実世界推定情報を画像生成部103に供給する。実世界推定部102の構成の詳細は、後述する。
【0052】
画像生成部103は、実世界推定部102から供給された、推定された実世界1の信号を示す実世界推定情報を基に、実世界1の信号により近似した信号を生成して、生成した信号を出力する。または、画像生成部103は、データ定常性検出部101から供給されたデータ定常性情報、および実世界推定部102から供給された、推定された実世界1の信号を示す実世界推定情報を基に、実世界1の信号により近似した信号を生成して、生成した信号を出力する。
【0053】
すなわち、画像生成部103は、実世界推定情報を基に、実世界1の画像により近似した画像を生成して、生成した画像を出力画像として出力する。または、画像生成部103は、データ定常性情報および実世界推定情報を基に、実世界1の画像により近似した画像を生成して、生成した画像を出力画像として出力する。
【0054】
例えば、画像生成部103は、実世界推定情報を基に、推定された実世界1の画像を所望の空間方向または時間方向の範囲で積分することにより、入力画像に比較して、空間方向または時間方向により高解像度の画像を生成して、生成した画像を出力画像として出力する。例えば、画像生成部103は、外挿補間により、画像を生成して、生成した画像を出力画像として出力する。
【0055】
画像生成部103の構成の詳細は、後述する。
【0056】
次に、図4乃至図7を参照して、本発明の原理を説明する。
【0057】
図4は、従来の信号処理装置121における処理の原理を説明する図である。従来の信号処理装置121は、データ3を処理の基準とすると共に、データ3を処理の対象として、高解像度化などの処理を実行する。従来の信号処理装置121においては、実世界1が考慮されることはなく、データ3が最終的な基準となり、データ3に含まれている情報以上の情報を出力として得ることはできない。
【0058】
また、従来の信号処理装置121において、データ3に存在する、センサ2による歪み(実世界1の情報である信号とデータ3との差)は全く考慮されないので、従来の信号処理装置121は、歪みを含んだままの信号を出力することになる。さらに、信号処理装置121の処理の内容によっては、データ3に存在する、センサ2による歪みがさらに増幅されて、増幅された歪みを含むデータが出力されることになる。
【0059】
このように、従来の信号処理においては、データ3が取得された実世界1(の信号)そのものが考慮されることはなかった。換言すれば、従来の信号処理においては、データ3に含まれている情報の枠内で実世界1を捉えていたので、データ3に含まれている情報および歪みにより、信号処理の限界が決定される。
【0060】
これに対して、本発明の信号処理においては、実世界1(の信号)そのものを明確に考慮して、処理が実行される。
【0061】
図5は、本発明に係る信号処理装置4における処理の原理を説明する図である。
【0062】
実世界1の事象を示す情報である信号をセンサ2が取得し、センサ2が、実世界1の情報である信号を射影したデータ3を出力する点では、従来と同様である。
【0063】
しかしながら、本発明においては、センサ2により取得された、実世界1の事象を示す情報である信号が明確に考慮される。すなわち、データ3が、センサ2による歪み(実世界1の情報である信号とデータ3との差)を含むことを意識して信号処理がなされる。
【0064】
このようにすることで、本発明の信号処理においては、データ3に含まれている情報および歪みにより処理の結果が限定されることがなく、例えば、従来に比較して、実世界1の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。すなわち、本発明によれば、センサ2に入力された、実世界1の事象を示す情報である信号に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【0065】
図6および図7は、本発明の原理をより具体的に説明する図である。
【0066】
図6で示されるように、例えば、画像である、実世界1の信号が、レンズ、または光学LPF(Low Pass Filter)などでなる光学系141により、センサ2の一例であるCCD(Charge Coupled Device)の受光面に結像される。センサ2の一例であるCCDは、積分特性を有しているので、CCDから出力されるデータ3には、実世界1の画像との差が生じることになる。センサ2の積分特性の詳細については、後述する。
【0067】
本発明の信号処理においては、CCDにより取得された実世界1の画像と、CCDにより撮像され、出力されたデータ3との関係が明確に考慮される。すなわち、データ3と、センサ2で取得された実世界の情報である信号との関係が明確に考慮される。
【0068】
より具体的には、図7で示されるように、信号処理装置4は、モデル161を用いて、実世界1を近似(記述)する。モデル161は、例えば、N個の変数で表現される。より正確には、モデル161は、実世界1の信号を近似(記述)する。
【0069】
モデル161を予測するために、信号処理装置4は、データ3から、M個のデータ162を抽出する。データ3から、M個のデータ162を抽出するとき、信号処理装置4は、データ3に含まれるデータの定常性を利用する。換言すれば、信号処理装置4は、データ3に含まれるデータの定常性を基に、モデル161を予測するためのデータ162を抽出する。結果的に、モデル161は、データの定常性に拘束されることになる。
【0070】
すなわち、モデル161は、センサ2で取得されたとき、データ3においてデータの定常性を生じさせる、定常性(所定の次元の方向に一定の特徴)を有する実世界1の事象(を示す情報(信号))を近似する。
【0071】
ここで、データ162の数Mが、モデルの変数の数N以上であれば、M個のデータ162から、N個の変数で表現されるモデル161を予測することができる。
【0072】
このように、実世界1(の信号)を近似(記述)するモデル161を予測することにより、信号処理装置4は、実世界1の情報である信号を考慮することができる。
【0073】
次に、センサ2の積分効果について説明する。
【0074】
画像を撮像するセンサ2である、CCDまたはCMOS(Complementary Metal−Oxide Semiconductor)センサなどのイメージセンサは、現実世界を撮像するとき、現実世界の情報である信号を2次元のデータに投影する。イメージセンサの各画素は、いわゆる受光面(受光領域)として、それぞれ所定の面積を有する。所定の面積を有する受光面に入射した光は、画素毎に、空間方向および時間方向に積分され、各画素に対して1つの画素値に変換される。
【0075】
図8乃至図11を参照して、画像の空間的時間的な積分について説明する。
【0076】
イメージセンサは、現実世界の対象物(オブジェクト)を撮像し、撮像の結果得られた画像データを1フレーム単位で出力する。すなわち、イメージセンサは、実世界1の対象物で反射された光である、実世界1の信号を取得し、データ3を出力する。
【0077】
例えば、イメージセンサは、1秒間に30フレームからなる画像データを出力する。この場合、イメージセンサの露光時間は、1/30秒とすることができる。露光時間は、イメージセンサが入射された光の電荷への変換を開始してから、入射された光の電荷への変換を終了するまでの期間である。以下、露光時間をシャッタ時間とも称する。
【0078】
図8は、イメージセンサ上の画素の配置の例を説明する図である。図8中において、A乃至Iは、個々の画素を示す。画素は、画像データにより表示される画像に対応する平面上に配置されている。1つの画素に対応する1つの検出素子は、イメージセンサ上に配置されている。イメージセンサが実世界1の画像を撮像するとき、1つの検出素子は、画像データを構成する1つの画素に対応する1つの画素値を出力する。例えば、検出素子の空間方向Xの位置(X座標)は、画像データにより表示される画像上の横方向の位置に対応し、検出素子の空間方向Yの位置(Y座標)は、画像データにより表示される画像上の縦方向の位置に対応する。
【0079】
実世界1の光の強度の分布は、3次元の空間方向および時間方向に広がりを有するが、イメージセンサは、2次元の空間方向および時間方向で、実世界1の光を取得し、2次元の空間方向および時間方向の光の強度の分布を表現するデータ3を生成する。
【0080】
図9で示されるように、例えば、CCDである検出素子は、シャッタ時間に対応する期間、受光面(受光領域)(検出領域)に入力された光を電荷に変換して、変換された電荷を蓄積する。光は、3次元の空間上の位置、および時刻により、強度が決定される実世界1の情報(信号)である。実世界1の光の強度の分布は、3次元の空間上の位置x,y、およびz、並びに時刻tを変数とする関数F(x,y,z,t)で表すことができる。
【0081】
CCDである検出素子に蓄積される電荷の量は、2次元の空間上の広がりを有する受光面の全体に入射された光の強さと、光が入射されている時間にほぼ比例する。検出素子は、シャッタ時間に対応する期間において、受光面の全体に入射された光から変換された電荷を、既に蓄積されている電荷に加えていく。すなわち、検出素子は、シャッタ時間に対応する期間、2次元の空間上の広がりを有する受光面の全体に入射される光を積分して、積分された光に対応する量の電荷を蓄積する。検出素子は、空間(受光面)および時間(シャッタ時間)に対して、積分効果があるとも言える。
【0082】
検出素子に蓄積された電荷は、図示せぬ回路により、電圧値に変換され、電圧値はさらにデジタルデータなどの画素値に変換されて、データ3として出力される。従って、イメージセンサから出力される個々の画素値は、実世界1の情報(信号)の時間的空間的に広がりを有するある部分を、シャッタ時間の時間方向および検出素子の受光面の空間方向について積分した結果である、1次元の空間に射影した値を有する。
【0083】
すなわち、1つの画素の画素値は、F(x,y,t)の積分で表される。F(x,y,t)は、検出素子の受光面における、光の強度の分布を表す関数である。例えば、画素値Pは、式(1)で表される。
【0084】
【数1】

Figure 2004246526
Figure 2004246526
【0085】
式(1)において、xは、検出素子の受光面の左側の境界の空間座標(X座標)である。xは、検出素子の受光面の右側の境界の空間座標(X座標)である。式(1)において、yは、検出素子の受光面の上側の境界の空間座標(Y座標)である。yは、検出素子の受光面の下側の境界の空間座標(Y座標)である。また、tは、入射された光の電荷への変換を開始した時刻である。tは、入射された光の電荷への変換を終了した時刻である。
【0086】
なお、実際には、イメージセンサから出力される画像データの画素値は、例えばフレーム全体として、そのゲインが補正されている。
【0087】
画像データの各画素値は、イメージセンサの各検出素子の受光面に入射した光の積分値であり、イメージセンサに入射された光のうち、検出素子の受光面よりも微小な実世界1の光の波形は、積分値としての画素値に隠されてしまう。
【0088】
以下、本明細書において、所定の次元を基準として表現される信号の波形を単に波形とも称する。
【0089】
このように、実世界1の画像は、画素を単位として、空間方向および時間方向に積分されてしまうので、画像データにおいては、実世界1の画像の定常性の一部が欠落し、実世界1の画像の定常性の他の一部のみが画像データに含まれることになる。または、画像データには、実世界1の画像の定常性から変化してしまった定常性が含まれることがある。
【0090】
積分効果を有するイメージセンサにより撮像された画像の、空間方向の積分効果についてさらに説明する。
【0091】
図10は、画素D乃至画素Fに対応する検出素子に入射される光と、画素値との関係を説明する図である。図10のF(x)は、空間上(検出素子上)の空間方向Xの座標xを変数とする、実世界1の光の強度の分布を表す関数の例である。言い換えれば、F(x)は、空間方向Yおよび時間方向に一定である場合の、実世界1の光の強度の分布を表す関数の例である。図10において、Lは、画素D乃至画素Fに対応する検出素子の受光面の空間方向Xの長さを示す。
【0092】
1つの画素の画素値は、F(x)の積分で表される。例えば、画素Eの画素値Pは、式(2)で表される。
【0093】
【数2】
Figure 2004246526
Figure 2004246526
【0094】
式(2)において、xは、画素Eに対応する検出素子の受光面の左側の境界の空間方向Xの空間座標である。xは、画素Eに対応する検出素子の受光面の右側の境界の空間方向Xの空間座標である。
【0095】
同様に、積分効果を有するイメージセンサにより撮像された画像の、時間方向の積分効果についてさらに説明する。
【0096】
図11は、時間の経過と、1つの画素に対応する検出素子に入射される光と、画素値との関係を説明する図である。図11のF(t)は、時刻tを変数とする、実世界1の光の強度の分布を表す関数である。言い換えれば、F(t)は、空間方向Yおよび空間方向Xに一定である場合の、実世界1の光の強度の分布を表す関数の例である。tは、シャッタ時間を示す。
【0097】
フレーム#n−1は、フレーム#nに対して時間的に前のフレームであり、フレーム#n+1は、フレーム#nに対して時間的に後のフレームである。すなわち、フレーム#n−1、フレーム#n、およびフレーム#n+1は、フレーム#n−1、フレーム#n、およびフレーム#n+1の順で表示される。
【0098】
なお、図11で示される例において、シャッタ時間tとフレーム間隔とが同一である。
【0099】
1つの画素の画素値は、F(t)の積分で表される。例えば、フレーム#nの画素の画素値Pは、式(3)で表される。
【0100】
【数3】
Figure 2004246526
Figure 2004246526
【0101】
式(3)において、tは、入射された光の電荷への変換を開始した時刻である。tは、入射された光の電荷への変換を終了した時刻である。
【0102】
以下、センサ2による空間方向の積分効果を単に空間積分効果と称し、センサ2による時間方向の積分効果を単に時間積分効果と称する。また、空間積分効果または時間積分効果を単に積分効果とも称する。
【0103】
次に、積分効果を有するイメージセンサにより取得されたデータ3に含まれるデータの定常性の例について説明する。
【0104】
図12は、実世界1の線状の物(例えば、細線)の画像、すなわち光の強度の分布の例を示す図である。図12において、図中の上側の位置は、光の強度(レベル)を示し、図中の右上側の位置は、画像の空間方向の一方向である空間方向Xの位置を示し、図中の右側の位置は、画像の空間方向の他の方向である空間方向Yの位置を示す。
【0105】
実世界1の線状の物の画像には、所定の定常性が含まれる。すなわち、図12で示される画像は、長さ方向の任意の位置において、断面形状(長さ方向に直交する方向の位置の変化に対するレベルの変化)が同じであるという定常性を有する。
【0106】
図13は、図12で示される画像に対応する、実際の撮像により得られた画像データの画素値の例を示す図である。
【0107】
図14は、図13に示す画像データの模式図である。
【0108】
図14で示される模式図は、イメージセンサの画素の並び(画素の縦または横の並び)とずれた方向に延びる、各画素の受光面の長さLよりも短い径の線状の物の画像を、イメージセンサで撮像して得られた画像データの模式図である。図14で示される画像データが取得されたときにイメージセンサに入射された画像は、図12の実世界1の線状の物の画像である。
【0109】
図14において、図中の上側の位置は、画素値を示し、図中の右上側の位置は、画像の空間方向の一方向である空間方向Xの位置を示し、図中の右側の位置は、画像の空間方向の他の方向である空間方向Yの位置を示す。図14における画素値を示す方向は、図12におけるレベルの方向に対応し、図14における空間方向X、および空間方向Yは、図12における方向と同じである。
【0110】
各画素の受光面の長さLよりも短い径の線状の物の画像を、イメージセンサで撮像した場合、撮像の結果得られる画像データにおいて、線状の物は、模式的に、例えば、斜めにずれて並ぶ、複数の所定の長さの円弧形状(かまぼこ型)で表される。各円弧形状は、ほぼ同じ形状である。1つの円弧形状は、縦に1列の画素の上、または横に1列の画素の上に形成される。例えば、図14における1つの円弧形状は、縦に1列の画素の上に形成される。
【0111】
このように、例えば、イメージセンサで撮像されて取得された画像データにおいては、実世界1の線状の物の画像が有していた、長さ方向の任意の位置において、空間方向Yにおける断面形状が同じであるという定常性が失われている。また、実世界1の線状の物の画像が有していた定常性は、縦に1列の画素の上、または横に1列の画素の上に形成された、同じ形状である円弧形状が一定の間隔で並ぶという定常性に変化していると言える。
【0112】
図15は、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像、すなわち光の強度の分布の例を示す図である。図15において、図中の上側の位置は、光の強度(レベル)を示し、図中の右上側の位置は、画像の空間方向の一方向である空間方向Xの位置を示し、図中の右側の位置は、画像の空間方向の他の方向である空間方向Yの位置を示す。
【0113】
背景とは異なる色の、直線状の縁を有する物の実世界1の画像には、所定の定常性が含まれる。すなわち、図15で示される画像は、縁の長さ方向の任意の位置において、断面形状(縁に直交する方向の位置の変化に対するレベルの変化)が同じであるという定常性を有する。
【0114】
図16は、図15で示される画像に対応する、実際の撮像により得られた画像データの画素値の例を示す図である。図16で示されるように、画像データは、画素を単位とした画素値からなるので、階段状になる。
【0115】
図17は、図16に示す画像データの模式図である。
【0116】
図17で示される模式図は、イメージセンサの画素の並び(画素の縦または横の並び)とずれた方向に縁が延びる、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像を、イメージセンサで撮像して得られた画像データの模式図である。図17で示される画像データが取得されたときにイメージセンサに入射された画像は、図15で示される、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像である。
【0117】
図17において、図中の上側の位置は、画素値を示し、図中の右上側の位置は、画像の空間方向の一方向である空間方向Xの位置を示し、図中の右側の位置は、画像の空間方向の他の方向である空間方向Yの位置を示す。図17における画素値を示す方向は、図15におけるレベルの方向に対応し、図17における空間方向X、および空間方向Yは、図15における方向と同じである。
【0118】
背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像を、イメージセンサで撮像した場合、撮像の結果得られる画像データにおいて、直線状の縁は、模式的に、例えば、斜めにずれて並ぶ、複数の所定の長さのつめ(pawl)形状で表される。各つめ形状は、ほぼ同じ形状である。1つのつめ形状は、縦に1列の画素の上、または横に1列の画素の上に形成される。例えば、図17において、1つのつめ形状は、縦に1列の画素の上に形成される。
【0119】
このように、例えば、イメージセンサで撮像されて取得された画像データにおいては、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像が有していた、縁の長さ方向の任意の位置において、断面形状が同じであるという定常性が失われている。また、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像が有していた定常性は、縦に1列の画素の上、または横に1列の画素の上に形成された、同じ形状であるつめ形状が一定の間隔で並ぶという定常性に変化していると言える。
【0120】
データ定常性検出部101は、このような、例えば、入力画像であるデータ3が有するデータの定常性を検出する。例えば、データ定常性検出部101は、所定の次元の方向に一定の特徴を有する領域を検出することにより、データの定常性を検出する。例えば、データ定常性検出部101は、図14で示される、同じ円弧形状が一定の間隔で並ぶ領域を検出する。また、例えば、データ定常性検出部101は、図17で示される、同じつめ形状が一定の間隔で並ぶ領域を検出する。
【0121】
また、データ定常性検出部101は、同様の形状の並び方を示す、空間方向の角度(傾き)を検出することにより、データの定常性を検出する。
【0122】
また、例えば、データ定常性検出部101は、空間方向および時間方向の同様の形状の並び方を示す、空間方向および時間方向の角度(動き)を検出することにより、データの定常性を検出する。
【0123】
さらに、例えば、データ定常性検出部101は、所定の次元の方向に一定の特徴を有する領域の長さを検出することにより、データの定常性を検出する。
【0124】
以下、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像がセンサ2により射影されたデータ3の部分を2値エッジとも称する。
【0125】
次に、本発明の原理をさらに具体的に説明する。
【0126】
図18で示されるように、従来の信号処理においては、データ3から、例えば、所望の高解像度データ181が生成される。
【0127】
これに対して、本発明に係る信号処理においては、データ3から、実世界1が推定され、推定の結果に基づいて、高解像度データ181が生成される。すなわち、図19で示されるように、実世界1が、データ3から推定され、高解像度データ181が、データ3を考慮して、推定された実世界1から高解像度データ181が生成される。
【0128】
実世界1から高解像度データ181を生成するためには、実世界1とデータ3との関係を考慮する必要がある。例えば、実世界1が、CCDであるセンサ2により、データ3に射影されるとどうなるかが考慮される。
【0129】
CCDであるセンサ2は、上述したように、積分特性を有する。すなわち、データ3の1つの単位(例えば、画素値)は、実世界1の信号をセンサ2の検出素子(例えば、CCD)の検出領域(例えば、受光面)で積分することにより算出することができる。
【0130】
これを高解像度データ181について当てはめると、仮想的な高解像度のセンサが実世界1の信号をデータ3に射影する処理を、推定された実世界1に適用することにより、高解像度データ181を得ることができる。
【0131】
換言すれば、図20で示されるように、データ3から実世界1の信号を推定できれば、実世界1の信号を、仮想的な高解像度のセンサの検出素子の検出領域毎に(時空間方向に)積分することにより、高解像度データ181に含まれる1つの値を得ることができる。
【0132】
例えば、センサ2の検出素子の検出領域の大きさに比較して、実世界1の信号の変化が、より小さいとき、データ3は、実世界1の信号の小さい変化を表すことができない。そこで、データ3から推定された実世界1の信号を、実世界1の信号の変化に比較して、より小さい領域毎に(時空間方向に)積分することにより、実世界1の信号の小さい変化を示す高解像度データ181を得ることができる。
【0133】
すなわち、仮想的な高解像度のセンサの各検出素子について、推定された実世界1の信号を検出領域で積分することにより、高解像度データ181を得ることができる。
【0134】
本発明において、画像生成部103は、例えば、仮想的な高解像度のセンサの各検出素子の時空間方向の領域で、推定された実世界1の信号を積分することにより、高解像度データ181を生成する。
【0135】
次に、データ3から、実世界1を推定するために、本発明においては、データ3と実世界1との関係、定常性、およびデータ3における空間混合が利用される。
【0136】
ここで、混合とは、データ3において、実世界1における2つの物体に対する信号が混合されて1つの値となることをいう。
【0137】
空間混合とは、センサ2の空間積分効果による、2つの物体に対する信号の空間方向の混合をいう。
【0138】
実世界1そのものは、無限の数の事象からなり、従って、実世界1そのものを、例えば、数式で表現するためには、無限の数の変数が必要になる。データ3から、実世界1の全ての事象を予測することはできない。
【0139】
同様に、データ3から、実世界1の信号の全てを予測することはできない。
【0140】
そこで、図21で示されるように、本発明においては、実世界1の信号のうち、定常性を有し、関数f(x,y,z,t)で表すことができる部分に注目し、関数f(x,y,z,t)で表すことができる、定常性を有する実世界1の信号の部分が、N個の変数で表現されるモデル161で近似される。そして、図22で示されるように、モデル161が、データ3の中の、M個のデータ162から予測される。
【0141】
M個のデータ162からモデル161の予測を可能にするには、第1に、モデル161を、定常性に基づいて、N個の変数で表し、第2に、センサ2の積分特性に基づいて、N個の変数で表現されるモデル161とM個のデータ162との関係を示す、N個の変数を使用した式を立てることが必要である。モデル161が、定常性に基づいて、N個の変数で表されているので、N個の変数で表現されるモデル161とM個のデータ162との関係を示す、N個の変数を使用した式は、定常性を有する実世界1の信号の部分と、データの定常性を有するデータ3の部分との関係を記述しているとも言える。
【0142】
換言すれば、N個の変数で表現されるモデル161で近似される、定常性を有する実世界1の信号の部分は、データ3において、データの定常性を生じさせる。
【0143】
データ定常性検出部101は、定常性を有する実世界1の信号の部分によって、データの定常性が生じたデータ3の部分、およびデータの定常性が生じた部分の特徴を検出する。
【0144】
例えば、図23で示されるように、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像において、図23中Aで示す、注目する位置における縁は、傾きを有している。図23のBの矢印は、縁の傾きを示す。所定の縁の傾きは、基準となる軸に対する角度または基準となる位置に対する方向で表すことができる。例えば、所定の縁の傾きは、空間方向Xの座標軸と、縁との角度で表すことができる。例えば、所定の縁の傾きは、空間方向Xの長さおよび空間方向Yの長さで示される方向で表すことができる。
【0145】
背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像が、センサ2で取得されて、データ3が出力されたとき、データ3において、実世界1の画像における、縁の注目する位置(A)に対する、図23中A’で示す位置に、縁に対応するつめ形状が並び、実世界1の画像の縁の傾きに対応する、図23中B’で示す傾きの方向に、縁に対応するつめ形状が並ぶ。
【0146】
N個の変数で表現されるモデル161は、このような、データ3において、データの定常性を生じさせる、実世界の1の信号の部分を近似する。
【0147】
N個の変数で表現されるモデル161とM個のデータ162との関係を示す、N個の変数を使用した式を立てるとき、データ3において、データの定常性が生じている部分の値を利用する。
【0148】
この場合において、図24で示される、データ3において、データの定常性が生じ、混合領域に属する値に注目して、実世界1の信号を積分した値が、センサ2の検出素子が出力する値に等しいとして、式が立てられる。例えば、データの定常性が生じている、データ3における複数の値について、複数の式を立てることができる。
【0149】
図24において、Aは、縁の注目する位置を示し、A’は、実世界1の画像における、縁の注目する位置(A)に対する、画素(の位置)を示す。
【0150】
ここで、混合領域とは、データ3において、実世界1における2つの物体に対する信号が混合されて1つの値となっているデータの領域をいう。例えば、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像に対するデータ3において、直線状の縁を有する物に対する画像、および背景に対する画像が積分されている画素値は、混合領域に属する。
【0151】
図25は、式を立てる場合における、実世界1における2つの物体に対する信号および混合領域に属する値を説明する図である。
【0152】
図25中の左側は、センサ2の1つの検出素子の検出領域で取得される、空間方向Xおよび空間方向Yに所定の広がりを有する、実世界1における2つの物体に対する実世界1の信号を示す。図25中の右側は、図25中の左側に示す実世界1の信号がセンサ2の1つの検出素子によって射影された、データ3の1つの画素の画素値Pを示す。すなわち、センサ2の1つの検出素子によって取得された、空間方向Xおよび空間方向Yに所定の広がりを有する、実世界1における2つの物体に対する実世界1の信号が射影された、データ3の1つの画素の画素値Pを示す。
【0153】
図25のLは、実世界1における1つの物体に対する、図25の白い部分の実世界1の信号のレベルを示す。図25のRは、実世界1における他の1つの物体に対する、図25の斜線で表される部分の実世界1の信号のレベルを示す。
【0154】
ここで、混合比αは、センサ2の1つの検出素子の、空間方向Xおよび空間方向Yに所定の広がりを有する検出領域に入射された、2つの物体に対する信号(の面積)の割合を示す。例えば、混合比αは、センサ2の1つの検出素子の検出領域の面積に対する、空間方向Xおよび空間方向Yに所定の広がりを有する、センサ2の1つの検出素子の検出領域に入射された、レベルLの信号の面積の割合を示す。
【0155】
この場合において、レベルL、レベルR、および画素値Pの関係は、式(4)で表すことができる。
【0156】
α×L+(1−α)×R=P ・・・(4)
【0157】
なお、レベルRは、注目している画素の右側に位置している、データ3の画素の画素値とすることができる場合があり、レベルLは、注目している画素の左側に位置している、データ3の画素値とすることができる場合がある。
【0158】
また、混合比αおよび混合領域は、空間方向と同様に、時間方向を考慮することができる。例えば、センサ2に対して撮像の対象となる実世界1の物体が移動しているとき、時間方向に、センサ2の1つの検出素子の検出領域に入射される、2つの物体に対する信号の割合は変化する。センサ2の1つの検出素子の検出領域に入射された、時間方向に割合が変化する、2つの物体に対する信号は、センサ2の検出素子によって、データ3の1つの値に射影される。
【0159】
センサ2の時間積分効果による、2つの物体に対する信号の時間方向の混合を時間混合と称する。
【0160】
データ定常性検出部101は、例えば、実世界1における2つの物体に対する実世界1の信号が射影された、データ3における画素の領域を検出する。データ定常性検出部101は、例えば、実世界1の画像の縁の傾きに対応する、データ3における傾きを検出する。
【0161】
そして、実世界推定部102は、例えば、データ定常性検出部101で検出された、所定の混合比αを有する画素の領域、および領域の傾きを基に、N個の変数で表現されるモデル161とM個のデータ162との関係を示す、N個の変数を使用した式を立てて、立てた式を解くことにより、実世界1の信号を推定する。
【0162】
さらに、具体的な実世界1の推定について説明する。
【0163】
関数F(x,y,z,t)で表される実世界の信号のうち、空間方向Zの断面(センサ2の位置)における関数F(x,y,t)で表される実世界の信号を、空間方向Xにおける位置x、空間方向Yにおける位置y、および時刻tで決まる近似関数f(x,y,t)で近似することを考える。
【0164】
ここで、センサ2の検出領域は、空間方向Xおよび空間方向Yに広がりを有する。換言すれば、近似関数f(x,y,t)は、センサ2で取得される、空間方向および時間方向に広がりを有する実世界1の信号を近似する関数である。
【0165】
センサ2による実世界1の信号の射影によって、データ3の値P(x,y,t)が得られるものとする。データ3の値P(x,y,t)は、例えば、イメージセンサであるセンサ2が出力する、画素値である。
【0166】
ここで、センサ2による射影を定式化できる場合、近似関数f(x,y,t)を射影して得られた値を射影関数S(x,y,t)と表すことができる。
【0167】
射影関数S(x,y,t)を求める上で、以下に示す問題がある。
【0168】
第1に、一般的に、実世界1の信号を表す関数F(x,y,z,t)は、無限の次数の関数となりうる。
【0169】
第2に、たとえ、実世界の信号を関数として記述できたとしても、センサ2の射影を介した、射影関数S(x,y,t)を定めることは、一般的にはできない。すなわち、センサ2による射影の動作、言い換えればセンサ2の入力信号と出力信号との関係を知らないので、射影関数S(x,y,t)を定めることはできない。
【0170】
第1の問題点に対して、実世界1の信号を近似する関数f(x,y,t)を記述可能な関数(例えば、有限次数の関数)である関数f(x,y,t)および変数wの積和で表現することを考える。
【0171】
また、第2の問題点に対して、センサ2による射影を定式化することで、関数f(x,y,t)の記述から、関数S(x,y,t)を記述することができる。
【0172】
すなわち、実世界1の信号を近似する関数f(x,y,t)を関数f(x,y,t)および変数wの積和で表現すると、式(5)が得られる。
【0173】
【数4】
Figure 2004246526
Figure 2004246526
【0174】
例えば、式(6)で示されるように、センサ2の射影を定式化することにより、式(5)から、データ3と実世界の信号の関係を式(7)のように定式化することができる。
【0175】
【数5】
Figure 2004246526
Figure 2004246526
【0176】
【数6】
Figure 2004246526
Figure 2004246526
式(7)において、jは、データのインデックスである。
【0177】
式(7)のN個の変数w(i=1乃至N)が共通であるM個のデータ群(j=1乃至M)が存在すれば、式(8)を満たすので、データ3から実世界のモデル161を求めることができる。
【0178】
N≦M ・・・(8)
Nは、実世界1を近似するモデル161を表現する変数の数である。Mは、データ3に含まれるデータ162の数である。
【0179】
実世界1の信号を近似する関数f(x,y,t)を式(5)で表すことにより、wとして変数の部分を独立させることができる。このとき、iは、そのまま変数の数を示すことになる。また、fで示される関数の形を独立させることができ、fとして所望の関数を利用することができるようになる。
【0180】
従って、関数fの形に依存せず、変数wの数Nを定義でき、変数wの数Nとデータの数Mとの関係で変数wを求めることができる。
【0181】
すなわち、以下の3つを用いることで、データ3から実世界1を推定することができるようになる。
【0182】
第1に、N個の変数を定める、すなわち、式(5)を定める。これは、定常性を用いて実世界1を記述することにより可能になる。例えば、断面が多項式で表され、同じ断面形状が一定方向に続く、というモデル161で実世界1の信号を記述することができる。
【0183】
第2に、例えば、センサ2による射影を定式化して、式(7)を記述する。例えば、実世界2の信号の積分を行った結果がデータ3であると定式化する。
【0184】
第3に、M個のデータ162を集めて、式(8)を満足させる。例えば、データ定常性検出部101で検出された、データの定常性を有する領域から、データ162が集められる。例えば、定常性の一例である、一定の断面が続く領域のデータ162が集められる。
【0185】
このように、式(5)によって、データ3と実世界1との関係を記述し、M個のデータ162を集めることで、式(8)を満たすことにより、実世界1を推定することができる。
【0186】
より具体的には、N=Mのとき、変数の数Nと式の数Mが等しいので、連立方程式を立てることにより、変数wを求めることができる。
【0187】
また、N<Mのとき、様々な解法を適用できる。例えば、最小自乗法により、変数wを求めることができる。
【0188】
ここで、最小自乗法による解法について、詳細に記載する。
【0189】
まず、式(7)に従って、実世界1からデータ3を予測する式(9)を示す。
【0190】
【数7】
Figure 2004246526
Figure 2004246526
【0191】
式(9)において、P’(x,yj,)は、予測値である。
【0192】
予測値P’と実測値Pとの差分自乗和Eは、式(10)で表される。
【0193】
【数8】
Figure 2004246526
Figure 2004246526
【0194】
差分自乗和Eが最小になるように、変数wが求められる。従って、各変数wによる式(10)の偏微分値は0とされる。すなわち、式(11)が成り立つ。
【0195】
【数9】
Figure 2004246526
Figure 2004246526
【0196】
式(11)から式(12)が導かれる。
【0197】
【数10】
Figure 2004246526
Figure 2004246526
【0198】
式(12)がK=1乃至Nで成り立つとき、最小自乗法による解が得られる。このときの正規方程式は、式(13)で示される。
【0199】
【数11】
Figure 2004246526
Figure 2004246526
ただし、式(13)において、S(x,y,t)は、S(j)と記述した。
【0200】
【数12】
Figure 2004246526
Figure 2004246526
【0201】
【数13】
Figure 2004246526
Figure 2004246526
【0202】
【数14】
Figure 2004246526
Figure 2004246526
【0203】
式(14)乃至式(16)から、式(13)は、SMATMAT=PMATと表すことができる。
【0204】
式(13)において、Sは、実世界1の射影を表す。式(13)において、Pは、データ3を表す。式(13)において、wは、実世界1の信号の特徴を記述し、求めようとする変数である。
【0205】
従って、式(13)にデータ3を入力し、行列解法などによりWMATを求めることで、実世界1を推定することが可能になる。すなわち、式(17)を演算することにより、実世界1を推定することができるようになる。
【0206】
Figure 2004246526
【0207】
なお、SMATが正則でない場合、SMATの転置行列を利用して、WMATを求めることができる。
【0208】
実世界推定部102は、例えば、式(13)にデータ3を入力し、行列解法などによりWMATを求めることで、実世界1を推定する。
【0209】
ここで、さらにより具体的な例を説明する。例えば、実世界1の信号の断面形状、すなわち位置の変化に対するレベルの変化を、多項式で記述する。実世界1の信号の断面形状が一定で、実世界1の信号の断面が等速で移動すると仮定する。そして、センサ2による実世界1の信号からデータ3への射影を、実世界1の信号の時空間方向の3次元で積分で定式化する。
【0210】
実世界1の信号の断面形状が、等速で移動するとの仮定から、式(18)および式(19)が得られる。
【0211】
【数15】
Figure 2004246526
Figure 2004246526
【0212】
【数16】
Figure 2004246526
Figure 2004246526
ここで、vおよびvは、一定である。
【0213】
実世界1の信号の断面形状は、式(18)および式(19)を用いることで、式(20)と表される。
【0214】
Figure 2004246526
【0215】
センサ2による実世界1の信号からデータ3への射影を、実世界1の信号の時空間方向の3次元で積分で定式化すれば、式(21)が得られる。
【0216】
【数17】
Figure 2004246526
Figure 2004246526
【0217】
式(21)において、S(x,y,t)は、空間方向Xについて、位置xから位置xまで、空間方向Yについて、位置yから位置yまで、時間方向tについて、時刻tから時刻tまでの領域、すなわち時空間の直方体で表される領域の積分値を示す。
【0218】
式(21)を定めることができる所望の関数f(x’,y’)を用いて、式(13)を解けば、実世界1の信号を推定することができる。
【0219】
以下では、関数f(x’,y’)の一例として、式(22)に示す関数を用いることとする。
【0220】
f(x’,y’)=wx’+wy’+w
=w(x+vt)+w(y+vt)+w ・・・(22)
【0221】
すなわち、実世界1の信号が、式(18)、式(19)、および式(22)で表される定常性を含むと仮定している。これは、図26で示されるように、一定の形状の断面が、時空間方向に移動していることを示す。
【0222】
式(21)に、式(22)を代入することにより、式(23)が得られる。
【0223】
【数18】
Figure 2004246526
Figure 2004246526
ただし、
Volume=(x−x)(y−ys)(t−t
(x,y,t)=Volume/2×(x+x+v(t+t))
(x,y,t)=Volume/2×(y+y+v(t+t))
(x,y,t)=1
である。
【0224】
図27は、データ3から抽出される、M個のデータ162の例を示す図である。例えば、27個の画素値が、データ162として抽出され、抽出された画素値が、P(x,y,t)とされる。この場合、jは、0乃至26である。
【0225】
図27に示す例において、nである時刻tの注目する位置に対応する画素の画素値がP13(x,y,t)であり、データの定常性を有する画素の画素値の並ぶ方向(例えば、データ定常性検出部101で検出された、同じ形状であるつめ形状が並ぶ方向)が、P(x,y,t)、P13(x,y,t)、およびP22(x,y,t)を結ぶ方向であるとき、nである時刻tにおける、画素値P(x,y,t)乃至P17(x,y,t)、nより時間的に前である、n−1である時刻tにおける、画素値P(x,y,t)乃至P(x,y,t)、およびnより時間的に後である、n+1である時刻tにおける、画素値P18(x,y,t)乃至P26(x,y,t)が抽出される。
【0226】
ここで、センサ2であるイメージセンサから出力された、データ3である画素値が取得された領域は、図28で示されるように、時間方向および2次元の空間方向に広がりを有する。そこで、例えば、図29で示されるように、画素に対応する直方体(画素値が取得された領域)の重心を、画素の時空間方向の位置として使用することができる。図29中の丸は、重心を示す。
【0227】
27個の画素値P(x,y,t)乃至P26(x,y,t)、および式(23)から、式(13)を生成し、Wを求めることで、実世界1を推定することが可能になる。
【0228】
このように、実世界推定部102は、例えば、27個の画素値P(x,y,t)乃至P26(x,y,t)、および式(23)から、式(13)を生成し、Wを求めることで、実世界1の信号を推定する。
【0229】
なお、関数f(x,y,t)として、ガウス関数、またはシグモイド関数などを利用することができる。
【0230】
図30乃至図34を参照して、推定された実世界1の信号から、データ3に対応する、より高解像度の高解像度データ181を生成する処理の例について説明する。
【0231】
図30で示されるように、データ3は、時間方向および2次元の空間方向に実世界1の信号が積分された値を有する。例えば、センサ2であるイメージセンサから出力された、データ3である画素値は、検出素子に入射された光である、実世界1の信号が、時間方向に、検出時間であるシャッタ時間で積分され、空間方向に、検出素子の受光領域で積分された値を有する。
【0232】
これに対して、図31で示されるように、空間方向により解像度の高い高解像度データ181は、推定された実世界1の信号を、時間方向に、データ3を出力したセンサ2の検出時間と同じ時間で積分するとともに、空間方向に、データ3を出力したセンサ2の検出素子の受光領域に比較して、より狭い領域で積分することにより、生成される。
【0233】
なお、空間方向により解像度の高い高解像度データ181を生成する場合において、推定された実世界1の信号が積分される領域は、データ3を出力したセンサ2の検出素子の受光領域と全く無関係に設定することができる。例えば、高解像度データ181に、データ3に対して、空間方向に整数倍の解像度を持たせることは勿論、5/3倍など、データ3に対して、空間方向に有理数倍の解像度を持たせることができる。
【0234】
また、図32で示されるように、時間方向により解像度の高い高解像度データ181は、推定された実世界1の信号を、空間方向に、データ3を出力したセンサ2の検出素子の受光領域と同じ領域で積分するとともに、時間方向に、データ3を出力したセンサ2の検出時間に比較して、より短い時間で積分することにより、生成される。
【0235】
なお、時間方向により解像度の高い高解像度データ181を生成する場合において、推定された実世界1の信号が積分される時間は、データ3を出力したセンサ2の検出素子のシャッタ時間と全く無関係に設定することができる。例えば、高解像度データ181に、データ3に対して、時間方向に整数倍の解像度を持たせることは勿論、7/4倍など、データ3に対して、時間方向に有理数倍の解像度を持たせることができる。
【0236】
図33で示されるように、動きボケを除去した高解像度データ181は、推定された実世界1の信号を、時間方向に積分しないで、空間方向にのみ積分することにより、生成される。
【0237】
さらに、図34で示されるように、時間方向および空間方向により解像度の高い高解像度データ181は、推定された実世界1の信号を、空間方向に、データ3を出力したセンサ2の検出素子の受光領域に比較して、より狭い領域で積分するとともに、時間方向に、データ3を出力したセンサ2の検出時間に比較して、より短い時間で積分することにより、生成される。
【0238】
この場合において、推定された実世界1の信号が積分される領域および時間は、データ3を出力したセンサ2の検出素子の受光領域およびシャッタ時間と全く無関係に設定することができる。
【0239】
このように、画像生成部103は、例えば、推定された実世界1の信号を所望の時空間の領域で積分することにより、時間方向、または空間方向に、より高解像度のデータを生成する。
【0240】
以上のように、実世界1の信号を推定することにより、実世界1の信号に対してより正確で、時間方向、または空間方向に、より高解像度のデータを生成することができる。
【0241】
図35乃至図39を参照して、本発明に係る信号処理装置4の、入力画像の例と、処理の結果の例を示す。
【0242】
図35は、入力画像の元の画像を示す図である。図36は、入力画像の例を示す図である。図36で示される入力画像は、図35で示される画像の2×2の画素からなるブロックに属する画素の画素値の平均値を、1つの画素の画素値として生成された画像である。すなわち、入力画像は、図35で示される画像に、センサの積分特性を模した、空間方向の積分を適用することにより得られた画像である。
【0243】
図35で示される元の画像において、上下方向から、ほぼ5度時計方向に傾いた細線の画像が含まれている。同様に、図36で示される入力画像において、上下方向から、ほぼ5度時計方向に傾いた細線の画像が含まれている。
【0244】
図37は、図36で示される入力画像に、従来のクラス分類適応処理を適用して得られた画像を示す図である。ここで、クラス分類適応処理は、クラス分類処理と適応処理とからなり、クラス分類処理によって、データを、その性質に基づいてクラス分けし、各クラスごとに適応処理を施すものである。適応処理では、例えば、低画質または標準画質の画像が、所定のタップ係数を用いてマッピング(写像)されることにより、高画質の画像に変換される。
【0245】
図37で示される画像において、細線の画像が、図35の元の画像とは異なるものになっていることがわかる。
【0246】
図38は、データ定常性検出部101による、図36の例で示される入力画像から細線の領域を検出した結果を示す図である。図38において、白い領域は、細線の領域、すなわち、図14で示される円弧形状が並んでいる領域を示す。
【0247】
図39は、図36で示される画像を入力画像として、本発明に係る信号処理装置4から出力された出力画像の例を示す図である。図39で示されるように、本発明に係る信号処理装置4によれば、図35で示される元の画像の細線の画像により近い画像を得ることができる。
【0248】
図40は、本発明に係る信号処理装置4による、信号の処理を説明するフローチャートである。
【0249】
ステップS101において、データ定常性検出部101は、定常性の検出の処理を実行する。データ定常性検出部101は、データ3である入力画像に含まれているデータの定常性を検出して、検出したデータの定常性を示すデータ定常性情報を実世界推定部102および画像生成部103に供給する。
【0250】
データ定常性検出部101は、現実世界の信号の定常性に対応するデータの定常性を検出する。ステップS101の処理において、データ定常性検出部101により検出されるデータの定常性は、データ3に含まれる、実世界1の画像の定常性の一部であるか、または、実世界1の信号の定常性から変化してしまった定常性である。
【0251】
例えば、データ定常性検出部101は、所定の次元の方向に一定の特徴を有する領域を検出することにより、データの定常性を検出する。また、例えば、データ定常性検出部101は、同様の形状の並び方を示す、空間方向の角度(傾き)を検出することにより、データの定常性を検出する。
【0252】
ステップS101における、定常性の検出の処理の詳細は、後述する。
【0253】
なお、データ定常性情報は、データ3の特徴を示す特徴量として利用することができる。
【0254】
ステップS102において、実世界推定部102は、実世界の推定の処理を実行する。すなわち、実世界推定部102は、入力画像、およびデータ定常性検出部101から供給されたデータ定常性情報を基に、実世界1の信号を推定する。例えば、ステップS102の処理において、実世界推定部102は、実世界1を近似(記述)するモデル161を予測することにより、実世界1の信号を推定する。実世界推定部102は、推定された実世界1の信号を示す実世界推定情報を画像生成部103に供給する。
【0255】
例えば、実世界推定部102は、線状の物の幅を予測することにより、実世界1の信号を推定する。また、例えば、実世界推定部102は、線状の物の色を示すレベルを予測することにより、実世界1の信号を推定する。
【0256】
ステップS102における、実世界の推定の処理の詳細は、後述する。
【0257】
なお、実世界推定情報は、データ3の特徴を示す特徴量として利用することができる。
【0258】
ステップS103において、画像生成部103は、画像の生成の処理を実行して、処理は終了する。すなわち、画像生成部103は、実世界推定情報を基に、画像を生成して、生成した画像を出力する。または、画像生成部103は、データ定常性情報および実世界推定情報を基に、画像を生成して、生成した画像を出力する。
【0259】
例えば、ステップS103の処理において、画像生成部103は、実世界推定情報を基に、推定された現実世界の光を空間方向に積分することにより、入力画像に比較して、空間方向により高解像度の画像を生成して、生成した画像を出力する。例えば、画像生成部103は、実世界推定情報を基に、推定された現実世界の光を時空間方向に積分することにより、入力画像に比較して、時間方向および空間方向により高解像度の画像を生成して、生成した画像を出力する。ステップS103における、画像の生成の処理の詳細は、後述する。
【0260】
このように、本発明に係る信号処理装置4は、データ3からデータの定常性を検出し、検出したデータの定常性を基に、実世界1を推定する。そして、信号処理装置4は、推定された実世界1を基に、より実世界1に近似した信号を生成する。
【0261】
以上のように、現実世界の信号を推定して処理を実行するようにした場合には、正確で、精度の高い処理結果を得ることができるようになる。
【0262】
また、第1の次元を有する現実世界の信号である第1の信号が射影され、現実世界の信号の定常性の一部が欠落した第1の次元よりも少ない第2の次元の第2の信号の、欠落した現実世界の信号の定常性に対応するデータの定常性を検出し、検出されたデータの定常性に基づいて、欠落した現実世界の信号の定常性を推定することにより第1の信号を推定するようにした場合には、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【0263】
次に、データ定常性検出部101の構成の詳細について説明する。
【0264】
図41は、データ定常性検出部101の構成を示すブロック図である。
【0265】
図41に構成を示すデータ定常性検出部101は、細線である対象物を撮像したとき、対象物の有する断面形状が同じであるという定常性から生じた、データ3に含まれるデータの定常性を検出する。すなわち、図41に構成を示すデータ定常性検出部101は、細線である実世界1の画像の有する、長さ方向の任意の位置において、長さ方向に直交する方向の位置の変化に対する光のレベルの変化が同じであるという定常性から生じた、データ3に含まれるデータの定常性を検出する。
【0266】
より具体的には、図41に構成を示すデータ定常性検出部101は、細線の画像を空間積分効果を有するセンサ2で撮像して得られたデータ3に含まれる、斜めにずれて隣接して並ぶ、複数の所定の長さの円弧形状(かまぼこ型)が配置される領域を検出する。
【0267】
データ定常性検出部101は、データ3である入力画像から、データの定常性を有する細線の画像が射影された画像データの部分(以下、定常成分とも称する)以外の画像データの部分(以下、非定常成分と称する)を抽出し、抽出された非定常成分と入力画像とから、実世界1の細線の画像が射影された画素を検出し、入力画像における、実世界1の細線の画像が射影された画素からなる領域を検出する。
【0268】
非定常成分抽出部201は、入力画像から非定常成分を抽出して、入力画像と共に、抽出された非定常成分を示す非定常成分情報を頂点検出部202および単調増減検出部203に供給する。
【0269】
例えば、図42で示されるように、ほぼ一定の光のレベルの背景の前に細線がある実世界1の画像がデータ3に射影されたとき、図43で示されるように、非定常成分抽出部201は、データ3である入力画像における背景を平面で近似することにより、背景である非定常成分を抽出する。図43において、実線は、データ3の画素値を示し、点線は、背景を近似する平面で示される近似値を示す。図43において、Aは、細線の画像が射影された画素の画素値を示し、PLは、背景を近似する平面を示す。
【0270】
このように、データの定常性を有する画像データの部分における、複数の画素の画素値は、非定常成分に対して不連続となる。
【0271】
非定常成分抽出部201は、実世界1の光信号である画像が射影され、実世界1の画像の定常性の一部が欠落した、データ3である画像データの複数の画素の画素値の不連続部を検出する。
【0272】
非定常成分抽出部201における非定常成分の抽出の処理の詳細は、後述する。
【0273】
頂点検出部202および単調増減検出部203は、非定常成分抽出部201から供給された非定常成分情報を基に、入力画像から非定常成分を除去する。例えば、頂点検出部202および単調増減検出部203は、入力画像の各画素のうち、背景の画像のみが射影された画素の画素値を0に設定することにより、入力画像から非定常成分を除去する。また、例えば、頂点検出部202および単調増減検出部203は、入力画像の各画素の画素値から、平面PLで近似される値を引き算することにより、入力画像から非定常成分を除去する。
【0274】
入力画像から背景を除去することができるので、頂点検出部202乃至連続性検出部204は、細線が射影された画像データの部分のみを処理の対象とすることができ、頂点検出部202乃至連続性検出部204における処理がより容易になる。
【0275】
なお、非定常成分抽出部201は、入力画像から非定常成分を除去した画像データを頂点検出部202および単調増減検出部203に供給するようにしてもよい。
【0276】
以下に説明する処理の例において、入力画像から非定常成分が除去された画像データ、すなわち、定常成分を含む画素のみからなる画像データが対象となる。
【0277】
ここで、頂点検出部202乃至連続性検出部204が検出しようとする、細線の画像が射影された画像データについて説明する。
【0278】
図42で示される細線の画像が射影された画像データの空間方向Yの断面形状(空間方向の位置の変化に対する画素値の変化)は、光学LPFがないとした場合、センサ2であるイメージセンサの空間積分効果から、図44に示す台形、または図45に示す三角形となることが考えられる。しかしながら、通常のイメージセンサは、光学LPFを備え、イメージセンサは、光学LPFを通過した画像を取得し、取得した画像をデータ3に射影するので、現実には、細線の画像データの空間方向Yの断面形状は、図46に示すようなガウス分布に類似した形状となる。
【0279】
頂点検出部202乃至連続性検出部204は、細線の画像が射影された画素であって、同じ断面形状(空間方向の位置の変化に対する画素値の変化)が画面の上下方向に一定の間隔で並ぶものからなる領域を検出して、さらに、実世界1の細線の長さ方向に対応した、領域の繋がりを検出することにより、データの定常性を有する領域である、細線の画像が射影された画素からなる領域を検出する。すなわち、頂点検出部202乃至連続性検出部204は、入力画像における、縦に1列の画素の上に、円弧形状(かまぼこ型)が形成される領域を検出し、検出された領域が横方向に隣接して並んでいるか否かを判定して、実世界1の信号である細線の画像の長さ方向に対応した、円弧形状が形成される領域の繋がりを検出する。
【0280】
また、頂点検出部202乃至連続性検出部204は、細線の画像が射影された画素であって、同じ断面形状が画面の左右方向に一定の間隔で並ぶものからなる領域を検出して、さらに、実世界1の細線の長さ方向に対応した、検出された領域の繋がりを検出することにより、データの定常性を有する領域である、細線の画像が射影された画素からなる領域を検出する。すなわち、頂点検出部202乃至連続性検出部204は、入力画像における、横に1列の画素の上に、円弧形状が形成される領域を検出し、検出された領域が縦方向に隣接して並んでいるか否かを判定して、実世界1の信号である細線の画像の長さ方向に対応した、円弧形状が形成される領域の繋がりを検出する。
【0281】
まず、細線の画像が射影された画素であって、画面の上下方向に同じ円弧形状が一定の間隔で並ぶものからなる領域を検出する処理を説明する。
【0282】
頂点検出部202は、周囲の画素に比較して、より大きい画素値を有する画素、すなわち頂点を検出し、頂点の位置を示す頂点情報を単調増減検出部203に供給する。画面の上下方向に1列に並ぶ画素を対象とした場合、頂点検出部202は、画面の上側に位置する画素の画素値、および画面の下側に位置する画素の画素値に比較して、より大きい画素値を有する画素を頂点として検出する。頂点検出部202は、1つの画像、例えば、1つのフレームの画像から、1または複数の頂点を検出する。
【0283】
1つの画面には、フレームまたはフィールドが含まれる。以下の説明において、同様である。
【0284】
例えば、頂点検出部202は、1フレームの画像からまだ注目画素とされていない画素の中から注目画素を選択し、注目画素の画素値と、注目画素の上側の画素の画素値とを比較し、注目画素の画素値と、注目画素の下側の画素の画素値とを比較して、上側の画素の画素値より大きい画素値を有し、下側の画素の画素値より大きい画素値を有する注目画素を検出して、検出された注目画素を頂点とする。頂点検出部202は、検出された頂点を示す頂点情報を単調増減検出部203に供給する。
【0285】
頂点検出部202が、頂点を検出しない場合もある。例えば、1つの画像の画素の画素値が全て同じ値であるとき、または、1若しくは2の方向に対して画素値が減少しているとき、頂点は検出されない。この場合、細線の画像は、画像データに射影されていない。
【0286】
単調増減検出部203は、頂点検出部202から供給された、頂点の位置を示す頂点情報を基に、頂点検出部202で検出された頂点に対して上下方向に1列に並ぶ画素であって、細線の画像が射影された画素からなる領域の候補を検出し、頂点情報と共に、検出した領域を示す領域情報を連続性検出部204に供給する。
【0287】
より具体的には、単調増減検出部203は、頂点の画素値を基準として、単調減少している画素値を有する画素からなる領域を、細線の画像が射影された画素からなる領域の候補として検出する。単調減少とは、頂点からの距離がより長い画素の画素値が、頂点からの距離が短い画素の画素値に比較して、より小さいことをいう。
【0288】
また、単調増減検出部203は、頂点の画素値を基準として、単調増加している画素値を有する画素からなる領域を、細線の画像が射影された画素からなる領域の候補として検出する。単調増加とは、頂点からの距離がより長い画素の画素値が、頂点からの距離が短い画素の画素値に比較して、より大きいことをいう。
【0289】
以下、単調増加している画素値を有する画素からなる領域についての処理は、単調減少している画素値を有する画素からなる領域についての処理と同様なので、その説明は省略する。細線の画像が射影された画素であって、画面の横方向に同じ円弧形状が一定の間隔で並ぶものからなる領域を検出する処理における、単調増加している画素値を有する画素からなる領域についての処理も、単調減少している画素値を有する画素からなる領域についての処理と同様なので、その説明は省略する。
【0290】
例えば、単調増減検出部203は、頂点に対して縦に1列に各画素について、各画素の画素値と、上側の画素の画素値との差分、および下側の画素の画素値との差分を求める。そして、単調増減検出部203は、差分の符号が変化する画素を検出することにより、画素値が単調減少している領域を検出する。
【0291】
さらに、単調増減検出部203は、画素値が単調減少している領域から、頂点の画素値の符号を基準として、頂点の画素値の符号と同じ符号の画素値を有する画素からなる領域を、細線の画像が射影された画素からなる領域の候補として検出する。
【0292】
例えば、単調増減検出部203は、各画素の画素値の符号と、上側の画素の画素値の符号および下側の画素の画素値の符号とを比較し、画素値の符号が変化する画素を検出することにより、画素値が単調減少している領域から、頂点と同じ符号の画素値を有する画素からなる領域を検出する。
【0293】
このように、単調増減検出部203は、上下方向に並び、頂点に対して画素値が単調減少し、頂点と同じ符号の画素値を有する画素からなる領域を検出する。
【0294】
図47は、空間方向Yの位置に対する画素値から、細線の画像が射影された画素の領域を検出する、頂点の検出および単調増減領域の検出の処理を説明する図である。
【0295】
図47乃至図49において、Pは、頂点を示す。図41で構成が示されるデータ定常性検出部101の説明において、Pは、頂点を示す。
【0296】
頂点検出部202は、各画素の画素値と、これに空間方向Yに隣接する画素の画素値とを比較して、空間方向Yに隣接する2つの画素の画素値より大きい画素値を有する画素を検出することにより、頂点Pを検出する。
【0297】
頂点Pと、頂点Pの空間方向Yの両側の画素とからなる領域は、頂点Pの画素値に対して、空間方向Yの両側の画素の画素値が単調に減少する単調減少領域である。図47において、Aで示す矢印、およびBで示す矢印は、頂点Pの両側に存在する単調減少領域を示す。
【0298】
単調増減検出部203は、各画素の画素値と、その画素に空間方向Yに隣接する画素の画素値との差分を求めて、差分の符号が変化する画素を検出する。単調増減検出部203は、検出された、差分の符号が変化する画素と、その手前側(頂点P側)の画素との境界を、細線の画像が射影された画素からなる細線領域の境界とする。
【0299】
図47において、差分の符号が変化する画素と、その手前側(頂点P側)の画素との境界である細線領域の境界はCで示される。
【0300】
さらに、単調増減検出部203は、単調減少領域において、各画素の画素値の符号と、その画素に空間方向Yに隣接する画素の画素値の符号とを比較し、画素値の符号が変化する画素を検出する。単調増減検出部203は、検出された、差分の符号が変化する画素と、その手前側(頂点P側)の画素との境界を細線領域の境界とする。
【0301】
図47において、差分の符号が変化する画素と、その手前側(頂点P側)の画素との境界である細線領域の境界はDで示される。
【0302】
図47で示されるように、細線の画像が射影された画素からなる細線領域Fは、細線領域の境界Cと、細線領域の境界Dとに挟まれる領域とされる。
【0303】
単調増減検出部203は、このような単調増減領域からなる細線領域Fの中から、予め定めた閾値より長い細線領域F、すなわち、閾値より多い数の画素を含む細線領域Fを求める。例えば、閾値が3であるとき、単調増減検出部203は、4つ以上の画素を含む細線領域Fを検出する。
【0304】
さらに、このように検出された細線領域Fの中から、単調増減検出部203は、頂点Pの画素値、および頂点Pの右側の画素の画素値、および頂点Pの左側の画素の画素値を、それぞれ閾値と比較し、頂点Pの画素値が閾値を超え、頂点Pの右側の画素の画素値が閾値以下であり、頂点Pの左側の画素の画素値が閾値以下である頂点Pが属する細線領域Fを検出し、検出された細線領域Fを細線の画像の成分を含む画素からなる領域の候補とする。
【0305】
言い換えれば、頂点Pの画素値が閾値以下であるか、頂点Pの右側の画素の画素値が閾値を超えるか、または頂点Pの左側の画素の画素値が閾値を超える頂点Pが属する細線領域Fは、細線の画像の成分を含まないと判定され、細線の画像の成分を含む画素からなる領域の候補から除去される。
【0306】
すなわち、図48で示されるように、単調増減検出部203は、頂点Pの画素値を閾値と比較すると共に、頂点Pに対して、空間方向X(点線AA’で示す方向)に隣接する画素の画素値を、閾値と比較し、頂点Pの画素値が閾値を超え、空間方向Xに隣接する画素の画素値が閾値以下である、頂点Pが属する細線領域Fを検出する。
【0307】
図49は、図48の点線AA’で示す空間方向Xに並ぶ画素の画素値を表す図である。頂点Pの画素値が閾値Thを超え、頂点Pの空間方向Xに隣接する画素の画素値が、閾値Th以下である、頂点Pが属する細線領域Fは、細線の成分を含む。
【0308】
なお、単調増減検出部203は、背景の画素値を基準として、頂点Pの画素値と背景の画素値との差分を閾値と比較すると共に、頂点Pに対して、空間方向Xに隣接する画素の画素値と背景の画素値との差分を、閾値と比較し、頂点Pの画素値と背景の画素値との差分が閾値を超え、空間方向Xに隣接する画素の画素値と背景の画素値との差分が閾値以下である、頂点Pが属する細線領域Fを検出するようにしてもよい。
【0309】
単調増減検出部203は、頂点Pを基準として、画素値が単調減少し、画素値の符号が頂点Pと同じである画素からなる領域であって、その頂点Pが閾値を超え、頂点Pの右側の画素の画素値が閾値以下であり、頂点Pの左側の画素の画素値が閾値以下であるものを示す単調増減領域情報を連続性検出部204に供給する。
【0310】
画面の上下方向に1列に並ぶ画素であって、細線の画像が射影されたものからなる領域を検出する場合において、単調増減領域情報により示される領域に属する画素は、上下方向に並び、細線の画像が射影された画素を含む。すなわち、単調増減領域情報により示される領域は、画面の上下方向に1列に並ぶ画素であって、細線の画像が射影されたものからなる領域を含む。
【0311】
このように、頂点検出部202および単調増減検出部203は、細線の画像が射影された画素において、空間方向Yの画素値の変化が、ガウス分布に類似するという性質を利用して、細線の画像が射影された画素からなる定常領域を検出する。
【0312】
連続性検出部204は、単調増減検出部203から供給された単調増減領域情報で示される、上下方向に並ぶ画素からなる領域のうち、横方向に隣接している画素を含む領域、すなわち、相似した画素値の変化を有し、縦方向に重複している領域を、連続している領域として検出し、頂点情報、および検出された連続している領域を示すデータ定常性情報を出力する。データ定常性情報は、単調増減領域情報、および領域の繋がりを示す情報などを含んでいる。
【0313】
細線が射影された画素において、円弧形状が隣接するように一定の間隔で並ぶので、検出された連続している領域は、細線が射影された画素を含んでいる。
【0314】
検出された連続している領域が、細線が射影された、円弧形状が隣接するように一定の間隔で並ぶ画素を含むので、検出された連続している領域を定常領域とし、連続性検出部204は、検出された連続している領域を示すデータ定常性情報を出力する。
【0315】
すなわち、連続性検出部204は、長さ方向に連続するという、実世界1の細線の画像の定常性から生じた、細線を撮像して得られたデータ3における、円弧形状が隣接するように一定の間隔で並ぶ定常性を利用して、頂点検出部202および単調増減検出部203において検出された領域の候補をさらに絞り込む。
【0316】
図50は、単調増減領域の連続性を検出の処理を説明する図である。
【0317】
図50に示すように、連続性検出部204は、画面の縦方向に1列に並ぶ画素からなる細線領域Fについて、横方向に隣接する画素を含んでいるとき、2つの単調増減領域の間に連続性があるとし、横方向に隣接する画素を含んでいないとき、2つの細線領域Fの間に連続性がないとする。例えば、画面の縦方向に1列に並ぶ画素からなる細線領域F−1は、画面の縦方向に1列に並ぶ画素からなる細線領域Fの画素と横方向に隣接する画素を含んでいるとき、細線領域Fと連続しているとされる。画面の縦方向に1列に並ぶ画素からなる細線領域Fは、画面の縦方向に1列に並ぶ画素からなる細線領域Fの画素と横方向に隣接する画素を含んでいるとき、細線領域Fと連続しているとされる。
【0318】
このように、頂点検出部202乃至連続性検出部204により、画面の上下方向に1列に並ぶ画素であって、細線の画像が射影されたものからなる領域が検出される。
【0319】
頂点検出部202乃至連続性検出部204は、上述したように、画面の上下方向に1列に並ぶ画素であって、細線の画像が射影されたものからなる領域を検出し、さらに、画面の左右方向に1列に並ぶ画素であって、細線の画像が射影されたものからなる領域を検出する。
【0320】
なお、処理の順序は、本発明を限定するものではなく、並列に実行するようにしても良いことは当然である。
【0321】
すなわち、頂点検出部202は、画面の左右方向に1列に並ぶ画素を対象として、画面の左側に位置する画素の画素値、および画面の右側に位置する画素の画素値に比較して、より大きい画素値を有する画素を頂点として検出し、検出した頂点の位置を示す頂点情報を単調増減検出部203に供給する。頂点検出部202は、1つの画像、例えば、1フレームの画像から、1または複数の頂点を検出する。
【0322】
例えば、頂点検出部202は、1フレームの画像からまだ注目画素とされていない画素の中から注目画素を選択し、注目画素の画素値と、注目画素の左側の画素の画素値とを比較し、注目画素の画素値と、注目画素の右側の画素の画素値とを比較して、左側の画素の画素値より大きい画素値を有し、右側の画素の画素値より大きい画素値を有する注目画素を検出して、検出された注目画素を頂点とする。頂点検出部202は、検出された頂点を示す頂点情報を単調増減検出部203に供給する。
【0323】
頂点検出部202が、頂点を検出しない場合もある。
【0324】
単調増減検出部203は、頂点検出部202で検出された頂点に対して左右方向に1列に並ぶ画素であって、細線の画像が射影された画素からなる領域の候補を検出検出し、頂点情報と共に、検出した領域を示す単調増減領域情報を連続性検出部204に供給する。
【0325】
より具体的には、単調増減検出部203は、頂点の画素値を基準として、単調減少している画素値を有する画素からなる領域を、細線の画像が射影された画素からなる領域の候補として検出する。
【0326】
例えば、単調増減検出部203は、頂点に対して横に1列の各画素について、各画素の画素値と、左側の画素の画素値との差分、および右側の画素の画素値との差分を求める。そして、単調増減検出部203は、差分の符号が変化する画素を検出することにより、画素値が単調減少している領域を検出する。
【0327】
さらに、単調増減検出部203は、画素値が単調減少している領域から、頂点の画素値の符号を基準として、頂点の画素値の符号と同じ符号の画素値を有する画素からなる領域を、細線の画像が射影された画素からなる領域の候補として検出する。
【0328】
例えば、単調増減検出部203は、各画素の画素値の符号と、左側の画素の画素値の符号または右側の画素の画素値の符号とを比較し、画素値の符号が変化する画素を検出することにより、画素値が単調減少している領域から、頂点と同じ符号の画素値を有する画素からなる領域を検出する。
【0329】
このように、単調増減検出部203は、左右方向に並び、頂点に対して画素値が単調減少し、頂点と同じ符号の画素値を有する画素からなる領域を検出する。
【0330】
単調増減検出部203は、このような単調増減領域からなる細線領域の中から、予め定めた閾値より長い細線領域、すなわち、閾値より多い数の画素を含む細線領域を求める。
【0331】
さらに、このように検出された細線領域の中から、単調増減検出部203は、頂点の画素値、および頂点の上側の画素の画素値、および頂点の下側の画素の画素値を、それぞれ閾値と比較し、頂点の画素値が閾値を超え、頂点の上側の画素の画素値が閾値以下であり、頂点の下側の画素の画素値が閾値以下である頂点が属する細線領域を検出し、検出された細線領域を細線の画像の成分を含む画素からなる領域の候補とする。
【0332】
言い換えれば、頂点の画素値が閾値以下であるか、頂点の上側の画素の画素値が閾値を超えるか、または頂点の下側の画素の画素値が閾値を超える頂点が属する細線領域は、細線の画像の成分を含まないと判定され、細線の画像の成分を含む画素からなる領域の候補から除去される。
【0333】
なお、単調増減検出部203は、背景の画素値を基準として、頂点の画素値と背景の画素値との差分を閾値と比較すると共に、頂点に対して、上下方向に隣接する画素の画素値と背景の画素値との差分を、閾値と比較し、頂点の画素値と背景の画素値との差分が閾値を超え、上下方向に隣接する画素の画素値と背景の画素値との差分が閾値以下である、検出された細線領域を細線の画像の成分を含む画素からなる領域の候補とするようにしてもよい。
【0334】
単調増減検出部203は、頂点を基準として、画素値が単調減少し、画素値の符号が頂点と同じである画素からなる領域であって、その頂点が閾値を超え、頂点の右側の画素の画素値が閾値以下であり、頂点の左側の画素の画素値が閾値以下であるものを示す単調増減領域情報を連続性検出部204に供給する。
【0335】
画面の左右方向に1列に並ぶ画素であって、細線の画像が射影されたものからなる領域を検出する場合において、単調増減領域情報により示される領域に属する画素は、左右方向に並び、細線の画像が射影された画素を含む。すなわち、単調増減領域情報により示される領域は、画面の左右方向に並ぶ1列の画素であって、細線の画像が射影されたものからなる領域を含む。
【0336】
連続性検出部204は、単調増減検出部203から供給された単調増減領域情報で示される、左右方向に並ぶ画素からなる領域のうち、縦方向に隣接している画素を含む領域、すなわち、相似した画素値の変化を有し、横方向に重複している領域を、連続している領域として検出し、頂点情報、および検出された連続している領域を示すデータ定常性情報を出力する。データ定常性情報は、領域の繋がりを示す情報を含んでいる。
【0337】
細線が射影された画素において、円弧形状が隣接するように一定の間隔で並ぶので、検出された連続している領域は、細線が射影された画素を含んでいる。
【0338】
検出された連続している領域が、細線が射影された、円弧形状が隣接するように一定の間隔で並ぶ画素を含むので、検出された連続している領域を定常領域とし、連続性検出部204は、検出された連続している領域を示すデータ定常性情報を出力する。
【0339】
すなわち、連続性検出部204は、長さ方向に連続するという、実世界1の細線の画像の定常性から生じた、細線を撮像して得られたデータ3における、円弧形状が隣接するように一定の間隔で並ぶ定常性を利用して、頂点検出部202および単調増減検出部203において検出された領域の候補をさらに絞り込む。
【0340】
図51は、平面での近似により定常成分を抽出した画像の例を示す図である。図52は、図51に示す画像から頂点を検出し、単調減少している領域を検出した結果を示す図である。図52において、白で示される部分が、検出された領域である。
【0341】
図53は、図52に示す画像から、隣接している領域の連続性を検出して、連続性が検出された領域を示す図である。図53において、白で示される部分が、連続性が検出された領域である。連続性の検出により、領域がさらに特定されていることがわかる。
【0342】
図54は、図53に示す領域の画素値、すなわち、連続性が検出された領域の画素値を示す図である。
【0343】
このように、データ定常性検出部101は、入力画像であるデータ3に含まれている定常性を検出することができる。すなわち、データ定常性検出部101は、細線である実世界1の画像がデータ3に射影されることにより生じた、データ3に含まれるデータの定常性を検出することができる。データ定常性検出部101は、データ3から、細線である実世界1の画像が射影された画素からなる領域を検出する。
【0344】
図55は、定常性検出部101における、細線の画像が射影された、定常性を有する領域の検出の他の処理の例を示す図である。
【0345】
定常性検出部101は、図55に示すように、各画素について、隣接する画素との画素値の差分の絶対値を計算する。計算された差分の絶対値は、画素に対応させて、配置される。例えば、図55に示すように、画素値がそれぞれP0、P1、P2である画素が並んでいるとき、定常性検出部101は、差分d0=P0−P1および差分d1=P1−P2を計算する。さらに、定常性検出部101は、差分d0および差分d1の絶対値を算出する。
【0346】
画素値P0、P1、およびP2に含まれている非定常性成分が同一であるとき、差分d0および差分d1には、細線の成分に対応した値のみが設定されることになる。
【0347】
従って、定常性検出部101は、画素に対応させて配置されている差分の絶対値のうち、隣り合う差分の値が同一であるとき、その2つの差分の絶対値に対応する画素(2つの差分の絶対値に挟まれた画素)に細線の成分が含まれていると判定する。
【0348】
定常性検出部101においては、このような、簡便な方法で細線を検出することもできる。
【0349】
図56は、定常性検出の処理を説明するフローチャートである。
【0350】
ステップS201において、非定常成分抽出部201は、入力画像から、細線が射影された部分以外の部分である非定常成分を抽出する。非定常成分抽出部201は、入力画像と共に、抽出された非定常成分を示す非定常成分情報を頂点検出部202および単調増減検出部203に供給する。非定常成分の抽出の処理の詳細は、後述する。
【0351】
ステップS202において、頂点検出部202は、非定常成分抽出部201から供給された非定常成分情報を基に、入力画像から非定常成分を除去し、入力画像に定常成分を含む画素のみを残す。さらに、ステップS202において、頂点検出部202は、頂点を検出する。
【0352】
すなわち、頂点検出部202は、画面の縦方向を基準として、処理を実行する場合、定常成分を含む画素について、各画素の画素値と、上側および下側の画素の画素値とを比較して、上側の画素の画素値および下側の画素の画素値より大きい画素値を有する画素を検出することにより、頂点を検出する。また、ステップS202において、頂点検出部202は、画面の横方向を基準として、処理を実行する場合、定常成分を含む画素について、各画素の画素値と、右側および左側の画素の画素値とを比較して、右側の画素の画素値および左側の画素の画素値より大きい画素値を有する画素を検出することにより、頂点を検出する。
【0353】
頂点検出部202は、検出した頂点を示す頂点情報を単調増減検出部203に供給する。
【0354】
ステップS203において、単調増減検出部203は、非定常成分抽出部201から供給された非定常成分情報を基に、入力画像から非定常成分を除去し、入力画像に定常成分を含む画素のみを残す。さらに、ステップS203において、単調増減検出部203は、頂点検出部202から供給された、頂点の位置を示す頂点情報を基に、頂点に対する単調増減を検出することにより、データの定常性を有する画素からなる領域を検出する。
【0355】
単調増減検出部203は、画面の縦方向を基準として、処理を実行する場合、頂点の画素値、および頂点に対して縦に1列に並ぶ画素の画素値を基に、縦に並ぶ1列の画素であって、1つの細線の画像が射影された画素からなる単調増減を検出することにより、データの定常性を有する画素からなる領域を検出する。すなわち、ステップS203において、単調増減検出部203は、画面の縦方向を基準として、処理を実行する場合、頂点および頂点に対して縦に1列に並ぶ画素について、各画素の画素値と、上側または下側の画素の画素値との差分を求めて、差分の符号が変化する画素を検出する。また、単調増減検出部203は、頂点および頂点に対して縦に1列に並ぶ画素について、各画素の画素値の符号と、その画素の上側または下側の画素の画素値の符号とを比較し、画素値の符号が変化する画素を検出する。さらに、単調増減検出部203は、頂点の画素値、並びに頂点の右側および左側の画素の画素値を、閾値と比較し、頂点の画素値が閾値を超え、右側および左側の画素の画素値が閾値以下である画素からなる領域を検出する。
【0356】
単調増減検出部203は、このように検出された領域を単調増減領域として、単調増減領域を示す単調増減領域情報を連続性検出部204に供給する。
【0357】
また、単調増減検出部203は、画面の横方向を基準として、処理を実行する場合、頂点の画素値、および頂点に対して横に1列に並ぶ画素の画素値を基に、横に並ぶ1列の画素であって、1つの細線の画像が射影された画素からなる単調増減を検出することにより、データの定常性を有する画素からなる領域を検出する。すなわち、ステップS203において、単調増減検出部203は、画面の横方向を基準として、処理を実行する場合、頂点および頂点に対して横に1列に並ぶ画素について、各画素の画素値と、左側または右側の画素の画素値との差分を求めて、差分の符号が変化する画素を検出する。また、単調増減検出部203は、頂点および頂点に対して横に1列に並ぶ画素について、各画素の画素値の符号と、その画素の左側または右側の画素の画素値の符号とを比較し、画素値の符号が変化する画素を検出する。さらに、単調増減検出部203は、頂点の画素値、並びに頂点の上側および下側の画素の画素値を、閾値と比較し、頂点の画素値が閾値を超え、上側および下側の画素の画素値が閾値以下である画素からなる領域を検出する。
【0358】
単調増減検出部203は、このように検出された領域を単調増減領域として、単調増減領域を示す単調増減領域情報を連続性検出部204に供給する。
【0359】
ステップS204において、単調増減検出部203は、全画素の処理が終了したか否かを判定する。例えば、非定常成分抽出部201は、入力画像の1つの画面(例えば、フレームまたはフィールドなど)の全画素について、頂点を検出し、単調増減領域を検出したか否かを判定する。
【0360】
ステップS204において、全画素の処理が終了していない、すなわち、頂点の検出および単調増減領域の検出の処理の対象とされていない画素がまだあると判定された場合、ステップS202に戻り、頂点の検出および単調増減領域の検出の処理の対象とされていない画素から処理の対象となる画素を選択して、頂点の検出および単調増減領域の検出の処理を繰り返す。
【0361】
ステップS204において、全画素の処理が終了した、すなわち、全ての画素を対象として頂点および単調増減領域が検出されたと判定された場合、ステップS205に進み、連続性検出部204は、単調増減領域情報を基に、検出された領域の連続性を検出する。例えば、連続性検出部204は、単調増減領域情報で示される、画面の縦方向に1列に並ぶ画素からなる単調増減領域について、横方向に隣接する画素を含んでいるとき、2つの単調増減領域の間に連続性があるとし、横方向に隣接する画素を含んでいないとき、2つの単調増減領域の間に連続性がないとする。例えば、連続性検出部204は、単調増減領域情報で示される、画面の横方向に1列に並ぶ画素からなる単調増減領域について、縦方向に隣接する画素を含んでいるとき、2つの単調増減領域の間に連続性があるとし、縦方向に隣接する画素を含んでいないとき、2つの単調増減領域の間に連続性がないとする。
【0362】
連続性検出部204は、検出された連続している領域をデータの定常性を有する定常領域とし、頂点の位置および定常領域を示すデータ定常性情報を出力する。データ定常性情報は、領域の繋がりを示す情報を含んでいる。連続性検出部204から出力されるデータ定常性情報は、実世界1の細線の画像が射影された画素からなる、定常領域である細線領域を示す。
【0363】
ステップS206において、定常性方向検出部205は、全画素の処理が終了したか否かを判定する。すなわち、定常性方向検出部205は、入力画像の所定のフレームの全画素について、領域の連続性を検出したか否かを判定する。
【0364】
ステップS206において、全画素の処理が終了していない、すなわち、領域の連続性の検出の処理の対象とされていない画素がまだあると判定された場合、ステップS205に戻り、領域の連続性の検出の処理の対象とされていない画素から処理の対象となる画素を選択して、領域の連続性の検出の処理を繰り返す。
【0365】
ステップS206において、全画素の処理が終了した、すなわち、全ての画素を対象として領域の連続性が検出されたと判定された場合、処理は終了する。
【0366】
このように、入力画像であるデータ3に含まれている定常性が検出される。すなわち、細線である実世界1の画像がデータ3に射影されることにより生じた、データ3に含まれるデータの定常性が検出され、データ3から、細線である実世界1の画像が射影された画素からなる、データの定常性を有する領域が検出される。
【0367】
なお、図41で構成が示されるデータ定常性検出部101は、データ3のフレームから検出されたデータの定常性を有する領域を基に、時間方向のデータの定常性を検出することができる。
【0368】
例えば、図57に示すように、連続性検出部204は、フレーム#nにおいて、検出されたデータの定常性を有する領域、フレーム#n−1において、検出されたデータの定常性を有する領域、およびフレーム#n+1において、検出されたデータの定常性を有する領域を基に、領域の端部を結ぶことにより、時間方向のデータの定常性を検出する。
【0369】
フレーム#n−1は、フレーム#nに対して時間的に前のフレームであり、フレーム#n+1は、フレーム#nに対して時間的に後のフレームである。すなわち、フレーム#n−1、フレーム#n、およびフレーム#n+1は、フレーム#n−1、フレーム#n、およびフレーム#n+1の順で表示される。
【0370】
より具体的には、図57において、Gは、フレーム#nにおいて、検出されたデータの定常性を有する領域、フレーム#n−1において、検出されたデータの定常性を有する領域、およびフレーム#n+1において、検出されたデータの定常性を有する領域のそれぞれの一端を結ぶことにより得られた動きベクトルを示し、G’は、検出されたデータの定常性を有する領域のそれぞれの他の一端を結ぶことにより得られた動きベクトルを示す。動きベクトルGおよび動きベクトルG’は、時間方向のデータの定常性の一例である。
【0371】
さらに、図41で構成が示されるデータ定常性検出部101は、データの定常性を有する領域の長さを示す情報を、データ定常性情報として出力することができる。
【0372】
図58は、データの定常性を有しない画像データの部分である非定常成分を平面で近似して、非定常成分を抽出する、非定常成分抽出部201の構成を示すブロック図である。
【0373】
図58に構成を示す非定常成分抽出部201は、入力画像から所定の数の画素でなるブロックを抽出し、ブロックと平面で示される値との誤差が所定の閾値未満になるように、ブロックを平面で近似して、非定常成分を抽出する。
【0374】
入力画像は、ブロック抽出部221に供給されるとともに、そのまま出力される。
【0375】
ブロック抽出部221は、入力画像から、所定の数の画素からなるブロックを抽出する。例えば、ブロック抽出部221は、7×7の画素からなるブロックを抽出し、平面近似部222に供給する。例えば、ブロック抽出部221は、抽出されるブロックの中心となる画素をラスタスキャン順に移動させ、順次、入力画像からブロックを抽出する。
【0376】
平面近似部222は、ブロックに含まれる画素の画素値を所定の平面で近似する。例えば、平面近似部222は、式(24)で表される平面でブロックに含まれる画素の画素値を近似する。
【0377】
z=ax+by+c ・・・(24)
【0378】
式(24)において、xは、画素の画面上の一方の方向(空間方向X)の位置を示し、yは、画素の画面上の他の一方の方向(空間方向Y)の位置を示す。zは、平面で示される近似値を示す。aは、平面の空間方向Xの傾きを示し、bは、平面の空間方向Yの傾きを示す。式(24)において、cは、平面のオフセット(切片)を示す。
【0379】
例えば、平面近似部222は、回帰の処理により、傾きa、傾きb、およびオフセットcを求めることにより、式(24)で表される平面で、ブロックに含まれる画素の画素値を近似する。平面近似部222は、棄却を伴う回帰の処理により、傾きa、傾きb、およびオフセットcを求めることにより、式(24)で表される平面で、ブロックに含まれる画素の画素値を近似する。
【0380】
例えば、平面近似部222は、最小自乗法により、ブロックの画素の画素値に対して、誤差が最小となる式(24)で表される平面を求めることにより、平面でブロックに含まれる画素の画素値を近似する。
【0381】
なお、平面近似部222は、式(24)で表される平面でブロックを近似すると説明したが、式(24)で表される平面に限らず、より高い自由度をもった関数、例えば、n次の多項式で表される面でブロックを近似するようにしてもよい。
【0382】
繰り返し判定部223は、ブロックの画素値を近似した平面で示される近似値と、ブロックの対応する画素の画素値との誤差を計算する。式(25)は、ブロックの画素値を近似した平面で示される近似値と、ブロックの対応する画素の画素値ziとの差分である誤差eiを示す式である。
【0383】
【数19】
Figure 2004246526
Figure 2004246526
【0384】
式(25)において、zハット(zに^を付した文字をzハットと記述する。以下、本明細書において、同様に記載する。)は、ブロックの画素値を近似した平面で示される近似値を示し、aハットは、ブロックの画素値を近似した平面の空間方向Xの傾きを示し、bハットは、ブロックの画素値を近似した平面の空間方向Yの傾きを示す。式(25)において、cハットは、ブロックの画素値を近似した平面のオフセット(切片)を示す。
【0385】
繰り返し判定部223は、式(25)で示される、近似値とブロックの対応する画素の画素値との誤差eiが、最も大きい画素を棄却する。このようにすることで、細線が射影された画素、すなわち定常性を有する画素が棄却されることになる。繰り返し判定部223は、棄却した画素を示す棄却情報を平面近似部222に供給する。
【0386】
さらに、繰り返し判定部223は、標準誤差を算出して、標準誤差が、予め定めた近似終了判定用の閾値以上であり、ブロックの画素のうち、半分以上の画素が棄却されていないとき、繰り返し判定部223は、平面近似部222に、ブロックに含まれる画素のうち、棄却された画素を除いた画素を対象として、平面による近似の処理を繰り返させる。
【0387】
定常性を有する画素が棄却されるので、棄却された画素を除いた画素を対象として平面で近似をすることにより、平面は、非定常成分を近似することになる。
【0388】
繰り返し判定部223は、標準誤差が、近似終了判定用の閾値未満であるとき、または、ブロックの画素のうち、半分以上の画素が棄却されたとき、平面による近似を終了する。
【0389】
5×5の画素からなるブロックについて、標準誤差eは、例えば、式(26)で算出される。
【0390】
【数20】
Figure 2004246526
Figure 2004246526
ここで、nは、画素の数である。
【0391】
なお、繰り返し判定部223は、標準誤差に限らず、ブロックに含まれる全ての画素についての誤差の2乗の和を算出して、以下の処理を実行するようにしてもよい。
【0392】
ここで、ラスタスキャン方向に1画素ずつずれたブロックを平面で近似するとき、図59に示すように、図中黒丸で示す、定常性を有する画素、すなわち細線の成分を含む画素は、複数回棄却されることになる。
【0393】
繰り返し判定部223は、平面による近似を終了したとき、ブロックの画素値を近似した平面を示す情報(式(24)の平面の傾きおよび切片)を、非定常成分情報として出力する。
【0394】
なお、繰り返し判定部223は、画素毎の棄却された回数と予め定めた閾値とを比較して、棄却された回数が閾値以上である画素を定常成分を含む画素であるとして、定常成分を含む画素を示す情報を定常成分情報として出力するようにしてもよい。この場合、頂点検出部202乃至定常性方向検出部205は、定常成分情報で示される、定常成分を含む画素を対象として、それぞれの処理を実行する。
【0395】
図60乃至図67を参照して、非定常成分抽出の処理の結果の例を説明する。
【0396】
図60は、細線が含まれる画像から、元の画像の2×2の画素の画素値の平均値を画素値として生成した入力画像の例を示す図である。
【0397】
図61は、図60で示される画像を、棄却をしないで平面で近似した結果得られる標準誤差を画素値とした画像を示す図である。図61で示される例において、注目している1つの画素に対する5×5の画素からなるブロックを平面で近似した。図61において、白い画素はより大きい画素値、すなわち、より大きい標準誤差を有する画素であり、黒い画素はより小さい画素値、すなわち、より小さい標準誤差を有する画素である。
【0398】
図61から、棄却をしないで平面で近似した結果得られる標準誤差を画素値とした場合、非定常部の周辺に広く、大きな値が求められていることが確認できる。
【0399】
図62乃至図67で示される例において、注目している1つの画素に対する7×7の画素からなるブロックを平面で近似した。7×7の画素からなるブロックを平面で近似する場合、1つの画素が49のブロックに繰り返し含まれることになるので、定常成分を含む画素は、最も多くて49回、棄却されることになる。
【0400】
図62は、図60で示される画像を、棄却をして平面で近似したとき、得られる標準誤差を画素値とした画像である。
【0401】
図62において、白い画素はより大きい画素値、すなわち、より大きい標準誤差を有する画素であり、黒い画素はより小さい画素値、すなわち、より小さい標準誤差を有する画素である。棄却をしない場合に比較して、棄却をした場合、全体として、標準誤差がより小さくなることがわかる。
【0402】
図63は、図60で示される画像を、棄却をして平面で近似したとき、棄却された回数を画素値とした画像を示す図である。図63において、白い画素はより大きい画素値、すなわち、棄却された回数がより多い画素であり、黒い画素はより小さい画素値、すなわち、棄却された回数がより少ない画素である。
【0403】
図63から、細線の画像が射影された画素は、より多く棄却されていることがわかる。棄却された回数を画素値とした画像を用いて、入力画像の非定常部をマスクする画像を生成することも可能である。
【0404】
図64は、ブロックの画素値を近似した平面の空間方向Xの傾きを画素値とした画像を示す図である。図65は、ブロックの画素値を近似した平面の空間方向Yの傾きを画素値とした画像を示す図である。
【0405】
図66は、ブロックの画素値を近似した平面で示される近似値からなる画像を示す図である。図66で示される画像からは、細線が消えていることがわかる。
【0406】
図67は、図60で示される、元の画像の2×2の画素のブロックの平均値を画素の画素値として生成した画像と、図66で示される、平面で示される近似値からなる画像との差分からなる画像を示す図である。図67の画像の画素値は、非定常成分が除去されるので、細線の画像が射影された値のみを含む。図67からもわかるように、元の画素値と近似した平面で示される近似値との差分からなる画像では、元の画像の定常成分がうまく抽出できていることが確認できる。
【0407】
棄却された回数、ブロックの画素の画素値を近似する平面の空間方向Xの傾き、ブロックの画素の画素値を近似する平面の空間方向Yの傾き、ブロックの画素の画素値を近似する平面で示される近似値、および誤差eiは、入力画像の特徴量としても利用することができる。
【0408】
図68は、ステップS201に対応する、図58に構成を示す非定常成分抽出部201による、非定常成分の抽出の処理を説明するフローチャートである。
【0409】
ステップS221において、ブロック抽出部221は、入力画素から、所定の数の画素からなるブロックを抽出し、抽出したブロックを平面近似部222に供給する。例えば、ブロック抽出部221は、入力画素から、まだ、選択されていない画素のうち、1つの画素を選択し、選択された画素を中心とする7×7の画素からなるブロックを抽出する。例えば、ブロック抽出部221は、ラスタスキャン順に画素を選択することができる。
【0410】
ステップS222において、平面近似部222は、抽出されたブロックを平面で近似する。平面近似部222は、例えば、回帰の処理により、抽出されたブロックの画素の画素値を、平面で近似する。例えば、平面近似部222は、回帰の処理により、抽出されたブロックの画素のうち、棄却された画素を除いた画素の画素値を、平面で近似する。ステップS223において、繰り返し判定部223は、繰り返し判定を実行する。例えば、ブロックの画素の画素値と近似した平面の近似値とから標準誤差を算出し、棄却された画素の数をカウントすることにより、繰り返し判定を実行する。
【0411】
ステップS224において、繰り返し判定部223は、標準誤差が閾値以上であるか否かを判定し、標準誤差が閾値以上であると判定された場合、ステップS225に進む。
【0412】
なお、ステップS224において、繰り返し判定部223は、ブロックの画素のうち、半分以上の画素が棄却されたか否か、および標準誤差が閾値以上であるか否かを判定し、ブロックの画素のうち、半分以上の画素が棄却されておらず、標準誤差が閾値以上であると判定された場合、ステップS225に進むようにしてもよい。
【0413】
ステップS225において、繰り返し判定部223は、ブロックの画素毎に、画素の画素値と近似した平面の近似値との誤差を算出し、誤差が最も大きい画素を棄却し、平面近似部222に通知する。手続きは、ステップS222に戻り、棄却された画素を除いた、ブロックの画素を対象として、平面による近似の処理および繰り返し判定の処理が繰り返される。
【0414】
ステップS225において、ラスタスキャン方向に1画素ずつずれたブロックがステップS221の処理で抽出される場合、図59に示すように、細線の成分を含む画素(図中の黒丸で示す)は、複数回棄却されることになる。
【0415】
ステップS224において、標準誤差が閾値以上でないと判定された場合、ブロックが平面で近似されたので、ステップS226に進む。
【0416】
なお、ステップS224において、繰り返し判定部223は、ブロックの画素のうち、半分以上の画素が棄却されたか否か、および標準誤差が閾値以上であるか否かを判定し、ブロックの画素のうち、半分以上の画素が棄却されたか、または標準誤差が閾値以上でないと判定された場合、ステップS225に進むようにしてもよい。
【0417】
ステップS226において、繰り返し判定部223は、ブロックの画素の画素値を近似する平面の傾きおよび切片を、非定常成分情報として出力する。
【0418】
ステップS227において、ブロック抽出部221は、入力画像の1つの画面の全画素について処理を終了したか否かを判定し、まだ処理の対象となってない画素があると判定された場合、ステップS221に戻り、まだ処理の対象となっていない画素からブロックを抽出して、上述した処理を繰り返す。
【0419】
ステップS227において、入力画像の1つの画面の全画素について、処理を終了したと判定された場合、処理は終了する。
【0420】
このように、図58に構成を示す非定常成分抽出部201は、入力画像から非定常成分を抽出することができる。非定常成分抽出部201が入力画像の非定常成分を抽出するので、頂点検出部202および単調増減検出部203は、入力画像と、非定常成分抽出部201で抽出された非定常成分との差分を求めることにより、定常成分を含む差分を対象として処理を実行することができる。
【0421】
なお、平面による近似の処理において算出される、棄却した場合の標準誤差、棄却しない場合の標準誤差、画素の棄却された回数、平面の空間方向Xの傾き(式(24)におけるaハット)、平面の空間方向Yの傾き(式(24)におけるbハット)、平面で置き換えたときのレベル(式(24)におけるcハット)、および入力画像の画素値と平面で示される近似値との差分は、特徴量として利用することができる。
【0422】
図69は、ステップS201に対応する非定常成分の抽出の処理に代わる、図58に構成を示す非定常成分抽出部201による、定常成分の抽出の処理を説明するフローチャートである。ステップS241乃至ステップS245の処理は、ステップS221乃至ステップS225の処理と同様なので、その説明は省略する。
【0423】
ステップS246において、繰り返し判定部223は、平面で示される近似値と入力画像の画素値との差分を、入力画像の定常成分として出力する。すなわち、繰り返し判定部223は、平面による近似値と、真値である画素値との差分を出力する。
【0424】
なお、繰り返し判定部223は、平面で示される近似値と入力画像の画素値との差分が、所定の閾値以上である画素の画素値を、入力画像の定常成分として出力するようにしてもよい。
【0425】
ステップS247の処理は、ステップS227の処理と同様なので、その説明は省略する。
【0426】
平面が非定常成分を近似しているので、非定常成分抽出部201は、入力画像の各画素の画素値から、画素値を近似する平面で示される近似値を引き算することにより、入力画像から非定常成分を除去することができる。この場合、頂点検出部202乃至連続性検出部204は、入力画像の定常成分、すなわち細線の画像が射影された値のみを処理の対象とすることができ、頂点検出部202乃至連続性検出部204における処理がより容易になる。
【0427】
図70は、ステップS201に対応する非定常成分の抽出の処理に代わる、図58に構成を示す非定常成分抽出部201による、定常成分の抽出の他の処理を説明するフローチャートである。ステップS261乃至ステップS265の処理は、ステップS221乃至ステップS225の処理と同様なので、その説明は省略する。
【0428】
ステップS266において、繰り返し判定部223は、画素毎の、棄却の回数を記憶し、ステップS262に戻り、処理を繰り返す。
【0429】
ステップS264において、標準誤差が閾値以上でないと判定された場合、ブロックが平面で近似されたので、ステップS267に進み、繰り返し判定部223は、入力画像の1つの画面の全画素について処理を終了したか否かを判定し、まだ処理の対象となってない画素があると判定された場合、ステップS261に戻り、まだ処理の対象となっていない画素についてブロックを抽出して、上述した処理を繰り返す。
【0430】
ステップS267において、入力画像の1つの画面の全画素について、処理を終了したと判定された場合、ステップS268に進み、繰り返し判定部223は、まだ選択されていない画素から1つの画素を選択し、選択された画素について、棄却の回数が、閾値以上であるか否かを判定する。例えば、繰り返し判定部223は、ステップS268において、選択された画素について、棄却の回数が、予め記憶している閾値以上であるか否かを判定する。
【0431】
ステップS268において、選択された画素について、棄却の回数が、閾値以上であると判定された場合、選択された画素が定常成分を含むので、ステップS269に進み、繰り返し判定部223は、選択された画素の画素値(入力画像における画素値)を入力画像の定常成分として出力し、ステップS270に進む。
【0432】
ステップS268において、選択された画素について、棄却の回数が、閾値以上でないと判定された場合、選択された画素が定常成分を含まないので、ステップS269の処理をスキップして、手続きは、ステップS270に進む。すなわち、棄却の回数が、閾値以上でないと判定された画素は、画素値が出力されない。
【0433】
なお、棄却の回数が、閾値以上でないと判定された画素について、繰り返し判定部223は、0を設定した画素値を出力するようにしてもよい。
【0434】
ステップS270において、繰り返し判定部223は、入力画像の1つの画面の全画素について、棄却の回数が閾値以上であるか否かの判定の処理を終了したか否かを判定し、全画素について処理を終了していないと判定された場合、まだ処理の対象となってない画素があるので、ステップS268に戻り、まだ処理の対象となっていない画素から1つの画素を選択して、上述した処理を繰り返す。
【0435】
ステップS270において、入力画像の1つの画面の全画素について処理を終了したと判定された場合、処理は終了する。
【0436】
このように、非定常成分抽出部201は、定常成分情報として、入力画像の画素のうち、定常成分を含む画素の画素値を出力することができる。すなわち、非定常成分抽出部201は、入力画像の画素のうち、細線の画像の成分を含む画素の画素値を出力することができる。
【0437】
図71は、ステップS201に対応する非定常成分の抽出の処理に代わる、図58に構成を示す非定常成分抽出部201による、定常成分の抽出のさらに他の処理を説明するフローチャートである。ステップS281乃至ステップS288の処理は、ステップS261乃至ステップS268の処理と同様なので、その説明は省略する。
【0438】
ステップS289において、繰り返し判定部223は、平面で示される近似値と、選択された画素の画素値との差分を入力画像の定常成分として出力する。すなわち、繰り返し判定部223は、入力画像から非定常成分を除去した画像を定常性情報として出力する。
【0439】
ステップS290の処理は、ステップS270の処理と同様なので、その説明は省略する。
【0440】
このように、非定常成分抽出部201は、入力画像から非定常成分を除去した画像を定常性情報として出力することができる。
【0441】
以上のように、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した、第1の画像データの複数の画素の画素値の不連続部を検出し、検出された不連続部からデータの定常性を検出し、検出されたデータの定常性を基に、現実世界の光信号の定常性を推定することにより光信号を推定し、推定された光信号を第2の画像データに変換するようにした場合、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【0442】
図72は、データ定常性検出部101の他の構成を示すブロック図である。
【0443】
図72に構成を示すデータ定常性検出部101においては、注目している画素である注目画素について、入力画像の空間方向に対する画素値の変化、すなわち入力画像の空間方向のアクティビティが検出され、検出されたアクティビティに応じて、注目画素および基準軸を基準とした角度毎に、垂直方向に1列または水平方向に1列の所定の数の画素からなる画素の組が、複数抽出され、抽出された画素の組の相関が検出され、相関に基づいて、入力画像における、基準軸を基準としたデータの定常性の角度が検出される。
【0444】
データの定常性の角度とは、基準軸と、データ3が有している、一定の特徴が繰り返し現れる所定の次元の方向とがなす角度をいう。一定の特徴が繰り返し現れるとは、例えば、データ3における位置の変化に対する値の変化、すなわち断面形状が同じである場合などをいう。
【0445】
基準軸は、例えば、空間方向Xを示す軸(画面の水平方向)、または空間方向Yを示す軸(画面の垂直方向)などとすることができる。
【0446】
入力画像は、アクティビティ検出部401およびデータ選択部402に供給される。
【0447】
アクティビティ検出部401は、入力画像の空間方向に対する画素値の変化、すなわち空間方向のアクティビティを検出して、検出した結果を示すアクティビティ情報をデータ選択部402および定常方向導出部404に供給する。
【0448】
例えば、アクティビティ検出部401は、画面の水平方向に対する画素値の変化、および画面の垂直方向に対する画素値の変化を検出し、検出された水平方向に対する画素値の変化および垂直方向に対する画素値の変化を比較することにより、垂直方向に対する画素値の変化に比較して、水平方向に対する画素値の変化が大きいか、または水平方向に対する画素値の変化に比較して、垂直方向に対する画素値の変化が大きいかを検出する。
【0449】
アクティビティ検出部401は、検出の結果である、垂直方向に対する画素値の変化に比較して、水平方向に対する画素値の変化が大きいことを示すか、または水平方向に対する画素値の変化に比較して、垂直方向に対する画素値の変化が大きいことを示すアクティビティ情報をデータ選択部402および定常方向導出部404に供給する。
【0450】
垂直方向に対する画素値の変化に比較して、水平方向に対する画素値の変化が大きい場合、例えば、図73で示されるように、垂直方向に1列の画素に円弧形状(かまぼこ型)またはつめ形状が形成され、円弧形状またはつめ形状が垂直により近い方向に繰り返して形成されている。すなわち、垂直方向に対する画素値の変化に比較して、水平方向に対する画素値の変化が大きい場合、基準軸を空間方向Xを示す軸とすると、入力画像における、基準軸を基準としたデータの定常性の角度は、45度乃至90度のいずれかの値である。
【0451】
水平方向に対する画素値の変化に比較して、垂直方向に対する画素値の変化が大きい場合、例えば、水平方向に1列の画素に円弧形状またはつめ形状が形成され、円弧形状またはつめ形状が水平方向により近い方向に繰り返して形成されている。すなわち、水平方向に対する画素値の変化に比較して、垂直方向に対する画素値の変化が大きい場合、基準軸を空間方向Xを示す軸とすると、入力画像における、基準軸を基準としたデータの定常性の角度は、0度乃至45度のいずれかの値である。
【0452】
例えば、アクティビティ検出部401は、図74で示される、注目画素を中心とした3×3の9つの画素からなるブロックを入力画像から抽出する。アクティビティ検出部401は、縦に隣接する画素についての画素値の差分の和、および横に隣接する画素についての画素値の差分の和を算出する。横に隣接する画素についての画素値の差分の和hdiffは、式(27)で求められる。
【0453】
diff=Σ(Pi+1,j−Pi,j) ・・・(27)
【0454】
同様に、縦に隣接する画素についての画素値の差分の和vdiffは、式(28)で求められる。
【0455】
diff=Σ(Pi,j+1−Pi,j) ・・・(28)
【0456】
式(27)および式(28)において、Pは、画素値を示し、iは、画素の横方向の位置を示し、jは、画素の縦方向の位置を示す。
【0457】
アクティビティ検出部401は、算出された横に隣接する画素についての画素値の差分の和hdiffおよび縦に隣接する画素についての画素値の差分の和vdiffを比較して、入力画像における、基準軸を基準としたデータの定常性の角度の範囲を判定するようにしてもよい。すなわち、この場合、アクティビティ検出部401は、空間方向の位置に対する画素値の変化で示される形状が水平方向に繰り返して形成されているか、垂直方向に繰り返して形成されているかを判定する。
【0458】
例えば、横に1列の画素上に形成された円弧についての横方向の画素値の変化は、縦方向の画素値の変化に比較して大きく、横に1列の画素上に形成された円弧についての縦方向の画素値の変化は、横方向の画素値の変化に比較して大きく、データの定常性の方向、すなわち、データ3である入力画像が有している、一定の特徴の所定の次元の方向の変化は、データの定常性に直交する方向の変化に比較して小さいと言える。言い換えれば、データの定常性の方向の差分に比較して、データの定常性の方向に直交する方向(以下、非定常方向とも称する)の差分は大きい。
【0459】
例えば、図75に示すように、アクティビティ検出部401は、算出された横に隣接する画素についての画素値の差分の和hdiffおよび縦に隣接する画素についての画素値の差分の和vdiffを比較して、横に隣接する画素についての画素値の差分の和hdiffが大きい場合、基準軸を基準としたデータの定常性の角度が、45度乃至135度のいずれかの値であると判定し、縦に隣接する画素についての画素値の差分の和vdiffが大きい場合、基準軸を基準としたデータの定常性の角度が、0度乃至45度のいずれかの値、または135度乃至180度のいずれかの値であると判定する。
【0460】
例えば、アクティビティ検出部401は、判定の結果を示すアクティビティ情報をデータ選択部402および定常方向導出部404に供給する。
【0461】
なお、アクティビティ検出部401は、5×5の25の画素からなるブロック、または7×7の49の画素からなるブロックなど、任意の大きさのブロックを抽出して、アクティビティを検出することができる。
【0462】
データ選択部402は、入力画像の画素から注目画素を順に選択し、アクティビティ検出部401から供給されたアクティビティ情報を基に、注目画素および基準軸を基準とした角度毎に、垂直方向に1列または水平方向に1列の所定の数の画素からなる画素の組を、複数抽出する。
【0463】
例えば、アクティビティ情報が垂直方向に対する画素値の変化に比較して、水平方向に対する画素値の変化が大きいことを示しているとき、データの定常性の角度が、45度乃至135度のいずれかの値なので、データ選択部402は、注目画素および基準軸を基準とした45度乃至135度の範囲の所定の角度毎に、垂直方向に1列の所定の数の画素からなる画素の組を、複数抽出する。
【0464】
アクティビティ情報が水平方向に対する画素値の変化に比較して、垂直方向に対する画素値の変化が大きいことを示しているとき、データの定常性の角度が、0度乃至45度または135度乃至180度のいずれかの値なので、データ選択部402は、注目画素および基準軸を基準とした0度乃至45度または135度乃至180度の範囲の所定の角度毎に、水平方向に1列の所定の数の画素からなる画素の組を、複数抽出する。
【0465】
また、例えば、データの定常性の角度が45度乃至135度のいずれかの値であることを、アクティビティ情報が示しているとき、データ選択部402は、注目画素および基準軸を基準とした45度乃至135度の範囲の所定の角度毎に、垂直方向に1列の所定の数の画素からなる画素の組を、複数抽出する。
【0466】
データの定常性の角度が0度乃至45度または135度乃至180度のいずれかの値であることを、アクティビティ情報が示しているとき、データ選択部402は、注目画素および基準軸を基準とした0度乃至45度または135度乃至180度の範囲の所定の角度毎に、水平方向に1列の所定の数の画素からなる画素の組を、複数抽出する。
【0467】
データ選択部402は、抽出した画素からなる複数の組を誤差推定部403に供給する。
【0468】
誤差推定部403は、抽出した画素からなる複数の組について、角度毎に、画素の組の相関を検出する。
【0469】
例えば、誤差推定部403は、1つの角度に対応する、垂直方向に1列の所定の数の画素からなる画素の複数の組について、画素の組における対応する位置の画素の画素値の相関を検出する。誤差推定部403は、1つの角度に対応する、水平方向に1列の所定の数の画素からなる画素の複数の組について、組における対応する位置の画素の画素値の相関を検出する。
【0470】
誤差推定部403は、検出した相関を示す相関情報を定常方向導出部404に供給する。誤差推定部403は、相関を示す値として、データ選択部402から供給された、注目画素を含む組の画素の画素値と、他の組における対応する位置の画素の画素値の差分の絶対値の和を算出し、差分の絶対値の和を相関情報として定常方向導出部404に供給する。
【0471】
定常方向導出部404は、誤差推定部403から供給された相関情報に基いて、欠落した実世界1の光信号の定常性に対応する、入力画像における、基準軸を基準としたデータの定常性の角度を検出し、角度を示すデータ定常性情報を出力する。例えば、定常方向導出部404は、誤差推定部403から供給された相関情報に基いて、データの定常性の角度として、最も相関の強い画素の組に対する角度を検出し、検出された最も相関の強い画素の組に対する角度を示すデータ定常性情報を出力する。
【0472】
以下の説明において、適宜、0度乃至90度の範囲(いわゆる第1象限)のデータの定常性の角度を検出するものとして説明する。
【0473】
図76は、図72に示すデータ定常性検出部101のより詳細な構成を示すブロック図である。
【0474】
データ選択部402は、画素選択部411−1乃至画素選択部411−Lを含む。誤差推定部403は、推定誤差算出部412−1乃至推定誤差算出部412−Lを含む。定常方向導出部404は、最小誤差角度選択部413を含む。
【0475】
まず、アクティビティ情報で示される、データの定常性の角度が45度乃至135度のいずれかの値であるときの画素選択部411−1乃至画素選択部411−Lの処理を説明する。
【0476】
画素選択部411−1乃至画素選択部411−Lは、空間方向Xを示す軸を基準軸として、注目画素を通る、それぞれ異なる所定の角度の直線を設定する。画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列に属する画素であって、注目画素の上側の所定の数の画素、および注目画素の下側の所定の数の画素、並びに注目画素を画素の組として選択する。
【0477】
例えば、図77で示されるように、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列に属する画素から、注目画素を中心として9つの画素を画素の組として選択する。
【0478】
図77において、マス目状の1つの四角(1つのマス目)は、1つの画素を示す。図77において、中央に示す丸は、注目画素を示す。
【0479】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、左側の縦に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。図77において、注目画素の左下側の丸は、選択された画素の例を示す。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、左側の縦に1列の画素の列に属する画素であって、選択された画素の上側の所定の数の画素、および選択された画素の下側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0480】
例えば、図77で示されるように、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、左側の縦に1列の画素の列に属する画素から、直線に最も近い位置の画素を中心として9つの画素を画素の組として選択する。
【0481】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、左側に2つめの縦に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。図77において、最も左側の丸は、選択された画素の例を示す。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、左側に2つめの縦に1列の画素の列に属する画素であって、選択された画素の上側の所定の数の画素、および選択された画素の下側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0482】
例えば、図77で示されるように、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、左側に2つめの縦に1列の画素の列に属する画素から、直線に最も近い位置の画素を中心として9つの画素を画素の組として選択する。
【0483】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、右側の縦に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。図77において、注目画素の右上側の丸は、選択された画素の例を示す。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、右側の縦に1列の画素の列に属する画素であって、選択された画素の上側の所定の数の画素、および選択された画素の下側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0484】
例えば、図77で示されるように、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、右側の縦に1列の画素の列に属する画素から、直線に最も近い位置の画素を中心として9つの画素を画素の組として選択する。
【0485】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、右側に2つめの縦に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。図77において、最も右側の丸は、このように選択された画素の例を示す。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、右側に2つめの縦に1列の画素の列に属する画素であって、選択された画素の上側の所定の数の画素、および選択された画素の下側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0486】
例えば、図77で示されるように、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する縦に1列の画素の列の、右側に2つめの縦に1列の画素の列に属する画素から、直線に最も近い位置の画素を中心として9つの画素を画素の組として選択する。
【0487】
このように、画素選択部411−1乃至画素選択部411−Lは、それぞれ、画素の組を5つ選択する。
【0488】
画素選択部411−1乃至画素選択部411−Lは、互いに異なる角度(に設定された直線)についての、画素の組を選択する。例えば、画素選択部411−1は、45度についての、画素の組を選択し、画素選択部411−2は、47.5度についての、画素の組を選択し、画素選択部411−3は、50度についての、画素の組を選択する。画素選択部411−1乃至画素選択部411−Lは、52.5度から135度までの、2.5度毎の角度についての、画素の組を選択する。
【0489】
なお、画素の組の数は、例えば、3つ、または7つなど、任意の数とすることができ、本発明を限定するものではない。また、1つの組として選択された画素の数は、例えば、5つ、または13など、任意の数とすることができ、本発明を限定するものではない。
【0490】
なお、画素選択部411−1乃至画素選択部411−Lは、縦方向に所定の範囲の画素から、画素の組を選択するようにすることができる。例えば、画素選択部411−1乃至画素選択部411−Lは、縦方向に121個の画素(注目画素に対して、上方向に60画素、下方向に60画素)から、画素の組を選択する。この場合、データ定常性検出部101は、空間方向Xを示す軸に対して、88.09度まで、データの定常性の角度を検出することができる。
【0491】
画素選択部411−1は、選択した画素の組を推定誤差算出部412−1に供給し、画素選択部411−2は、選択した画素の組を推定誤差算出部412−2に供給する。同様に、画素選択部411−3乃至画素選択部411−Lのそれぞれは、選択した画素の組を推定誤差算出部412−3乃至推定誤差算出部412−Lのそれぞれに供給する。
【0492】
推定誤差算出部412−1乃至推定誤差算出部412−Lは、画素選択部411−1乃至画素選択部411−Lのいずれかから供給された、複数の組における対応する位置の画素の画素値の相関を検出する。例えば、推定誤差算出部412−1乃至推定誤差算出部412−Lは、相関を示す値として、画素選択部411−1乃至画素選択部411−Lのいずれかから供給された、注目画素を含む組の画素の画素値と、他の組における対応する位置の画素の画素値の差分の絶対値の和を算出する。
【0493】
より具体的には、推定誤差算出部412−1乃至推定誤差算出部412−Lは、画素選択部411−1乃至画素選択部411−Lのいずれかから供給された、注目画素を含む組の画素の画素値と、注目画素の左側の縦に1列の画素の列に属する画素からなる組の画素の画素値とを基に、最も上の画素の画素値の差分を算出し、上から2番目の画素の画素値の差分を算出するように、上の画素から順に画素値の差分の絶対値を算出して、さらに、算出された差分の絶対値の和を算出する。推定誤差算出部412−1乃至推定誤差算出部412−Lは、画素選択部411−1乃至画素選択部411−Lのいずれかから供給された、注目画素を含む組の画素の画素値と、注目画素の左に2つめの縦に1列の画素の列に属する画素からなる組の画素の画素値とを基に、上の画素から順に画素値の差分の絶対値を算出して、算出された差分の絶対値の和を算出する。
【0494】
そして、推定誤差算出部412−1乃至推定誤差算出部412−Lは、画素選択部411−1乃至画素選択部411−Lのいずれかから供給された、注目画素を含む組の画素の画素値と、注目画素の右側の縦に1列の画素の列に属する画素からなる組の画素の画素値とを基に、最も上の画素の画素値の差分を算出し、上から2番目の画素の画素値の差分を算出するように、上の画素から順に画素値の差分の絶対値を算出して、さらに、算出された差分の絶対値の和を算出する。推定誤差算出部412−1乃至推定誤差算出部412−Lは、画素選択部411−1乃至画素選択部411−Lのいずれかから供給された、注目画素を含む組の画素の画素値と、注目画素の右に2つめの縦に1列の画素の列に属する画素からなる組の画素の画素値とを基に、上の画素から順に画素値の差分の絶対値を算出して、算出された差分の絶対値の和を算出する。
【0495】
推定誤差算出部412−1乃至推定誤差算出部412−Lは、このように算出された画素値の差分の絶対値の和を全て加算して、画素値の差分の絶対値の総和を算出する。
【0496】
推定誤差算出部412−1乃至推定誤差算出部412−Lは、検出された相関を示す情報を、最小誤差角度選択部413に供給する。例えば、推定誤差算出部412−1乃至推定誤差算出部412−Lは、算出された画素値の差分の絶対値の総和を最小誤差角度選択部413に供給する。
【0497】
なお、推定誤差算出部412−1乃至推定誤差算出部412−Lは、画素値の差分の絶対値の和に限らず、画素値の差分の自乗の和、または画素値を基にした相関係数など他の値を相関値として算出するようにすることができる。
【0498】
最小誤差角度選択部413は、互いに異なる角度についての、推定誤差算出部412−1乃至推定誤差算出部412−Lにおいて検出された相関に基いて、欠落した実世界1の光信号である画像の定常性に対応する、入力画像における、基準軸を基準としたデータの定常性の角度を検出する。すなわち、最小誤差角度選択部413は、互いに異なる角度についての、推定誤差算出部412−1乃至推定誤差算出部412−Lにおいて検出された相関に基いて、最も強い相関を選択し、選択された相関が検出された角度を、基準軸を基準としたデータの定常性の角度とすることにより、入力画像における、基準軸を基準としたデータの定常性の角度を検出する。
【0499】
例えば、最小誤差角度選択部413は、推定誤差算出部412−1乃至推定誤差算出部412−Lから供給された、画素値の差分の絶対値の総和のうち、最小の総和を選択する。最小誤差角度選択部413は、選択された総和が算出された画素の組について、注目画素に対して、左側に2つめの縦に1列の画素の列に属する画素であって、直線に最も近い位置の画素の位置、および、注目画素に対して、右側に2つめの縦に1列の画素の列に属する画素であって、直線に最も近い位置の画素の位置を参照する。
【0500】
図77で示されるように、最小誤差角度選択部413は、注目画素の位置に対する、参照する画素の位置の縦方向の距離Sを求める。最小誤差角度選択部413は、図78で示すように、式(29)から、欠落した実世界1の光信号の定常性に対応する、画像データである入力画像における、基準軸である空間方向Xを示す軸を基準としたデータの定常性の角度θを検出する。
【0501】
θ=tan−1(s/2) ・・・(29)
【0502】
次に、アクティビティ情報で示される、データの定常性の角度が0度乃至45度および135度乃至180度のいずれかの値であるときの画素選択部411−1乃至画素選択部411−Lの処理を説明する。
【0503】
画素選択部411−1乃至画素選択部411−Lは、空間方向Xを示す軸を基準軸として、注目画素を通る、所定の角度の直線を設定し、注目画素が属する横に1列の画素の列に属する画素であって、注目画素の上側の所定の数の画素、および注目画素の下側の所定の数の画素、並びに注目画素を画素の組として選択する。
【0504】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、上側の横に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、上側の横に1列の画素の列に属する画素であって、選択された画素の左側の所定の数の画素、および選択された画素の右側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0505】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、上側に2つめの横に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、上側に2つめの横に1列の画素の列に属する画素であって、選択された画素の左側の所定の数の画素、および選択された画素の右側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0506】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、下側の横に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、下側の横に1列の画素の列に属する画素であって、選択された画素の左側の所定の数の画素、および選択された画素の右側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0507】
画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、下側に2つめの横に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択する。そして、画素選択部411−1乃至画素選択部411−Lは、注目画素が属する横に1列の画素の列の、下側に2つめの横に1列の画素の列に属する画素であって、選択された画素の左側の所定の数の画素、および選択された画素の右側の所定の数の画素、並びに選択された画素を画素の組として選択する。
【0508】
このように、画素選択部411−1乃至画素選択部411−Lは、それぞれ、画素の組を5つ選択する。
【0509】
画素選択部411−1乃至画素選択部411−Lは、互いに異なる角度についての、画素の組を選択する。例えば、画素選択部411−1は、0度についての、画素の組を選択し、画素選択部411−2は、2.5度についての、画素の組を選択し、画素選択部411−3は、5度についての、画素の組を選択する。画素選択部411−1乃至画素選択部411−Lは、7.5度から45度および135度から180度までの、2.5度毎の角度についての、画素の組を選択する。
【0510】
画素選択部411−1は、選択した画素の組を推定誤差算出部412−1に供給し、画素選択部411−2は、選択した画素の組を推定誤差算出部412−2に供給する。同様に、画素選択部411−3乃至画素選択部411−Lのそれぞれは、選択した画素の組を推定誤差算出部412−3乃至推定誤差算出部412−Lのそれぞれに供給する。
【0511】
推定誤差算出部412−1乃至推定誤差算出部412−Lは、画素選択部411−1乃至画素選択部411−Lのいずれかから供給された、複数の組における対応する位置の画素の画素値の相関を検出する。推定誤差算出部412−1乃至推定誤差算出部412−Lは、検出された相関を示す情報を、最小誤差角度選択部413に供給する。
【0512】
最小誤差角度選択部413は、推定誤差算出部412−1乃至推定誤差算出部412−Lにおいて検出された相関に基いて、欠落した実世界1の光信号である画像の定常性に対応する、入力画像における、基準軸を基準としたデータの定常性の角度を検出する。
【0513】
次に、図79のフローチャートを参照して、ステップS101の処理に対応する、図72で構成が示されるデータ定常性検出部101による、データの定常性の検出の処理を説明する。
【0514】
ステップS401において、アクティビティ検出部401およびデータ選択部402は、入力画像から、注目している画素である注目画素を選択する。アクティビティ検出部401およびデータ選択部402は、同一の注目画素を選択する。例えば、アクティビティ検出部401およびデータ選択部402は、入力画像から、ラスタスキャン順に、注目画素を選択する。
【0515】
ステップS402において、アクティビティ検出部401は、注目画素に対するアクティビティを検出する。例えば、アクティビティ検出部401は、注目画素を中心とした所定の数の画素からなるブロックの縦方向に並ぶ画素の画素値の差分および横方向に並ぶ画素の画素値の差分を基に、アクティビティを検出する。
【0516】
アクティビティ検出部401は、注目画素に対する空間方向のアクティビティを検出して、検出した結果を示すアクティビティ情報をデータ選択部402および定常方向導出部404に供給する。
【0517】
ステップS403において、データ選択部402は、注目画素を含む画素の列から、注目画素を中心とした所定の数の画素を、画素の組として選択する。例えば、データ選択部402は、注目画素が属する縦または横に1列の画素の列に属する画素であって、注目画素の上側または左側の所定の数の画素、および注目画素の下側または右側の所定の数の画素、並びに注目画素を画素の組として選択する。
【0518】
ステップS404において、データ選択部402は、ステップS402の処理で検出されたアクティビティを基にした、所定の範囲の角度毎に、所定の数の画素の列から、それぞれ所定の数の画素を、画素の組として選択する。例えば、データ選択部402は、所定の範囲の角度を有し、空間方向Xを示す軸を基準軸として、注目画素を通る直線を設定し、注目画素に対して、横方向または縦方向に1列または2列離れた画素であって、直線に最も近い画素を選択し、選択された画素の上側または左側の所定の数の画素、および選択された画素の下側または右側の所定の数の画素、並びに線に最も近い選択された画素を画素の組として選択する。データ選択部402は、角度毎に、画素の組を選択する。
【0519】
データ選択部402は、選択した画素の組を誤差推定部403に供給する。
【0520】
ステップS405において、誤差推定部403は、注目画素を中心とした画素の組と、角度毎に選択した画素の組との相関を計算する。例えば、誤差推定部403は、角度毎に、注目画素を含む組の画素の画素値と、他の組における対応する位置の画素の画素値の差分の絶対値の和を算出する。
【0521】
角度毎に選択された、画素の組の相互の相関を基に、データの定常性の角度を検出するようにしてもよい。
【0522】
誤差推定部403は、算出された相関を示す情報を、定常方向導出部404に供給する。
【0523】
ステップS406において、定常方向導出部404は、ステップS405の処理で算出された相関を基に、相関が最も強い画素の組の位置から、欠落した実世界1の光信号の定常性に対応する、画像データである入力画像における、基準軸を基準としたデータの定常性の角度を検出する。例えば、定常方向導出部404は、画素値の差分の絶対値の総和のうち、最小の総和を選択し、選択された総和が算出された画素の組の位置から、データの定常性の角度θを検出する。
【0524】
定常方向導出部404は、検出したデータの定常性の角度を示すデータ定常性情報を出力する。
【0525】
ステップS407において、データ選択部402は、全ての画素の処理を終了したか否かを判定し、全ての画素の処理を終了していないと判定された場合、ステップS401に戻り、まだ注目画素として選択されていない画素から注目画素を選択して、上述した処理を繰り返す。
【0526】
ステップS407において、全ての画素の処理を終了したと判定された場合、処理は終了する。
【0527】
このように、データ定常性検出部101は、欠落した実世界1の光信号の定常性に対応する、画像データにおける、基準軸を基準としたデータの定常性の角度を検出することができる。
【0528】
なお、図72で構成が示されるデータ検出部101は、注目しているフレームである注目フレームの、注目している画素である注目画素について、入力画像の空間方向のアクティビティを検出し、検出されたアクティビティに応じて、注目画素および空間方向の基準軸を基準とした角度、並びに動きベクトル毎に、注目フレームおよび注目フレームの時間的に前または後ろのフレームのそれぞれから、垂直方向に1列または水平方向に1列の所定の数の画素からなる画素の組を、複数抽出し、抽出された画素の組の相関を検出し、相関に基づいて、入力画像における、時間方向および空間方向のデータの定常性の角度を検出するようにしてもよい。
【0529】
例えば、図80に示すように、データ選択部402は、検出されたアクティビティに応じて、注目画素および空間方向の基準軸を基準とした角度、並びに動きベクトル毎に、注目フレームであるフレーム#n、フレーム#n−1、およびフレーム#n+1のそれぞれから、垂直方向に1列または水平方向に1列の所定の数の画素からなる画素の組を、複数抽出する。
【0530】
フレーム#n−1は、フレーム#nに対して時間的に前のフレームであり、フレーム#n+1は、フレーム#nに対して時間的に後のフレームである。すなわち、フレーム#n−1、フレーム#n、およびフレーム#n+1は、フレーム#n−1、フレーム#n、およびフレーム#n+1の順で表示される。
【0531】
誤差推定部403は、抽出した画素からなる複数の組について、1つの角度および1つの動きベクトル毎に、画素の組の相関を検出する。定常方向導出部404は、画素の組の相関に基づいて、欠落した実世界1の光信号の定常性に対応する、入力画像における、時間方向および空間方向のデータの定常性の角度を検出し、角度を示すデータ定常性情報を出力する。
【0532】
図81は、図72に示すデータ定常性検出部101のより詳細な他の構成を示すブロック図である。図76に示す場合と同様の部分には、同一の番号を付してあり、その説明は省略する。
【0533】
データ選択部402は、画素選択部421−1乃至画素選択部421−Lを含む。誤差推定部403は、推定誤差算出部422−1乃至推定誤差算出部422−Lを含む。
【0534】
図81で示すデータ定常性検出部101においては、角度の範囲に対する数の画素からなる、画素の組であって、角度の範囲に対する数の組が抽出されて、抽出された画素の組の相関が検出され、検出された相関に基づいて、入力画像における、基準軸を基準としたデータの定常性の角度が検出される。
【0535】
まず、アクティビティ情報で示される、データの定常性の角度が45度乃至135度のいずれかの値であるときの画素選択部421−1乃至画素選択部421−Lの処理を説明する。
【0536】
図82の左側に示すように、図76で示されるデータ定常性検出部101においては、設定された直線の角度によらず、一定の数の画素からなる画素の組が抽出されるのに対して、図81で示されるデータ定常性検出部101においては、図82の右側に示すように、設定された直線の角度の範囲に応じた数の画素からなる画素の組が抽出される。また、図81で示されるデータ定常性検出部101においては、画素の組が、設定された直線の角度の範囲に応じた数だけ抽出される。
【0537】
画素選択部421−1乃至画素選択部421−Lは、45度乃至135度の範囲の、空間方向Xを示す軸を基準軸として、注目画素を通る、それぞれ互いに異なる所定の角度の直線を設定する。
【0538】
画素選択部421−1乃至画素選択部421−Lは、注目画素が属する縦に1列の画素の列に属する画素であって、それぞれに設定された直線の角度の範囲に応じた数の、注目画素の上側の画素、および注目画素の下側の画素、並びに注目画素を画素の組として選択する。
【0539】
画素選択部421−1乃至画素選択部421−Lは、注目画素が属する縦に1列の画素の列に対して、画素を基準とした横方向に所定の距離にある、左側および右側の縦に1列の画素の列に属する画素であって、それぞれに設定された直線に最も近い位置の画素を選択し、選択された画素に対して縦に1列の画素から、設定された直線の角度の範囲に応じた数の、選択された画素の上側の画素、および選択された画素の下側の画素、並びに選択された画素を画素の組として選択する。
【0540】
すなわち、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度の範囲に応じた数の画素を、画素の組として選択する。画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度の範囲に応じた数の、画素の組を選択する。
【0541】
例えば、空間方向Xに対してほぼ45度の角度に位置する、検出素子の検出領域の幅とほぼ同じ幅の細線の画像がセンサ2で撮像された場合、細線の画像は、空間方向Yに1列に並ぶ3つの画素に円弧形状が形成されるように、データ3に射影される。これに対して、空間方向Xに対してほぼ垂直に位置する、検出素子の検出領域の幅とほぼ同じ幅の細線の画像がセンサ2で撮像された場合、細線の画像は、空間方向Yに1列に並ぶ、多数の画素に円弧形状が形成されるように、データ3に射影される。
【0542】
画素の組に同じ数の画素が含まれるとすると、細線が空間方向Xに対してほぼ45度の角度に位置する場合、画素の組において、細線の画像が射影された画素の数が少なくなり、分解能が低下することになる。逆に、細線が空間方向Xに対してほぼ垂直に位置する場合、画素の組において、細線の画像が射影された画素のうちの、一部の画素について処理が実行されることになり、正確さが低下する恐れがある。
【0543】
そこで、細線の画像が射影された画素がほぼ同等になるように、画素選択部421−1乃至画素選択部421−Lは、設定する直線が空間方向Xに対して45度の角度により近いとき、それぞれ画素の組に含まれる画素の数を少なくして、画素の組の数を多くし、設定する直線が空間方向Xに対して垂直により近い場合、それぞれの画素の組に含まれる画素の数を多くして、画素の組の数を少なくするように、画素および画素の組を選択する。
【0544】
例えば、図83および図84で示されるように、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、45度以上63.4度未満の範囲(図83および図84において、Aで示す範囲)にあるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした5つの画素を画素の組として選択すると共に、注目画素に対して、横方向に5画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、5つの画素を画素の組として選択する。
【0545】
すなわち、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、45度以上63.4度未満の範囲にあるとき、入力画像から、それぞれ5つの画素からなる、11の画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素は、注目画素に対して、縦方向に5画素乃至9画素離れた位置にある。
【0546】
図84において、列の数は、注目画素の左側または右側の、画素の組として画素が選択される画素の列の数を示す。図84において、1列の画素の数は、注目画素に対して、縦に1列の画素の列、または注目画素の左側または右側の列から、画素の組として選択される画素の数を示す。図84において、画素の選択範囲は、注目画素に対する、設定された直線に最も近い位置の画素として、選択される画素の縦方向の位置を示す。
【0547】
図85で示されるように、例えば、画素選択部421−1は、設定された直線の角度が、45度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした5つの画素を画素の組として選択すると共に、注目画素に対して、横方向に5画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、5つの画素を画素の組として選択する。すなわち、画素選択部421−1は、入力画像から、それぞれ5つの画素からなる、11の画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に5画素離れた位置にある。
【0548】
なお、図85乃至図92において、点線で表された四角(点線で仕切られた1つのマス目)は、1つの画素を示し、実線で表された四角は、画素の組を示す。図85乃至図92において、注目画素の空間方向Xの座標を0とし、注目画素の空間方向Yの座標を0とした。
【0549】
また、図85乃至図92において、斜線で表された四角は、注目画素または設定された直線に最も近い位置の画素を示す。図85乃至図92において、太線で表された四角は、注目画素を中心として選択された画素の組を示す。
【0550】
図86で示されるように、例えば、画素選択部421−2は、設定された直線の角度が、60.9度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした5つの画素を画素の組として選択すると共に、注目画素に対して、横方向に5画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、5つの画素を画素の組として選択する。すなわち、画素選択部421−2は、入力画像から、それぞれ5つの画素からなる、11の画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に9画素離れた位置にある。
【0551】
例えば、図83および図84で示されるように、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、63.4度以上71.6度未満の範囲(図83および図84において、Bで示す範囲)にあるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした7つの画素を画素の組として選択すると共に、注目画素に対して、横方向に4画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、7つの画素を画素の組として選択する。
【0552】
すなわち、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、63.4度以上71.6度未満の範囲囲にあるとき、入力画像から、それぞれ7つの画素からなる、9つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素の縦方向の位置は、注目画素に対して、8画素乃至11画素である。
【0553】
図87で示されるように、例えば、画素選択部421−3は、設定された直線の角度が、63.4度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした7つの画素を画素の組として選択すると共に、注目画素に対して、横方向に4画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、7つの画素を画素の組として選択する。すなわち、画素選択部421−3は、入力画像から、それぞれ7つの画素からなる、9つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に8画素離れた位置にある。
【0554】
また、図88で示されるように、例えば、画素選択部421−4は、設定された直線の角度が、70.0度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした7つの画素を画素の組として選択すると共に、注目画素に対して、横方向に4画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、7つの画素を画素の組として選択する。すなわち、画素選択部421−4は、入力画像から、それぞれ7つの画素からなる、9つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に11画素離れた位置にある。
【0555】
例えば、図83および図84で示されるように、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、71.6度以上76.0度未満の範囲(図83および図84において、Cで示す範囲)にあるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした9つの画素を画素の組として選択すると共に、注目画素に対して、横方向に3画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、9つの画素を画素の組として選択する。
【0556】
すなわち、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、71.6度以上76.0度未満の範囲にあるとき、入力画像から、それぞれ9つの画素からなる、7つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素の縦方向の位置は、注目画素に対して、9画素乃至11画素である。
【0557】
図89で示されるように、例えば、画素選択部421−5は、設定された直線の角度が、71.6度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした9つの画素を画素の組として選択すると共に、注目画素に対して、横方向に3画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、9つの画素を画素の組として選択する。すなわち、画素選択部421−5は、入力画像から、それぞれ9つの画素からなる、7つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に9画素離れた位置にある。
【0558】
また、図90で示されるように、例えば、画素選択部421−6は、設定された直線の角度が、74.7度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした9つの画素を画素の組として選択すると共に、注目画素に対して、横方向に3画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、9つの画素を画素の組として選択する。すなわち、画素選択部421−6は、入力画像から、それぞれ9つの画素からなる、7つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に11画素離れた位置にある。
【0559】
例えば、図83および図84で示されるように、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、76.0度以上87.7度以下の範囲(図83および図84において、Dで示す範囲)にあるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした11の画素を画素の組として選択すると共に、注目画素に対して、横方向に2画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、11の画素を画素の組として選択する。すなわち、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度が、76.0度以上87.7度以下の範囲にあるとき、入力画像から、それぞれ11の画素からなる、5つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素の縦方向の位置は、注目画素に対して、8画素乃至50画素である。
【0560】
図91で示されるように、例えば、画素選択部421−7は、設定された直線の角度が、76.0度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした11の画素を画素の組として選択すると共に、注目画素に対して、横方向に2画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、11の画素を画素の組として選択する。すなわち、画素選択部421−7は、入力画像から、それぞれ11の画素からなる、5つの画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に8画素離れた位置にある。
【0561】
また、図92で示されるように、例えば、画素選択部421−8は、設定された直線の角度が、87.7度であるとき、注目画素に対して、縦に1列の画素の列から、注目画素を中心とした11の画素を画素の組として選択すると共に、注目画素に対して、横方向に2画素以内の距離にある、左側および右側の縦に1列の画素の列に属する画素から、それぞれ、11の画素を画素の組として選択する。すなわち、画素選択部421−8は、入力画像から、それぞれ11の画素からなる、5の画素の組を選択する。この場合において、設定された直線に最も近い位置の画素として、選択される画素のうち、注目画素から最も遠い位置にある画素は、注目画素に対して、縦方向に50画素離れた位置にある。
【0562】
このように、画素選択部421−1乃至画素選択部421−Lは、それぞれ、角度の範囲に対応した所定の数の画素からなる、角度の範囲に対応した所定の数の画素の組を選択する。
【0563】
画素選択部421−1は、選択した画素の組を推定誤差算出部422−1に供給し、画素選択部421−2は、選択した画素の組を推定誤差算出部422−2に供給する。同様に、画素選択部421−3乃至画素選択部421−Lのそれぞれは、選択した画素の組を推定誤差算出部422−3乃至推定誤差算出部422−Lのそれぞれに供給する。
【0564】
推定誤差算出部422−1乃至推定誤差算出部422−Lは、画素選択部421−1乃至画素選択部421−Lのいずれかから供給された、複数の組における対応する位置の画素の画素値の相関を検出する。例えば、推定誤差算出部422−1乃至推定誤差算出部422−Lは、画素選択部421−1乃至画素選択部421−Lのいずれかから供給された、注目画素を含む画素の組の画素の画素値と、他の画素の組における対応する位置の画素の画素値の差分の絶対値の和を算出し、注目画素を含む画素の組以外の画素の組に含まれる画素の数で、算出された和を割り算する。算出された和を、注目画素を含む組以外の組に含まれる画素の数で、割り算するのは、設定された直線の角度に応じて選択される画素の数が異なるので、相関を示す値を正規化するためである。
【0565】
推定誤差算出部422−1乃至推定誤差算出部422−Lは、検出された相関を示す情報を、最小誤差角度選択部413に供給する。例えば、推定誤差算出部422−1乃至推定誤差算出部422−Lは、正規化された画素値の差分の絶対値の和を最小誤差角度選択部413に供給する。
【0566】
次に、アクティビティ情報で示される、データの定常性の角度が0度乃至45度および135度乃至180度のいずれかの値であるときの画素選択部421−1乃至画素選択部421−Lの処理を説明する。
【0567】
画素選択部421−1乃至画素選択部421−Lは、0度乃至45度または135度乃至180度の範囲の、空間方向Xを示す軸を基準軸として、注目画素を通る、それぞれ互いに異なる所定の角度の直線を設定する。
【0568】
画素選択部421−1乃至画素選択部421−Lは、注目画素が属する横に1列の画素の列に属する画素であって、設定された直線の角度の範囲に応じた数の、注目画素の左側の画素、および注目画素の右側の画素、並びに注目画素を画素の組として選択する。
【0569】
画素選択部421−1乃至画素選択部421−Lは、注目画素が属する横に1列の画素の列に対して、画素を基準とした縦方向に所定の距離にある、上側および下側の横に1列の画素の列に属する画素であって、設定された直線に最も近い位置の画素を選択し、選択された画素に対して横に1列の画素から、設定された直線の角度の範囲に応じた数の、選択された画素の左側の画素、および選択された画素の右側の画素、並びに選択された画素を画素の組として選択する。
【0570】
すなわち、画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度の範囲に応じた数の画素を、画素の組として選択する。画素選択部421−1乃至画素選択部421−Lは、設定された直線の角度の範囲に応じた数の、画素の組を選択する。
【0571】
画素選択部421−1は、選択した画素の組を推定誤差算出部422−1に供給し、画素選択部421−2は、選択した画素の組を推定誤差算出部422−2に供給する。同様に、画素選択部421−3乃至画素選択部421−Lのそれぞれは、選択した画素の組を推定誤差算出部422−3乃至推定誤差算出部422−Lのそれぞれに供給する。
【0572】
推定誤差算出部422−1乃至推定誤差算出部422−Lは、画素選択部421−1乃至画素選択部421−Lのいずれかから供給された、複数の組における対応する位置の画素の画素値の相関を検出する。
【0573】
推定誤差算出部422−1乃至推定誤差算出部422−Lは、検出された相関を示す情報を、最小誤差角度選択部413に供給する。
【0574】
次に、図93のフローチャートを参照して、ステップS101の処理に対応する、図81で構成が示されるデータ定常性検出部101による、データの定常性の検出の処理を説明する。
【0575】
ステップS421およびステップS422の処理は、ステップS401およびステップS402の処理と同様なので、その説明は省略する。
【0576】
ステップS423において、データ選択部402は、ステップS422の処理で検出されたアクティビティに対する所定の範囲の角度毎に、注目画素を含む画素の列から、注目画素を中心とした、角度の範囲に対して定めた数の画素を、画素の組として選択する。例えば、データ選択部402は、注目画素が属する縦または横に1列の画素の列に属する画素であって、設定する直線の角度に対して、角度の範囲により定めた数の、注目画素の上側または左側の画素、および注目画素の下側または右側の画素、並びに注目画素を画素の組として選択する。
【0577】
ステップS424において、データ選択部402は、ステップS422の処理で検出されたアクティビティを基にした、所定の範囲の角度毎に、角度の範囲に対して定めた数の画素の列から、角度の範囲に対して定めた数の画素を、画素の組として選択する。例えば、データ選択部402は、所定の範囲の角度を有し、空間方向Xを示す軸を基準軸として、注目画素を通る直線を設定し、注目画素に対して、横方向または縦方向に、設定する直線の角度の範囲に対して所定の範囲だけ離れた画素であって、直線に最も近い画素を選択し、選択された画素の上側または左側の、設定する直線の角度の範囲に対する数の画素、および選択された画素の下側または右側の、設定する直線の角度の範囲に対する数の画素、並びに選択された線に最も近い画素を画素の組として選択する。データ選択部402は、角度毎に、画素の組を選択する。
【0578】
データ選択部402は、選択した画素の組を誤差推定部403に供給する。
【0579】
ステップS425において、誤差推定部403は、注目画素を中心とした画素の組と、角度毎に選択した画素の組との相関を計算する。例えば、誤差推定部403は、注目画素を含む組の画素の画素値と、他の組における対応する位置の画素の画素値の差分の絶対値の和を算出し、他の組に属する画素の数で、画素値の差分の絶対値の和を割り算することにより、相関を計算する。
【0580】
角度毎に選択された、画素の組の相互の相関を基に、データの定常性の角度を検出するようにしてもよい。
【0581】
誤差推定部403は、算出された相関を示す情報を、定常方向導出部404に供給する。
【0582】
ステップS426およびステップS427の処理は、ステップS406およびステップS407の処理と同様なので、その説明は省略する。
【0583】
このように、データ定常性検出部101は、欠落した実世界1の光信号の定常性に対応する、画像データにおける、基準軸を基準としたデータの定常性の角度を、より正確に、より精度良く検出することができる。図81に構成を示すデータ定常性検出部101は、特に、データの定常性の角度が45度付近である場合において、細線の画像が射影された、より多くの画素の相関を評価することができるので、より精度良くデータの定常性の角度を検出することができる。
【0584】
なお、図81で構成が示されるデータ定常性検出部101においても、注目しているフレームである注目フレームの、注目している画素である注目画素について、入力画像の空間方向のアクティビティを検出し、検出されたアクティビティに応じて、注目画素および空間方向の基準軸を基準とした角度、並びに動きベクトル毎に、注目フレームおよび注目フレームの時間的に前または後ろのフレームのそれぞれから、垂直方向に1列または水平方向に1列の、空間的な角度の範囲に対して定めた数の画素からなる画素の組を、空間的な角度の範囲に対して定めた数だけ抽出し、抽出された画素の組の相関を検出し、相関に基づいて、入力画像における、時間方向および空間方向のデータの定常性の角度を検出するようにしてもよい。
【0585】
図94は、データ定常性検出部101のさらに他の構成を示すブロック図である。
【0586】
図94に構成を示すデータ定常性検出部101においては、注目している画素である注目画素について、所定の数の画素からなる、注目画素を中心としたブロックと、注目画素の周辺の、それぞれ、所定の数の画素からなる複数のブロックが抽出され、注目画素を中心としたブロックと周辺のブロックとの相関が検出され、相関に基づいて、入力画像における、基準軸を基準としたデータの定常性の角度が検出される。
【0587】
データ選択部441は、入力画像の画素から注目画素を順に選択し、注目画素を中心とした、所定の数の画素からなるブロック、および、注目画素の周辺の、所定の数の画素からなる複数のブロックを抽出し、抽出したブロックを誤差推定部442に供給する。
【0588】
例えば、データ選択部441は、注目画素を中心とした5×5画素からなるブロック、注目画素の周辺から、注目画素および基準軸を基準とした所定の角度の範囲毎に、5×5画素からなる2つのブロックを抽出する。
【0589】
誤差推定部442は、データ選択部441から供給された、注目画素を中心としたブロックと、注目画素の周辺のブロックとの相関を検出して、検出した相関を示す相関情報を定常方向導出部443に供給する。
【0590】
例えば、誤差推定部442は、角度の範囲毎に、注目画素を中心とした5×5画素からなるブロックと、1つの角度の範囲に対応する、5×5画素からなる2つのブロックとについて、画素値の相関を検出する。
【0591】
定常性方向導出部443は、誤差推定部442から供給された相関情報に基いて、相関の最も強い、注目画素の周辺のブロックの位置から、欠落した実世界1の光信号の定常性に対応する、入力画像における、基準軸を基準としたデータの定常性の角度を検出し、角度を示すデータ定常性情報を出力する。例えば、定常方向導出部443は、誤差推定部442から供給された相関情報に基いて、注目画素を中心とした5×5画素からなるブロックに対して最も相関の強い、5×5画素からなる2つのブロックに対する角度の範囲を、データの定常性の角度として検出し、検出された角度を示すデータ定常性情報を出力する。
【0592】
図95は、図94に示すデータ定常性検出部101のより詳細な構成を示すブロック図である。
【0593】
データ選択部441は、画素選択部461−1乃至画素選択部461−Lを含む。誤差推定部442は、推定誤差算出部462−1乃至推定誤差算出部462−Lを含む。定常方向導出部443は、最小誤差角度選択部463を含む。
【0594】
例えば、データ選択部441には、画素選択部461−1乃至画素選択部461−8が設けられる。例えば、誤差推定部442には、推定誤差算出部462−1乃至推定誤差算出部462−8が設けられる。
【0595】
画素選択部461−1乃至画素選択部461−Lのそれぞれは、注目画素を中心とした、所定の数の画素からなるブロック、並びに注目画素および基準軸を基準とした所定の角度の範囲に対応した、所定の数の画素からなる2つのブロックを抽出する。
【0596】
図96は、画素選択部461−1乃至画素選択部461−Lにより抽出される、5×5画素のブロックの例を説明する図である。図96における中央の位置は、注目画素の位置を示す。
【0597】
なお、5×5画素のブロックは、一例であって、ブロックに含まれる画素の数は、本発明を限定するものではない。
【0598】
例えば、画素選択部461−1は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、0度乃至18.4度および161.6度乃至180.0度の範囲に対応した、注目画素に対して、右側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Aで示す)を抽出し、注目画素に対して、左側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中A’で示す)を抽出する。画素選択部461−1は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−1に供給する。
【0599】
画素選択部461−2は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、18.4度乃至33.7度の範囲に対応した、注目画素に対して、右側に10画素移動し、上側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Bで示す)を抽出し、注目画素に対して、左側に10画素移動し、下側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中B’で示す)を抽出する。画素選択部461−2は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−2に供給する。
【0600】
画素選択部461−3は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、33.7度乃至56.3度の範囲に対応した、注目画素に対して、右側に5画素移動し、上側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Cで示す)を抽出し、注目画素に対して、左側に5画素移動し、下側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中C’で示す)を抽出する。画素選択部461−3は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−3に供給する。
【0601】
画素選択部461−4は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、56.3度乃至71.6度の範囲に対応した、注目画素に対して、右側に5画素移動し、上側に10画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Dで示す)を抽出し、注目画素に対して、左側に5画素移動し、下側に10画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中D’で示す)を抽出する。画素選択部461−4は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−4に供給する。
【0602】
画素選択部461−5は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、71.6度乃至108.4度の範囲に対応した、注目画素に対して、上側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Eで示す)を抽出し、注目画素に対して、下側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中E’で示す)を抽出する。画素選択部461−5は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−5に供給する。
【0603】
画素選択部461−6は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、108.4度乃至123.7度の範囲に対応した、注目画素に対して、左側に5画素移動し、上側に10画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Fで示す)を抽出し、注目画素に対して、右側に5画素移動し、下側に10画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中F’で示す)を抽出する。画素選択部461−6は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−6に供給する。
【0604】
画素選択部461−7は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、123.7度乃至146.3度の範囲に対応した、注目画素に対して、左側に5画素移動し、上側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Gで示す)を抽出し、注目画素に対して、右側に5画素移動し、下側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中G’で示す)を抽出する。画素選択部461−7は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−7に供給する。
【0605】
画素選択部461−8は、注目画素を中心とした、5×5画素のブロックを抽出すると共に、146.3度乃至161.6度の範囲に対応した、注目画素に対して、左側に10画素移動し、上側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中Hで示す)を抽出し、注目画素に対して、右側に10画素移動し、下側に5画素移動した位置にある画素を中心とした、5×5画素のブロック(図96中H’で示す)を抽出する。画素選択部461−8は、抽出した、5×5画素の3つのブロックを推定誤差算出部462−8に供給する。
【0606】
以下、注目画素を中心とした、所定の数の画素からなるブロックを注目ブロックと称する。
【0607】
以下、注目画素および基準軸を基準とした所定の角度の範囲に対応した、所定の数の画素からなるブロックを参照ブロックと称する。
【0608】
このように、画素選択部461−1乃至画素選択部461−8は、例えば、注目画素を中心として、25×25画素の範囲から、注目ブロックおよび参照ブロックを抽出する。
【0609】
推定誤差算出部462−1乃至推定誤差算出部462−Lは、画素選択部461−1乃至画素選択部461−Lから供給された、注目ブロックと、2つの参照ブロックとの相関を検出して、検出した相関を示す相関情報を最小誤差角度選択部463に供給する。
【0610】
例えば、推定誤差算出部462−1は、注目画素を中心とした、5×5画素からなる注目ブロックと、0度乃至18.4度および161.6度乃至180.0度の範囲に対応して抽出された、注目画素に対して、右側に5画素移動した位置にある画素を中心とした、5×5画素の参照ブロックとについて、注目ブロックに含まれる画素の画素値と、参照ブロックに含まれる画素の画素値との差分の絶対値を算出する。
【0611】
この場合において、推定誤差算出部462−1は、図97に示されるように、注目ブロックの中央の画素と参照ブロックの中央の画素とが重なる位置を基準として、画素値の差分の絶対値の算出に、注目画素の画素値が使用されるように、参照ブロックに対して、注目ブロックの位置を、左側に2画素乃至右側に2画素のいずれか、上側に2画素乃至下側に2画素のいずれか移動させた場合に重なる位置となる画素の画素値の差分の絶対値を算出する。すなわち、注目ブロックと参照ブロックとの25種類の位置における、対応する位置の画素の画素値の差分の絶対値が算出される。言い換えれば、画素値の差分の絶対値が算出される場合において、相対的に移動される注目ブロックおよび参照ブロックとからなる範囲は、9×9画素である。
【0612】
図97において、四角は、画素を示し、Aは、参照ブロックを示し、Bは、注目ブロックを示す。図97において、太線は、注目画素を示す。すなわち、図97は、参照ブロックに対して、注目ブロックが右側に2画素、および上側に1画素移動した場合の例を示す図である。
【0613】
さらに、推定誤差算出部462−1は、注目画素を中心とした、5×5画素からなる注目ブロックと、0度乃至18.4度および161.6度乃至180.0度の範囲に対応して抽出された、注目画素に対して、左側に5画素移動した位置にある画素を中心とした、5×5画素の参照ブロックとについて、注目ブロックに含まれる画素の画素値と、参照ブロックに含まれる画素の画素値との差分の絶対値を算出する。
【0614】
そして、推定誤差算出部462−1は、算出された差分の絶対値の和を求めて、差分の絶対値の和を、相関を示す相関情報として最小誤差角度選択部463に供給する。
【0615】
推定誤差算出部462−2は、5×5画素からなる注目ブロックと、18.4度乃至33.7度の範囲に対応して抽出された、5×5画素の2つの参照ブロックとについて、画素値の差分の絶対値を算出し、さらに、算出された差分の絶対値の和を算出する。推定誤差算出部462−1は、算出された差分の絶対値の和を、相関を示す相関情報として最小誤差角度選択部463に供給する。
【0616】
同様に、推定誤差算出部462−3乃至推定誤差算出部462−8のそれぞれは、5×5画素からなる注目ブロックと、所定の角度の範囲に対応して抽出された、5×5画素の2つの参照ブロックとについて、画素値の差分の絶対値を算出し、さらに、算出された差分の絶対値の和を算出する。推定誤差算出部462−3乃至推定誤差算出部462−8のそれぞれは、算出された差分の絶対値の和を、相関を示す相関情報として最小誤差角度選択部463に供給する。
【0617】
最小誤差角度選択部463は、推定誤差算出部462−1乃至推定誤差算出部462−8から供給された、相関情報としての画素値の差分の絶対値の和のうち、最も強い相関を示す、最小の値が得られた参照ブロックの位置から、2つの参照ブロックに対する角度をデータの定常性の角度として検出し、検出された角度を示すデータ定常性情報を出力する。
【0618】
ここで、参照ブロックの位置と、データの定常性の角度の範囲との関係について説明する。
【0619】
実世界の信号を近似する近似関数f(x)をn次の一次元多項式で近似した場合、近似関数f(x)は、式(30)で表すことができる。
【0620】
【数21】
Figure 2004246526
Figure 2004246526
【0621】
近似関数f(x)で近似される実世界1の信号の波形が、空間方向Yに対して一定の傾き(角度)を有する場合、式(30)における、xをx+γyとすることにより得られた式(31)で、実世界1の信号を近似する近似関数(x,y)は、表現される。
【0622】
【数22】
Figure 2004246526
Figure 2004246526
【0623】
γは、空間方向Yの位置の変化に対する、空間方向Xの位置の変化の割合を示す。以下、γをシフト量とも称する。
【0624】
図98は、注目画素の位置と、角度θを有する直線との空間方向Xの距離を0としたとき、すなわち、注目画素を直線が通るときの、注目画素の周辺の画素の位置と、角度θを有する直線との空間方向Xの距離を示す図である。ここで、画素の位置は、画素の中心の位置である。また、位置と直線との距離は、位置が直線に対して左側にあるとき、負の値で示され、位置が直線に対して右側にあるとき、正の値で示される。
【0625】
例えば、注目画素の右側に隣接する画素の位置、すなわち空間方向Xの座標xが1増加する位置と、角度θを有する直線との空間方向Xの距離は、1であり、注目画素の左側に隣接する画素の位置、すなわち空間方向Xの座標xが1減少する位置と、角度θを有する直線との空間方向Xの距離は、−1である。注目画素の上側に隣接する画素の位置、すなわち空間方向Yの座標yが1増加する位置と、角度θを有する直線との空間方向Xの距離は、−γであり、注目画素の下側に隣接する画素の位置、すなわち空間方向Yの座標yが1減少する位置と、角度θを有する直線との空間方向Xの距離は、γである。
【0626】
角度θが45度を超え、90度未満であり、シフト量γが、0を超え、1未満であるとき、シフト量γと角度θとの間には、γ=1/tanθの関係式が成り立つ。図99は、シフト量γと角度θとの関係を示す図である。
【0627】
ここで、シフト量γの変化に対する、注目画素の周辺の画素の位置と、注目画素を通り、角度θを有する直線との空間方向Xの距離の変化に注目する。
【0628】
図100は、シフト量γに対する、注目画素の周辺の画素の位置と、注目画素を通り、角度θを有する直線との空間方向Xの距離を示す図である。図100において、右上がりの一点鎖線は、シフト量γに対する、注目画素の下側に隣接する画素の位置と直線との空間方向Xの距離を示し、左下がりの一点鎖線は、シフト量γに対する、注目画素の上側に隣接する画素の位置と直線との空間方向Xの距離を示す。
【0629】
図100において、右上がりの二点鎖線は、シフト量γに対する、注目画素から、2画素下側で、1画素左側に位置する画素の位置と直線との空間方向Xの距離を示し、左下がりの二点鎖線は、シフト量γに対する、注目画素から、2画素上側で、1画素右側に位置する画素の位置と直線との空間方向Xの距離を示す。
【0630】
図100において、右上がりの三点鎖線は、シフト量γに対する、注目画素から、1画素下側で、1画素左側に位置する画素の位置と直線との空間方向Xの距離を示し、左下がりの三点鎖線は、シフト量γに対する、注目画素から、1画素上側で、1画素右側に位置する画素の位置と直線との空間方向Xの距離を示す。
【0631】
図100から、シフト量γに対して、距離が最も小さい画素がわかる。
【0632】
すなわち、シフト量γが0乃至1/3であるとき、注目画素の上側に隣接する画素および注目画素の下側に隣接する画素から、直線までの距離が最小である。すなわち、角度θが71.6度乃至90度であるとき、注目画素の上側に隣接する画素および注目画素の下側に隣接する画素から、直線までの距離が最小である。
【0633】
シフト量γが1/3乃至2/3であるとき、注目画素に対して、2画素上側で、1画素右側に位置する画素、および注目画素に対して、2画素下側で、1画素左側に位置する画素から、直線までの距離が最小である。すなわち、角度θが56.3度乃至71.6度であるとき、注目画素に対して、2画素上側で、1画素右側に位置する画素、および注目画素に対して、2画素下側で、1画素左側に位置する画素から、直線までの距離が最小である。
【0634】
また、シフト量γが2/3乃至1であるとき、注目画素に対して、1画素上側で、1画素右側に位置する画素、および注目画素に対して、1画素下側で、1画素左側に位置する画素から、直線までの距離が最小である。すなわち、角度θが45度乃至56.3度であるとき、注目画素に対して、1画素上側で、1画素右側に位置する画素、および注目画素に対して、1画素下側で、1画素左側に位置する画素から、直線までの距離が最小である。
【0635】
角度θが0度から45度までの範囲の直線と画素との関係も、同様に考えることができる。
【0636】
図98に示す画素を、注目ブロックおよび参照ブロックに置き換えて、参照ブロックと直線との空間方向Xの距離を考えることができる。
【0637】
図101に、注目画素を通り、空間方向Xの軸に対して角度θの直線との距離が最小の参照ブロックを示す。
【0638】
図101におけるA乃至HおよびA’乃至H’は、図96におけるA乃至HおよびA’乃至H’の参照ブロックを示す。
【0639】
すなわち、注目画素を通り、空間方向Xの軸を基準とした、0度乃至18.4度および161.6度乃至180.0度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とAおよびA’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、AおよびA’の参照ブロックとの相関が最も強いとき、注目ブロックと、AおよびA’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、0度乃至18.4度および161.6度乃至180.0度の範囲にあると言える。
【0640】
注目画素を通り、空間方向Xの軸を基準とした、18.4度乃至33.7度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とBおよびB’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、BおよびB’の参照ブロックとの相関が最も強いとき、注目ブロックと、BおよびB’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、18.4度乃至33.7度の範囲にあると言える。
【0641】
注目画素を通り、空間方向Xの軸を基準とした、33.7度乃至56.3度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とCおよびC’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、CおよびC’の参照ブロックとの相関が最も強いとき、注目ブロックと、CおよびC’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、33.7度乃至56.3度の範囲にあると言える。
【0642】
注目画素を通り、空間方向Xの軸を基準とした、56.3度乃至71.6度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とDおよびD’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、DおよびD’の参照ブロックとの相関が最も強いとき、注目ブロックと、DおよびD’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、56.3度乃至71.6度の範囲にあると言える。
【0643】
注目画素を通り、空間方向Xの軸を基準とした、71.6度乃至108.4度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とEおよびE’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、EおよびE’の参照ブロックとの相関が最も強いとき、注目ブロックと、EおよびE’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、71.6度乃至108.4度の範囲にあると言える。
【0644】
注目画素を通り、空間方向Xの軸を基準とした、108.4度乃至123.7度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とFおよびF’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、FおよびF’の参照ブロックとの相関が最も強いとき、注目ブロックと、FおよびF’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、108.4度乃至123.7度の範囲にあると言える。
【0645】
注目画素を通り、空間方向Xの軸を基準とした、123.7度乃至146.3度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とGおよびG’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、GおよびG’の参照ブロックとの相関が最も強いとき、注目ブロックと、GおよびG’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、123.7度乃至146.3度の範囲にあると言える。
【0646】
注目画素を通り、空間方向Xの軸を基準とした、146.3度乃至161.6度のいずれかの角度θを有する直線と、A乃至HおよびA’乃至H’の参照ブロックのそれぞれとの空間方向Xの距離のうち、直線とHおよびH’の参照ブロックとの距離が最小となる。従って、逆に考えれば、注目ブロックと、HおよびH’の参照ブロックとの相関が最も強いとき、注目ブロックと、HおよびH’の参照ブロックとを結ぶ方向に、一定の特徴が繰り返し現れているので、データの定常性の角度は、146.3度乃至161.6度の範囲にあると言える。
【0647】
このように、データ定常性検出部101は、注目ブロックと参照ブロックとの相関を基に、データの定常性の角度を検出することができる。
【0648】
なお、図94に構成を示すデータ定常性検出部101においては、データの定常性の角度の範囲をデータ定常性情報として出力するようにしても良く、データの定常性の角度の範囲を示す代表値をデータ定常性情報として出力するようにしても良い。例えば、データの定常性の角度の範囲の中央値を代表値とすることができる。
【0649】
さらに、図94に構成を示すデータ定常性検出部101は、相関が最も強い参照ブロックの周辺の参照ブロックの相関を利用することにより、検出するデータの定常性の角度の範囲を1/2に、すなわち、検出するデータの定常性の角度の分解能を2倍にすることができる。
【0650】
例えば、注目ブロックと、EおよびE’の参照ブロックとの相関が最も強いとき、最小誤差角度選択部463は、図102で示されるように、注目ブロックに対する、DおよびD’の参照ブロックの相関と、注目ブロックに対する、FおよびF’の参照ブロックの相関とを比較する。注目ブロックに対する、DおよびD’の参照ブロックの相関が、注目ブロックに対する、FおよびF’の参照ブロックの相関に比較して、強い場合、最小誤差角度選択部463は、データの定常性の角度に、71.6度乃至90度の範囲を設定する。また、この場合、最小誤差角度選択部463は、データの定常性の角度に、代表値として81度を設定するようにしてもよい。
【0651】
注目ブロックに対する、FおよびF’の参照ブロックの相関が、注目ブロックに対する、DおよびD’の参照ブロックの相関に比較して、強い場合、最小誤差角度選択部463は、データの定常性の角度に、90度乃至108.4度の範囲を設定する。また、この場合、最小誤差角度選択部463は、データの定常性の角度に、代表値として99度を設定するようにしてもよい。
【0652】
最小誤差角度選択部463は、同様の処理で、他の角度の範囲についても、検出するデータの定常性の角度の範囲を1/2にすることができる。
【0653】
尚、図102を参照して説明した手法を、簡易16方位検出手法とも称する。
【0654】
このように、図94に構成を示すデータ定常性検出部101は、簡単な処理で、より範囲の狭い、データの定常性の角度を検出することができる。
【0655】
次に、図103のフローチャートを参照して、ステップS101の処理に対応する、図94で構成が示されるデータ定常性検出部101による、データの定常性の検出の処理を説明する。
【0656】
ステップS441において、データ選択部441は、入力画像から、注目している画素である注目画素を選択する。例えば、データ選択部441は、入力画像から、ラスタスキャン順に、注目画素を選択する。
【0657】
ステップS442において、データ選択部441は、注目画素を中心とする所定の数の画素からなる注目ブロックを選択する。例えば、データ選択部441は、注目画素を中心とする5×5画素からなる注目ブロックを選択する。
【0658】
ステップS443において、データ選択部441は、注目画素の周辺の所定の位置の所定の数の画素からなる参照ブロックを選択する。例えば、データ選択部441は、注目画素および基準軸を基準とした所定の角度の範囲毎に、注目ブロックの大きさを基準とした、所定の位置の画素を中心とする5×5画素からなる参照ブロックを選択する。
【0659】
データ選択部441は、注目ブロックおよび参照ブロックを誤差推定部442に供給する。
【0660】
ステップS444において、誤差推定部442は、注目画素および基準軸を基準とした所定の角度の範囲毎に、注目ブロックと、角度の範囲に対応した参照ブロックとの相関を計算する。誤差推定部442は、算出された相関を示す相関情報を定常方向導出部443に供給する。
【0661】
ステップS445において、定常方向導出部443は、注目ブロックに対して、相関が最も強い参照ブロックの位置から、欠落した実世界1の光信号である画像の定常性に対応する、入力画像における、基準軸を基準としたデータの定常性の角度を検出する。
【0662】
定常方向導出部443は、検出したデータの定常性の角度を示すデータ定常性情報を出力する。
【0663】
ステップS446において、データ選択部441は、全ての画素の処理を終了したか否かを判定し、全ての画素の処理を終了していないと判定された場合、ステップS441に戻り、まだ注目画素として選択されていない画素から注目画素を選択して、上述した処理を繰り返す。
【0664】
ステップS446において、全ての画素の処理を終了したと判定された場合、処理は終了する。
【0665】
このように、図94に構成を示すデータ定常性検出部101は、より簡単な処理で、欠落した実世界1の光信号の定常性に対応する、画像データにおける、基準軸を基準としたデータの定常性の角度を検出することができる。また、図94に構成を示すデータ定常性検出部101は、入力画像の中の、比較的狭い範囲の画素の画素値を使用して、データの定常性の角度を検出することができるので、入力画像にノイズ等が含まれていても、より正確にデータの定常性の角度を検出することができる。
【0666】
なお、図94で構成が示されるデータ検出部101は、注目しているフレームである注目フレームの、注目している画素である注目画素について、注目フレームから、所定の数の画素からなる、注目画素を中心としたブロックと、注目画素の周辺の、それぞれ、所定の数の画素からなる複数のブロックとを抽出すると共に、注目フレームに対して時間的に前または後ろのフレームから、所定の数の画素からなる、注目画素に対応する位置の画素を中心としたブロックと、注目画素に対応する位置の画素の周辺の、それぞれ、所定の数の画素からなる複数のブロックとを抽出し、注目画素を中心としたブロックと空間的または時間的に周辺のブロックとの相関を検出し、相関に基づいて、入力画像における、時間方向および空間方向のデータの定常性の角度を検出するようにしてもよい。
【0667】
例えば、図104に示すように、データ選択部441は、注目フレームであるフレーム#nから注目画素を順に選択し、フレーム#nから、注目画素を中心とした、所定の数の画素からなるブロック、および、注目画素の周辺の、所定の数の画素からなる複数のブロックを抽出する。また、データ選択部441は、フレーム#n−1およびフレーム#n+1のそれぞれから、注目画素の位置に対応する位置の画素を中心とした、所定の数の画素からなるブロック、および、注目画素の位置に対応する位置の画素の周辺の、所定の数の画素からなる複数のブロックを抽出する。データ選択部441は、抽出したブロックを誤差推定部442に供給する。
【0668】
誤差推定部442は、データ選択部441から供給された、注目画素を中心としたブロックと、空間的または時間的に周辺のブロックとの相関を検出して、検出した相関を示す相関情報を定常方向導出部443に供給する。定常性方向導出部443は、誤差推定部442から供給された相関情報に基いて、相関の最も強い、空間的または時間的に周辺のブロックの位置から、欠落した実世界1の光信号の定常性に対応する、入力画像における、時間方向および空間方向のデータの定常性の角度を検出し、角度を示すデータ定常性情報を出力する。
【0669】
また、データ定常性検出部101は、入力画像のコンポーネント信号を基に、データの定常性の検出の処理を実行することができる。
【0670】
図105は、入力画像のコンポーネント信号を基に、データの定常性の検出の処理を実行するデータ定常性検出部101の構成を示すブロック図である。
【0671】
データ定常性検出部481−1乃至481−3のそれぞれは、上述した、または後述するデータ定常性検出部101と同様の構成を有し、入力画像のコンポーネント信号のそれぞれを処理の対象として、上述した、または後述する処理を実行する。
【0672】
データ定常性検出部481−1は、入力画像の第1のコンポーネント信号を基に、データの定常性を検出し、第1のコンポーネント信号から検出されたデータの定常性を示す情報を決定部482に供給する。例えば、データ定常性検出部481−1は、入力画像の輝度信号を基に、データの定常性を検出し、輝度信号から検出されたデータの定常性を示す情報を決定部482に供給する。
【0673】
データ定常性検出部481−2は、入力画像の第2のコンポーネント信号を基に、データの定常性を検出し、第2のコンポーネント信号から検出されたデータの定常性を示す情報を決定部482に供給する。例えば、データ定常性検出部481−2は、入力画像の色差信号であるI信号を基に、データの定常性を検出し、I信号から検出されたデータの定常性を示す情報を決定部482に供給する。
【0674】
データ定常性検出部481−3は、入力画像の第3のコンポーネント信号を基に、データの定常性を検出し、第3のコンポーネント信号から検出されたデータの定常性を示す情報を決定部482に供給する。例えば、データ定常性検出部481−2は、入力画像の色差信号であるQ信号を基に、データの定常性を検出し、Q信号から検出されたデータの定常性を示す情報を決定部482に供給する。
【0675】
決定部482は、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号から検出されたデータの定常性を示す情報を基に、入力画像における最終的なデータの定常性を検出して、検出したデータの定常性を示すデータ定常性情報を出力する。
【0676】
例えば、決定部482は、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号から検出されたデータの定常性のうち、最大のデータの定常性を最終的なデータの定常性とする。また、例えば、決定部482は、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号から検出されたデータの定常性のうち、最小のデータの定常性を最終的なデータの定常性とする。
【0677】
さらに、例えば、決定部482は、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号から検出されたデータの定常性の平均値を最終的なデータの定常性とする。決定部482は、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号から検出されたデータの定常性のメディアン(中央値)を最終的なデータの定常性とするようにしてもよい。
【0678】
また、例えば、決定部482は、外部から入力された信号を基に、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号から検出されたデータの定常性のうち、外部から入力された信号で指定されるデータの定常性を最終的なデータの定常性とする。決定部482は、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号から検出されたデータの定常性のうち、予め定めたデータの定常性を最終的なデータの定常性とするようにしてもよい。
【0679】
なお、決定部482は、データ定常性検出部481−1乃至481−3から供給された、各コンポーネント信号のデータの定常性の検出の処理で求めた誤差を基に、最終的なデータの定常性を決定するようにしてもよい。データの定常性の検出の処理で求められる誤差については、後述する。
【0680】
図106は、入力画像のコンポーネント信号を基に、データの定常性の検出の処理を実行するデータ定常性検出部101の他の構成を示す図である。
【0681】
コンポーネント処理部491は、入力画像のコンポーネント信号を基に、1つの信号を生成し、データ定常性検出部492に供給する。例えば、コンポーネント処理部491は、入力画像の各コンポーネント信号における値を、画面上で同じ位置の画素について、加算することにより、コンポーネント信号の値の和からなる信号を生成する。
【0682】
例えば、コンポーネント処理部491は、入力画像の各コンポーネント信号における画素値を、画面上で同じ位置の画素について、平均することにより、コンポーネント信号の画素値の平均値からなる信号を生成する。
【0683】
データ定常性検出部492は、コンポーネント処理部491から供給された、信号を基に、入力画像における、データの定常性を検出し、検出したデータの定常性を示すデータ定常性情報を出力する。
【0684】
データ定常性検出部492は、上述した、または後述するデータ定常性検出部101と同様の構成を有し、コンポーネント処理部491から供給された信号を対象として、上述した、または後述する処理を実行する。
【0685】
このように、データ定常性検出部101は、コンポーネント信号を基に、入力画像のデータの定常性を検出することにより、入力画像にノイズなどが含まれていても、より正確に、データの定常性を検出することができる。例えば、データ定常性検出部101は、コンポーネント信号を基に、入力画像のデータの定常性を検出することにより、より正確に、データの定常性の角度(傾き)、混合比、またはデータの定常性を有する領域を検出することができる。
【0686】
なお、コンポーネント信号は、輝度信号および色差信号に限らず、RGB信号、またはYUV信号など他の方式のコンポーネント信号であっても良い。
【0687】
以上のように、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データの、欠落した現実世界の光信号の定常性に対応するデータの定常性の、基準軸に対する角度を検出し、検出された角度に基づいて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定するようにした場合、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【0688】
また、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データの注目している注目画素および基準軸を基準とした角度毎に、所定の数の画素からなる画素の組であって、複数の組を抽出し、角度毎に抽出された、複数の組における対応する位置の画素の画素値の相関を検出し、検出された相関に基いて、欠落した現実世界の光信号の定常性に対応する、画像データにおける、基準軸を基準としたデータの定常性の角度を検出し、検出された画像データにおける基準軸に対するデータの定常性の角度に基づいて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定するようにした場合、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【0689】
図107は、データ定常性検出部101のさらに他の構成を示すブロック図である。
【0690】
図107に示されるデータ定常性検出部101においては、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データの注目している画素である注目画素に対応する領域が選択され、注目画素の画素値と、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数が設定されることにより、領域に属する画素の度数が検出され、検出された度数に基いて回帰線を検出することにより、欠落した現実世界の光信号の定常性に対応する、画像データのデータの定常性が検出される。
【0691】
フレームメモリ501は、入力画像をフレーム単位で記憶し、記憶されているフレームを構成する画素の画素値を画素取得部502に供給する。フレームメモリ501は、1つのページに入力画像の現在のフレームを記憶し、他のページに記憶している、現在のフレームに対して1つ前(過去)のフレームの画素の画素値を画素取得部502に供給し、入力画像のフレームの切り換えの時刻において、ページを切り換えることにより、画素取得部502に、動画である入力画像のフレームの画素の画素値を供給することができる。
【0692】
画素取得部502は、フレームメモリ501から供給された画素の画素値を基に、注目している画素である注目画素を選択し、選択された注目画素に対応する、所定の数の画素からなる領域を選択する。例えば、画素取得部502は、注目画素を中心とする5×5画素からなる領域を選択する。
【0693】
画素取得部502が選択する領域の大きさは、本発明を限定するものではない。
【0694】
画素取得部502は、選択した領域の画素の画素値を取得して、選択した領域の画素の画素値を度数検出部503に供給する。
【0695】
度数検出部503は、画素取得部502から供給された、選択された領域の画素の画素値を基に、注目画素の画素値と、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数を設定することにより、領域に属する画素の度数を検出する。度数検出部503における、相関値に基づく度数の設定の処理の詳細は、後述する。
【0696】
度数検出部503は、検出した度数を回帰直線演算部504に供給する。
【0697】
回帰直線演算部504は、度数検出部503から供給された度数に基づいて、回帰線を演算する。例えば、回帰直線演算部504は、度数検出部503から供給された度数に基づいて、回帰直線を演算する。また、例えば、回帰直線演算部504は、度数検出部503から供給された度数に基づいて、所定の曲線である回帰線を演算する。回帰直線演算部504は、演算された回帰線および演算の結果を示す演算結果パラメータを角度算出部505に供給する。演算パラメータが示す演算の結果には、後述する変動および共変動などが含まれる。
【0698】
角度算出部505は、回帰直線演算部504から供給された演算結果パラメータで示される、回帰線に基づいて、欠落した現実世界の光信号の定常性に対応する、画像データである入力画像のデータの定常性を検出する。例えば、角度算出部505は、回帰直線演算部504から供給された演算結果パラメータで示される、回帰直線に基づいて、欠落した実世界1の光信号の定常性に対応する、入力画像における、基準軸を基準としたデータの定常性の角度を検出する。角度算出部505は、力画像における、基準軸を基準としたデータの定常性の角度を示すデータ定常性情報を出力する。
【0699】
図108乃至図110を参照して、入力画像における、基準軸を基準としたデータの定常性の角度について説明する。
【0700】
図108において、丸は、1つの画素を示し、2重丸は、注目画素を示す。丸の色は、画素の画素値の概略を示し、より明るい色は、より大きい画素値を示す。例えば、黒は、30である画素値を示し、白は、120である画素値を示す。
【0701】
図108で示される画素からなる画像を人間が見た場合、画像を見た人間は、斜め右上方向に直線が伸びていると認識することができる。
【0702】
図107に構成を示すデータ定常性検出部101は、図108で示される画素からなる入力画像を入力したとき、斜め右上方向に直線が伸びていることを検出する。
【0703】
図109は、図108で示される画素の画素値を数値で表した図である。丸は、1つの画素を示し、丸の中の数値は、画素値を示す。
【0704】
例えば、注目画素の画素値は、120であり、注目画素の上側の画素の画素値は、100であり、注目画素の下側の画素の画素値は、100である。また、注目画素の左側の画素の画素値は、80であり、注目画素の右側の画素の画素値は、80である。同様に、注目画素の左下側の画素の画素値は、100であり、注目画素の右上側の画素の画素値は、100である。注目画素の左上側の画素の画素値は、30であり、注目画素の右下側の画素の画素値は、30である。
【0705】
図107に構成を示すデータ定常性検出部101は、図109で示される入力画像に対して、図110で示されるように、回帰直線Aを引く。
【0706】
図111は、入力画像における、画素の空間方向の位置に対する、画素値の変化と、回帰直線Aとの関係を示す図である。データの定常性を有する領域における画素の画素値は、例えば、図111に示すように、山脈状に変化している。
【0707】
図107に構成を示すデータ定常性検出部101は、データの定常性を有する領域における画素の画素値を重みとして、最小自乗法により回帰直線Aを引く。データ定常性検出部101により求められた回帰直線Aは、注目画素の周辺におけるデータの定常性を表現している。
【0708】
入力画像における、基準軸を基準としたデータの定常性の角度は、図112で示されるように、回帰直線Aと、例えば、基準軸である空間方向Xを示す軸との角度θを求めることにより、検出される。
【0709】
次に、図107に構成を示すデータ定常性検出部101における、回帰直線の具体的な算出方法について説明する。
【0710】
度数検出部503は、例えば、画素取得部502から供給された、注目画素を中心とする、空間方向Xに9画素、空間方向Yに5画素、計45画素からなる領域の画素の画素値から、領域に属する画素の座標に対応する度数を検出する。
【0711】
例えば、度数検出部503は、式(32)で示される演算により、度数を算出することにより、領域に属する、座標(x,y)の度数Li,jを検出する。
【0712】
【数23】
Figure 2004246526
Figure 2004246526
【0713】
式(32)において、P0,0は、注目画素の画素値を示し、Pi,jは、座標(x,y)の画素の画素値を示す。Thは、閾値を示す。
【0714】
iは、領域内における、空間方向Xの画素の順番を示し、1≦i≦kである。jは、領域内における、空間方向Yの画素の順番を示し、1≦j≦lである。
【0715】
kは、領域における、空間方向Xの画素の数を示し、lは、領域における、空間方向Yの画素の数を示す。例えば、領域が、空間方向Xに9画素、空間方向Yに5画素、計45画素からなるとき、Kは、9であり、lは、5である。
【0716】
図113は、画素取得部502において取得される領域の例を示す図である。図113において、点線の四角は、1つの画素を示す。
【0717】
例えば、図113で示されるように、領域が、空間方向Xについて、注目画素を中心とした9画素、空間方向Yについて、注目画素を中心とした5画素からなり、注目画素の座標(x,y)が(0,0)であるとき、領域の左上の画素の座標(x,y)は、(−4,2)であり、領域の右上の画素の座標(x,y)は、(4,2)であり、領域の左下の画素の座標(x,y)は、(−4,−2)であり、領域の右下の画素の座標(x,y)は、(4,−2)である。
【0718】
領域の左側の画素の、空間方向Xにおける、画素の順番iは、1であり、領域の右側の画素の、空間方向Xにおける、画素の順番iは、9である。領域の下側の画素の、空間方向Yにおける、画素の順番jは、1であり、領域の上側の画素の、空間方向Yにおける、画素の順番jは、5である。
【0719】
すなわち、注目画素の座標(x,y)を(0,0)としたとき、領域の左上の画素の座標(x,y)は、(−4,2)であり、領域の右上の画素の座標(x,y)は、(4,2)であり、領域の左下の画素の座標(x,y)は、(−4,−2)であり、領域の右下の画素の座標(x,y)は、(4,−2)である。
【0720】
度数検出部503は、式(32)において、相関値として、注目画素の画素値と、領域に属する画素の画素値との差分の絶対値を算出するので、実世界1の細線の画像が射影された、入力画像における、データの定常性を有する領域のみならず、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像が射影された、入力画像における、2値エッジのデータの定常性を有する領域における、画素値の空間的な変化の特徴を示す度数を検出することができる。
【0721】
なお、度数検出部503は、画素の画素値との差分の絶対値に限らず、相関係数など他の相関値を基に、度数を検出するようにしてもよい。
【0722】
また、式(32)において、指数関数を適用しているのは、画素値の差に対して、度数に大きく差をつけるためであり、他の関数を適用するようにしてもよい。
【0723】
閾値Thは、任意の値とすることができる。例えば、閾値Thは、30とすることができる。
【0724】
このように、度数検出部503は、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数を設定することにより、領域に属する画素の度数を検出する。
【0725】
また、例えば、度数検出部503は、式(33)で示される演算により、度数を算出することにより、領域に属する、座標(x,y)の度数Li,jを検出する。
【0726】
【数24】
Figure 2004246526
Figure 2004246526
【0727】
座標(x,y)における度数をLi,j(1≦i≦k,1≦j≦l)としたとき、座標xにおける、空間方向Yの度数Li,jの和qは、式(34)で表され、座標yにおける、空間方向Xの度数Li,jの和hは、式(35)で表される。
【0728】
【数25】
Figure 2004246526
Figure 2004246526
【0729】
【数26】
Figure 2004246526
Figure 2004246526
【0730】
度数の総和uは、式(36)で表される。
【0731】
【数27】
Figure 2004246526
Figure 2004246526
【0732】
図113で示される例において、注目画素の座標の度数L5,3は、3であり、注目画素の上側の画素の座標の度数L5,4は、1であり、注目画素の右上側の画素の座標の度数L6,4は、4であり、注目画素に対して、2画素上側であって、1画素右側の画素の座標の度数L6,5は、2であり、注目画素に対して、2画素上側であって、2画素右側の画素の座標の度数L7,5は、3である。また、注目画素の下側の画素の座標の度数L5,2は、2であり、注目画素の左側の画素の座標の度数L4,3は、1であり、注目画素の左下側の画素の座標の度数L4,2は、3であり、注目画素に対して、1画素下側であって、2画素左側の画素の座標の度数L3,2は、2であり、注目画素に対して、2画素下側であって、2画素左側の画素の座標の度数L3,1は、4である。図113で示される領域の他の画素の座標の度数は、0であり、図113において、0である度数の記載は省略する。
【0733】
図113で示される領域において、空間方向Yの度数の和qは、iが1である度数Lが全て0なので、0であり、qは、iが2である度数Lが全て0なので、0である。qは、度数L3,2が2であり、度数L3,1が4なので、6である。同様に、qは、4であり、qは、6であり、qは、6であり、qは、3であり、qは、0であり、qは、0である。
【0734】
図113で示される領域において、空間方向Xの度数の和hは、度数L3,1が4なので、4である。hは、度数L3,2が2であり、度数L4,2が3であり、度数L5,2が2なので、7である。同様に、hは、4であり、hは、5であり、hは、5である。
【0735】
図113で示される領域において、度数の総和uは、25である。
【0736】
空間方向Yの度数Li,jの和qに、座標xを乗じた結果を加算した和Tは、式(37)で表される。
【0737】
【数28】
Figure 2004246526
Figure 2004246526
【0738】
空間方向Xの度数Li,jの和hに、座標yを乗じた結果を加算した和Tは、式(37)で表される。
【0739】
【数29】
Figure 2004246526
Figure 2004246526
【0740】
例えば、図113で示される領域において、qが0であり、xが−4なので、qは0であり、qが0であり、xが−3なので、qは0である。同様に、qが6であり、xが−2なので、qは−12であり、qが4であり、xが−1なので、qは、−4であり、qが6であり、xが0なので、qは0である。同様に、qが6であり、xが1なので、qは6であり、qが3であり、xが2なので、qは6であり、qが0であり、xが3なので、qは0であり、qが0であり、xが4なので、qは0である。従って、q乃至qの和であるTは、−4である。
【0741】
例えば、図113で示される領域において、hが4であり、yが−2なので、hは−8であり、hが7であり、yが−1なので、hは−7である。同様に、hが4であり、yが0なので、hは0であり、hが5であり、yが1なので、hは、5であり、hが5であり、yが2なので、hは10である。従って、h乃至hの和であるTは、0である。
【0742】
また、Qを以下のように定義する。
【0743】
【数30】
Figure 2004246526
Figure 2004246526
【0744】
xの変動Sは、式(40)で表される。
【0745】
【数31】
Figure 2004246526
Figure 2004246526
【0746】
yの変動Sは、式(41)で表される。
【0747】
【数32】
Figure 2004246526
Figure 2004246526
【0748】
共変動Sxyは、式(42)で表される。
【0749】
【数33】
Figure 2004246526
Figure 2004246526
【0750】
式(43)に示す1次の回帰直線を求めることを考える。
【0751】
y=ax+b ・・・(43)
【0752】
傾きaおよび切片bは、最小自乗法により、以下のように求めることができる。
【0753】
【数34】
Figure 2004246526
Figure 2004246526
【0754】
【数35】
Figure 2004246526
Figure 2004246526
【0755】
ただし、正しい回帰直線を求めるための必要条件は、度数Li,jが、回帰直線に対して、ガウス分布状に、分布していることである。逆に言えば、度数検出部503は、度数Li,jがガウス分布するように、領域の画素の画素値を度数Li,jに変換する必要がある。
【0756】
回帰直線演算部504は、式(44)および式(45)で示される演算を実行して、回帰直線を求める。
【0757】
角度算出部505は、式(46)に示す演算により、回帰直線の傾きaを、基準軸である空間方向Xの軸に対する角度θに変換する。
【0758】
θ=tan−1(a) ・・・(46)
【0759】
なお、回帰直線演算部504が所定の曲線である回帰線を演算する場合、角度算出部505は、基準軸に対する、注目画素の位置における回帰線の角度θを求める。
【0760】
ここで、画素毎にデータの定常性を検出するためには、切片bは、不要である。そこで、式(47)に示す1次の回帰直線を求めることを考える。
【0761】
y=ax ・・・(47)
【0762】
この場合、回帰直線演算部504は、最小自乗法により、傾きaを式(48)で求めることができる。
【0763】
【数36】
Figure 2004246526
Figure 2004246526
【0764】
図114のフローチャートを参照して、ステップS101の処理に対応する、図107で構成が示されるデータ定常性検出部101による、データの定常性の検出の処理を説明する。
【0765】
ステップS501において、画素取得部502は、まだ注目画素とされていない画素の中から注目画素を選択する。例えば、画素取得部502は、ラスタスキャン順に、注目画素を選択する。ステップS502において、画素取得部502は、注目画素を中心とする領域に含まれる画素の画素値を取得し、取得した画素の画素値を度数検出部503に供給する。例えば、画素取得部502は、注目画素を中心とした、9×5画素からなる領域を選択し、領域に含まれる画素の画素値を取得する。
【0766】
ステップS503において、度数検出部503は、領域に含まれる画素の画素値を度数に変換することにより、度数を検出する。例えば、度数検出部503は、式(32)に示される演算により、画素値を度数Li,jに変換する。この場合において、度数Li,jがガウス分布するように、領域の画素の画素値が度数Li,jに変換される。度数検出部503は、変換された度数を回帰直線演算部504に供給する。
【0767】
ステップS504において、回帰直線演算部504は、度数検出部503から供給された度数を基に、回帰線を求める。例えば、回帰直線演算部504は、度数検出部503から供給された度数を基に、回帰直線を求める。より具体的には、回帰直線演算部504は、式(44)および式(45)で示される演算を実行して、回帰直線を求める。回帰直線演算部504は、算出された結果である回帰直線を示す演算結果パラメータを角度算出部505に供給する。
【0768】
ステップS505において、角度算出部505は、基準軸に対する回帰直線の角度を算出することにより、欠落した現実世界の光信号の定常性に対応する、画像データのデータの定常性を検出する。例えば、角度算出部505は、式(46)に示す演算により、回帰直線の傾きaを、基準軸である空間方向Xの軸に対する角度θに変換する。角度算出部505は、基準軸に対する回帰直線の角度を示すデータ定常性情報を出力する。
【0769】
なお、角度算出部505は、傾きaを示すデータ定常性情報を出力するようにしてもよい。
【0770】
ステップS506において、画素取得部502は、全ての画素の処理を終了したか否かを判定し、全ての画素の処理を終了していないと判定された場合、ステップS501に戻り、まだ注目画素として選択されていない画素から注目画素を選択して、上述した処理を繰り返す。
【0771】
ステップS506において、全ての画素の処理を終了したと判定された場合、処理は終了する。
【0772】
このように、図107に構成を示すデータ定常性検出部101は、欠落した実世界1の光信号の定常性に対応する、画像データにおける、基準軸を基準としたデータの定常性の角度を検出することができる。
【0773】
特に、図107に構成を示すデータ定常性検出部101は、比較的狭い領域の画素の画素値を基に、画素以下の角度を求めることができる。
【0774】
以上のように、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データの注目している画素である注目画素に対応する領域を選択し、注目画素の画素値と、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数を設定することにより、領域に属する画素の度数を検出し、検出された度数に基いて回帰線を検出することにより、欠落した現実世界の光信号の定常性に対応する、画像データのデータの定常性を検出し、検出された画像データのデータの定常性に基いて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定するようにした場合、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【0775】
なお、図107に構成を示すデータ定常性検出部101は、注目画素の属する注目フレームと、注目フレームの時間的に前後のフレームについて、所定の領域に属する画素の画素値を度数に変換し、度数を基に、回帰平面を求めるようにすれば、空間方向のデータの定常性の角度と共に、時間方向のデータの定常性の角度を検出することができる。
【0776】
図115は、データ定常性検出部101のさらに他の構成を示すブロック図である。
【0777】
図115に示されるデータ定常性検出部101においては、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データの注目している画素である注目画素に対応する領域が選択され、注目画素の画素値と、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数が設定されることにより、領域に属する画素の度数が検出され、検出された度数に基いて回帰線を検出することにより、欠落した現実世界の光信号の定常性に対応する、画像データにおけるデータの定常性を有する領域を検出する。
【0778】
フレームメモリ601は、入力画像をフレーム単位で記憶し、記憶されているフレームを構成する画素の画素値を画素取得部602に供給する。フレームメモリ601は、1つのページに入力画像の現在のフレームを記憶し、他のページに記憶している、現在のフレームに対して1つ前(過去)のフレームの画素の画素値を画素取得部602に供給し、入力画像のフレームの切り換えの時刻において、ページを切り換えることにより、画素取得部602に、動画である入力画像のフレームの画素の画素値を供給することができる。
【0779】
画素取得部602は、フレームメモリ601から供給された画素の画素値を基に、注目している画素である注目画素を選択し、選択された注目画素に対応する、所定の数の画素からなる領域を選択する。例えば、画素取得部602は、注目画素を中心とする5×5画素からなる領域を選択する。
【0780】
画素取得部602が選択する領域の大きさは、本発明を限定するものではない。
【0781】
画素取得部602は、選択した領域の画素の画素値を取得して、選択した領域の画素の画素値を度数検出部603に供給する。
【0782】
度数検出部603は、画素取得部602から供給された、選択された領域の画素の画素値を基に、注目画素の画素値と、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数を設定することにより、領域に属する画素の度数を検出する。度数検出部603における、相関値に基づく度数の設定の処理の詳細は、後述する。
【0783】
度数検出部603は、検出した度数を回帰直線演算部604に供給する。
【0784】
回帰直線演算部604は、度数検出部603から供給された度数に基づいて、回帰線を演算する。例えば、回帰直線演算部604は、度数検出部603から供給された度数に基づいて、回帰直線を演算する。また、例えば、回帰直線演算部604は、度数検出部603から供給された度数に基づいて、所定の曲線である回帰線を演算する。回帰直線演算部604は、演算された回帰線および演算の結果を示す演算結果パラメータを領域算出部605に供給する。演算パラメータが示す演算の結果には、後述する変動および共変動などが含まれる。
【0785】
領域算出部605は、回帰直線演算部604から供給された演算結果パラメータで示される、回帰線に基づいて、欠落した現実世界の光信号の定常性に対応する、画像データである入力画像においてデータの定常性を有する領域を検出する。
【0786】
図116は、入力画像における、画素の空間方向の位置に対する、画素値の変化と、回帰直線Aとの関係を示す図である。データの定常性を有する領域における画素の画素値は、例えば、図116に示すように、山脈状に変化している。
【0787】
図115に構成を示すデータ定常性検出部101は、データの定常性を有する領域における画素の画素値を重みとして、最小自乗法により回帰直線Aを引く。データ定常性検出部101により求められた回帰直線Aは、注目画素の周辺におけるデータの定常性を表現している。
【0788】
回帰直線を引くということは、ガウス関数を前提とした近似を意味する。図117に示すように、図115に構成を示すデータ定常性検出部101は、例えば、標準偏差を求めることで、細線の画像が射影された、データ3における領域の、おおよその幅を知ることができる。また、例えば、図115に構成を示すデータ定常性検出部101は、相関係数を基に、細線の画像が射影された、データ3における領域の、おおよその幅を知ることができる。
【0789】
次に、図115に構成を示すデータ定常性検出部101における、回帰直線の具体的な算出方法について説明する。
【0790】
度数検出部603は、例えば、画素取得部602から供給された、注目画素を中心とする、空間方向Xに9画素、空間方向Yに5画素、計45画素からなる領域の画素の画素値から、領域に属する画素の座標に対応する度数を検出する。
【0791】
例えば、度数検出部603は、式(49)で示される演算により、度数を算出することにより、領域に属する、座標(x,y)の度数Li,jを検出する。
【0792】
【数37】
Figure 2004246526
Figure 2004246526
【0793】
式(49)において、P0,0は、注目画素の画素値を示し、Pi,jは、座標(x,y)の画素の画素値を示す。Thは、閾値を示す。
【0794】
iは、領域内における、空間方向Xの画素の順番を示し、1≦i≦kである。jは、領域内における、空間方向Yの画素の順番を示し、1≦j≦lである。
【0795】
kは、領域における、空間方向Xの画素の数を示し、lは、領域における、空間方向Yの画素の数を示す。例えば、領域が、空間方向Xに9画素、空間方向Yに5画素、計45画素からなるとき、Kは、9であり、lは、5である。
【0796】
図118は、画素取得部602において取得される領域の例を示す図である。図118において、点線の四角は、1つの画素を示す。
【0797】
例えば、図118で示されるように、領域が、空間方向Xについて、注目画素を中心とした9画素、空間方向Yについて、注目画素を中心とした5画素からなり、注目画素の座標(x,y)が(0,0)であるとき、領域の左上の画素の座標(x,y)は、(−4,2)であり、領域の右上の画素の座標(x,y)は、(4,2)であり、領域の左下の画素の座標(x,y)は、(−4,−2)であり、領域の右下の画素の座標(x,y)は、(4,−2)である。
【0798】
領域の左側の画素の、空間方向Xにおける、画素の順番iは、1であり、領域の右側の画素の、空間方向Xにおける、画素の順番iは、9である。領域の下側の画素の、空間方向Yにおける、画素の順番jは、1であり、領域の上側の画素の、空間方向Yにおける、画素の順番jは、5である。
【0799】
すなわち、注目画素の座標(x,y)を(0,0)としたとき、領域の左上の画素の座標(x,y)は、(−4,2)であり、領域の右上の画素の座標(x,y)は、(4,2)であり、領域の左下の画素の座標(x,y)は、(−4,−2)であり、領域の右下の画素の座標(x,y)は、(4,−2)である。
【0800】
度数検出部603は、式(49)において、相関値として、注目画素の画素値と、領域に属する画素の画素値との差分の絶対値を算出するので、実世界1の細線の画像が射影された、入力画像における、データの定常性を有する領域のみならず、背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像が射影された、入力画像における、2値エッジのデータの定常性を有する領域における、画素値の空間的な変化の特徴を示す度数を検出することができる。
【0801】
なお、度数検出部603は、画素の画素値との差分の絶対値に限らず、相関係数など他の相関値を基に、度数を検出するようにしてもよい。
【0802】
また、式(49)において、指数関数を適用しているのは、画素値の差に対して、度数に大きく差をつけるためであり、他の関数を適用するようにしてもよい。
【0803】
閾値Thは、任意の値とすることができる。例えば、閾値Thは、30とすることができる。
【0804】
このように、度数検出部603は、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数を設定することにより、領域に属する画素の度数を検出する。
【0805】
また、例えば、度数検出部603は、式(50)で示される演算により、度数を算出することにより、領域に属する、座標(x,y)の度数Li,jを検出する。
【0806】
【数38】
Figure 2004246526
Figure 2004246526
【0807】
座標(x,y)における度数をLi,j(1≦i≦k,1≦j≦l)としたとき、座標xにおける、空間方向Yの度数Li,jの和qは、式(51)で表され、座標yにおける、空間方向Xの度数Li,jの和hは、式(52)で表される。
【0808】
【数39】
Figure 2004246526
Figure 2004246526
【0809】
【数40】
Figure 2004246526
Figure 2004246526
【0810】
度数の総和uは、式(53)で表される。
【0811】
【数41】
Figure 2004246526
Figure 2004246526
【0812】
図118で示される例において、注目画素の座標の度数L5,3は、3であり、注目画素の上側の画素の座標の度数L5,4は、1であり、注目画素の右上側の画素の座標の度数L6,4は、4であり、注目画素に対して、2画素上側であって、1画素右側の画素の座標の度数L6,5は、2であり、注目画素に対して、2画素上側であって、2画素右側の画素の座標の度数L7,5は、3である。また、注目画素の下側の画素の座標の度数L5,2は、2であり、注目画素の左側の画素の座標の度数L4,3は、1であり、注目画素の左下側の画素の座標の度数L4,2は、3であり、注目画素に対して、1画素下側であって、2画素左側の画素の座標の度数L3,2は、2であり、注目画素に対して、2画素下側であって、2画素左側の画素の座標の度数L3,1は、4である。図118で示される領域の他の画素の座標の度数は、0であり、図118において、0である度数の記載は省略する。
【0813】
図118で示される領域において、空間方向Yの度数の和qは、iが1である度数Lが全て0なので、0であり、qは、iが2である度数Lが全て0なので、0である。qは、度数L3,2が2であり、度数L3,1が4なので、6である。同様に、qは、4であり、qは、6であり、qは、6であり、qは、3であり、qは、0であり、qは、0である。
【0814】
図118で示される領域において、空間方向Xの度数の和hは、度数L3,1が4なので、4である。hは、度数L3,2が2であり、度数L4,2が3であり、度数L5,2が2なので、7である。同様に、hは、4であり、hは、5であり、hは、5である。
【0815】
図118で示される領域において、度数の総和uは、25である。
【0816】
空間方向Yの度数Li,jの和qに、座標xを乗じた結果を加算した和Tは、式(54)で表される。
【0817】
【数42】
Figure 2004246526
Figure 2004246526
【0818】
空間方向Xの度数Li,jの和hに、座標yを乗じた結果を加算した和Tは、式(55)で表される。
【0819】
【数43】
Figure 2004246526
Figure 2004246526
【0820】
例えば、図118で示される領域において、qが0であり、xが−4なので、qは0であり、qが0であり、xが−3なので、qは0である。同様に、qが6であり、xが−2なので、qは−12であり、qが4であり、xが−1なので、qは、−4であり、qが6であり、xが0なので、qは0である。同様に、qが6であり、xが1なので、qは6であり、qが3であり、xが2なので、qは6であり、qが0であり、xが3なので、qは0であり、qが0であり、xが4なので、qは0である。従って、q乃至qの和であるTは、−4である。
【0821】
例えば、図118で示される領域において、hが4であり、yが−2なので、hは−8であり、hが7であり、yが−1なので、hは−7である。同様に、hが4であり、yが0なので、hは0であり、hが5であり、yが1なので、hは、5であり、hが5であり、yが2なので、hは10である。従って、h乃至hの和であるTは、0である。
【0822】
また、Qを以下のように定義する。
【0823】
【数44】
Figure 2004246526
Figure 2004246526
【0824】
xの変動Sは、式(57)で表される。
【0825】
【数45】
Figure 2004246526
Figure 2004246526
【0826】
yの変動Sは、式(58)で表される。
【0827】
【数46】
Figure 2004246526
Figure 2004246526
【0828】
共変動Sxyは、式(59)で表される。
【0829】
【数47】
Figure 2004246526
Figure 2004246526
【0830】
式(60)に示す1次の回帰直線を求めることを考える。
【0831】
y=ax+b ・・・(60)
【0832】
傾きaおよび切片bは、最小自乗法により、以下のように求めることができる。
【0833】
【数48】
Figure 2004246526
Figure 2004246526
【0834】
【数49】
Figure 2004246526
Figure 2004246526
【0835】
ただし、正しい回帰直線を求めるための必要条件は、度数Li,jが、回帰直線に対して、ガウス分布状に、分布していることである。逆に言えば、度数検出部603は、度数Li,jがガウス分布するように、領域の画素の画素値を度数Li,jに変換する必要がある。
【0836】
回帰直線演算部604は、式(61)および式(62)で示される演算を実行して、回帰直線を求める。
【0837】
また、画素毎にデータの定常性を検出するためには、切片bは、不要である。そこで、式(63)に示す1次の回帰直線を求めることを考える。
【0838】
y=ax ・・・(63)
【0839】
この場合、回帰直線演算部604は、最小自乗法により、傾きaを式(64)で求めることができる。
【0840】
【数50】
Figure 2004246526
Figure 2004246526
【0841】
データの定常性を有する領域を特定する第1の手法においては、式(60)に示す回帰直線の推定誤差が利用される。
【0842】
yの変動Sy・xは、式(65)で示される演算で求められる。
【0843】
【数51】
Figure 2004246526
Figure 2004246526
【0844】
推定誤差の分散は、変動を用いて、式(66)で示される演算で求められる。
【0845】
【数52】
Figure 2004246526
Figure 2004246526
【0846】
よって、標準偏差は、以下の式で導出される。
【0847】
【数53】
Figure 2004246526
Figure 2004246526
【0848】
ただし、標準偏差は、細線の画像が射影された領域を対象とする場合、細線の幅に値する量なので、一概に、標準偏差が大きいことをもって、データの定常を有する領域ではないという判断をすることはできない。しかしながら、例えば、クラス分類適応処理が破綻するのは、データの定常を有する領域の中でも、細線の幅が狭い部分なので、クラス分類適応処理が破綻する可能性が大きい領域を検出するために、標準偏差を用いて検出された領域を示す情報を利用することができる。
【0849】
領域算出部605は、式(67)で示される演算により、標準偏差を算出して、標準偏差を基に、入力画像における、データの定常性を有する領域を算出する。例えば、領域算出部605は、標準偏差に所定の係数を乗じて距離を求め、回帰直線から、求めた距離以内の領域を、データの定常性を有する領域とする。例えば、領域算出部605は、回帰直線を中心として、回帰直線から標準偏差以内の距離の領域を、データの定常性を有する領域として算出する。
【0850】
第2の手法においては、度数の相関をデータの定常を有する領域の検出に用いる。
【0851】
相関係数rxyは、xの変動S、yの変動S、および共変動Sxyを基に、式(68)で示される演算で求めることができる。
【0852】
【数54】
Figure 2004246526
Figure 2004246526
【0853】
相関には、正の相関と負の相関があるので、領域算出部605は、相関係数rxyの絶対値を求めて、相関係数rxyの絶対値が1に近いほど、相関が強いと判定する。より具体的には、領域算出部605は、閾値と、相関係数rxyの絶対値とを比較し、相関係数rxyの絶対値が閾値以上である領域を、データの定常性を有する領域として検出する。
【0854】
図119のフローチャートを参照して、ステップS101の処理に対応する、図115で構成が示されるデータ定常性検出部101による、データの定常性の検出の処理を説明する。
【0855】
ステップS601において、画素取得部602は、まだ注目画素とされていない画素の中から注目画素を選択する。例えば、画素取得部602は、ラスタスキャン順に、注目画素を選択する。ステップS602において、画素取得部602は、注目画素を中心とする領域に含まれる画素の画素値を取得し、取得した画素の画素値を度数検出部603に供給する。例えば、画素取得部602は、注目画素を中心とした、9×5画素からなる領域を選択し、領域に含まれる画素の画素値を取得する。
【0856】
ステップS603において、度数検出部603は、領域に含まれる画素の画素値を度数に変換することにより、度数を検出する。例えば、度数検出部603は、式(49)で示される演算により、画素値を度数Li,jに変換する。この場合において、度数Li,jがガウス分布状に分布するように、領域の画素の画素値が度数Li,jに変換される。度数検出部603は、変換された度数を回帰直線演算部604に供給する。
【0857】
ステップS604において、回帰直線演算部604は、度数検出部503から供給された度数を基に、回帰線を求める。例えば、回帰直線演算部604は、度数検出部603から供給された度数を基に、回帰直線を求める。より具体的には、回帰直線演算部604は、式(61)および式(62)で示される演算を実行して、回帰直線を求める。回帰直線演算部604は、算出された結果である回帰直線を示す演算結果パラメータを領域算出部605に供給する。
【0858】
ステップS605において、領域算出部605は、回帰直線についての標準偏差を算出する。例えば、領域算出部605は、式(67)に示す演算により、回帰直線に対する標準偏差を算出する。
【0859】
ステップS606において、領域算出部605は、標準偏差から、入力画像における、データの定常性を有する領域を特定する。例えば、領域算出部605は、標準偏差に所定の係数を乗じて距離を求め、回帰直線から、求めた距離以内の領域を、データの定常性を有する領域として特定する。
【0860】
領域算出部605は、データの定常性を有する領域を示すデータ定常性情報を出力する。
【0861】
ステップS607において、画素取得部602は、全ての画素の処理を終了したか否かを判定し、全ての画素の処理を終了していないと判定された場合、ステップS601に戻り、まだ注目画素として選択されていない画素から注目画素を選択して、上述した処理を繰り返す。
【0862】
ステップS607において、全ての画素の処理を終了したと判定された場合、処理は終了する。
【0863】
図120のフローチャートを参照して、ステップS101の処理に対応する、図115で構成が示されるデータ定常性検出部101による、データの定常性の検出の他の処理を説明する。ステップS621乃至ステップS624の処理は、ステップS601乃至ステップS604の処理と同様なので、その説明は省略する。
【0864】
ステップS625において、領域算出部605は、回帰直線についての相関係数を算出する。例えば、領域算出部605は、式(68)で示される演算により、回帰直線に対する相関係数を算出する。
【0865】
ステップS626において、領域算出部605は、相関係数から、入力画像における、データの定常性を有する領域を特定する。例えば、領域算出部605は、予め記憶している閾値と相関係数の絶対値とを比較し、相関係数の絶対値が閾値以上である領域を、データの定常性を有する領域として特定する。
【0866】
領域算出部605は、データの定常性を有する領域を示すデータ定常性情報を出力する。
【0867】
ステップS627の処理は、ステップS607の処理と同様なので、その説明は省略する。
【0868】
このように、図115に構成を示すデータ定常性検出部101は、欠落した実世界1の光信号の定常性に対応する、画像データにおける、データの定常性を有する領域を検出することができる。
【0869】
以上のように、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データの注目している画素である注目画素に対応する領域を選択し、注目画素の画素値と、選択された領域に属する画素の画素値との相関値が閾値以上である画素に、相関値に基づく度数を設定することにより、領域に属する画素の度数を検出し、検出された度数に基いて回帰線を検出することにより、欠落した現実世界の光信号の定常性に対応する、画像データにおけるデータの定常性を有する領域を検出し、検出された画像データのデータの定常性に基づいて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定するようにした場合、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【0870】
図121は、データ定常性検出部101のその他の実施の形態の構成を示している。
【0871】
図121のデータ定常性検出部101は、データ選択部701、データ足し込み部702、および、定常方向導出部703より構成される。
【0872】
データ選択部701は、入力画像の各画素を注目画素として、その注目画素毎に対応する画素の画素値データを選択して、データ足し込み部702に出力する。
【0873】
データ足し込み部702は、データ選択部701より入力されたデータに基づいて、最小自乗法における足し込み演算を行い、足し込み演算結果を定常方向導出部703に出力する。このデータ足し込み部702による足し込み演算とは、後述する最小自乗法の演算に用いるサメーションの項における演算であり、その演算結果は、定常性の角度を検出するための画像データの特徴であると言える。
【0874】
定常方向導出部703は、データ足し込み部702より入力された足し込み演算結果から定常方向、すなわち、データの定常性が有する基準軸からの角度(例えば、細線、または2値エッジなどの傾き、または方向)を演算し、これをデータ定常性情報として出力する。
【0875】
次に、図122を参照して、データ定常性検出部101における定常性(方向、または、角度)を検出する動作の概要について説明する。尚、図122,図123中、図6,図7における場合と対応する部分については、同一の符号を付してあり、以下では、その説明は、適宜省略する。
【0876】
図122で示されるように、実世界1の信号(例えば、画像)は、光学系141(例えば、レンズ、またはLPF(Low Pass Filter)などからなる)により、センサ2(例えば、CCD(Charge Coupled Device)、または、CMOS(Complementary Metal−Oxide Semiconductor)など)の受光面に結像される。センサ2は、例えば、CCDやCMOSのような積分特性を有する素子から構成される。このような構成により、センサ2から出力されるデータ3から得られる画像は、実世界1の画像とは異なる画像となる(実世界1の画像とは差が生じることになる)。
【0877】
そこで、データ定常性検出部101は、図123で示されるように、モデル705を用いて、実世界1を近似式により近似的に記述して、その近似式からデータ定常性を抽出する。モデル705は、例えば、N個の変数で表現される。より正確には、モデル705は、実世界1の信号を近似(記述)する。
【0878】
データ定常性検出部101は、モデル705を予測するために、データ3から、M個のデータ706を抽出する。その結果、モデル705は、データの定常性に拘束されることになる。
【0879】
すなわち、モデル705は、センサ2で取得されたとき、データ3においてデータのデータ定常性を生じさせる、定常性(所定の次元の方向に一定の特徴)を有する実世界1の事象(を示す情報(信号))を近似する。
【0880】
ここで、データ706の数Mが、モデル705の変数の数N以上であれば、M個のデータ706から、N個の変数で表現されるモデル705を予測することができる。
【0881】
さらに、データ定常性検出部101は、実世界1(の信号)を近似(記述)するモデル705を予測することにより、実世界1の情報である信号に含まれるデータ定常性を、例えば、細線や2値エッジの方向(傾き、または、所定の方向を軸としたときの軸とのなす角度)として導出し、データ定常性情報として出力する。
【0882】
次に、図124を参照して、入力画像より細線の方向(角度)をデータ定常性情報として出力するデータ定常性検出部101について説明する。
【0883】
データ選択部701は、水平・垂直判定部711、および、データ取得部712から構成されている。水平・垂直判定部711は、注目画素とその周辺の画素間の画素値の差分から、入力画像の細線の水平方向に対する角度が、水平方向に近い細線か、垂直方向に近い細線かを判定し、判定結果をデータ取得部712、および、データ足し込み部702にそれぞれ出力する。
【0884】
より詳細には、例えば、この手法という意味で、他の手法でもよい。例えば、簡易16方位検出手法をここで使用してもよい。図125で示されるように、水平・垂直判定部711は、注目画素と、その注目画素に隣接する画素間の差分(画素間の画素値の差分)のうち、水平方向の画素間の差分(アクティビティ)の和(hdiff)と、垂直方向の画素間の差分(アクティビティ)の和の差分(vdiff)を求めて、注目画素が垂直方向に隣接する画素間との差分の和が大きいか、または、水平方向に隣接する画素間との差分の和が大きいかを判定する。ここで、図125においては、各マス目が画素を示し、図中の中央の画素が注目画素である。また、図中の点線の矢印で示す画素間の差分が、水平方向の画素間の差分であり、その和がhdiffで示される。さらに、図中の実線の矢印で示す画素間の差分が、垂直方向の画素間の差分であり、その和がvdiffで示される。
【0885】
このように求められた水平方向の画素間の画素値の差分和hdiffと、垂直方向の画素間の画素値の差分和vdiffに基づいて、水平・垂直判定部711は、(hdiff−vdiff)が正であれば、垂直方向よりも水平方向の画素間の画素値の変化(アクティビティ)が大きいので、図126で示されるように、水平方向に対する角度がθ(0度度≦θ≦180度度)で示される場合、45度度<θ≦135度度、すなわち、垂直方向に近い角度の細線に属している画素であると判定し、逆に負であれば垂直方向の画素間の画素値の変化(アクティビティ)が大きいので、0度度≦θ<45度度、または、135度度<θ≦180度度、すなわち、水平方向に近い角度の細線に属している画素であると判定する(細線が続く方向(角度)に存在する画素は、いずれも細線を表現する画素であるので、その画素間の変化(アクティビティ)は小さくなるはずである)。
【0886】
また、水平・垂直判定部711は、入力画像の各画素を識別するカウンタ(図示せず)を備えており、適宜必要に応じて使用する。
【0887】
尚、図125においては、注目画素を中心として、3画素×3画素の範囲における垂直方向と水平方向の画素間の画素値の差分の和を比較して、細線が垂直方向に近いか、または、水平方向に近いかを判定する例について説明したが、それ以上の画素数を用いて同様の手法で細線の方向を判定するようにしてもよく、例えば、注目画素を中心として5画素×5画素や、7画素×7画素など、それ以上の画素数のブロックに基づいて判定するようにしてもよい。
【0888】
データ取得部712は、水平・垂直判定部711より入力された細線の方向の判定結果に基づいて、注目画素に対応する水平方向に並ぶ複数の画素からなるブロック単位、または、垂直方向に並ぶ複数の画素のブロック単位で画素値を読み出し(取得し)、読み出した(取得した)注目画素毎に対応する複数の画素間における、水平・垂直方向判定部711の判定結果の方向に隣接する画素間の差分データとともに、所定の画素数のブロックに含まれる画素から、画素値の最大値と最小値のデータをデータ足し込み部702に出力する。尚、以下においては、データ取得部712により、注目画素に対応して取得される複数の画素のブロックを取得ブロックと称する(取得ブロックは、例えば、後述する図139で示される複数の画素(各マス目で示される)のうち、黒線の正方形が示された画素を注目画素とするとき、その上下3画素分と、左右1画素分の合計15画素などである)。
【0889】
データ足し込み部702の差分足し込み部721は、データ選択部701より入力された差分データを検出し、データ選択部701の水平・垂直判定部711より入力される水平方向、または、垂直方向の判定結果に基づいて、後述する最小自乗法の解法に必要な足し込み処理を実行し、その足し込み結果を定常方向導出部703に出力する。より具体的には、複数の画素のうち水平・垂直判定部711による判定方向に隣接する画素iと画素(i+1)の画素間の画素値の差分データをyiとし、注目画素に対応する取得ブロックがn個の画素から構成された場合、差分足し込み部721は、水平方向、または、垂直方向毎に(y1)+(y2)+(y3)+・・・を足し込んで演算し、定常方向導出部703に出力する。
【0890】
MaxMin取得部722は、データ選択部701より入力される注目画素に対応する取得ブロックに含まれる各画素毎に設定されるブロック(以下、ダイナミックレンジブロックと称する(ダイナミックレンジブロックは、後述する図139で示される取得ブロックの画素のうち、例えば、画素pix12について、黒の実線で囲まれている、ダイナミックレンジブロックB1で示される、画素pix12の上下3画素分の合計7画素などである))に含まれる画素の画素値の最大値と最小値を取得すると、その差分からダイナミックレンジDri(取得ブロック内のi番目の画素に対応する、ダイナミックレンジブロックに含まれる画素の画素値の最大値と最小値の差分)を演算(検出)して、差分足し込み部723に出力する。
【0891】
差分足し込み部723は、MaxMin取得部722より入力されたダイナミックレンジDriと、データ選択部701より入力された差分データを検出し、検出したダイナミックレンジDriと差分データに基づいて、データ選択部701の水平・垂直判定部711より入力される水平方向、または、垂直方向毎に、ダイナミックレンジDriと差分データyiを乗じた値を足し込んで、演算結果を定常方向導出部703に出力する。すなわち、差分足し込み部723が出力する演算結果は、水平方向、または、垂直方向毎にy1×Dr1+y2×Dr2+y3×Dr3+・・・となる。
【0892】
定常方向導出部703の定常方向演算部731は、データ足し込み部702より入力されてくる、水平方向、または、垂直方向毎の足し込み演算結果に基づいて、細線の角度(方向)を演算し、演算された角度を定常性情報として出力する。
【0893】
ここで、細線の方向(細線の傾き、または、角度)の演算方法について説明する。
【0894】
図127Aで示されるような入力画像中の白線により囲まれる部分を拡大すると、細線(図中、右上がりで、かつ斜め方向の白線)は、実際には、図127Bで示されるように表示されている。すなわち、現実世界においては、図127Cで示されるように、画像は、細線のレベル(図127C中では濃度の薄い斜線部)と背景レベルの2種類のレベルが境界を形成し、その他のレベルが存在しない状態となる。これに対して、センサ2により撮像された画像、すなわち、画素単位で撮像された画像は、図127Bで示されるように、その積分効果により背景レベルと細線レベルとが空間的に混合した画素が、その比率(混合比)を一定のパターンで変化するように縦方向に配置された複数の画素からなるブロックが細線方向に繰り返して配置されたような画像となる。尚、図127Bにおいて、各正方形状のマス目は、CCDの1画素を示し、各辺の長さをd_CCDであるものとする。また、マス目は、格子状に塗りつぶされた部分が背景のレベルに相当する画素値の最小値であり、その他の斜線状に塗りつぶされた部分は、斜線の密度が低くなるに連れて画素値が高くなるものとする(従って、斜線のない白色のマス目が画素値の最大値となる)。
【0895】
図128Aで示されるように、現実世界の背景上に細線が存在する場合、現実世界の画像は、図128Bで示されるように、横軸にレベル、縦軸にそのレベルに対応する部分の画像上の面積を示すと、画像中の背景に相当する面積と、細線に相当する部分の面積との、画像上における占有面積の関係が示される。
【0896】
同様にして、センサ2で撮像された画像は、図129Aで示されるように、背景レベルの画素の中に、縦に並んだ背景レベルと細線レベルとが混合した画素が、その混合比を所定のパターンで変化させながら縦方向に配置されたブロックが、細線の存在する方向に繰り返して配置されたような画像となるため、図129Bで示すように、背景のレベルとなる領域(背景領域)と、細線のレベルの中間のレベルをとる、背景と細線が空間的に混合した結果生じる画素からなる空間混合領域が存在する。ここで、図129Bにおいて縦軸は、画素数であるが、1画素の面積は(d_CCD)となるため、図129Bの画素値のレベルと画素数の関係は、画素値のレベルと面積の分布の関係と同様であるといえる。
【0897】
これは、図130Aの実際の画像中の白線で囲まれる部分(31画素×31画素の画像)においても、図130Bで示されるように同様の結果が得られる。すなわち、図130Aで示される背景部分(図130A中では、黒色に見える部分)は、図130Bで示されるように、画素値レベルの低い(画素値が20付近の)画素が多く分布しており、これらの変化の少ない部分が、背景領域の画像を形成する。これに対して、図130Bの画素値レベルが低くない部分、すなわち、画素値レベルが40付近乃至160付近に分布する画素は、細線の画像を形成する、空間混合領域に属する画素であり、各画素値毎の画素数は少ないが、広い画素値の範囲に分布している。
【0898】
ところで、現実世界の画像における背景と細線のそれぞれのレベルは、例えば、図131Aで示される矢印方向(Y座標方向)に見ると、図131Bで示されるように変化することになる。すなわち、矢印の起点から細線までの背景領域では、比較的レベルの低い背景レベルとなり、細線の領域では、レベルの高い細線のレベルとなり、細線領域を通過して再び背景領域に戻ると、レベルの低い背景のレベルとなる。結果として、細線領域のみが高いレベルとなるパルス状の波形となる。
【0899】
これに対して、センサ2で撮像された画像のうち、図131A中の矢印の向きに対応する、図132Aの空間方向X=X1上の画素(図132Aにおいては、黒丸で示されている画素)の画素値と、その画素の空間方向Yの関係は、図132Bに示されるようになる。尚、図132Aにおいて、右上がりの2本の白線の間が、現実世界の画像上における細線を示している。
【0900】
すなわち、図132Bで示されるように、図132A中の中央の画素に対応する画素が最も高い画素値をとるため、各画素の画素値は、空間方向Yの位置が、図中の下部から中央の画素に向かうに連れて高くなり、中央の位置を通過すると、徐々に減少することになる。結果として、図132Bで示すように、山型の波形が形成される。また、図132Aの空間方向X=X0,X2に対応する各画素の画素値の変化は、空間方向Yのピーク位置が、細線の傾きに応じてずれるものの、同様の外形となる。
【0901】
例えば、図133Aで示されるような、実際にセンサ2により撮像された画像における場合においても、図133Bで示されるように、同様の結果が得られる。すなわち、図133Bは、図133Aの画像中の白線で囲まれる範囲の細線付近の画素値を所定の空間方向X(図中では、X=561,562,563)毎の、空間方向Yに対応した画素値の変化を示している。このように、実際のセンサ2により撮像された画像においても、X=561においては、Y=730付近で、X=562においては、Y=705付近で、X=563においては、Y=685付近で、それぞれピークとなる山型の波形となっている。
【0902】
このように、現実世界の画像の細線付近のレベルの変化を示す波形はパルス状の波形となるのに対して、センサ2により撮像された画像の画素値の変化を示す波形は山型の波形となる。
【0903】
すなわち、換言すれば、現実世界の画像のレベルは、図131Bで示されるような波形になるべきところが、センサ2により撮像されることにより、撮像された画像は、図132Bで示されるように、その変化に歪が生じて、現実世界の画像とは異なる(現実世界の情報が欠落した)波形に変化していると言える。
【0904】
そこで、このセンサ2により撮像された画像から、現実世界の画像の定常性情報を取得するため、センサ2より取得された画像のデータから現実世界を近似的に記述するためのモデル(図123のモデル705に相当する)を設定する。例えば、細線の場合、図134で示されるように、現実世界の画像を設定する。すなわち、図中左部の背景部分のレベルをB1、図中右側の背景部分のレベルをB2、細線部分のレベルをL、細線の混合比をα、細線の幅をW、細線の水平方向に対する角度をθとしてパラメータを設定し、モデル化して、現実世界を近似的に表現する関数を設定し、各パラメータを求めることにより現実世界を近似的に表現する近似関数を求め、その近似関数から細線の方向(傾き、または、基準軸に対する角度)を求める。
【0905】
このとき、背景領域は、左部、および、右部は、同一であるものとして近似することができるので、図135で示されるように、統一してB(=B1=B2)とする。また、細線の幅を1画素以上であるものとする。このように設定された現実世界をセンサ2で撮像するとき、撮像された画像は、図136Aで示されるように撮像されることになる。尚、図136Aにおいて、右上がりの2本の白線の間が、現実世界の画像上における細線を示している。
【0906】
すなわち、現実世界の細線上の位置に存在する画素は、細線のレベルに最も近いレベルとなり、垂直方向(空間方向Yの方向)に対して細線から離れるに従って画素値が減少し、細線領域に接することのない位置に存在する画素の画素値、すなわち、背景領域の画素は、背景レベルの画素値となる。このとき、細線領域と背景領域に跨る位置に存在する画素の画素値は、背景レベルの画素値Bと、細線レベルの画素値Lが、混合比αで混合された画素値となっている。
【0907】
このように、撮像された画像の各画素を注目画素とした場合、データ取得部712は、その注目画素に対応する取得ブロックの画素を抽出し、その抽出した取得ブロックを構成する画素毎に、ダイナミックレンジブロックを抽出し、そのダイナミックレンジブロックを構成する画素のうちの最大値となる画素値をとる画素と、最小値となる画素値をとる画素とを抽出する。すなわち、図136Aで示すように、取得ブロック中の所定の画素(図中の1マスの中に黒の実線で正方形が記述された画素pix4)に対応したダイナミックレンジブロックの画素(例えば、図中の黒の実線で囲まれた画素pix1乃至7の7画素))が抽出された場合、その各画素に対応する現実世界の画像は、図136Bで示されるようになる。
【0908】
すなわち、図136Bで示されるように、画素pix1は、左部の略1/8の面積を占める部分が背景領域となり、右部の略7/8の面積を占める部分が細線領域となる。画素pix2は、略全領域が細線領域となる。画素pix3は、左部の略7/8の面積を占める部分が細線領域となり、右部1/8の面積を占める部分が細線領域となる。画素pix4は、左部の略2/3の面積を占める部分が細線領域となり、右部の略1/3の面積を占める部分が背景領域となる。画素pix5は、左部の略1/3の面積を占める部分が細線領域となり、右部の略2/3の面積を占める部分が背景領域となる。画素pix6は、左部の略1/8の面積を占める部分が細線領域となり、右部の略7/8の面積を占める部分が背景領域となる。さらに、画素pix7は、全体が背景領域となる。
【0909】
結果として、図136で示されるダイナミックレンジブロックの各画素pix1乃至7の画素値は、細線領域と背景領域の面積の比率に対応した混合比で、背景レベルと細線レベルが混合された画素値となる。すなわち、背景レベル:前景レベルの混合比は、画素pix1が略1:7、画素pix2が略0:1、画素pix3が略1:7、画素pix4が略1:2、画素pix5が略2:1、画素pix6が略7:1、および、画素pix7が略1:0となる。
【0910】
従って、抽出されたダイナミックレンジブロックの画素pix1乃至7の各画素の画素値は、画素pix2が最も高く、次いで画素pix1,3が続き、以下画素値が高い順に画素pix4,5,6,7となる。従って、図136Bで示される場合、最大値は、画素pix2の画素値であり、最小値は、画素pix7の画素値となる。
【0911】
また、図137Aで示されるように、細線の方向は、画素値の最大値をとる画素が連続する方向であると言えるので、この最大値をとる画素が配置された方向が細線の方向となる。
【0912】
ここで、細線の方向を示す傾きGflは、空間方向Xの単位距離に対する、空間方向Yへの変化(距離の変化)の比であるので、図137Aで示されるような場合、図中の空間方向Xへの1画素の距離に対する、空間方向Yの距離が傾きGflとなる。
【0913】
空間方向X0乃至X2の各々の空間方向Yに対する画素値の変化は、図137Bで示されるように、各空間方向X毎に所定の間隔で山型の波形が繰り返されることになる。上述のように、センサ2により撮像された画像において、細線は、最大値をとる画素が連続する方向であるので、各空間方向Xの最大値となる空間方向Yの間隔Sが、細線の傾きGflとなる。すなわち、図137Cで示されるように、水平方向に1画素の距離に対する垂直方向の変化量が傾きGflとなる。従って、この細線の傾きGfl(水平方向を基準軸としたときの角度に対応する)は、図137Cで示すように、その傾きに対応する水平方向を基準軸とした細線の角度をθとして表現する場合、以下の式(69)で示される関係が成立することになる。
【0914】
θ=Tan−1(Gfl)(=Tan−1(S))・・・(69)
【0915】
また、図135で示されるようなモデルを設定し、さらに、空間方向Yの画素と画素値の関係が、図137Bで示される山型の波形が、完全な三角波形(立ち上がり、または、立下りが直線的に変化する、二等辺三角形状の波形)であると仮定する場合、図138で示すように、所定の注目画素の空間方向Xにおける、空間方向Y上に存在する各画素の画素値の最大値をMax=L(ここでは、現実世界の細線のレベルに対応する画素値)、最小値をMin=B(ここでは、現実世界の背景のレベルに対応する画素値)とするとき、以下の式(70)で示される関係が成立する。
【0916】
L−B=Gfl×d_y・・・(70)
【0917】
ここで、d_yは、空間方向Yの画素間の画素値の差分を示す。
【0918】
すなわち、空間方向の傾きGflは、大きいほど細線がより垂直なものに近づくため、山型の波形は、底辺の大きな二等辺三角形状の波形となり、逆に、傾きSが小さいほど底辺の小さな二等辺三角形状の波形となる。この結果、傾きGflが大きいほど、空間方向Yの画素間の画素値の差分d_yは小さく、傾きSが小さいほど、空間方向Yの画素間の画素値の差分d_yは大きくなる。
【0919】
そこで、上述の式(70)の関係が成立する傾きGflを求めることにより、細線の基準軸に対する角度θを求めることが可能となる。式(70)は、傾きGflを変数とする1変数の関数であるため、注目画素について、周辺の画素間の画素値の(垂直方向の)差分d_y、並びに、最大値、および、最小値の差分(L−B)を1組用いれば求めることが可能であるが、上述のように、空間方向Yの画素値の変化が完全な三角波形であることを前提とした近似式を用いたものであるので、注目画素に対応する抽出ブロックの各画素についてダイナミックレンジブロックを抽出し、さらに、その最大値と最小値からダイナミックレンジDrを求めるとともに、抽出ブロックの各画素毎の空間方向Yの画素間の画素値の差分d_yを用いて、最小自乗法により統計的に求める。
【0920】
ここで、最小自乗法による統計的な処理の説明にあたり、まず、抽出ブロック、および、ダイナミックレンジブロックについて、詳細を説明する。
【0921】
抽出ブロックは、例えば、図139で示すように、注目画素(図中の黒の実線で正方形が描かれているマス目の画素)の、空間方向Yについて上下3画素分、空間方向Xについて、左右1画素分の合計15画素などでもよい。また、この場合、抽出ブロックの各画素の画素間の画素値の差分d_yは、例えば、画素pix11に対応する差分がd_y11で示されるとき、空間方向X=X0の場合、画素pix11とpix12、pix12とpix13、pix13とpix14、pix15とpix16、pix16とpix17の画素間の画素値の差分d_y11乃至d_y16が得られることになる。このとき、空間方向X=X1,X2についても、同様にして画素間の画素値の差分が得られる。結果として、この場合、画素間の画素値の差分d_yは、18個存在することになる。
【0922】
さらに、抽出ブロックの各画素について、ダイナミックレンジブロックの画素が、例えば、画素pix11については、水平・垂直判定部711の判定結果に基づいて、今の場合、垂直方向であると判定されるので、図139で示されるように、画素pix11を含めて、垂直方向(空間方向Y)の上下方向にそれぞれ3画素分のダイナミックレンジブロックB1の範囲の7画素であるものとすると、このダイナミックレンジブロックB1の画素の画素値の最大値と最小値を求め、さらに、この最大値と最小値から得られるダイナミックレンジをダイナミックレンジDr11とする。同様にして、抽出ブロックの画素pix12については、図139中のダイナミックレンジブロックB2の7画素から同様にしてダイナミックレンジDr12を求める。このようにして、抽出ブロック内の18個の画素間差分d_yiと、対応するダイナミックレンジDriとの組み合わせに基づいて、最小自乗法を用いて統計的に傾きGflが求められる。
【0923】
次に、1変数の最小自乗法の解法について説明する。尚、ここでは、水平・垂直判定部711の判定結果が垂直方向であったものとする。
【0924】
1変数の最小自乗法による解法は、例えば、図140で示される黒点で示される全ての実測値に対しての距離を最小とする、予測値Dri_cからなる直線の傾きGflを求めるものである。そこで、上述の式(70)で示される関係から以下のような手法により、傾きSが求められる。
【0925】
すなわち、上述の式(70)は、最大値と最小値の差分をダイナミックレンジDrとするとき、以下の式(71)で示すように記述される。
【0926】
Dr=Gfl×d_y・・・(71)
【0927】
上述の式(71)に、抽出ブロックの各画素間についての差分d_yiを代入することによりダイナミックレンジDri_cが求められることになる。従って、各画素について、以下の式(72)の関係が満たされることになる。
【0928】
Dri_c=Gfl×d_yi・・・(72)
【0929】
ここで、差分d_yiは、各画素iの空間方向Yの画素間の画素値の差分(例えば、画素iに対して、上方向、または、下方向に隣接した画素との画素間の画素値の差分であり、Dri_cは、画素iについて式(70)が成立するときに得られるダイナミックレンジである。
【0930】
上述のように、ここでいう最小自乗法は、抽出ブロックの画素iのダイナミックレンジDri_cと、図136を参照して説明した方法で得られる、画素iの実測値となるダイナミックレンジDri_rとの差分自乗和Qが、画像内のすべての画素において最小となるときの傾きGflを求める方法である。従って、差分自乗和Qは以下の式(73)により求められることになる。
【0931】
【数55】
Figure 2004246526
Figure 2004246526
【0932】
式(73)で示される差分自乗和Qは、2次関数であるので、変数Gfl(傾きGfl)について図141で示すような下に凸の曲線となるため、傾きGflが最小となるGflminが最小自乗法の解となる。
【0933】
式(73)で示される差分自乗和Qは、変数Gflで微分されると、以下に示す式(74)で示されるdQ/dGflとなる。
【0934】
【数56】
Figure 2004246526
Figure 2004246526
【0935】
式(74)が、0となるGflが図141で示す差分自乗和Qの最小値をとるGflminとなるので、式(74)が0となるときの式を展開することにより、以下の式(75)で傾きGflが求められることになる。
【0936】
【数57】
Figure 2004246526
Figure 2004246526
【0937】
上述の式(75)は、いわゆる、1変数(傾きGfl)の正規方程式となる。
【0938】
このようにして、得られた傾きGflを上述の式(69)に代入することにより、細線の傾きGflに対応する、水平方向を基準軸としたときの細線の角度θを得ることができる。
【0939】
尚、以上の説明においては、注目画素が、水平方向を基準軸としたときの角度θが45度度≦θ<135度度の範囲となる細線上の画素である場合の例について説明してきたが、例えば、注目画素が、水平方向を基準軸に対する細線の角度θが0度度≦θ<45度度、または、135度度≦θ<108度度となる、水平方向に近い細線上の画素である場合、画素iに隣接する画素間の画素値の差分は、水平方向に隣接する画素間の画素値の差分d_xiとなり、同様に、画素iに対応する複数の画素から画素値の最大値、または、最小値を求める際に、抽出するダイナミックレンジブロックの画素についても、画素iに対して水平方向に存在する複数の画素のうちから選択されることになる。この場合の処理については、上述の説明における水平方向と垂直方向の関係が入れ替わるのみであるので、その説明は省略する。
【0940】
また、同様の手法により、2値エッジの傾きに対応する角度を求めることも可能である。
【0941】
すなわち、図142Aで示されるような入力画像中の白線により囲まれる部分を拡大すると、画像中のエッジ部分(図中、黒地の旗に描かれた「十」という白で描かれた文字の下の部分)(以下、このように、2値のレベルからなる画像上のエッジ部分を2値エッジとも称する)は、実際には、図142Bで示されるように表示されている。すなわち、現実世界においては、図142Cで示されるように、画像では、第1のレベル(旗の地のレベル)と、第2のレベル(文字のレベル(図142C中では濃度の薄い斜線部))との2種類のレベルからなる境界が形成されており、その他のレベルが存在しない。これに対して、センサ2により撮像された画像、すなわち、画素単位で撮像された画像は、図142Bで示されるように、第1のレベルと第2のレベルとが空間的に混合した画素が、その比率(混合比)を一定のパターンで変化するように縦方向に配置された複数の画素からなるブロックがエッジが構成されている方向に繰り返して配置されたような領域を境とした第1のレベルの画素が配置される部分と、第2のレベルの画素が配置される部分とが存在する画像となる。
【0942】
すなわち、図143Aで示されるように、空間方向X=X0,X1,X2について、それぞれの空間方向Yへの画素値の変化は、図143B中では、各画素値は、図中の下から2値エッジ(図143A中の右上がりの直線)の境界手前付近までは、所定の最小値の画素値になっているが、2値エッジの境界手前付近で、画素値が徐々に増大し、エッジを越えると図中の点Pにおいて、画素値が所定の最大値となる。より詳細には、空間方向X=X0の変化は、図143Bで示されるように、画素値の最小値となる点Pを通過した後、徐々に画素値が増大し、画素値の最大値となる点P0となる。これに対して、空間方向X=X1に対応する各画素の画素値の変化は、空間方向にずれた波形となるため、図143Bで示されるように、画素値の最小値から徐々に画素値が増大する位置が空間方向Yの正方向にずれて、図中の点P1を経由して、画素値の最大値にまで増大する。さらに、空間方向X=X2における空間方向Yの画素値の変化は、空間方向Yの正の方向にさらにずれ込んだ図中の点P2を経由して減少し、画素値の最大値から最小値となる。
【0943】
これは、実際の画像中の白線で囲まれる部分においても、同様の傾向が見られる。すなわち、図144Aの実際の画像中の白線で囲まれる部分(31画素×31画素の画像)において、背景部分(図144A中では、黒色に見える部分)は、図144Bで示されるように、画素値の低い(画素値が90付近の)画素数が多く分布しており、これらの変化の少ない部分が、背景領域の画像を形成する。これに対して、図144Bの画素値が低くない部分、すなわち、画素値が100付近乃至200付近に分布する画素は、文字領域と背景領域との空間混合領域に属する画素の分布であり、各画素値毎の画素数は少ないが、広い画素値の範囲に分布している。さらに、画素値の高い文字領域(図144A中では、白色に見える部分)の画素が、220で示される画素値の付近に多く分布している。
【0944】
この結果、図145Aで示されるエッジ画像における所定の空間方向Xに対する、空間方向Yの画素値の変化は、図145Bで示されるようになものとなる。
【0945】
すなわち、図145Bは、図145Aの画像中の白線で囲まれる範囲のエッジ付近の画素値を所定の空間方向X(図中では、X=658,659,660)毎の、空間方向Yに対応した画素値の変化を示している。このように、実際のセンサ2により撮像された画像においても、X=658において、画素値は、Y=374付近で増大を開始し(図中、黒丸で示される分布)、X=382付近で最大画素値に到達する。また、X=659においては、空間方向Yに対して正方向にずれ込んで、画素値は、Y=378付近で増大を開始し(図中、黒三角で示される分布)、X=386付近で最大画素値に到達する。さらに、X=660においては、空間方向Yに対して、さらに、正方向にずれ込んで、画素値は、Y=382付近で増大を開始し(図中、黒四角で示される分布)、X=390付近で最大画素値に到達する。
【0946】
そこで、このセンサ2により撮像された画像から、現実世界の画像の定常性情報を取得するため、センサ2より取得された画像のデータから現実世界を近似的に記述するためのモデルを設定する。例えば、2値エッジの場合、図146で示すように、現実世界の画像を設定する。すなわち、図中左部の背景部分のレベルをV1、図中右側の文字部分のレベルをV2、2値エッジ付近の画素間の混合比をα、エッジの水平方向に対する角度をθとしてパラメータを設定し、モデル化して、現実世界を近似的に表現する関数を設定し、各パラメータを求めることにより現実世界を近似的に表現する関数を求め、その近似関数からエッジの方向(傾き、または、基準軸に対する角度)を求める。
【0947】
ここで、エッジの方向を示す傾きは、空間方向Xの単位距離に対する、空間方向Yへの変化(距離の変化)の比であるので、図147Aで示されるような場合、図中の空間方向Xへの1画素の距離に対する、空間方向Yの距離が傾きとなる。
【0948】
空間方向X0乃至X2の各々の空間方向Yに対する画素値の変化は、図147Bで示されるように、各空間方向X毎に所定の間隔で同様の波形が繰り返されることになる。上述のように、センサ2により撮像された画像において、エッジは、類似した画素値の変化(今の場合、最小値から最大値へと変化する、所定の空間方向Y上の画素値の変化)が空間的に連続する方向であるので、各空間方向Xにおいて、空間方向Yの画素値の変化が開始される位置、または、変化が終了する位置となる空間方向Yの間隔Sが、エッジの傾きGfeとなる。すなわち、図147Cで示されるように、水平方向に1画素の距離に対する垂直方向の変化量が傾きGfeとなる。
【0949】
ところで、この関係は、図137A乃至Cを参照して上述した細線の傾きGflにおける関係と同様である。従って、その関係式についても、同様のものとなる。すなわち、2値エッジにおける場合の関係式は、図148で示すものとなり、背景領域の画素値をV1、文字領域の画素値をV2、それぞれは最小値、および、最大値となる。また、エッジ付近の画素の混合比をαとし、エッジの傾きをGfeとおけば、成立する関係式は、上述の式(69)乃至式(71)と同様となる(ただし、Gflは、Gfeに置き換えられる)。
【0950】
このため、図124で示されるデータ定常性検出部101は、同様の処理により、細線の傾きに対応する角度、および、エッジの傾きに対応する角度を、データ定常性情報として検出することができる。そこで、以下においては、傾きは、細線の傾きと、2値エッジの傾きとを総称して、傾きGと称する。また、上述の式(73)乃至式(75)の式における傾きGflは、Gfeであってもよいものであり、結果として、傾きGと置き換えて考えるものとする。
【0951】
次に、図149のフローチャートを参照して、データ定常性の検出の処理を説明する。
【0952】
ステップS701において、水平・垂直判定部711は、入力画像の各画素を識別するカウンタTを初期化する。
【0953】
ステップS702において、水平・垂直判定部711は、後段の処理に必要なデータの抽出処理を実行する。
【0954】
ここで、図150のフローチャートを参照して、データを抽出する処理について説明する。
【0955】
ステップS711において、データ選択部701の水平・垂直判定部711は、各注目画素Tについて、図125を参照して説明したように、水平方向、垂直方向、および対角方向に隣接する9画素の水平方向に隣接する画素間の画素値の差分(アクティビティ)の和hdiffと、垂直方向に隣接する画素間の画素値の差分(アクティビティ)の和vdiffとを演算し、さらに、その差分(hdiff−vdiff)を求め、差分(hdiff−vdiff)≧0の場合、その注目画素Tが、水平方向を基準軸としたとき、その基準軸との角度θが45度度≦θ<135度度となる、垂直方向に近い細線、または、2値エッジ付近の画素であるものとみなし、使用する抽出ブロックを垂直方向に対応したものとする判定結果をデータ取得部712、および、データ足し込み部702に出力する。
【0956】
一方、差分(hdiff−vdiff)<0の場合、水平・垂直判定部711は、その注目画素が、水平方向を基準軸にしたとき、その基準軸との細線、または、2値エッジのなす角度θが0度度≦θ<45度度、または、135度度≦θ<180度度となる、水平方向に近い細線、または、エッジ付近の画素であるものとみなし、使用する抽出ブロックを水平方向に対応したものとする判定結果をデータ取得部712、および、データ足し込み部702に出力する。
【0957】
すなわち、細線、または、2値エッジの傾きが垂直方向に近いと言うことは、例えば、図131Aで示されているように、図中の矢印が細線と交差する部分が増えることになるため、垂直方向の画素数を多めにした抽出ブロックを設定する(縦長な抽出ブロックを設定する)。同様にして、細線の傾きが水平方向に近い場合についても、水平方向の画素数を多めにした抽出ブロックを設定するようにする(横長な抽出ブロックを設定する)。このようにすることにより、不要な計算量を増やすことなく、正確な最大値と最小値の演算が可能となる。
【0958】
ステップS712において、データ取得部712は、注目画素について水平・垂直判定部711より入力される水平方向、または、垂直方向の判定結果に対応した抽出ブロックの画素を抽出する。すなわち、例えば、図139で示されるように、注目画素を中心として、(水平方向に3画素)×(垂直方向に7画素)の合計21画素を抽出ブロックとして抽出し、記憶する。
【0959】
ステップS713において、データ取得部712は、抽出ブロックの各画素について、水平・垂直判定部711の判定結果に対応した方向に対応するダイナミックレンジブロックの画素を抽出し、記憶する。すなわち、図139を参照して、上述したように、例えば、抽出ブロックの画素pix11については、今の場合、水平・垂直判定部711の判定結果が垂直方向になるので、データ取得部712は、垂直方向に、ダイナミックレンジブロックB1を、同様にして、画素pix12は、ダイナミックレンジブロックB2を抽出する。その他の抽出ブロックについても同様にしてダイナミックレンジブロックが抽出される。
【0960】
すなわち、このデータ抽出処理により、所定の注目画素Tについて、正規方程式の演算に必要な画素の情報がデータ取得部712に蓄えられることになる(処理される領域が選択されることになる)。
【0961】
ここで、図149のフローチャートの説明に戻る。
【0962】
ステップS703において、データ足し込み部702は、正規方程式(ここでは、式(74))の演算の各項に必要な値の足し込み処理を実行する。
【0963】
ここで、図151のフローチャートを参照して、正規方程式への足し込み処理について説明する。
【0964】
ステップS721において、差分足し込み部721は、データ選択部701の水平・垂直判定部711の判定結果に応じて、データ取得部712に記憶されている抽出ブロックの画素間の画素値の差分を求め(検出し)、さらに、2乗(自乗)して足し込む。すなわち、水平・垂直判定部711の判定結果が垂直方向である場合、差分足し込み部721は、抽出ブロックの各画素について垂直方向に隣接する画素間の画素値の差分を求めて、さらに2乗して足し込む。同様にして、水平・垂直判定部711の判定結果が水平方向である場合、差分足し込み部721は、抽出ブロックの各画素について水平方向に隣接する画素間の画素値の差分を求めて、さらに2乗して足し込む。結果として、差分足し込み部721は、上述の式(75)の分母となる項の差分の自乗和を生成し、記憶する。
【0965】
ステップS722において、MaxMin取得部722は、データ取得部712に記憶されたダイナミックレンジブロックに含まれる画素の画素値の最大値と最小値を取得し、ステップS723において、その最大値と最小値との差分からダイナミックレンジを求め(検出し)、差分足し込み部723に出力する。すなわち、図136Bで示されているような、画素pix1乃至7からなる7画素のダイナミックレンジブロックの場合、pix2の画素値が最大値として検出され、pix7の画素が最小値として検出され、これらの差分がダイナミックレンジとして求められる。
【0966】
ステップS724において、差分足し込み部723は、データ取得部712に記憶されている抽出ブロックの画素間のうち、データ選択部701の水平・垂直判定部711の判定結果に対応する方向に隣接する画素間の画素値の差分を求め(検出し)、MaxMin取得部722より入力されたダイナミックレンジを乗じた値を足し込む。すなわち、差分足し込み部721は、上述の式(75)の分子となる項の和を生成し、記憶する。
【0967】
ここで、図149のフローチャートの説明に戻る。
【0968】
ステップS704において、差分足し込み部721は、抽出ブロックの全ての画素の画素間の画素値の差分(水平・垂直判定部711の判定結果に対応する方向に隣接する画素間の画素値の差分)を足し込んだか否かを判定し、例えば、抽出ブロックの全ての画素の画素間の差分を足し込んでいないと判定した場合、その処理は、ステップS702に戻り、それ以降の処理が繰り返される。すなわち、抽出ブロックの全ての画素の画素間の画素値の差分が足し込まれたと判定されるまで、ステップS702乃至S704の処理が繰り返される。
【0969】
ステップS704において、抽出ブロックの全ての画素の画素間の画素値の差分が足し込まれたと判定された場合、ステップS705にいて、差分足し込み部721,723は、自らで記憶している足し込み結果を定常方向導出部703に出力する。
【0970】
ステップS706において、定常方向演算部731は、データ足し込み部702の差分足し込み部721より入力された、取得ブロックの各画素間のうち、水平・垂直判定部711により判定された方向に隣接する画素間の画素値の差分の自乗和、差分足し込み部723より入力された、取得ブロックの各画素間のうち、水平・垂直判定部711により判定された方向に隣接する画素間の画素値の差分、および、取得ブロックの各画素に対応するダイナミックレンジとの積の和に基づいて、上述の式(75)で示した正規方程式を解くことにより、最小自乗法を用いて統計的に注目画素のデータ定常性情報である、定常性の方向を示す角度(細線、または、2値エッジの傾きを示す角度)を演算し、出力する。
【0971】
ステップS707において、データ取得部712は、入力画像の全ての画素について処理が行われたか否かを判定し、例えば、入力画像の全ての画素について処理が行われていない、すなわち、入力画像の全ての画素について、細線、または、2値エッジの角度の情報を出力していないと判定した場合、ステップS708において、カウンタTを1インクリメントして、その処理は、ステップS702に戻る。すなわち、入力画像のうちの処理しようとする画素が変更されて、入力画像の全ての画素について処理がなされるまで、ステップS702乃至S708の処理が繰り返されることになる。このカウンタTによる画素の変化は、例えば、ラスタスキャンなどであってもよいし、それ以外の規則により順次変化していくものであってもよい。
【0972】
ステップS707において、入力画像の全ての画素について処理がなされたと判定された場合、ステップS709において、データ取得部712は、次の入力画像があるか否かを判定し、次の入力画像があると判定された場合、その処理は、ステップS701に戻り、それ以降の処理が繰り返される。
【0973】
ステップS709において、次の入力画像はないと判定された場合、その処理は、終了する。
【0974】
以上の処理により、細線、または、2値エッジの角度が、定常性情報として検出されて、出力される。
【0975】
このように統計的処理により得られる細線、または、エッジの傾きの角度は、相関を用いて得られる細線、または、2値エッジの角度とほぼ一致する。すなわち、図152Aで示すような画像の白線で囲まれる範囲の画像について、細線上の所定の水平方向の座標上の空間方向Yへの傾きの変化は、図152Bで示されるように、相関を用いた方法により得られる細線の傾きを示す角度(図中の黒丸印)と、図124で示されたデータ定常性検出部101により統計処理により得られる細線の角度(図中の黒三角印)は、細線近傍の空間方向Yの座標上で、それぞれがほぼ一致している。尚、図152Bにおいては、図中の黒実線で挟まれた空間方向Y=680乃至730が細線上の座標である。
【0976】
同様にして、図153Aで示すような画像の白線で囲まれる範囲の画像について、2値エッジ上の所定の水平方向の座標上の空間方向Yへの傾きの変化は、図153Bで示されるように、相関を用いた方法により得られる2値エッジの傾きを示す角度(図中の黒丸印)と、図124で示されたデータ定常性検出部101により統計処理により得られる2値エッジの角度(図中の黒三角印)は、細線近傍の空間方向Yの座標上で、それぞれがほぼ一致している。尚、図153Bにおいては、空間方向Y=376(付近)乃至388(付近)が細線上の座標であるである。
【0977】
結果として、図124に示されるデータ定常性検出部101は、データの定常性として細線、または、2値エッジの角度を求める際、所定の画素からなるブロックによる相関を用いる方法と異なり、各画素の周辺の情報を用いて、統計的に細線、または、2値エッジの傾きを示す角度(ここでは、水平方向を基準軸とした角度)を求めることができるので、相関を用いた方法に見られるように、所定の角度の範囲に応じて切り替わることが無いので、全ての細線、または、2値エッジの傾きの角度を同一の処理により求めることが可能となるため、処理を簡単なものとすることが可能となる。
【0978】
また、以上においては、データ定常性検出部101は、細線、または、2値エッジの所定の基準軸とのなす角度を定常性情報として出力する例について説明してきたが、後段の処理によっては、傾きをそのまま出力する方が、処理効率が向上することも考えられる。そのような場合、データ定常性検出部101の定常方向導出部703の定常方向演算部731は、最小自乗法により求められた細線、または、2値エッジの傾きGを、そのまま定常性情報として出力するようにしてもよい。
【0979】
さらに、以上においては、式(75)において、ダイナミックレンジDri_rは、抽出ブロックの各画素について求められるものとして演算してきたが、このダイナミックレンジは、ダイナミックレンジブロックを十分に大きく設定することにより、すなわち、多くの注目画素について、その周辺の多くの画素を用いて設定することにより、画像中の画素の画素値の最大値と最小値が、常に選択されることになるはずである。従って、ダイナミックレンジDri_rは、抽出ブロックの各画素について演算することなく、抽出ブロック中、または、画像データ中の画素の最大値と最小値から得られるダイナミックレンジを固定値として演算するようにしてもよい。
【0980】
すなわち、以下の式(76)のように、画素間の画素値の差分のみを足し込むことにより細線の角度θ(傾きG)を求めるようにしてもよい。このように、ダイナミックレンジを固定することにより、演算処理をより簡素化することができ、高速で処理を行うことが可能となる。
【0981】
【数58】
Figure 2004246526
Figure 2004246526
【0982】
次に、図154を参照して、データ定常性情報として、各画素の混合比を検出するデータ定常性検出部101について説明する。
【0983】
尚、図154のデータ定常性検出部101においては、図124のデータ定常性検出部101における場合と対応する部分については、同一の符号を付してあり、以下では、その説明は、適宜省略する。
【0984】
図154のデータ定常性検出部101において、図124のデータ定常性検出部101と異なるのは、データ足し込み部702、および、定常性方向導出部703に代えて、データ足し込み部751、および、混合比導出部761が設けられている点である。
【0985】
データ足し込み部751のMaxMin取得部752は、図124におけるMaxMin取得部722と同様の処理を行うものであるが、ダイナミックレンジブロックの各画素の画素値の最大値と最小値を取得し、最大値と最小値の差分(ダイナミックレンジ)を求め、足し込み部753,755に出力すると共に、最大値を差分演算部754に出力する。
【0986】
足し込み部753は、MaxMin取得部より入力された値を自乗して、抽出ブロックの全ての画素について足し込み、その和を求めて、混合比導出部761に出力する。
【0987】
差分演算部754は、データ取得部712の取得ブロックの各画素について、対応するダイナミックレンジブロックの最大値との差分を求めて、足し込み部755に出力する。
【0988】
足し込み部755は、取得ブロックの各画素について、MaxMin取得部752より入力された最大値と最小値の差分(ダイナミックレンジ)と、差分演算部754より入力された取得ブロックの各画素の画素値と、対応するダイナミックレンジブロックの最大値との差分と乗じて、その和を求め、混合比導出部761に出力する。
【0989】
混合比導出部761の混合比算出部762は、データ足し込み部の足し込み部753,755のそれぞれより入力された、値に基づいて、注目画素の混合比を最小自乗法により統計的に求め、データ定常性情報として出力する。
【0990】
次に、混合比の導出方法について説明する。
【0991】
図155Aで示されるように、画像上に細線が存在する場合、センサ2で撮像された画像は、図155Bで示されるような画像となる。個の画像について、図155Bの空間方向X=X1上の黒の実線で囲まれた画素について注目する。尚、図155Bの白線ではさまれた範囲は、細線領域に対応する位置を示す。この画素の画素値Mは、背景領域のレベルに対応する画素値Bと、細線領域のレベルに対応する画素値Lの中間色となっているはずであり、さらに詳細には、この画素値Pは、背景領域と細線領域の面積比で、それぞれのレベルが混合されているはずである。従って、この画素値Pは、以下の式(77)により表現される。
【0992】
=α×B+(1−α)×L・・・(77)
【0993】
ここで、αは、混合比であり、より具体的には、注目されている画素中の背景領域の占める面積の割合を示すものである。従って、(1−α)は、細線領域の占める面積の割合を示しているともいえる。尚、背景領域の画素は、背景に存在するオブジェクトの成分とも考えられるので、背景オブジェクト成分とも言える。また、細線領域の画素は、背景オブジェクトに対して前景オブジェクトの成分であると考えられるので、前景オブジェクト成分とも言える。
【0994】
この結果、混合比αは、式(77)を展開することにより、以下の式(78)で表現できることになる。
【0995】
α=(P−L)/(B−L)・・・(78)
【0996】
さらに、今の場合、画素値は、第1の画素値(画素値B)の領域と第2の画素値(画素値L)の領域とをまたいだ位置に存在することが前提であるので、画素値Lは、画素値の最大値Maxで置き換えることができ、さらに、画素値Bは、画素値の最小値と置き換えることができる。従って、混合比αは、以下の式(79)でも表現することができる。
【0997】
α=(P−Max)/(Min−Max)・・・(79)
【0998】
以上の結果、混合比αは、注目画素についてのダイナミックレンジブロックのダイナミックレンジ((Min−Max)に相当する)と、注目画素と、ダイナミックレンジブロック内の画素の最大値との差分から求めることが可能となるが、より精度を向上させるため、ここでは、最小自乗法により統計的に混合比αを求める。
【0999】
すなわち、上述の式(79)は、展開すると以下の式(80)となる。
【1000】
(P−Max)=α×(Min−Max)・・・(80)
【1001】
この式(80)は、上述の式(71)と同様の1変数の最小自乗法の式となる。すなわち、式(71)においては、最小自乗法により傾きGが求められていたが、ここでは、混合比αが求められることになる。従って、以下の式(81)で示される正規方程式を解くことにより、混合比αは、統計的に求められる。
【1002】
【数59】
Figure 2004246526
Figure 2004246526
【1003】
ここで、iは、抽出ブロックの各画素を識別するものである。従って、式(81)においては、抽出ブロックの画素数はnである。
【1004】
次に、図156のフローチャートを参照して、混合比をデータ定常性としたときのデータ定常性の検出の処理について説明する。
【1005】
ステップS731において、水平・垂直判定部711は、入力画像の各画素を識別するカウンタUを初期化する。
【1006】
ステップS732において、水平・垂直判定部711は、後段の処理に必要なデータの抽出処理を実行する。尚、ステップS732の処理は、図150のフローチャートを参照して説明した処理と同様であるので、その説明は省略する。
【1007】
ステップS733において、データ足し込み部751は、正規方程式(ここでは、式(81))の演算の各項に必要な値の足し込み処理を実行する。
【1008】
ここで、図157のフローチャートを参照して、正規方程式への足し込み処理について説明する。
【1009】
ステップS751において、MaxMin取得部752は、データ取得部712に記憶されたダイナミックレンジブロックに含まれる画素の画素値の最大値と最小値を取得し、そのうち、最小値を差分演算部754に出力する。
【1010】
ステップS752において、MaxMin取得部752は、その最大値と最小値との差分からダイナミックレンジを求め、差分足し込み部753,755に出力する。
【1011】
ステップS753において、足し込み部753は、MaxMin取得部752より入力されたダイナミックレンジ(Max−Min)を自乗して、足し込む。すなわち、足し込み部753は、上述の式(81)の分母に相当する値を足し込みにより生成する。
【1012】
ステップS754において、差分演算部754は、MaxMin取得部752より入力されたダイナミックレンジブロックの最大値と、抽出ブロックにおける今現在処理中の画素の画素値との差分を求めて、足し込み部755に出力する。
【1013】
ステップS755において、足し込み部755は、MaxMin取得部752より入力されたダイナミックレンジと、差分演算部754より入力された、今現在処理している画素の画素値と、ダイナミックレンジブロックの画素のうち最大値となる値との差分を乗じて、足し込む。すなわち、足し込み部755は、上述の式(81)の分子の項に相当する値を生成する。
【1014】
以上のように、データ足し込み部751は、足し込み処理により、上述の式(81)の各項の演算を実行する。
【1015】
ここで、図156のフローチャートの説明に戻る。
【1016】
ステップS734において、差分足し込み部721は、抽出ブロックの全ての画素について、足し込みが終了したか否かを判定し、例えば、抽出ブロックの全ての画素についての足し込み処理が終了していないと判定した場合、その処理は、ステップS732に戻り、それ以降の処理が繰り返される。すなわち、抽出ブロックの全ての画素について、足し込み処理が終了したと判定されるまで、ステップS732乃至S734の処理が繰り返される。
【1017】
ステップS734において、抽出ブロックの全ての画素について足し込みが終了したと判定された場合、ステップS735にいて、足し込み部753,755は、自らで記憶している足し込み結果を混合比導出部761に出力する。
【1018】
ステップS736において、混合比導出部761の混合比算出部762は、データ足し込み部751の足し込み部753,755より入力された、ダイナミックレンジの自乗和、および、抽出ブロックの各画素の画素値とダイナミックレンジブロックの最大値との差分と、ダイナミックレンジとを乗じた和に基づいて、上述の式(81)で示した正規方程式を解くことにより、最小自乗法を用いて統計的に注目画素のデータ定常性情報である、混合比を演算し、出力する。
【1019】
ステップS737において、データ取得部712は、入力画像の全ての画素について処理が行われたか否かを判定し、例えば、入力画像の全ての画素について処理が行われていない、すなわち、入力画像の全ての画素について、混合比を出力していないと判定した場合、ステップS738において、カウンタUを1インクリメントして、その処理は、ステップS732に戻る。
【1020】
すなわち、入力画像のうちの処理しようとする画素が変更されて、入力画像の全ての画素について混合比が演算されるまで、ステップS732乃至S738の処理が繰り返されることになる。このカウンタUによる画素の変化は、例えば、ラスタスキャンなどであってもよいし、それ以外の規則により順次変化していくものであってもよい。
【1021】
ステップS737において、入力画像の全ての画素について処理がなされたと判定された場合、ステップS739において、データ取得部712は、次の入力画像があるか否かを判定し、次の入力画像があると判定された場合、その処理は、ステップS731に戻り、それ以降の処理が繰り返される。
【1022】
ステップS739において、次の入力画像はないと判定された場合、その処理は、終了する。
【1023】
以上の処理により、各画素の混合比が、定常性情報として検出されて、出力される。
【1024】
以上の手法により、例えば、図158Aで示される画像中の白線内の細線の画像について、所定の空間方向X(=561,562,563)上の混合比の変化が、図158Bに示されている。図158Bで示されるように、水平方向に連続する空間方向Yの混合比の変化は、それぞれ、空間方向X=563の場合、混合比は、空間方向Y=660付近で立ち上がり、Y=685付近でピークとなり、Y=710まで減少する。また、空間方向X=562の場合、混合比は、空間方向Y=680付近で立ち上がり、Y=705付近でピークとなり、Y=735まで減少する。さらに、空間方向X=561の場合、混合比は、空間方向Y=705付近で立ち上がり、Y=725付近でピークとなり、Y=755まで減少する。
【1025】
このように、図158Bで示されるように、連続する空間方向Xのそれぞれの混合比の変化は、混合比により変化する画素値の変化(図133Bで示した画素値の変化)と同様の変化であり、周期的に連続していることから、細線近傍の画素の混合比が正確に表現されていることが分かる。
【1026】
また、同様にして、図159Aで示される画像中の白線内の2値エッジの画像について、所定の空間方向X(=658,659,660)上の混合比の変化が、図159Bに示されている。図159Bで示されるように、水平方向に連続する空間方向Yの混合比の変化は、それぞれ、空間方向X=660の場合、混合比は、空間方向Y=750付近で立ち上がり、Y=765付近でピークとなる。また、空間方向X=659の場合、混合比は、空間方向Y=760付近で立ち上がり、Y=775付近でピークとなる。さらに、空間方向X=658の場合、混合比は、空間方向Y=770付近で立ち上がり、Y=785付近でピークとなる。
【1027】
このように、図159Bで示されるように、2値エッジの混合比の変化は、混合比により変化する画素値の変化(図145Bで示した画素値の変化)と同様の変化とほぼ同様であり、周期的に連続していることから、2値エッジ近傍の画素値の混合比が正確に表現されていることが分かる。
【1028】
以上によれば、最小自乗法により統計的にデータ定常性情報として、各画素の混合比を求めることが可能となる。さらに、この混合比に基づいて、各画素の画素値を直接生成することが可能となる。
【1029】
また、混合比の変化が、定常性を有するものであり、さらに、この混合比の変化が直線的なもので近似すると、以下の式(82)で示されるような関係が成立する。
【1030】
α=m×y+n・・・(82)
【1031】
ここで、mは、混合比αが、空間方向Yに対して変化するときの傾きを示し、また、nは、混合比αが直線的に変化するときの切片に相当するものである。
【1032】
すなわち、図160で示されるように、混合比を示す直線は、背景領域のレベルに相当する画素値Bと、細線のレベルに相当するレベルLの境界を示す直線であり、この場合、空間方向Yについて単位距離進んだときの混合比の変化量が傾きmとなる。
【1033】
そこで、式(82)を、式(77)に代入すると以下の式(83)が導出される。
【1034】
M=(m×y+n)×B+(1−(m×y+n))×L・・・(83)
【1035】
さらに、この式(83)を展開すると、以下の式(84)が導出される。
【1036】
M−L=(y×B−y×L)×m+(B−L)×n・・・(84)
【1037】
式(84)においては、第1項のmが、混合比の空間方向の傾きを示し、第2項が混合比の切片を示す項である。従って、上述の式(84)のm,nを2変数の最小自乗法を用いて、正規方程式を生成し、求めるようにすることもできる。
【1038】
しかしながら、混合比αの傾きmは、上述した細線や2値エッジの傾き(上述の傾きG)そのものであるので、予め、上述の方法を用いて、細線、または、2値エッジの傾きGを求めた後、その傾きを用いて、式(84)に代入することにより、切片の項についての1変数の関数とし、上述した手法と同様に、1変数の最小自乗法により求めるようにしてもよい。
【1039】
以上の例においては、空間方向の細線、または、2値エッジの角度(傾き)、または、混合比をデータ定常性情報として検出するデータ定常性検出部101について説明してきたが、例えば、空間内の軸(空間方向X,Y)のいずれかを、時間方向(フレーム方向)Tの軸に置き換えることにより得られる、空間方向における角度に対応するものであってもよい。すなわち、空間内の軸(空間方向X,Y)のいずれかを、時間方向(フレーム方向)Tの軸に置き換えることにより得られる角度に対応するものとは、物体の動きベクトル(動きベクトルの方向)である。
【1040】
より具体的には、図161Aで示すように、物体が、時間が進むにつれて空間方向Yについて、図中の上方向に移動している場合、図中の細線に相当する部分(図131Aとの比較)には、物体の移動の軌跡が現れることになる。従って、時間方向Tの細線における傾きは、図161Aにおいては、物体の動く方向(物体の動きを示す角度)を示すもの(動きベクトルの方向と同値のもの)である。従って、現実世界において、図161A中の矢印で示される、所定の時刻におけるフレームでは、図161Bで示すように物体の軌跡となる部分が、物体の(色の)レベルとなり、それ以外の部分が、背景のレベルとなったパルス状の波形となる。
【1041】
このように、センサ2により動きのある物体を撮像したした場合、図162Aで示されるように、時刻T1乃至T3におけるフレームの各画素の画素値の分布は、図162Bで示されるように、空間方向Yに対して、それぞれ山型の波形をとる。この関係は、図132A,Bを参照して、説明した空間方向X,Yにおける関係と同様であるものと考えることができる。従って、フレーム方向Tに対して、物体に動きがある場合、上述した細線の傾き、または、2値エッジの角度(傾き)の情報と同様の手法により、物体の動きベクトルの方向をデータ定常性情報として求めることも可能である。尚、図162Bにおいては、フレーム方向T(時間方向T)について、各マス目は、1フレームの画像を構成するシャッタ時間となる。
【1042】
また、同様にして、図163Aで示されるように、フレーム方向T毎に、空間方向Yについて物体に動きがある場合、図163Bで示されるように、所定の時刻T1に相当するフレーム上で空間方向Yに向けて、物体の動きに対応して、各画素値が得られることになる。このとき、例えば、図163Bにおける、黒の実線で囲まれた画素の画素値は、図163Cで示されるように、物体の動きに対応して、背景のレベルと物体のレベルがフレーム方向に混合比βで混合している画素値である。
【1043】
この関係は、図155A,B,Cを参照して説明した関係と同様である。
【1044】
さらに、図164で示されるように、物体のレベルOと背景のレベルBとは、フレーム方向(時間方向)の混合比βにより直線近似することも可能である。個の関係は、図160を参照して説明した空間方向の混合比の直線近似と同様の関係である。
【1045】
従って、空間方向の混合比αと同様の手法により、時間(フレーム)方向の混合比βをデータ定常性情報として求めることも可能である。
【1046】
また、フレーム方向、または、空間方向のいずれか1次元を選択して、定常性の角度、または、動きベクトルの方向を求めるようにしてもよいし、同様にして混合比α,βを選択的に求めるようにしてもよい。
【1047】
以上によれば、現実世界の光信号を射影し、現実世界の光信号の定常性の一部が欠落した画像データ内の注目画素に対応する領域を選択し、選択した領域内の、欠落した現実世界の光信号の定常性に対応する画像データの定常性の基準軸に対する角度を検出するための特徴を検出し、検出した特徴に基いて統計的に角度を検出し、検出した画像データの定常性の基準軸に対する角度に基いて、欠落した現実世界の光信号の定常性を推定することにより光信号を推定するようにしたので、定常性の角度(動きベクトルの方向)、または、(時空間の)混合比を求めることが可能となる。
【1048】
次に、図165を参照して、データ定常性情報としてデータ定常性情報を用いた処理を行うべき領域の情報を出力する、データ定常性情報検出部101について説明する。
【1049】
角度検出部801は、入力された画像のうち、定常性を有する領域、すなわち、画像上において定常性を有する細線や2値エッジを構成する部分の空間方向の角度を検出し、検出した角度を実世界推定部802に出力する。尚、この角度検出部801は、図3におけるデータ定常性検出部101と同様のものである。
【1050】
実世界推定部802は、角度検出部801より入力されたデータ定常性の方向を示す角度と、入力画像の情報に基づいて実世界を推定する。すなわち、実世界推定部802は、入力された角度と、入力画像の各画素から実世界の光信号の強度分布を近似的に記述する近似関数の係数を求めて、求めた係数を実世界の推定結果として誤差演算部803に出力する。尚、この実世界推定部802は、図3における実世界推定部102と同様のものである。
【1051】
誤差演算部803は、実世界推定部802より入力された係数に基づいて、近似的に記述された現実世界の光の強度分布を示す近似関数を構成し、さらに、この近似関数に基づいて各画素位置に相当する光の強度を積分して、近似関数により推定された光の強度分布から各画素の画素値を生成し、実際に入力された画素値との差分を誤差として比較部804に出力する。
【1052】
比較部804は、各画素について誤差演算部803より入力された誤差と、予め設定された閾値とを比較することにより、定常性情報を用いた処理を施す画素の存在する処理領域と、非処理領域とを識別して、この定常性情報を用いた処理をする処理領域と非処理領域の識別がなされた領域情報を定常性情報として出力する。
【1053】
次に、図166のフローチャートを参照して、図165のデータ定常性検出部101による、定常性の検出の処理について説明する。
【1054】
ステップS801において、角度検出部801は、入力された画像を取得し、ステップS802において、定常性の方向を示す角度を検出する。より詳細には、角度検出部801は、例えば、水平方向を基準軸としたときの細線、または、2値エッジの有する定常性の方向を示す角度を検出して、実世界推定部802に出力する。
【1055】
ステップS803において、実世界推定部802は、角度検出部801より入力される角度の情報と、入力画像の情報に基づいて、現実世界を表現する関数F(x)に近似的に記述する、多項式からなる近似関数f(x)の係数を求めて、誤差演算部803に出力する。すなわち、現実世界を表現する近似関数f(x)は、以下の式(85)のような1次元多項式で示される。
【1056】
【数60】
Figure 2004246526
Figure 2004246526
【1057】
ここで、wiは、多項式の係数であり、実世界推定部802は、この係数wiを求めて、誤差演算部803に出力する。さらに、角度検出部801より入力される角度により、定常性の方向から傾きを求めることができる(G=tan−1θ,G:傾き,θ:角度)ので、この傾きGの拘束条件を代入することにより、上述の式(85)の式は、以下の式(86)で示されるように、2次元多項式で記述することができる。
【1058】
【数61】
Figure 2004246526
Figure 2004246526
【1059】
すなわち、上述の式(86)は、式(85)で記述される1次元の近似関数f(x)が、空間方向Yに平行移動することにより生じるずれ幅をシフト量α(=−dy/G:dyは、空間方向Yへの変化量)で表現することにより得られる2次元の関数f(x,y)を記述している。
【1060】
したがって、実世界推定部802は、入力画像と、定常性方向の角度の情報を用いて、上述の式(86)の各係数wiを解いて、求められた係数wiを誤差演算部803に出力する。
【1061】
ここで、図166のフローチャートの説明に戻る。
【1062】
ステップS804において、誤差演算部803は、実世界推定部802より入力された係数から、各画素について再積分を実行する。すなわち、誤差演算部803は、実世界推定部802より入力された係数から、上述の式(86)を、以下の式(87)で示されるように、各画素について積分する。
【1063】
【数62】
Figure 2004246526
Figure 2004246526
【1064】
ここで、Sは、図167で示される空間方向の積分結果を示す。また、その積分範囲は、図167で示すように、空間方向Xについては、x乃至xm+Bであり、空間方向Yについては、y乃至ym+Aである。また、図167においては、各マス目(正方形)は、1画素を示すものとし、空間方向X,Yについて、いずれも1であるものとする。
【1065】
従って、誤差演算部803は、図168で示されるように、近似関数f(x,y)で示される曲面の空間方向Xについてx乃至xm+1、および、空間方向Yについてy乃至ym+1(A=B=1)で、以下の式(88)で示されるような積分演算を各画素について実行し、実世界を近似的に表現する近似関数を空間的に積分することにより得られる各画素の画素値Pを演算する。
【1066】
【数63】
Figure 2004246526
Figure 2004246526
【1067】
すなわち、この処理により、誤差演算部803は、言わば一種の画素値生成部として機能し、近似関数から画素値を生成する。
【1068】
ステップS805において、誤差演算部803は、上述の式(88)で示したような積分により得られた画素値と、入力画像の画素値との差分を演算し、これを誤差として比較部804に出力する。すなわち、誤差演算部803は、上述の図167,図168で示した積分範囲(空間方向Xについてx乃至xm+1、および、空間方向Yについてy乃至ym+1)に対応する画素の画素値と、画素に対応する範囲の積分結果により得られた画素値との差分を、誤差として求めて比較部804に出力する。
【1069】
ステップS806において、比較部804は、誤差演算部803より入力される積分により得られた画素値と入力画像の画素値との誤差の絶対値が、所定の閾値以下であるか否かを判定する。
【1070】
ステップS806において、誤差が所定の閾値以下であると判定された場合、ステップS807において、比較部804は、積分により得られた画素値が、入力画像の画素の画素値と近い値が得られているので、その画素の画素値を演算するにあたり設定した近似関数が、現実世界の光信号の光の強度分布と十分に近似しているとみなし、今処理した画素の領域は、定常性情報に基づいた近似関数による処理を行う処理領域として認識する。より詳細には、比較部804は、図示せぬメモリに今処理した画素が、以降の処理領域の画素であることを記憶させる。
【1071】
一方、ステップS806において、誤差が所定の閾値以下ではないと判定された場合、ステップS808において、比較部804は、積分により得られた画素値が、実際の画素値と離れた値となっているので、その画素の画素値を演算するにあたり設定した近似関数が、現実世界の光信号の光の強度分布と十分に近似していないとみなし、今処理した画素の領域は、後段において定常性情報に基づいた近似関数による処理を行わない非処理領域として認識する。より詳細には、比較部804は、図示せぬメモリに今処理した画素の領域が、以降の非処理領域であることを記憶させる。
【1072】
ステップS809において、比較部804は、全ての画素で処理が実行されたか否かを判定し、全ての画素で処理が実行されていないと判定された場合、その処理は、ステップS802に戻り、それ以降の処理が繰り返される。すなわち、全ての画素について、積分による画素値と、入力された画素値との比較がなされ、処理領域であるか否かの判定処理が完了するまで、ステップS802乃至S809の処理が繰り返される。
【1073】
ステップS809において、全ての画素について、再積分による画素値と、入力された画素値との比較がなされ、処理領域であるか否かの判定処理が完了したと判定された場合、ステップS810において、比較部804は、図示せぬメモリに記憶されている、入力画像について、後段の処理において空間方向の定常性情報に基づいた処理がなされる処理領域と、空間方向の定常性情報に基づいた処理がなされない非処理領域が識別された領域情報を、定常性情報として出力する。
【1074】
以上の処理によれば、定常性情報に基づいて演算された近似関数f(x)を用いて各画素に対応する範囲の積分結果により得られた画素値と、実際の入力画像中の画素値との誤差に基づいて、近似関数の表現の確からしさの評価が領域毎(画素毎に)にされることになり、誤差の小さい領域、すなわち、近似関数に基づいた積分により得られる画素値が確からしい画素の存在する領域のみを処理領域とし、それ以外の領域を非処理領域とすることになるので、確からしい領域にのみ空間方向の定常性情報に基づいた処理を施すことができ、必要な処理だけを実行させるようにすることができるため、処理速度を向上させることができると共に、確からしい領域にのみ処理を実行させることができるので、この処理による画質劣化を抑制することが可能となる。
【1075】
次に、図169を参照して、データ定常性情報としてデータ定常性情報を用いた処理を行う画素の存在する領域情報を出力する、データ定常性情報検出部101のその他の実施例について説明する。
【1076】
動き検出部821は、入力された画像のうち、定常性を有する領域、すなわち、画像上においてフレーム方向に定常性を有する動き(動きベクトルの方向:V)を検出し、検出した動きを実世界推定部822に出力する。尚、この動き検出部821は、図3におけるデータ定常性検出部101と同様のものである。
【1077】
実世界推定部822は、動き検出部821より入力されたデータ定常性の動きと、入力画像の情報に基づいて実世界を推定する。すなわち、実世界推定部822は、入力された動きと、入力画像の各画素からフレーム方向(時間方向)の実世界の光信号の強度分布を近似的に記述する近似関数の係数を求めて、求めた係数を実世界の推定結果として誤差演算部823に出力する。尚、この実世界推定部822は、図3における実世界推定部102と同様のものである。
【1078】
誤差演算部823は、実世界推定部822より入力された係数に基づいて、近似的に記述されたフレーム方向の現実世界の光の強度分布を示す近似関数を構成し、さらに、この近似関数からフレーム毎に各画素位置に相当する光の強度を積分して、近似関数により推定された光の強度分布から各画素の画素値を生成し、実際に入力された画素値との差分を誤差として比較部824に出力する。
【1079】
比較部824は、各画素について誤差演算部823より入力された誤差と、予め設定された閾値とを比較することにより、定常性情報を用いた処理を施す画素の存在する処理領域と、非処理領域とを識別して、この定常性情報を用いた処理をする処理領域と非処理領域の識別がなされた領域情報を定常性情報として出力する。
【1080】
次に、図170のフローチャートを参照して、図169のデータ定常性検出部101による、定常性の検出の処理について説明する。
【1081】
ステップS821において、動き検出部801は、入力された画像を取得し、ステップS822において、定常性を示す動きを検出する。より詳細には、動き検出部801は、例えば、入力画像中で動く物体の動き(動きベクトルの方向:V)を検出して、実世界推定部822に出力する。
【1082】
ステップS823において、実世界推定部822は、動き検出部821より入力される動きの情報と、入力画像の情報に基づいて、現実世界を表現するフレーム方向の関数F(t)に近似的に記述する、多項式からなる関数f(t)の係数を求めて、誤差演算部823に出力する。すなわち、現実世界を表現する関数f(t)は、以下の式(89)のような1次元多項式で示される。
【1083】
【数64】
Figure 2004246526
Figure 2004246526
【1084】
ここで、wiは、多項式の係数であり、実世界推定部822は、この係数wiを求めて、誤差演算部823に出力する。さらに、動き検出部821より入力される動きにより、定常性の動きを求めることができる(V=tan−1θv,V:動きベクトルのフレーム方向の傾き,θv:動きベクトルのフレーム方向の角度)ので、この傾きの拘束条件を代入することにより、上述の式(89)の式は、以下の式(90)で示されるように、2次元多項式で記述することができる。
【1085】
【数65】
Figure 2004246526
Figure 2004246526
【1086】
すなわち、上述の式(90)は、式(89)で記述される1次元の近似関数f(t)が、空間方向Yに平行移動することにより生じるずれ幅を、シフト量αt(=−dy/V:dyは、空間方向Yへの変化量)で表現することにより得られる2次元の関数f(t,y)を記述している。
【1087】
したがって、実世界推定部822は、入力画像と、定常性の動きの情報を用いて、上述の式(90)の各係数wiを解いて、求められた係数wiを誤差演算部823に出力する。
【1088】
ここで、図170のフローチャートの説明に戻る。
【1089】
ステップS824において、誤差演算部823は、実世界推定部822より入力された係数から、各画素についてフレーム方向に積分を実行する。すなわち、誤差演算部823は、実世界推定部822より入力された係数から、上述の式(90)を、以下の式(91)で示されるように、各画素について積分する。
【1090】
【数66】
Figure 2004246526
Figure 2004246526
【1091】
ここで、Sは、図171で示されるフレーム方向の積分結果を示す。また、その積分範囲は、図171で示すように、フレーム方向Tについては、T乃至Tm+Bであり、空間方向Yについては、y乃至ym+Aである。また、図171においては、各マス目(正方形)は、1画素を示すものとし、フレーム方向T、および、空間方向Yのいずれも1であるものとする。ここで、フレーム方向Tについて1であるとは、1フレーム分のシャッタ時間を1とすることである。
【1092】
従って、誤差演算部823は、図172で示されるように、近似関数f(t,y)で示される曲面の空間方向TについてT乃至Tm+1、および、空間方向Yについてy乃至ym+1(A=B=1)で、以下の式(92)で示されるような積分演算を各画素について実行し、実世界を近似的に表現する関数から得られる各画素の画素値Pを演算する。
【1093】
【数67】
Figure 2004246526
Figure 2004246526
【1094】
すなわち、この処理により、誤差演算部823は、言わば一種の画素値生成部として機能し、近似関数から画素値を生成する。
【1095】
ステップS825において、誤差演算部803は、上述の式(92)で示したような積分により得られた画素値と、入力画像の画素値との差分を演算し、これを誤差として比較部824に出力する。すなわち、誤差演算部823は、上述の図171,図172で示した積分範囲(空間方向TについてT乃至Tm+1、および、空間方向Yについてy乃至ym+1)に対応する画素の画素値と、画素に対応する範囲の積分結果により得られた画素値との差分を、誤差として求めて比較部824に出力する。
【1096】
ステップS826において、比較部824は、誤差演算部823より入力された積分により得られた画素値と入力画像の画素値との誤差の絶対値が、所定の閾値以下であるか否かを判定する。
【1097】
ステップS826において、誤差が所定の閾値以下であると判定された場合、ステップS827において、比較部824は、積分により得られた画素値が、入力画像の画素値と近い値が得られているので、その画素の画素値を演算するにあたり設定した近似関数が、実世界の光信号の光の強度分布と十分に近似されているとみなし、今処理した画素の領域は、処理領域として認識する。より詳細には、比較部824は、図示せぬメモリに今処理した画素が、以降の処理領域の画素であることを記憶させる。
【1098】
一方、ステップS826において、誤差が所定の閾値以下ではないと判定された場合、ステップS828において、比較部824は、積分により得られた画素値が、実際の画素値と離れた値となっているので、その画素の画素値を演算するにあたり設定した近似関数が、現実世界の光の強度分布と十分に近似していないとみなし、今処理した画素の領域は、後段において定常性情報に基づいた近似関数による処理を行わない非処理領域として認識する。より詳細には、比較部824は、図示せぬメモリに今処理した画素の領域が、以降の非処理領域であることを記憶させる。
【1099】
ステップS829において、比較部824は、全ての画素で処理が実行されたか否かを判定し、全ての画素で処理が実行されていないと判定された場合、その処理は、ステップS822に戻り、それ以降の処理が繰り返される。すなわち、全ての画素について、積分による画素値と、入力された画素値との比較がなされ、処理領域であるか否かの判定処理が完了するまで、ステップS822乃至S829の処理が繰り返される。
【1100】
ステップS829において、全ての画素について、再積分による画素値と、入力された画素値との比較がなされ、処理領域であるか否かの判定処理が完了したと判定された場合、ステップS830において、比較部824は、図示せぬメモリに記憶されている、入力画像について、後段の処理においてフレーム方向の定常性情報に基づいた処理がなされる処理領域と、フレーム方向の定常性情報に基づいた処理がなされない非処理領域が識別された領域情報を、定常性情報として出力する。
【1101】
以上の処理によれば、定常性情報に基づいて演算された近似関数f(t)を用いた各画素に対応する範囲の積分結果により得られた画素値と、実際の入力画像中の画素値との誤差に基づいて、近似関数の表現の確からしさの評価が領域毎(画素毎に)にされることになり、誤差の小さい領域、すなわち、近似関数に基づいて積分により得られる画素値が確からしい画素の存在する領域のみを処理領域とし、それ以外の領域を非処理領域とすることになるので、確からしい領域にのみフレーム方向の定常性情報に基づいた処理を施すことができ、必要な処理だけを実行させるようにすることができるため、処理速度を向上させることができると共に、確からしい領域にのみ処理を実行させることができるので、この処理による画質劣化を抑制することが可能となる。
【1102】
図165および図169のデータ定常性情報検出部101の構成を組み合わせて、時空間方向のうち、いずれか1次元を選択して、選択的に領域情報を出力させるようにしてもよい。
【1103】
以上によれば、それぞれ時空間積分効果を有する、センサの複数の検出素子により現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる画像データにおけるデータの定常性を検出し、検出した定常性に対応して、画像データの時空間方向のうち少なくとも1次元方向の位置に対応する各画素の画素値が少なくとも1次元方向の積分効果により取得された画素値であるとして現実世界の光信号に対応する関数を近似することにより、現実世界の光信号に対応する関数を推定し、推定した関数を少なくとも1次元方向の各画素に対応する単位で積分することにより取得される画素値と、各画素の画素値との差分値を検出し、差分値に応じて関数を選択的に出力するようにしたので、近似関数に基づいて積分により得られる画素値が確からしい画素の存在する領域のみを処理領域とし、それ以外の領域を非処理領域とすることが可能となり、確からしい領域にのみフレーム方向の定常性情報に基づいた処理を施すことができ、必要な処理だけを実行させるようにすることができるため、処理速度を向上させることができると共に、確からしい領域にのみ処理を実行させることができるので、この処理による画質劣化を抑制することが可能となる。
【1104】
次に、実世界1の信号の推定について説明する。
【1105】
図173は、実世界推定部102の構成を示すブロック図である。
【1106】
図173に構成を示す実世界推定部102においては、入力画像、および定常性検出部101から供給されたデータ定常性情報を基に、実世界1の信号である画像における、細線の幅が検出され、細線のレベル(実世界1の信号の光の強度)が推定される。
【1107】
線幅検出部2101は、定常性検出部101から供給された、細線の画像が射影された画素からなる、細線領域である定常領域を示すデータ定常性情報を基に、細線の幅を検出する。線幅検出部2101は、データ定常性情報と共に、検出された細線の幅を示す細線幅情報を信号レベル推定部2102に供給する。
【1108】
信号レベル推定部2102は、入力画像、線幅検出部2101から供給された細線の幅を示す細線幅情報、およびデータ定常性情報を基に、実世界1の信号である、細線の画像のレベル、すなわち光の強度のレベルを推定し、細線の幅および細線の画像のレベルを示す実世界推定情報を出力する。
【1109】
図174および図175は、実世界1の信号における、細線の幅を検出する処理を説明する図である。
【1110】
図174および図175において、太線で囲む領域(4つの四角からなる領域)は、1つの画素を示し、点線で囲む領域は、細線の画像が射影された画素からなる、細線領域を示し、丸は、細線領域の重心を示す。図174および図175において、斜線は、センサ2に入射された細線の画像を示す。斜線は、センサ2に、実世界1の細線の画像が射影された領域を示しているとも言える。
【1111】
図174および図175において、Sは、細線領域の重心の位置から算出される傾きを示し、Dは、細線領域の重複である。ここで、傾きSは、細線領域が隣接しているので、画素を単位とした、重心と重心との距離である。また、細線領域の重複Dとは、2つの細線領域において、隣接している画素の数である。
【1112】
図174および図175において、Wは、細線の幅を示す。
【1113】
図174において、傾きSは、2であり、重複Dは、2である。
【1114】
図175において、傾きSは、3であり、重複Dは、1である。
【1115】
細線領域が隣接し、細線領域が隣接する方向の重心と重心の距離は、1画素であるので、W:D=1:Sが成立し、細線の幅Wは、重複D/傾きSで求めることができる。
【1116】
例えば、図174で示されるように、傾きSは、2であり、重複Dは、2であるとき、2/2は、1であるから、細線の幅Wは、1である。また、例えば、図175で示されるように、傾きSは、3であり、重複Dは、1であるとき、細線の幅Wは、1/3である。
【1117】
線幅検出部2101は、このように、細線領域の重心の位置から算出される傾き、および細線領域の重複から、細線の幅を検出する。
【1118】
図176は、実世界1の信号における、細線の信号のレベルを推定する処理を説明する図である。
【1119】
図176において、太線で囲む領域(4つの四角からなる領域)は、1つの画素を示し、点線で囲む領域は、細線の画像が射影された画素からなる、細線領域を示す。図176において、Eは、細線領域の画素を単位とした、細線領域の長さを示し、Dは、細線領域の重複(他の細線領域に隣接している画素の数)である。
【1120】
細線の信号のレベルは、処理単位(細線領域)内で一定であると近似し、細線が射影された画素の画素値に射影された、細線以外の画像のレベルは、隣接している画素の画素値に対するレベルに等しいと近似する。
【1121】
細線の信号のレベルをCとしたとき、細線領域に射影された信号(画像)における、図中の、細線の信号が射影された部分の左側の部分のレベルをAとし、図中の、細線の信号が射影された部分の右側の部分のレベルをBとする。
【1122】
このとき、式(93)が成立する。
【1123】
細線領域の画素値の総和=(E−D)/2*A+(E−D)/2*B+D*C ・・・(93)
【1124】
細線の幅が一定であり、細線領域の幅は、1画素なので、細線領域の細線(の信号が射影された部分)の面積は、細線領域の重複Dに等しい。細線領域の幅は、1画素なので、細線領域の画素を単位とした、細線領域の面積は、細線領域の長さEに等しい。
【1125】
細線領域のうち、細線の左側の面積は、(E−D)/2である。細線領域のうち、細線の右側の面積は、(E−D)/2である。
【1126】
式(93)の右辺の第1項は、左側に隣接している画素に射影された信号のレベルと同じレベルの信号が射影された画素値の部分であり、式(94)で表すことができる。
【1127】
【数68】
Figure 2004246526
Figure 2004246526
【1128】
式(94)において、Aは、左側に隣接している画素の画素値を示す。
【1129】
式(94)において、αは、左側に隣接している画素に射影された信号のレベルと同じレベルの信号が、細線領域の画素に射影される面積の割合を示す。すなわち、αは、細線領域の画素の画素値に含まれている、左側に隣接している画素の画素値と同じ画素値の割合を示す。
【1130】
iは、細線領域の左側に隣接している画素の位置を示す。
【1131】
例えば、図176において、細線領域の画素の画素値に含まれている、細線領域の左側に隣接している画素の画素値Aと同じ画素値の割合は、αである。図176において、細線領域の画素の画素値に含まれている、細線領域の左側に隣接している画素の画素値Aと同じ画素値の割合は、αである。図176において、細線領域の画素の画素値に含まれている、細線領域の左側に隣接している画素の画素値Aと同じ画素値の割合は、αである。
【1132】
式(93)の右辺の第2項は、右側に隣接している画素に射影された信号のレベルと同じレベルの信号が射影された画素値の部分であり、式(95)で表すことができる。
【1133】
【数69】
Figure 2004246526
Figure 2004246526
【1134】
式(95)において、Bは、右側に隣接している画素の画素値を示す。
【1135】
式(95)において、βは、右側に隣接している画素に射影された信号のレベルと同じレベルの信号が、細線領域の画素に射影される面積の割合を示す。すなわち、βは、細線領域の画素の画素値に含まれている、右側に隣接している画素の画素値と同じ画素値の割合を示す。
【1136】
jは、細線領域の右側に隣接している画素の位置を示す。
【1137】
例えば、図176において、細線領域の画素の画素値に含まれている、細線領域の右側に隣接している画素の画素値Bと同じ画素値の割合は、βである。図176において、細線領域の画素の画素値に含まれている、細線領域の右側に隣接している画素の画素値Bと同じ画素値の割合は、βである。図176において、細線領域の画素の画素値に含まれている、細線領域の右側に隣接している画素の画素値Bと同じ画素値の割合は、βである。
【1138】
このように、信号レベル推定部2102は、式(94)および式(95)を基に、細線領域に含まれる画素値のうちの、細線以外の画像の画素値を算出し、式(93)を基に、細線領域の画素値から細線以外の画像の画素値を除去することにより、細線領域に含まれる画素値のうちの、細線のみの画像の画素値を求める。そして、信号レベル推定部2102は、細線のみの画像の画素値と細線の面積とから、細線の信号のレベルを求める。より具体的には、信号レベル推定部2102は、細線領域に含まれる画素値のうちの、細線のみの画像の画素値を、細線領域の細線の面積、すなわち細線領域の重複Dで割り算することにより、細線の信号のレベルを算出する。
【1139】
信号レベル推定部2102は、実世界1の信号における、細線の幅、および細線の信号のレベルを示す実世界推定情報を出力する。
【1140】
本発明の手法では、細線の波形を画素ではなく幾何学的に記述しているので、どのような解像度でも使用することができる。
【1141】
次に、ステップS102の処理に対応する、実世界の推定の処理を図177のフローチャートを参照して説明する。
【1142】
ステップS2101において、線幅検出部2101は、データ定常性情報を基に、細線の幅を検出する。例えば、線幅検出部2101は、細線領域の重心の位置から算出される傾き、および細線領域の重複から、重複を傾きで割り算することにより、実世界1の信号における、細線の幅を推定する。
【1143】
ステップS2102において、信号レベル推定部2102は、細線の幅、および細線領域に隣接する画素の画素値を基に、細線の信号のレベルを推定し、推定された細線の幅および細線の信号のレベルを示す実世界推定情報を出力して、処理は終了する。例えば、信号レベル推定部2102は、細線領域に含まれる細線以外の画像が射影された画素値を算出し、細線領域から細線以外の画像が射影された画素値を除去することにより、細線のみの画像が射影された画素値を求めて、求められた細線のみの画像が射影された画素値と細線の面積とから、細線の信号のレベルを算出することにより、実世界1の信号における、細線のレベルを推定する。
【1144】
このように、実世界推定部102は、実世界1の信号の細線の幅およびレベルを推定することができる。
【1145】
以上のように、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した第1の画像データの、データの定常性を検出し、データの定常性に対応する現実世界の光信号の波形を表すモデルに基いて、第1の画像データの定常性から現実世界の光信号の波形を推定し、推定された光信号を第2の画像データに変換するようにした場合、現実世界の光信号に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【1146】
図178は、実世界推定部102の他の構成を示すブロック図である。
【1147】
図178に構成を示す実世界推定部102においては、入力画像、およびデータ定常性検出部101から供給されたデータ定常性情報を基に、領域が再度検出され、再度検出された領域を基に、実世界1の信号である画像における、細線の幅が検出され、実世界1の信号の光の強度(レベル)が推定される。例えば、図178に構成を示す実世界推定部102においては、細線の画像が射影された画素からなる定常性領域が再度検出され、再度検出された領域を基に、実世界1の信号である画像における、細線の幅が検出され、実世界1の信号の光の強度が推定される。
【1148】
データ定常性検出部101から供給され、図178に構成を示す実世界推定部102に入力されるデータ定常性情報には、データ3である入力画像のうちの、細線の画像が射影された定常成分以外の非定常成分を示す非定常成分情報、定常領域の中の単調増減領域を示す単調増減領域情報、および定常領域を示す情報などが含まれている。例えば、データ定常性情報に含まれる非定常成分情報は、入力画像における背景などの非定常成分を近似する平面の傾きおよび切片からなる。
【1149】
実世界推定部102に入力されたデータ定常性情報は、境界検出部2121に供給される。実世界推定部102に入力された入力画像は、境界検出部2121および信号レベル推定部2102に供給される。
【1150】
境界検出部2121は、データ定常性情報に含まれる非定常成分情報、および入力画像から、細線の画像が射影された定常成分のみからなる画像を生成し、定常成分のみからなる画像を基に、画素に射影された、実世界1の信号である細線の画像が射影された割合を示す分配比を算出し、算出された分配比から細線領域の境界を示す回帰直線を算出することにより、定常領域である細線領域を再び検出する。
【1151】
図179は、境界検出部2121の構成を示すブロック図である。
【1152】
分配比算出部2131は、データ定常性情報、データ定常性情報に含まれる非定常成分情報、および入力画像から、細線の画像が射影された定常成分のみからなる画像を生成する。より具体的には、分配比算出部2131は、データ定常性情報に含まれる単調増減領域情報を基に、入力画像から、定常領域の中の隣り合う単調増減領域を検出し、検出された単調増減領域に属する画素の画素値から、定常成分情報に含まれる傾きおよび切片で示される平面で近似される近似値を引き算することにより、細線の画像が射影された定常成分のみからなる画像を生成する。
【1153】
なお、分配比算出部2131は、入力画像の画素の画素値から、定常成分情報に含まれる傾きおよび切片で示される平面で近似される近似値を引き算することにより、細線の画像が射影された定常成分のみからなる画像を生成するようにしてもよい。
【1154】
分配比算出部2131は、生成された定常成分のみからなる画像を基に、実世界1の信号である細線の画像が、定常領域の中の隣り合う単調増減領域に属する2つの画素に分配された割合を示す分配比を算出する。分配比算出部2131は、算出した分配比を回帰直線算出部2132に供給する。
【1155】
図180乃至図182を参照して、分配比算出部2131における、分配比の算出の処理を説明する。
【1156】
図180の左側の2列の数値は、入力画像の画素値から、定常成分情報に含まれる傾きおよび切片で示される平面で近似される近似値を引き算することにより、算出された画像のうち、縦に2列の画素の画素値を示す。図180の左側の四角で囲む2つの領域は、隣り合う2つの単調増減領域である、単調増減領域2141−1および単調増減領域2141−2を示す。すなわち、単調増減領域2141−1および単調増減領域2141−2に示す数値は、データ定常性検出部101において検出された定常性領域である単調増減領域に属する画素の画素値を示す。
【1157】
図180の右側の1列の数値は、図180の左側の2列の画素の画素値のうち、横に並ぶ画素の画素値を加算した値を示す。すなわち、図180の右側の1列の数値は、縦に1列の画素からなる単調増減領域であって、2つの隣接するものについて、横に隣接する画素毎に、細線の画像が射影された画素値を加算した値を示す。
【1158】
例えば、それぞれ、縦に1列の画素からなり、隣接する単調増減領域2141−1および単調増減領域2141−2のいずれかに属し、横に隣接する画素の画素値が、2および58であるとき、加算した値は、60である。それぞれ、縦に1列の画素からなり、隣接する単調増減領域2141−1および単調増減領域2141−2のいずれかに属し、横に隣接する画素の画素値が、1および65であるとき、加算した値は、66である。
【1159】
図180の右側の1列の数値、すなわち、縦に1列の画素からなり、2つの隣接する単調増減領域の横方向に隣接する画素について、細線の画像が射影された画素値を加算した値は、ほぼ一定となることがわかる。
【1160】
同様に、横に1列の画素からなり、2つの隣接する単調増減領域の縦方向に隣接する画素について、細線の画像が射影された画素値を加算した値は、ほぼ一定となる。
【1161】
分配比算出部2131は、2つの隣接する単調増減領域の隣接する画素について、細線の画像が射影された画素値を加算した値が、ほぼ一定となる性質を利用して、細線の画像が1列の画素の画素値にどのように分配されているかを算出する。
【1162】
分配比算出部2131は、図181に示すように、縦に1列の画素からなる単調増減領域であって、2つの隣接するものに属する画素の画素値を、横に隣接する画素毎に、細線の画像が射影された画素値を加算した値で割り算することにより、2つの隣接する単調増減領域に属する各画素について、分配比を算出する。ただし、算出された結果、100を超える分配比には、100が設定される。
【1163】
例えば、図181に示すように、縦に1列の画素からなる単調増減領域であって、2つの隣接するものに属する、横に隣接する画素の画素値が、それぞれ2および58であるとき、加算した値が60なので、それぞれの画素に対して、3.5および95.0である分配比が算出される。縦に1列の画素からなる単調増減領域であって、2つの隣接するものに属する、横に隣接する画素の画素値が、それぞれ1および65であるとき、加算した値が65なので、それぞれの画素に対して、1.5および98.5である分配比が算出される。
【1164】
この場合において、3つの単調増減領域が隣接する場合、どちらの列から計算するかは、図182で示されるように、横に隣接する画素毎に、細線の画像が射影された画素値を加算した、2つの値のうち、頂点Pの画素値により近い値を基に、分配比が算出される。
【1165】
例えば、頂点Pの画素値が81であり、注目している単調増減領域に属する画素の画素値が79であるとき、左側に隣接する画素の画素値が3であり、右側に隣接する画素の画素値が−1である場合、左側に隣接する画素の画素値を加算した値が、82であり、右側に隣接する画素の画素値を加算した値が、78なので、頂点Pの画素値81により近い、82が選択され、左側に隣接する画素を基に、分配比が算出される。同様に、頂点Pの画素値が81であり、注目している単調増減領域に属する画素の画素値が75であるとき、左側に隣接する画素の画素値が0であり、右側に隣接する画素の画素値が3である場合、左側に隣接する画素の画素値を加算した値が、75であり、右側に隣接する画素の画素値を加算した値が、78なので、頂点Pの画素値81により近い、78が選択され、右側に隣接する画素を基に、分配比が算出される。
【1166】
このように、分配比算出部2131は、縦に1列の画素からなる単調増減領域について、分配比を算出する。
【1167】
分配比算出部2131は、同様の処理で、横に1列の画素からなる単調増減領域について、分配比を算出する。
【1168】
回帰直線算出部2132は、単調増減領域の境界が直線であると仮定して、分配比算出部2131において算出された分配比を基に、単調増減領域の境界を示す回帰直線を算出することにより、定常領域の中の単調増減領域を再び検出する。
【1169】
図183および図184を参照して、回帰直線算出部2132における、単調増減領域の境界を示す回帰直線の算出の処理を説明する。
【1170】
図183において、白丸は、単調増減領域2141−1乃至単調増減領域2141−5の上側の境界に位置する画素を示す。回帰直線算出部2132は、回帰の処理により、単調増減領域2141−1乃至単調増減領域2141−5の上側の境界について回帰直線を算出する。例えば、回帰直線算出部2132は、単調増減領域2141−1乃至単調増減領域2141−5の上側の境界に位置する画素との距離の自乗の和が最小となる直線Aを算出する。
【1171】
また、図183において、黒丸は、単調増減領域2141−1乃至単調増減領域2141−5の下側の境界に位置する画素を示す。回帰直線算出部2132は、回帰の処理により、単調増減領域2141−1乃至単調増減領域2141−5の下側の境界について回帰直線を算出する。例えば、回帰直線算出部2132は、単調増減領域2141−1乃至単調増減領域2141−5の下側の境界に位置する画素との距離の自乗の和が最小となる直線Bを算出する。
【1172】
回帰直線算出部2132は、算出された回帰直線を基に、単調増減領域の境界を決定することにより、定常領域の中の単調増減領域を再び検出する。
【1173】
図184に示すように、回帰直線算出部2132は、算出された直線Aを基に、単調増減領域2141−1乃至単調増減領域2141−5の上側の境界を決定する。例えば、回帰直線算出部2132は、単調増減領域2141−1乃至単調増減領域2141−5のそれぞれについて、算出された直線Aに最も近い画素から上側の境界を決定する。例えば、回帰直線算出部2132は、単調増減領域2141−1乃至単調増減領域2141−5のそれぞれについて、算出された直線Aに最も近い画素が領域に含まれるように上側の境界を決定する。
【1174】
図184に示すように、回帰直線算出部2132は、算出された直線Bを基に、単調増減領域2141−1乃至単調増減領域2141−5の下側の境界を決定する。例えば、回帰直線算出部2132は、単調増減領域2141−1乃至単調増減領域2141−5のそれぞれについて、算出された直線Bに最も近い画素から下側の境界を決定する。例えば、回帰直線算出部2132は、単調増減領域2141−1乃至単調増減領域2141−5のそれぞれについて、算出された直線Bに最も近い画素が領域に含まれるように上側の境界を決定する。
【1175】
このように、回帰直線算出部2132は、データ定常性検出部101により検出された定常領域の境界を回帰する回帰線に基づいて、頂点から単調に画素値が増加または減少している領域を再び検出する。すなわち、回帰直線算出部2132は、算出された回帰直線を基に、単調増減領域の境界を決定することにより、定常領域の中の単調増減領域である領域を再び検出し、検出した領域を示す領域情報を線幅検出部2101に供給する。
【1176】
以上のように、境界検出部2121は、画素に射影された、実世界1の信号である細線の画像が射影された割合を示す分配比を算出し、算出された分配比から単調増減領域の境界を示す回帰直線を算出することにより、定常領域の中の単調増減領域を再び検出する。このようにすることで、より正確な単調増減領域を検出することができる。
【1177】
図178に示す線幅検出部2101は、境界検出部2121から供給された、再度検出された領域を示す領域情報を基に、図173に示す場合と同様の処理で、細線の幅を検出する。線幅検出部2101は、データ定常性情報と共に、検出された細線の幅を示す細線幅情報を信号レベル推定部2102に供給する。
【1178】
図178に示す信号レベル推定部2102の処理は、図173に示す場合と同様の処理なので、その説明は省略する。
【1179】
図185は、ステップS102の処理に対応する、図178に構成を示す実世界推定部102による、実世界の推定の処理を説明するフローチャートである。
【1180】
ステップS2121において、境界検出部2121は、データ定常性検出部101により検出された定常領域に属する画素の画素値に基づいて、再び領域を検出する、境界検出の処理を実行する。境界検出の処理の詳細は、後述する。
【1181】
ステップS2122およびステップS2123の処理は、ステップS2101およびステップS2102の処理と同様なので、その説明は省略する。
【1182】
図186は、ステップS2121の処理に対応する、境界検出の処理を説明するフローチャートである。
【1183】
ステップS2131において、分配比算出部2131は、単調増減領域を示すデータ定常性情報および入力画像を基に、細線の画像が射影された割合を示す分配比を算出する。例えば、分配比算出部2131は、データ定常性情報に含まれる単調増減領域情報を基に、入力画像から、定常領域の中の隣り合う単調増減領域を検出し、検出された単調増減領域に属する画素の画素値から、定常成分情報に含まれる傾きおよび切片で示される平面で近似される近似値を引き算することにより、細線の画像が射影された定常成分のみからなる画像を生成する。そして、分配比算出部2131は、1列の画素からなる単調増減領域であって、2つの隣接するものに属する画素の画素値を、隣接する画素の画素値の和で割り算することにより、2つの隣接する単調増減領域に属する各画素について、分配比を算出する。
【1184】
分配比算出部2131は、算出された分配比を回帰直線算出部2132に供給する。
【1185】
ステップS2132において、回帰直線算出部2132は、細線の画像が射影された割合を示す分配比を基に、単調増減領域の境界を示す回帰直線を算出することにより、定常領域の中の領域を再び検出する。例えば、回帰直線算出部2132は、単調増減領域の境界が直線であると仮定して、単調増減領域の一端の境界を示す回帰直線を算出し、単調増減領域の他の一端の境界を示す回帰直線を算出することにより、定常領域の中の単調増減領域を再び検出する。
【1186】
回帰直線算出部2132は、再び検出された、定常領域の中の領域を示す領域情報を線幅検出部2101に供給して、処理は終了する。
【1187】
このように、図178に構成を示す実世界推定部102は、細線の画像が射影された画素からなる領域を再度検出し、再度検出された領域を基に、実世界1の信号である画像における、細線の幅を検出し、実世界1の信号の光の強度(レベル)を推定する。このようにすることで、実世界1の信号に対して、より正確に、細線の幅を検出し、より正確に、光の強度を推定することができる。
【1188】
以上のように、現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した第1の画像データにおける、複数の画素の画素値の不連続部を検出し、検出された不連続部から、データの定常性を有する定常領域を検出し、検出された定常領域に属する画素の画素値に基づいて、再び領域を検出し、再び検出された領域に基づいて実世界を推定するようにした場合、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【1189】
次に、図187を参照して、定常性を有する領域における、画素毎の空間方向の近似関数の微分値を実世界推定情報として出力する実世界推定部102について説明する。
【1190】
参照画素抽出部2201は、データ定常性検出部101より入力されるデータ定常性情報(定常性の角度、または、領域の情報)に基づいて、入力画像の各画素が処理領域であるか否かを判定し、処理領域である場合には、入力画像から実世界の近似関数を求めるために必要な参照画素の情報(演算に必要な注目画素周辺の複数の画素の位置、および、画素値の情報)を抽出して、近似関数推定部2202に出力する。
【1191】
近似関数推定部2202は、参照画素抽出部2201より入力された参照画素の情報に基づいて注目画素周辺の現実世界を近似的に記述する近似関数を最小自乗法に基づいて推定し、推定した近似関数を微分処理部2203に出力する。
【1192】
微分処理部2203は、近似関数推定部2202より入力された近似関数に基づいて、データ定常性情報の角度(例えば、細線や2値エッジの所定の軸に対する角度:傾き)に応じて、注目画素から生成しようとする画素の位置のシフト量を求め、そのシフト量に応じた近似関数上の位置における微分値(定常性に対応する線からの1次元方向に沿った距離に対応する各画素の画素値を近似する関数の微分値)を演算し、さらに、注目画素の位置、画素値、および、定常性の傾きの情報を付加して、これを実世界推定情報として画像生成部103に出力する。
【1193】
次に、図188のフローチャートを参照して、図187の実世界推定部102による実世界推定の処理について説明する。
【1194】
ステップS2201において、参照画素抽出部2201は、入力画像と共に、データ定常性検出部101よりデータ定常性情報としての角度、および、領域の情報を取得する。
【1195】
ステップS2202において、参照画素抽出部2201は、入力画像の未処理画素から注目画素を設定する。
【1196】
ステップS2203において、参照画像抽出部2201は、データ定常性情報の領域の情報に基づいて、注目画素が、処理領域のものであるか否かを判定し、処理領域の画素ではないと判定した場合、その処理は、ステップS2210に進み、その注目画素については、処理領域外であることを近似関数推定部2202を介して、微分処理部2203に伝え、これに応じて、微分処理部2203が、対応する注目画素についての微分値を0として、さらに、その注目画素の画素値を付加して実世界推定情報として画像生成部103に出力すると共に、その処理は、ステップS2211に進む。また、注目画素が処理領域のものであると判定された場合、その処理は、ステップS2204に進む。
【1197】
ステップS2204において、参照画素抽出部2201は、データ定常性情報に含まれる角度の情報から、データ定常性の有する方向が、水平方向に近い角度か、または、垂直に近い角度であるか否かを判定する。すなわち、参照画素抽出部2201は、データ定常性の有する角度θが、0度≦θ<45度、または、135度≦θ<180度となる場合、注目画素の定常性の方向は、水平方向に近いと判定し、データ定常性の有する角度θが、45度≦θ<135度となる場合、注目画素の定常性の方向は、垂直方向に近いと判定する。
【1198】
ステップS2205において、参照画素抽出部2201は、判定した方向に対応した参照画素の位置情報、および、画素値をそれぞれ入力画像から抽出し、近似関数推定部2202に出力する。すなわち、参照画素は、後述する近似関数を演算する際に使用されるデータとなるので、傾きに応じて抽出されることが望ましい。従って、水平方向、または、垂直方向のいずれかの判定方向に対応して、その方向に長い範囲の参照画素が抽出される。より具体的には、例えば、図189で示されるように、傾きGが垂直方向に近いと、垂直方向であると判定され、この場合、参照画素抽出部2201は、例えば、図189で示されるように、図189中の中央の画素(0,0)を注目画素とするとき、画素(−1,2),(−1,1),(−1,0),(−1,−1),(−1,−2),(0,2),(0,1),(0,0),(0,−1),(0,−2),(1,2),(1,1),(1,0),(1,−1),(1,−2)のそれぞれの画素値を抽出する。尚、図189においては、各画素の水平方向、および、垂直方向の大きさが1であるものとする。
【1199】
すなわち、参照画素抽出部2201は、注目画素を中心として垂直(上下)方向にそれぞれ2画素×水平(左右)方向にそれぞれ1画素の合計15画素となるように、垂直方向に長い範囲の画素を参照画素として抽出する。
【1200】
逆に、水平方向であると判定された場合、注目画素を中心として垂直(上下)方向にそれぞれ1画素×水平(左右)方向にそれぞれ2画素の合計15画素となるように、水平方向に長い範囲の画素を参照画素として抽出して、近似関数推定部2202に出力する。もちろん、参照画素は、上述のように15画素に限定されるものではなく、それ以外の個数であってもよい。
【1201】
ステップS2206において、近似関数推定部2202は、参照画素抽出部2201より入力された参照画素の情報に基づいて、最小自乗法により近似関数f(x)を推定し、微分処理部2203に出力する。
【1202】
すなわち、近似関数f(x)は、以下の式(96)で示されるような多項式である。
【1203】
【数70】
Figure 2004246526
Figure 2004246526
【1204】
このように、式(96)の多項式の各係数W乃至Wn+1が求められれば、実世界を近似する近似関数f(x)が求められることになる。しかしながら、係数の数よりも多くの参照画素値が必要となるので、例えば、参照画素が、図189で示されるような場合、合計15画素であるので、多項式の係数は、15個までしか求められない。そこで、この場合、多項式は、14次までの多項式とし、係数W乃至W15を求めることにより近似関数を推定するものとする。尚、今の場合、15次の多項式からなる近似関数f(x)を設定して、連立方程式としてもよい。
【1205】
従って、図189で示される15個の参照画素値を用いるとき、近似関数推定部2202は、以下の式(97)を、最小自乗法を用いて解くことにより推定する。
【1206】
P(−1,−2)=f(−1−Cx(−2))
P(−1,−1)=f(−1−Cx(−1))
P(−1,0)=f(−1)(=f(−1−Cx(0)))
P(−1,1)=f(−1−Cx(1))
P(−1,2)=f(−1−Cx(2))
P(0,−2)=f(0−Cx(−2))
P(0,−1)=f(0−Cx(−1))
P(0,0)=f(0)(=f(0−Cx(0)))
P(0,1)=f(0−Cx(1))
P(0,2)=f(0−Cx(2))
P(1,−2)=f(1−Cx(−2))
P(1,−1)=f(1−Cx(−1))
P(1,0)=f(1)(=f(1−Cx(0)))
P(1,1)=f(1−Cx(1))
P(1,2)=f(1−Cx(2))・・・(97)
【1207】
尚、多項式の次数にあわせて、参照画素の数を変えるようにしてもよい。
【1208】
ここで、Cx(ty)は、シフト量であり、定常性の傾きがGで示されるとき、Cx(ty)=ty/Gで定義される。このシフト量Cx(ty)は、空間方向Y=0の位置上で定義される近似関数f(x)が、傾きGに沿って、連続している(定常性を有している)ことを前提としたとき、空間方向Y=tyの位置における、空間方向Xに対するずれ幅を示すものである。従って、例えば、空間方向Y=0の位置上で近似関数がf(x)として定義されている場合、この近似関数f(x)は、空間方向Y=tyにおいては、傾きGに沿って空間方向XについてCx(ty)だけずれているはずなので、関数は、f(x−Cx(ty))(=f(x−ty/G))で定義されることになる。
【1209】
ステップS2207において、微分処理部2203は、近似関数推定部2202より入力された近似関数f(x)に基づいて、生成しようとする画素の位置における、シフト量を求める。
【1210】
すなわち、水平方向、および、垂直方向にそれぞれ2倍の密度(合計4倍の密度)となるように画素を生成する場合、微分処理部2203は、例えば、まず、垂直方向に2倍の密度となる画素Pa,Pbに2分割するために、図190で示されるように、注目画素の中心位置がPin(Xin,Yin)での微分値を求めるため、中心位置のPin(Xin,Yin)のシフト量を求める。このシフト量は、Cx(0)となるため、実質的には0となる。尚、図190中において、画素Pinは、(Xin,Yin)を略重心位置とする正方形であり、画素Pa,Pbは、(Xin,Yin+0.25)、(Xin,Yin−0.25)をそれぞれ略重心位置とする図中水平方向に長い長方形である。
【1211】
ステップS2208において、微分処理部2203は、近似関数f(x)を微分して、近似関数の1次微分関数f(x)’を求め、求められたシフト量に応じた位置での微分値を求めて、これを実世界推定情報として画像生成部103に出力する。すなわち、今の場合、微分処理部2203は、微分値f(Xin)’を求め、その位置(今の場合、注目画素(Xin,Yin))と、その画素値、および、定常性の方向の傾きの情報とを付加して出力する。
【1212】
ステップS2209において、微分処理部2203は、求められている密度の画素を生成するのに必要なだけの微分値が求められているか否かを判定する。例えば、今の場合、2倍の密度となるための微分値のみしか求められていない(空間方向Y方向について2倍の密度となるための微分値のみしか求められていない)ので、求められている密度の画素を生成するのに必要なだけの微分値が求められていないと判定し、その処理は、ステップS2207に戻る。
【1213】
ステップS2207において、微分処理部2203は、再度、近似関数推定部2202より入力された近似関数f(x)に基づいて、生成しようとする画素の位置における、シフト量を求める。すなわち、微分処理部2203は、今の場合、2分割された画素Pa,Pbのそれぞれを2分割するために必要な微分値をそれぞれ求める。画素Pa,Pbの画素の位置は、図190における黒丸で示すそれぞれの位置であるので、微分処理部2203は、それぞれの位置に対応するシフト量を求める。画素Pa,Pbのシフト量は、それぞれCx(0.25),Cx(−0.25)となる。
【1214】
ステップS2208において、微分処理部2203は、近似関数f(x)を1次微分して、画素Pa,Pbのそれぞれに対応したシフト量に応じた位置での微分値を求めて、これを実世界推定情報として画像生成部103に出力する。
【1215】
すなわち、図189で示した参照画素を使用する場合、微分処理部2203は、図191で示すように、求められた近似関数f(x)について微分関数f(x)’を求め、空間方向Xについて、シフト量Cx(0.25),Cx(−0.25)だけずれた位置となる(Xin−Cx(0.25))と(Xin−Cx(−0.25))の位置での微分値をそれぞれf(Xin−Cx(0.25))’,f(Xin−Cx(−0.25))’として求め、その微分値に対応する位置情報を付加して、これを実世界推定情報として出力する。尚、最初の処理で画素値の情報が出力されているので画素値の情報は付加されない。
【1216】
ステップS2209において、再び、微分処理部2203は、求められている密度の画素を生成するのに必要なだけの微分値が求められているか否かを判定する。例えば、今の場合、4倍の密度となるための微分値が求められたことになるので、求められている密度の画素を生成するのに必要なだけの微分値が求められたと判定し、その処理は、ステップS2211に進む。
【1217】
ステップS2211において、参照画素抽出部2201は、全ての画素を処理したか否かを判定し、全ての画素を処理していないと判定した場合、その処理は、ステップS2202に戻る。また、ステップS2211において、全ての画素を処理したと判定した場合、その処理は、終了する。
【1218】
上述のように、入力画像について、水平方向、および、垂直方向に4倍の密度となるように画素を生成する場合、画素は、分割される画素の中央の位置の近似関数の微分値を用いて、外挿補間により分割されるので、4倍密度の画素を生成するには、合計3個の微分値の情報が必要となる。
【1219】
すなわち、図190で示されるように、1画素について最終的には、画素P01,P02,P03,P04の4画素(図190において、画素P01,P02,P03,P04は、図中の4個のバツ印の位置を重心位置とする正方形であり、各辺の長さは、画素Pinが、それぞれ1であるので、画素P01,P02,P03,P04は、それぞれ略0.5となる)の生成に必要な微分値が必要となるので、4倍密度の画素を生成するには、まず、水平方向、または、垂直方向(今の場合、垂直方向)に2倍密度の画素を生成し(上述の最初のステップS2207,S2208の処理)、さらに、分割された2画素を、それぞれ最初に分割した方向と垂直の方向(今の場合、水平方向)に分割する(上述の2回目のステップS2207,S2208の処理)ためである。
【1220】
尚、以上の例においては、4倍密度の画素を演算する際の微分値を例として説明してきたが、それ以上の密度の画素を演算する場合、ステップS2207乃至S2209の処理を繰り返すことにより、画素値の演算に必要なさらに多くの微分値を求めるようにしてもよい。また、以上の例については、倍密度の画素値を求める例について説明してきたが、近似関数f(x)は連続関数であるので、倍密度以外の画素値についても必要な微分値を求めることが可能となる。
【1221】
以上によれば、注目画素近傍の画素の画素値を使用して、実世界を近似的に表現する近似関数を求め、空間方向の画素の生成必要な位置の微分値を実世界推定情報として出力することが可能となる。
【1222】
以上の図187において説明した実世界推定部102においては、画像を生成するのに必要な微分値を実世界推定情報として出力していたが、微分値とは、必要な位置での近似関数f(x)の傾きと同値のものである。
【1223】
そこで、次は、図192を参照して、近似関数f(x)を求めることなく、画素生成に必要な近似関数f(x)上の傾きのみを直接求めて、実世界推定情報として出力する実世界推定部102について説明する。
【1224】
参照画素抽出部2211は、データ定常性検出部101より入力されるデータ定常性情報(定常性の角度、または、領域の情報)に基づいて、入力画像の各画素が処理領域であるか否かを判定し、処理領域である場合には、入力画像から傾きを求めるために必要な参照画素の情報(演算に必要な注目画素を含む垂直方向に並ぶ周辺の複数の画素、または、注目画素を含む水平方向に並ぶ周辺の複数の画素の位置、および、それぞれの画素値の情報)を抽出して、傾き推定部2212に出力する。
【1225】
傾き推定部2212は、参照画素抽出部2211より入力された参照画素の情報に基づいて、画素生成に必要な画素位置の傾きの情報を生成して、実世界推定情報として画像生成部103に出力する。より詳細には、傾き推定部2212は、画素間の画素値の差分情報を用いて、実世界を近似的に表現する近似関数f(x)上の注目画素の位置における傾きを求め、これに、注目画素の位置情報、画素値、および、定常性の方向の傾きの情報を実世界推定情報として出力する。
【1226】
次に、図193のフローチャートを参照して、図192の実世界推定部102による実世界推定の処理について説明する。
【1227】
ステップS2221において、参照画素抽出部2211は、入力画像と共に、データ定常性検出部101よりデータ定常性情報としての角度、および、領域の情報を取得する。
【1228】
ステップS2222において、参照画素抽出部2211は、入力画像の未処理画素から注目画素を設定する。
【1229】
ステップS2223において、参照画像抽出部2211は、データ定常性情報の領域の情報に基づいて、注目画素が、処理領域のものであるか否かを判定し、処理領域の画素ではないと判定した場合、その処理は、ステップS2228に進み、その注目画素については、処理領域外であることを傾き推定部2212に伝え、これに応じて、傾き推定部2212が、対応する注目画素についての傾きを0として、さらに、その注目画素の画素値を付加して実世界推定情報として画像生成部103に出力すると共に、その処理は、ステップS2229に進む。また、注目画素が処理領域のものであると判定された場合、その処理は、ステップS2224に進む。
【1230】
ステップS2224において、参照画素抽出部2211は、データ定常性情報に含まれる角度の情報から、データ定常性の有する方向が、水平方向に近い角度か、または、垂直に近い角度であるか否かを判定する。すなわち、参照画素抽出部2211は、データ定常性の有する角度θが、0度≦θ<45度、または、135度≦θ<180度となる場合、注目画素の定常性の方向は、水平方向に近いと判定し、データ定常性の有する角度θが、45度≦θ<135度となる場合、注目画素の定常性の方向は、垂直方向に近いと判定する。
【1231】
ステップS2225において、参照画素抽出部2211は、判定した方向に対応した参照画素の位置情報、および、画素値をそれぞれ入力画像から抽出し、傾き推定部2212に出力する。すなわち、参照画素は、後述する傾きを演算する際に使用されるデータとなるので、定常性の方向を示す傾きに応じて抽出されることが望ましい。従って、水平方向、または、垂直方向のいずれかの判定方向に対応して、その方向に長い範囲の参照画素が抽出される。より具体的には、例えば、傾きが垂直方向に近いと判定された場合、参照画素抽出部2211は、図194で示されるように、図194中の中央の画素(0,0)を注目画素とするとき、画素(0,2),(0,1),(0,0),(0,−1),(0,−2)のそれぞれの画素値を抽出する。尚、図194においては、各画素の大きさが水平方向、および、垂直方向についてそれぞれ1であるものとする。
【1232】
すなわち、参照画素抽出部2211は、注目画素を中心として垂直(上下)方向にそれぞれ2画素の合計5画素となるように、垂直方向に長い範囲の画素を参照画素として抽出する。
【1233】
逆に、水平方向であると判定された場合、注目画素を中心として水平(左右)方向に2画素の合計5画素となるように、水平方向に長い範囲の画素を参照画素として抽出して、近似関数推定部2202に出力する。もちろん、参照画素は、上述のように5画素に限定されるものではなく、それ以外の個数であってもよい。
【1234】
ステップS2226において、傾き推定部2212は、参照画素抽出部2211より入力された参照画素の情報と、定常性方向の傾きGに基づいて、それぞれの画素値のシフト量を演算する。すなわち、空間方向Y=0に対応する近似関数f(x)を基準とした場合、空間方向Y=−2,−1,1,2に対応する近似関数は、図194で示されるように、定常性の傾きGに沿って連続していることになるので、各近似関数は、f(x−Cx(2)),f(x−Cx(1)),f(x−Cx(−1)),f(x−Cx(−2))のように記述され、空間方向Y=−2,−1,1,2毎に、各シフト量分だけ空間方向Xにずれた関数として表現される。
【1235】
そこで、傾き推定部2212は、これらのシフト量Cx(−2)乃至Cx(2)を求める。例えば、参照画素が、図194で示されるように抽出された場合、そのシフト量は、図中の参照画素(0,2)は、Cx(2)=2/Gとなり、参照画素(0,1)は、Cx(1)=1/Gとなり、参照画素(0,0)は、Cx(0)=0となり、参照画素(0,−1)は、Cx(−1)=−1/Gとなり、参照画素(0,−2)は、Cx(−2)=−2/Gとなる。
【1236】
ステップS2227において、傾き推定部2212は、注目画素の位置における近似関数f(x)上の傾きを演算する(推定する)。例えば、図194で示されるように、注目画素について定常性の方向が、垂直方向に近い角度の場合、水平方向に隣接する画素間では画素値が大きく異なるので、垂直方向の画素間では、画素間の変化が小さく、変化が類似していることから、傾き推定部2212は、垂直方向の画素間の変化をシフト量による空間方向Xの変化と捕らえることにより、垂直方向の画素間の差分を水平方向の画素間の差分に置き換えて、注目画素の位置における近似関数f(x)上での傾きを求める。
【1237】
すなわち、現実世界を近似的に記述する近似関数f(x)が存在すると仮定すると、上述のシフト量と各参照画素の画素値との関係は、図195で示されるようなものとなる。ここで、図194の各画素の画素値は、上からP(0,2),P(0,1),P(0,0),P(0,−1),P(0,−2)で表される。結果として、注目画素(0,0)近傍の画素値Pとシフト量Cxは、(P,Cx)=(P(0,2),−Cx(2)),(P(0,1),−Cx(1)),(P(0,−1)),−Cx(−1)),(P(0,−2),−Cx(−2)),(P(0,0),0)の5組の関係が得られることになる。
【1238】
ところで、画素値P、シフト量Cx、および、傾きKx(近似関数f(x)上の傾き)は、以下のような式(98)のような関係が成立することになる。
【1239】
P=Kx×Cx・・・(98)
【1240】
上述の式(98)は、変数Kxについての1変数の関数であるので、傾き推定部2212は、この変数Kx(傾き)について、1変数の最小自乗法により傾きKxを求める。
【1241】
すなわち、傾き推定部2212は、以下に示すような式(99)のような正規方程式を解くことにより、注目画素の傾きを求め、注目画素の画素値、および、定常性の方向の傾きの情報を付加して、実世界推定情報として画像生成部103に出力する。
【1242】
【数71】
Figure 2004246526
Figure 2004246526
【1243】
ここで、iは、上述の参照画素の画素値Pとシフト量Cの組をそれぞれ識別する番号であり、1乃至mである。また、mは、注目画素を含む参照画素の個数となる。
【1244】
ステップS2229において、参照画素抽出部2211は、全ての画素を処理したか否かを判定し、全ての画素を処理していないと判定した場合、その処理は、ステップS2222に戻る。また、ステップS2229において、全ての画素が処理されたと判定された場合、その処理は、終了する。
【1245】
尚、上述の処理により実世界推定情報として出力される傾きは、最終的に求めようとする画素値を外挿補間して演算する際に使用される。また、以上の例においては、2倍密度の画素を演算する際の傾きを例として説明してきたが、それ以上の密度の画素を演算する場合、画素値の演算に必要な、さらに多くの位置での傾きを求めるようにしてもよい。
【1246】
例えば、図190で示されるように、水平方向に2倍の密度で、かつ、垂直方向に2倍の密度の空間方向に合計4倍の密度の画素を生成する場合、上述したように、図190中のPin,Pa,Pbのそれぞれの位置に対応する近似関数f(x)の傾きKxを求めるようにすればよい。
【1247】
また、以上の例については、倍密度の画素値を求める例について説明してきたが、近似関数f(x)は連続関数であるので、倍密度以外の位置の画素の画素値についても必要な傾きを求めることが可能となる。
【1248】
以上によれば、注目画素近傍の画素の画素値を使用して、実世界を近似的に表現する近似関数を求めることなく、空間方向の画素の生成必要な位置の近似関数上の傾きを実世界推定情報として生成し、さらに出力することが可能となる。
【1249】
次に、図196を参照して、定常性を有する領域における、画素毎のフレーム方向(時間方向)の近似関数上の微分値を実世界推定情報として出力する実世界推定部102について説明する。
【1250】
参照画素抽出部2231は、データ定常性検出部101より入力されるデータ定常性情報(定常性の動き(動きベクトル)、および、領域の情報)に基づいて、入力画像の各画素が処理領域であるか否かを判定し、処理領域である場合には、入力画像から実世界の近似関数を求めるために必要な参照画素の情報(演算に必要な注目画素周辺の複数の画素の位置、および、画素値の情報)を抽出して、近似関数推定部2202に出力する。
【1251】
近似関数推定部2232は、参照画素抽出部2231より入力されたフレーム方向の参照画素の情報に基づいて注目画素周辺の現実世界を近似的に記述する近似関数を最小自乗法に基づいて推定し、推定した関数を微分処理部2233に出力する。
【1252】
微分処理部2233は、近似関数推定部2232より入力されたフレーム方向の近似関数に基づいて、データ定常性情報の動きに応じて、注目画素から生成しようとする画素の位置のフレーム方向のシフト量を求め、そのシフト量に応じたフレーム方向の近似関数上の位置における微分値(定常性に対応する線からの1次元方向に沿った距離に対応する各画素の画素値を近似する関数の微分値)を演算し、さらに、注目画素の位置、画素値、および、定常性の動きの情報を付加して、これを実世界推定情報として画像生成部103に出力する。
【1253】
次に、図197のフローチャートを参照して、図196の実世界推定部102による実世界推定の処理について説明する。
【1254】
ステップS2241において、参照画素抽出部2231は、入力画像と共に、データ定常性検出部101よりデータ定常性情報としての動き、および、領域の情報を取得する。
【1255】
ステップS2242において、参照画素抽出部2231は、入力画像の未処理画素から注目画素を設定する。
【1256】
ステップS2243において、参照画像抽出部2231は、データ定常性情報の領域の情報に基づいて、注目画素が、処理領域のものであるか否かを判定し、処理領域の画素ではないと判定した場合、その処理は、ステップS2250に進み、その注目画素については、処理領域外であることを近似関数推定部2232を介して、微分処理部2233に伝え、これに応じて、微分処理部2233が、対応する注目画素についての微分値を0として、さらに、その注目画素の画素値を付加して実世界推定情報として画像生成部103に出力すると共に、その処理は、ステップS2251に進む。また、注目画素が処理領域のものであると判定された場合、その処理は、ステップS2244に進む。
【1257】
ステップS2244において、参照画素抽出部2231は、データ定常性情報に含まれる動きの情報から、データ定常性の有する方向が、空間方向に近い動きか、または、フレーム方向に近い動きであるか否かを判定する。すなわち、図198で示されるように、フレーム方向Tと空間方向Yからなる面において、フレーム方向を基準軸とした、時間と空間の面内の方向を示す角度をθvとすれば、参照画素抽出部2201は、データ定常性の有する角度θvが、0度≦θv<45度、または、135度≦θv<180度となる場合、注目画素の定常性の動きは、フレーム方向(時間方向)に近いと判定し、データ定常性の有する角度θが、45度≦θ<135度となる場合、注目画素の定常性の方向は、空間方向に近いと判定する。
【1258】
ステップS2245において、参照画素抽出部2201は、判定した方向に対応した参照画素の位置情報、および、画素値をそれぞれ入力画像から抽出し、近似関数推定部2232に出力する。すなわち、参照画素は、後述する近似関数を演算する際に使用されるデータとなるので、角度に応じて抽出されることが望ましい。従って、フレーム方向、または、空間方向のいずれかの判定方向に対応して、その方向に長い範囲の参照画素が抽出される。より具体的には、例えば、図198で示されるように、動き方向Vが空間方向に近いと、空間方向であると判定され、この場合、参照画素抽出部2231は、例えば、図198で示されるように、図198中の中央の画素(t,y)=(0,0)を注目画素とするとき、画素(t,y)=(−1,2),(−1,1),(−1,0),(−1,−1),(−1,−2),(0,2),(0,1),(0,0),(0,−1),(0,−2),(1,2),(1,1),(1,0),(1,−1),(1,−2)のそれぞれの画素値を抽出する。尚、図198においては、各画素のフレーム方向、および、空間方向の大きさが1であるものとする。
【1259】
すなわち、参照画素抽出部2231は、注目画素を中心として空間(図中の上下)方向にそれぞれ2画素×フレーム(図中の左右)方向にそれぞれ1フレーム分の合計15画素となるように、フレーム方向に対して空間方向が長い範囲の画素を参照画素として抽出する。
【1260】
逆に、フレーム方向であると判定された場合、注目画素を中心として空間(図中の上下)方向にそれぞれ1画素×フレーム(図中の左右)方向にそれぞれ2フレーム分の合計15画素となるように、フレーム方向に長い範囲の画素を参照画素として抽出して、近似関数推定部2232に出力する。もちろん、参照画素は、上述のように15画素に限定されるものではなく、それ以外の個数であってもよい。
【1261】
ステップS2246において、近似関数推定部2232は、参照画素抽出部2231より入力された参照画素の情報に基づいて、最小自乗法により近似関数f(t)を推定し、微分処理部2233に出力する。
【1262】
すなわち、近似関数f(t)は、以下の式(100)で示されるような多項式である。
【1263】
【数72】
Figure 2004246526
Figure 2004246526
【1264】
このように、式(100)の多項式の各係数W乃至Wn+1が求められれば、実世界を近似するフレーム方向の近似関数f(t)が求められることになる。しかしながら、係数の数よりも多くの参照画素値が必要となるので、例えば、参照画素が、図198で示されるような場合、合計15画素であるので、多項式の係数は、15個までしか求められない。そこで、この場合、多項式は、14次までの多項式とし、係数W乃至W15を求めることにより近似関数を推定するものとする。尚、今の場合、15次の多項式からなる近似関数f(x)を設定して、連立方程式としてもよい。
【1265】
従って、図198で示される15個の参照画素値を用いるとき、近似関数推定部2232は、以下の式(101)を、最小自乗法を用いて解くことにより推定する。
【1266】
P(−1,−2)=f(−1−Ct(−2))
P(−1,−1)=f(−1−Ct(−1))
P(−1,0)=f(−1)(=f(−1−Ct(0)))
P(−1,1)=f(−1−Ct(1))
P(−1,2)=f(−1−Ct(2))
P(0,−2)=f(0−Ct(−2))
P(0,−1)=f(0−Ct(−1))
P(0,0)=f(0)(=f(0−Ct(0)))
P(0,1)=f(0−Ct(1))
P(0,2)=f(0−Ct(2))
P(1,−2)=f(1−Ct(−2))
P(1,−1)=f(1−Ct(−1))
P(1,0)=f(1)(=f(1−Ct(0)))
P(1,1)=f(1−Ct(1))
P(1,2)=f(1−Ct(2))・・・(101)
【1267】
尚、多項式の次数にあわせて、参照画素の数を変えるようにしてもよい。
【1268】
ここで、Ct(ty)は、シフト量であり、上述のCx(ty)と同様のものであり、定常性の傾きがVで示されるとき、Ct(ty)=ty/Vで定義される。このシフト量Ct(ty)は、空間方向Y=0の位置上で定義される近似関数f(t)が、傾きVに沿って、連続している(定常性を有している)ことを前提としたとき、空間方向Y=tyの位置における、フレーム方向Tに対するずれ幅を示すものである。従って、例えば、空間方向Y=0の位置上で近似関数がf(t)として定義されている場合、この近似関数f(t)は、空間方向Y=tyにおいては、フレーム方向(時間方向)TについてCt(ty)だけずれているはずなので、関数は、f(t−Ct(ty))(=f(t−ty/V))で定義されることになる。
【1269】
ステップS2247において、微分処理部2233は、近似関数推定部2232より入力された近似関数f(t)に基づいて、生成しようとする画素の位置における、シフト量を求める。
【1270】
すなわち、フレーム方向、および、空間方向にそれぞれ2倍の密度(合計4倍の密度)となるように画素を生成する場合、微分処理部2233は、例えば、まず、空間方向に2倍の密度となる画素Pat,Pbtに2分割するために、図199で示されるように、注目画素の中心位置がPin(Tin,Yin)での微分値を求めるため、中心位置のPin(Tin,Yin)のシフト量を求める。このシフト量は、Ct(0)となるため、実質的には0となる。尚、図199中において、画素Pinは、(Tin,Yin)を略重心位置とする正方形であり、画素Pat,Pbtは、(Tin,Yin+0.25)、(Tin,Yin−0.25)をそれぞれ略重心位置とする図中水平方向に長い長方形である。また、注目画素Pinのフレーム方向Tの長さが1であるとは、1フレーム分のシャッタ時間に対応するものである。
【1271】
ステップS2248において、微分処理部2233は、近似関数f(t)を微分して、近似関数の1次微分関数f(t)’を求め、求められたシフト量に応じた位置での微分値を求めて、これを実世界推定情報として画像生成部103に出力する。すなわち、今の場合、微分処理部2233は、微分値f(Tin)’を求め、その位置(今の場合、注目画素(Tin,Yin))と、その画素値、および、定常性の方向の動きの情報とを付加して出力する。
【1272】
ステップS2249において、微分処理部2233は、求められている密度の画素を生成するのに必要なだけの微分値が求められているか否かを判定する。例えば、今の場合、空間方向に2倍の密度となるための微分値のみしか求められていない(フレーム方向に2倍の密度となるための微分値が求められていない)ので、求められている密度の画素を生成するのに必要なだけの微分値が求められていないと判定し、その処理は、ステップS2247に戻る。
【1273】
ステップS2247において、微分処理部2203は、再度、近似関数推定部2202より入力された近似関数f(t)に基づいて、生成しようとする画素の位置における、シフト量を求める。すなわち、微分処理部2203は、今の場合、2分割された画素Pat,Pbtのそれぞれをさらに2分割するために必要な微分値をそれぞれ求める。画素Pat,Pbtの画素の位置は、図199における黒丸で示すそれぞれの位置であるので、微分処理部2233は、それぞれの位置に対応するシフト量を求める。画素Pat,Pbtのシフト量は、それぞれCt(0.25),Ct(−0.25)となる。
【1274】
ステップS2248において、微分処理部2233は、近似関数f(t)を微分して、画素Pat,Pbtのそれぞれに対応したシフト量に応じた位置での微分値を求めて、これを実世界推定情報として画像生成部103に出力する。
【1275】
すなわち、図198で示した参照画素を使用する場合、微分処理部2233は、図200で示すように、求められた近似関数f(t)について微分関数f(t)’を求め、空間方向Tについて、シフト量Ct(0.25),Ct(−0.25)だけずれた位置となる(Tin−Ct(0.25))と(Tin−Ct(−0.25))の位置での微分値をそれぞれf(Tin−Ct(0.25))’,f(Tin−Ct(−0.25))’として求め、その微分値に対応する位置情報を付加して、これを実世界推定情報として出力する。尚、最初の処理で画素値の情報が出力されているので画素値の情報は付加されない。
【1276】
ステップS2249において、再び、微分処理部2233は、求められている密度の画素を生成するのに必要なだけの微分値が求められているか否かを判定する。例えば、今の場合、空間方向Yとフレーム方向Tについてそれぞれ2倍(合計4倍)の密度となるための微分値が求められたことになるので、求められている密度の画素を生成するのに必要なだけの微分値が求められたと判定し、その処理は、ステップS2251に進む。
【1277】
ステップS2251において、参照画素抽出部2231は、全ての画素を処理したか否かを判定し、全ての画素を処理していないと判定した場合、その処理は、ステップS2242に戻る。また、ステップS2251において、全ての画素を処理したと判定した場合、その処理は、終了する。
【1278】
上述のように、入力画像について、フレーム方向(時間方向)、および、空間方向に4倍の密度となるように画素を生成する場合、画素は、分割される画素の中央の位置の近似関数の微分値を用いて、外挿補間により分割されるので、4倍密度の画素を生成するには、合計3個の微分値の情報が必要となる。
【1279】
すなわち、図199で示されるように、1画素について最終的には、画素P01t,P02t,P03t,P04tの4画素(図199において、画素P01t,P02t,P03t,P04tは、図中の4個のバツ印の位置を重心位置とする正方形であり、各辺の長さは、画素Pinが、それぞれ1であるので、画素P01t,P02t,P03t,P04tは、それぞれ略0.5となる)の生成に必要な微分値が必要となるので、4倍密度の画素を生成するには、まず、フレーム方向、または、空間方向に2倍密度の画素を生成し(上述の最初のステップS2247,S2248の処理)、さらに、分割された2画素を、それぞれ最初に分割した方向と垂直の方向(今の場合、フレーム方向)に分割する(上述の2回目のステップS2247,S2248の処理)ためである。
【1280】
尚、以上の例においては、4倍密度の画素を演算する際の微分値を例として説明してきたが、それ以上の密度の画素を演算する場合、ステップS2247乃至S2249の処理を繰り返すことにより、画素値の演算に必要なさらに多くの微分値を求めるようにしてもよい。また、以上の例については、倍密度の画素値を求める例について説明してきたが、近似関数f(t)は連続関数であるので、倍密度以外の画素値についても必要な微分値を求めることが可能となる。
【1281】
以上によれば、注目画素近傍の画素の画素値を使用して、実世界を近似的に表現する近似関数を求め、画素の生成必要な位置の微分値を実世界推定情報として出力することが可能となる。
【1282】
以上の図196において説明した実世界推定部102においては、画像を生成するのに必要な微分値を実世界推定情報として出力していたが、微分値とは、必要な位置での近似関数f(t)の傾きと同値のものである。
【1283】
そこで、次は、図201を参照して、近似関数を求めることなく、画素生成に必要な、近似関数上のフレーム方向の傾きのみを直接求めて、実世界推定情報として出力する実世界推定部102について説明する。
【1284】
参照画素抽出部2251は、データ定常性検出部101より入力されるデータ定常性情報(定常性の動き、および、領域の情報)に基づいて、入力画像の各画素が処理領域であるか否かを判定し、処理領域である場合には、入力画像から傾きを求めるために必要な参照画素の情報(演算に必要な注目画素を含む空間方向に並ぶ周辺の複数の画素、または、注目画素を含むフレーム方向に並ぶ周辺の複数の画素の位置、および、それぞれの画素値の情報)を抽出して、傾き推定部2252に出力する。
【1285】
傾き推定部2252は、参照画素抽出部2251より入力された参照画素の情報に基づいて、画素生成に必要な画素位置の傾きの情報を生成して、実世界推定情報として画像生成部103に出力する。より詳細には、傾き推定部2252は、画素間の画素値の差分情報を用いて、実世界を近似的に表現する近似関数上の注目画素の位置におけるフレーム方向の傾きを求め、これに、注目画素の位置情報、画素値、および、定常性の方向の動きの情報を実世界推定情報として出力する。
【1286】
次に、図202のフローチャートを参照して、図201の実世界推定部102による実世界推定の処理について説明する。
【1287】
ステップS2261において、参照画素抽出部2251は、入力画像と共に、データ定常性検出部101よりデータ定常性情報としての動き、および、領域の情報を取得する。
【1288】
ステップS2262において、参照画素抽出部2251は、入力画像の未処理画素から注目画素を設定する。
【1289】
ステップS2263において、参照画像抽出部2251は、データ定常性情報の領域の情報に基づいて、注目画素が、処理領域のものであるか否かを判定し、処理領域の画素ではないと判定した場合、その処理は、ステップS2268に進み、その注目画素については、処理領域外であることを傾き推定部2252に伝え、これに応じて、傾き推定部2252が、対応する注目画素についての傾きを0として、さらに、その注目画素の画素値を付加して実世界推定情報として画像生成部103に出力すると共に、その処理は、ステップS2269に進む。また、注目画素が処理領域のものであると判定された場合、その処理は、ステップS2264に進む。
【1290】
ステップS2264において、参照画素抽出部2211は、データ定常性情報に含まれる動きの情報から、データ定常性の動きが、フレーム方向に近い動きか、または、空間方向に近い動きであるか否かを判定する。すなわち、フレーム方向Tと空間方向Yからなる面において、フレーム方向を基準軸とした、時間と空間の面内の方向を示す角度をθvとすれば、参照画素抽出部2251は、データ定常性の動きの角度θvが、0度≦θv<45度、または、135度≦θv<180度となる場合、注目画素の定常性の動きは、フレーム方向に近いと判定し、データ定常性の有する角度θvが、45度≦θv<135度となる場合、注目画素の定常性の動きは、空間方向に近いと判定する。
【1291】
ステップS2265において、参照画素抽出部2251は、判定した方向に対応した参照画素の位置情報、および、画素値をそれぞれ入力画像から抽出し、傾き推定部2252に出力する。すなわち、参照画素は、後述する傾きを演算する際に使用されるデータとなるので、定常性の動きに応じて抽出されることが望ましい。従って、フレーム方向、または、空間方向のいずれかの判定方向に対応して、その方向に長い範囲の参照画素が抽出される。より具体的には、例えば、動きが空間方向に近いと判定された場合、参照画素抽出部2251は、図203で示されるように、図203中の中央の画素(t,y)=(0,0)を注目画素とするとき、画素(t,y)=(0,2),(0,1),(0,0),(0,−1),(0,−2)のそれぞれの画素値を抽出する。尚、図203においては、各画素の大きさがフレーム方向、および、空間方向についてそれぞれ1であるものとする。
【1292】
すなわち、参照画素抽出部2251は、注目画素を中心として空間(図中の上下)方向にそれぞれ2画素の合計5画素となるように、空間方向に長い範囲の画素を参照画素として抽出する。
【1293】
逆に、フレーム方向であると判定された場合、注目画素を中心としてフレーム(図中の左右)方向に2画素の合計5画素となるように、水平方向に長い範囲の画素を参照画素として抽出して、近似関数推定部2252に出力する。もちろん、参照画素は、上述のように5画素に限定されるものではなく、それ以外の個数であってもよい。
【1294】
ステップS2266において、傾き推定部2252は、参照画素抽出部2251より入力された参照画素の情報と、定常性方向の動きVの方向に基づいて、それぞれの画素値のシフト量を演算する。すなわち、空間方向Y=0に対応する近似関数f(t)を基準とした場合、空間方向Y=−2,−1,1,2に対応する近似関数は、図203で示されるように、定常性の傾きVに沿って連続していることになるので、各近似関数は、f(t−Ct(2)),f(t−Ct(1)),f(t−Ct(−1)),f(t−Ct(−2))のように記述され、空間方向Y=−2,−1,1,2毎に、各シフト量分だけフレーム方向Tにずれた関数として表現される。
【1295】
そこで、傾き推定部2252は、これらのシフト量Ct(−2)乃至Ct(2)を求める。例えば、参照画素が、図203で示されるように抽出された場合、そのシフト量は、図中の参照画素(0,2)は、Ct(2)=2/Vとなり、参照画素(0,1)は、Ct(1)=1/Vとなり、参照画素(0,0)は、Ct(0)=0となり、参照画素(0,−1)は、Ct(−1)=−1/Vとなり、参照画素(0,−2)は、Ct(−2)=−2/Vとなる。傾き推定部2252は、これらのシフト量Ct(−2)乃至Ct(2)を求める。
【1296】
ステップS2267において、傾き推定部2252は、注目画素のフレーム方向の傾きを演算する(推定する)。例えば、図203で示されるように、注目画素について定常性の方向が、空間方向に近い角度の場合、フレーム方向に隣接する画素間では画素値が大きく異なるので、空間方向の画素間では、画素間の変化が小さく、変化が類似していることから、傾き推定部2252は、空間方向の画素間の変化をシフト量によるフレーム方向Tの変化と捕らえることにより、空間方向の画素間の差分をフレーム方向の画素間の差分に置き換えて、注目画素での傾きを求める。
【1297】
すなわち、現実世界を近似的に記述する関数f(t)が存在すると仮定すると、上述のシフト量と各参照画素の画素値との関係は、図204で示されるようなものとなる。ここで、図204の各画素の画素値は、上からP(0,2),P(0,1),P(0,0),P(0,−1),P(0,−2)で表される。結果として、注目画素(0,0)近傍の画素値Pとシフト量Ctは、(P,Ct)=(P(0,2),−Ct(2)),(P(0,1),−Ct(1)),(P(0,−1)),−Ct(−1)),(P(0,−2),−Ct(−2)),(P(0,0),0)の5組の関係が得られることになる。
【1298】
ところで、画素値P、シフト量Ct、および、傾きKt(近似関数f(t)上の傾き)は、以下のような式(102)のような関係が成立することになる。
【1299】
P=Kt×Ct・・・(102)
【1300】
上述の式(102)は、変数Ktについての1変数の関数であるので、傾き推定部2212は、この変数Kt(傾き)について、1変数の最小自乗法により傾きKtを求める。
【1301】
すなわち、傾き推定部2252は、以下に示すような式(103)のような正規方程式を解くことにより、注目画素の傾きを求め、注目画素の画素値、および、定常性の方向の傾きの情報を付加して、実世界推定情報として画像生成部103に出力する。
【1302】
【数73】
Figure 2004246526
Figure 2004246526
【1303】
ここで、iは、上述の参照画素の画素値Pとシフト量Ctの組をそれぞれ識別する番号であり、1乃至mである。また、mは、注目画素を含む参照画素の個数となる。
【1304】
ステップS2269において、参照画素抽出部2251は、全ての画素を処理したか否かを判定し、全ての画素を処理していないと判定した場合、その処理は、ステップS2262に戻る。また、ステップS2269において、全ての画素が処理されたと判定された場合、その処理は、終了する。
【1305】
尚、上述の処理により実世界推定情報として出力されるフレーム方向の傾きは、最終的に求めようとする画素値を外挿補間して演算する際に使用される。また、以上の例においては、2倍密度の画素を演算する際の傾きを例として説明してきたが、それ以上の密度の画素を演算する場合、画素値の演算に必要な、さらに多くの位置での傾きを求めるようにしてもよい。
【1306】
例えば、図190で示されるように、水平方向に2倍の密度で、かつ、フレーム方向に2倍の密度の時空間方向に合計4倍の密度の画素を生成する場合、上述したように、図190中のPin,Pat,Pbtのそれぞれの位置に対応する近似関数f(t)の傾きKtを求めるようにすればよい。
【1307】
また、以上の例については、倍密度の画素値を求める例について説明してきたが、近似関数f(t)は連続関数であるので、倍密度以外の位置の画素の画素値についても必要な傾きを求めることが可能となる。
【1308】
言うまでもなく、フレーム方向、または、空間方向に対する近似関数上の傾き、または、微分値を求める処理の順序は問わない。さらに、空間方向において、上述の例においては、空間方向Yとフレーム方向Tとの関係を用いて、説明してきたが、空間方向Xとフレーム方向Tとの関係を用いたものであってもよい。さらに、時空間方向のいずれか2次元の関係から(いずれから1次元の方向の)傾き、または、微分値を選択的に求めるようにしてもよい。
【1309】
以上によれば、それぞれ時空間積分効果を有する、センサの複数の検出素子により現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる画像データにおけるデータの定常性を検出し、検出した定常性に対応して、画像データ内の注目画素に対して時空間方向のうち1次元方向の位置に対応する複数画素の画素値の傾きを、現実世界の光信号に対応する関数として推定するようにしたので、注目画素近傍の画素の画素値を使用して、実世界を近似的に表現するフレーム方向の近似関数を求めることなく、画素の生成必要な位置のフレーム方向(時間方向)の近似関数上の傾きを実世界推定情報として生成し、さらに出力することが可能となる。
【1310】
次に、図205乃至図235を参照して、実世界推定部102(図3)の実施の形態の他の例について説明する。
【1311】
図205は、この例の実施の形態の原理を説明する図である。
【1312】
図205で示されるように、センサ2に入射される画像である、実世界1の信号(光の強度の分布)は、所定の関数Fで表される。なお、以下、この例の実施の形態の説明においては、画像である、実世界1の信号を、特に光信号と称し、関数Fを、特に光信号関数Fと称する。
【1313】
この例の実施の形態においては、光信号関数Fで表される実世界1の光信号が所定の定常性を有する場合、実世界推定部102が、センサ2からの入力画像(定常性に対応するデータの定常性を含む画像データ)と、データ定常性検出部101からのデータ定常性情報(入力画像のデータの定常性に対応するデータ定常性情報)を使用して、光信号関数Fを所定の関数fで近似することによって、光信号関数Fを推定する。なお、以下、この例の実施の形態の説明においては、関数fを、特に近似関数fと称する。
【1314】
換言すると、この例の実施の形態においては、実世界推定部102が、近似関数fで表されるモデル161(図7)を用いて、光信号関数Fで表される画像(実世界1の光信号)を近似(記述)する。従って、以下、この例の実施の形態を、関数近似手法と称する。
【1315】
ここで、関数近似手法の具体的な説明に入る前に、本願出願人が関数近似手法を発明するに至った背景について説明する。
【1316】
図206は、センサ2がCCDとされる場合の積分効果を説明する図である。
【1317】
図206で示されるように、センサ2の平面上には、複数の検出素子2−1が配置されている。
【1318】
図206の例では、検出素子2−1の所定の1辺に平行な方向が、空間方向の1方向であるX方向とされており、X方向に垂直な方向が、空間方向の他方向であるY方向とされている。そして、X−Y平面に垂直な方向が、時間方向であるt方向とされている。
【1319】
また、図206の例では、センサ2の各検出素子2−1のそれぞれの空間的な形状は、1辺の長さが1の正方形とされている。そして、センサ2のシャッタ時間(露光時間)が1とされている。
【1320】
さらに、図206の例では、センサ2の所定の1つの検出素子2−1の中心が、空間方向(X方向とY方向)の原点(X方向の位置x=0、およびY方向の位置y=0)とされており、また、露光時間の中間時刻が、時間方向(t方向)の原点(t方向の位置t=0)とされている。
【1321】
この場合、空間方向の原点(x=0,y=0)にその中心が存在する検出素子2−1は、X方向に−0.5乃至0.5の範囲、Y方向に−0.5乃至0.5の範囲、およびt方向に−0.5乃至0.5の範囲で光信号関数F(x,y,t)を積分し、その積分値を画素値Pとして出力することになる。
【1322】
即ち、空間方向の原点にその中心が存在する検出素子2−1から出力される画素値Pは、次の式(104)で表される。
【1323】
【数74】
Figure 2004246526
Figure 2004246526
【1324】
その他の検出素子2−1も同様に、対象とする検出素子2−1の中心を空間方向の原点とすることで、式(104)で示される画素値Pを出力することになる。
【1325】
図207は、センサ2の積分効果の具体的な例を説明する図である。
【1326】
図207において、X方向とY方向は、センサ2のX方向とY方向(図206)を表している。
【1327】
実世界1の光信号のうちの1部分(以下、このような部分を、領域と称する)2301は、所定の定常性を有する領域の1例を表している。
【1328】
なお、実際には、領域2301は連続した光信号の1部分(連続した領域)である。これに対して、図207においては、領域2301は、20個の小領域(正方形の領域)に区分されているように示されている。これは、領域2301の大きさが、X方向に対して4個分、かつY方向に対して5個分のセンサ2の検出素子(画素)が並んだ大きさに相当することを表すためである。即ち、領域2301内の20個の小領域(仮想領域)のそれぞれは1つの画素に相当する。
【1329】
また、領域2301のうちの図中白い部分は細線に対応する光信号を表している。従って、領域2301は、細線が続く方向に定常性を有していることになる。そこで、以下、領域2301を、細線含有実世界領域2301と称する。
【1330】
この場合、細線含有実世界領域2301(実世界1の光信号の1部分)がセンサ2により検出されると、センサ2からは、積分効果により、入力画像(画素値)の領域2302(以下、細線含有データ領域2302と称する)が出力される。
【1331】
なお、細線含有データ領域2302の各画素のそれぞれは、図中、画像として示されているが、実際には、所定の1つの値を表すデータである。即ち、細線含有実世界領域2301は、センサ2の積分効果により、所定の1つの画素値をそれぞれ有する20個の画素(X方向に4画素分、かつY方向に5画素分の総計20個の画素)に区分された細線含有データ領域2302に変化してしまう(歪んでしまう)。
【1332】
図208は、センサ2の積分効果の具体的な他の例(図207とは異なる例)を説明する図である。
【1333】
図208において、X方向とY方向は、センサ2のX方向とY方向(図206)を表している。
【1334】
実世界1の光信号の1部分(領域)2303は、所定の定常性を有する領域の他の例(図207の細線含有実世界領域2301とは異なる例)を表している。
【1335】
なお、領域2303は、細線含有実世界領域2301と同じ大きさを有する領域である。即ち、細線含有実世界領域2301と同様に、領域2303も、実際には連続した実世界1の光信号の1部分(連続した領域)であるが、図208においては、センサ2の1画素に相当する20個の小領域(正方形の領域)に区分されているように示されている。
【1336】
また、領域2303は、所定の第1の光の強度(値)を有する第1の部分と、所定の第2の光の強度(値)を有する第2の部分のエッジを含んでいる。従って、領域2303は、エッジが続く方向に定常性を有していることになる。そこで、以下、領域2303を、2値エッジ含有実世界領域2303と称する。
【1337】
この場合、2値エッジ含有実世界領域2303(実世界1の光信号の1部分)がセンサ2により検出されると、センサ2からは、積分効果により、入力画像(画素値)の領域2304(以下、2値エッジ含有データ領域2304と称する)が出力される。
【1338】
なお、2値エッジ含有データ領域2304の各画素値のそれぞれは、細線含有データ領域2302と同様に、図中、画像として表現されているが、実際には、所定の値を表すデータである。即ち、2値エッジ含有実世界領域2303は、センサ2の積分効果により、所定の1つの画素値をそれぞれ有する20個の画素(X方向に4画素分、かつY方向に5画素分の総計20個の画素)に区分された2値エッジ含有データ領域2304に変化してしまう(歪んでしまう)。
【1339】
従来の画像処理装置は、このような細線含有データ領域2302や2値エッジ含有データ領域2304等、センサ2から出力された画像データを原点(基準)とするとともに、画像データを処理の対象として、それ以降の画像処理を行っていた。即ち、センサ2から出力された画像データは、積分効果により実世界1の光信号とは異なるもの(歪んだもの)となっているにも関わらず、従来の画像処理装置は、その実世界1の光信号とは異なるデータを正として画像処理を行っていた。
【1340】
その結果、従来の画像処理装置では、センサ2から出力された段階で、実世界のディテールがつぶれてしまった波形(画像データ)を基準として、その波形から、元のディテールを復元することは非常に困難であるという課題があった。
【1341】
そこで、関数近似手法においては、この課題を解決するために、上述したように(図205で示されるように)、実世界推定部102が、細線含有データ領域2302や2値エッジ含有データ領域2304のようなセンサ2から出力された画像データ(入力画像)から、光信号関数F(実世界1の光信号)を近似関数fで近似することによって、光信号関数Fを推定する。
【1342】
これにより、実世界推定部102より後段において(いまの場合、図3の画像生成部103)、積分効果が考慮された画像データ、即ち、近似関数fにより表現可能な画像データを原点として、その処理を実行することが可能になる。
【1343】
以下、図面を参照して、このような関数近似手法のうちの3つの具体的な手法(第1乃至第3の関数近似手法)のそれぞれについて個別に説明していく。
【1344】
はじめに、図209乃至図223を参照して、第1の関数近似手法について説明する。
【1345】
図209は、上述した図207で示される細線含有実世界領域2301を再度表した図である。
【1346】
図209において、X方向とY方向は、センサ2のX方向とY方向(図206)を表している。
【1347】
第1の関数近似手法は、例えば、図209で示されるような細線含有実世界領域2301に対応する光信号関数F(x,y,t)をX方向(図中矢印2311の方向)に射影した1次元の波形(以下、このような波形を、X断面波形F(x)と称する)を、n次(nは、任意の整数)の多項式である近似関数f(x)で近似する手法である。従って、以下、第1の関数近似手法を、特に、1次元多項式近似手法と称する。
【1348】
なお、1次元多項式近似手法において、近似の対象となるX断面波形F(x)は、勿論、図209の細線含有実世界領域2301に対応するものに限定されない。即ち、後述するように、1次元多項式近似手法においては、定常性を有する実世界1の光信号に対応するX断面波形F(x)であれば、いずれのものでも近似することが可能である。
【1349】
また、光信号関数F(x,y,t)の射影の方向はX方向に限定されず、Y方向またはt方向でもよい。即ち、1次元多項式近似手法においては、光信号関数F(x,y,t)をY方向に射影した関数F(y)を、所定の近似関数f(y)で近似することも可能であるし、光信号関数F(x,y,t)をt方向に射影した関数F(t)を、所定の近似関数f(t)で近似することも可能である。
【1350】
より詳細には、1次元多項式近似手法は、例えば、X断面波形F(x)を、次の式(105)で示されるような、n次の多項式である近似関数f(x)で近似する手法である。
【1351】
【数75】
Figure 2004246526
Figure 2004246526
【1352】
即ち、1次元多項式近似手法においては、実世界推定部102が、式(105)のx^iの係数(特徴量)wを演算することで、X断面波形F(x)を推定する。
【1353】
この特徴量wの演算方法は、特に限定されず、例えば、次の第1乃至第3の方法が使用可能である。
【1354】
即ち、第1の方法は、従来から利用されている方法である。
【1355】
これに対して、第2の方法は、本願出願人が新たに発明した方法であって、第1の方法に対して、さらに、空間方向の定常性を考慮した方法である。
【1356】
しかしながら、後述するように、第1の方法と第2の方法においては、センサ2の積分効果が考慮されていない。従って、第1の方法または第2の方法により演算された特徴量wを上述した式(105)に代入して得られる近似関数f(x)は、入力画像の近似関数ではあるが、厳密には、X断面波形F(x)の近似関数とは言えない。
【1357】
そこで、本願出願人は、第2の方法に対して、センサ2の積分効果をさらに考慮して特徴量wを演算する第3の方法を発明した。この第3の方法により演算された特徴量wを、上述した式(105)に代入して得られる近似関数f(x)は、センサ2の積分効果を考慮している点で、X断面波形F(x)の近似関数であると言える。
【1358】
このように、厳密には、第1の方法と第2の方法は、1次元多項式近似手法とは言えず、第3の方法のみが1次元多項式近似手法であると言える。
【1359】
換言すると、図210で示されるように、第2の方法は、1次元多項式近似手法とは異なる、本発明の実世界推定部102の実施の形態である。即ち、図210は、第2の方法に対応する実施の形態の原理を説明する図である。
【1360】
図210で示されるように、第2の方法に対応する実施の形態においては、光信号関数Fで表される実世界1の光信号が所定の定常性を有する場合、実世界推定部102が、センサ2からの入力画像(定常性に対応するデータの定常性を含む画像データ)と、データ定常性検出部101からのデータ定常性情報(入力画像のデータの定常性に対応するデータ定常性情報)を使用して、X断面波形F(x)を近似するのではなく、センサ2からの入力画像を所定の近似関数f(x)で近似する。
【1361】
このように、第2の方法は、センサ2の積分効果を考慮せず、入力画像の近似に留まっている点で、第3の方法と同一レベルの手法であるとは言い難い。しかしながら、第2の方法は、空間方向の定常性を考慮している点で、従来の第1の方法よりも優れた手法である。
【1362】
以下、第1の方法、第2の方法、および第3の方法のそれぞれの詳細について、その順番で個別に説明していく。
【1363】
なお、以下、第1の方法、第2の方法、および第3の方法により生成される近似関数f(x)のそれぞれを、他の方法のものと区別する場合、特に、近似関数f(x)、近似関数f(x)、および近似関数f(x)とそれぞれ称する。
【1364】
はじめに、第1の方法の詳細について説明する。
【1365】
第1の方法においては、上述した式(105)で示される近似関数f(x)が、図211の細線含有実世界領域2301内で成り立つとして、次の予測方程式(106)を定義する。
【1366】
【数76】
Figure 2004246526
Figure 2004246526
【1367】
式(106)において、xは、注目画素からのX方向に対する相対的な画素位置を表している。yは、注目画素からのY方向に対する相対的な画素位置を表している。eは、誤差を表している。具体的には、例えば、いま、図211で示されるように、注目画素が、細線含有データ領域2302(細線含有実世界領域2301(図209)がセンサ2により検出されて、出力されたデータ)のうちの、図中、左からX方向に2画素目であって、下からY方向に3画素目の画素であるとする。また、注目画素の中心を原点(0,0)とし、センサ2のX方向とY方向(図206)のそれぞれに平行なx軸とy軸を軸とする座標系(以下、注目画素座標系と称する)が設定されているとする。この場合、注目画素座標系の座標値(x,y)が、相対画素位置を表すことになる。
【1368】
また、式(106)において、P(x,y)は、相対画素位置(x,y)における画素値を表している。具体的には、いまの場合、細線含有データ領域2302内のP(x,y)は、図212で示されるようになる。
【1369】
図212は、この画素値P(x,y)をグラフ化したものを表している。
【1370】
図212において、各グラフのそれぞれの縦軸は、画素値を表しており、横軸は、注目画素からのX方向の相対位置xを表している。また、図中、上から1番目のグラフの点線は入力画素値P(x,−2)を、上から2番目のグラフの3点鎖線は入力画素値P(x,−1)を、上から3番目のグラフの実線は入力画素値P(x,0)を、上から4番目のグラフの1点鎖線は入力画素値P(x,1)を、上から5番目(下から1番目)のグラフの2点鎖線は入力画素値P(x,2)を、それぞれ表している。
【1371】
上述した式(106)に対して、図212で示される20個の入力画素値P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)(ただし、xは、−1乃至2のうちのいずれかの整数値)のそれぞれを代入すると、次の式(107)で示される20個の方程式が生成される。なお、e(kは、1乃至20のうちのいずれかの整数値)のそれぞれは、誤差を表している。
【1372】
【数77】
Figure 2004246526
Figure 2004246526
【1373】
式(107)は、20個の方程式より構成されているので、近似関数f(x)の特徴量wの個数が20個より少ない場合、即ち、近似関数f(x)が19次より少ない次数の多項式である場合、例えば、最小自乗法を用いて特徴量wの算出が可能である。なお、最小自乗法の具体的な解法は後述する。
【1374】
例えば、いま、近似関数f(x)の次数が5次とされた場合、式(107)を利用して最小自乗法により演算された近似関数f(x)(演算された特徴量wにより生成される近似関数f(x))は、図213で示される曲線のようになる。
【1375】
なお、図213において、縦軸は画素値を表しており、横軸は注目画素からの相対位置xを表している。
【1376】
即ち、図211の細線含有データ領域2302を構成する20個の画素値P(x,y)のそれぞれ(図212で示される入力画素値P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)のそれぞれ)を、例えば、x軸に沿ってそのまま足しこむ(Y方向の相対位置yを一定とみなして、図212で示される5つのグラフを重ねる)と、図213で示されるような、x軸に平行な複数の線(点線、3点鎖線、実線、1点鎖線、および2点鎖線)が分布する。
【1377】
ただし、図213においては、点線は入力画素値P(x,−2)を、3点鎖線は入力画素値P(x,−1)を、実線は入力画素値P(x,0)を、1点鎖線は入力画素値P(x,1)を、2点鎖線は入力画素値P(x,2)を、それぞれ表している。また、同一の画素値の場合、実際には2本以上の線が重なることになるが、図213においては、各線の区別がつくように、各線のそれぞれが重ならないように描画されている。
【1378】
そして、このように分布した20個の入力画素値P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)のそれぞれと、値f(x)の誤差が最小となるような回帰曲線(最小自乗法により演算された特徴量wを上述した式(104)に代入して得られる近似関数f(x))が、図213で示される曲線(近似関数f(x))となる。
【1379】
このように、近似関数f(x)は、Y方向の画素値(注目画素からのX方向の相対位置xが同一の画素値)P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)の平均値を、X方向に結んだ曲線を単に表しているに過ぎない。即ち、光信号が有する空間方向の定常性を考慮することなく、近似関数f(x)が生成されている。
【1380】
例えば、いまの場合、近似の対象は、細線含有実世界領域2301(図209)とされている。この細線含有実世界領域2301は、図214で示されるように、傾きGで表される空間方向の定常性を有している。なお、図214において、X方向とY方向は、センサ2のX方向とY方向(図206)を表している。
【1381】
従って、データ定常性検出部101(図205)は、空間方向の定常性の傾きGに対応するデータ定常性情報として、図214で示されるような角度θ(傾きGに対応する傾きGで表されるデータの定常性の方向と、X方向のなす角度θ)を出力することができる。
【1382】
しかしながら、第1の方法においては、データ定常性検出部101より出力されるデータ定常性情報は一切用いられていない。
【1383】
換言すると、図214で示されるように、細線含有実世界領域2301の空間方向の定常性の方向は略角度θ方向である。しかしながら、第1の方法は、細線含有実世界領域2301の空間方向の定常性の方向はY方向であると仮定して(即ち、角度θが90度であると仮定して)、近似関数f(x)の特徴量wを演算する方法である。
【1384】
このため、近似関数f(x)は、その波形が鈍り、元の画素値よりディテールが減少する関数となってしまう。換言すると、図示はしないが、第1の方法により生成される近似関数f(x)は、実際のX断面波形F(x)とは大きく異なる波形となってしまう。
【1385】
そこで、本願出願人は、第1の方法に対して、空間方向の定常性をさらに考慮して(角度θを利用して)特徴量wを演算する第2の方法を発明した。
【1386】
即ち、第2の方法は、細線含有実世界領域2301の定常性の方向は略角度θ方向であるとして、近似関数f(x) の特徴量wを演算する方法である。
【1387】
具体的には、例えば、空間方向の定常性に対応するデータの定常性を表す傾きGは、次の式(108)で表される。
【1388】
【数78】
Figure 2004246526
Figure 2004246526
【1389】
なお、式(108)において、dxは、図214で示されるようなX方向の微小移動量を表しており、dyは、図214で示されるようなdxに対するY方向の微小移動量を表している。
【1390】
この場合、シフト量C(y)を、次の式(109)のように定義すると、第2の方法においては、第1の方法で利用した式(106)に相当する式は、次の式(110)のようになる。
【1391】
【数79】
Figure 2004246526
Figure 2004246526
【1392】
【数80】
Figure 2004246526
Figure 2004246526
【1393】
即ち、第1の方法で利用した式(106)は、画素の中心の位置(x、y)のうちのX方向の位置xが、同一の位置に位置する画素の画素値P(x,y)はいずれも同じ値であることを表している。換言すると、式(106)は、同じ画素値の画素がY方向に続いている(Y方向に定常性がある)ことを表している。
【1394】
これに対して、第2の方法で利用する式(110)は、画素の中心の位置が(x,y)である画素の画素値P(x,y)は、注目画素(その中心の位置が原点(0,0)である画素)からX方向にxだけ離れた場所に位置する画素の画素値(≒f(x))とは一致せず、その画素からさらにX方向にシフト量C(y)だけ離れた場所に位置する画素(注目画素からX方向にx+C(y)だけ離れた場所に位置する画素)の画素値(≒f(x+C(y)))と同じ値であることを表している。換言すると、式(110)は、同じ画素値の画素が、シフト量C(y)に対応する角度θ方向に続いている(略角度θ方向に定常性がある)ことを表している。
【1395】
このように、シフト量C(y)が、空間方向の定常性(いまの場合、図214の傾きGで表される定常性(厳密には、傾きGで表されるデータの定常性))を考慮した補正量であり、シフト量C(y)により式(106)を補正したものが式(110)となる。
【1396】
この場合、図211で示される細線含有データ領域2302の20個の画素値P(x,y)(ただし、xは、−1乃至2のうちのいずれかの整数値。yは、−2乃至2のうちのいずれかの整数値)のそれぞれを、上述した式(110)に代入すると次の式(111)で示される20個の方程式が生成される。
【1397】
【数81】
Figure 2004246526
Figure 2004246526
【1398】
式(111)は、上述した式(107)と同様に、20個の方程式より構成されている。従って、第1の方法と同様に第2の方法においても、近似関数f(x)の特徴量wの個数が20個より少ない場合、即ち、近似関数f(x)が19次より少ない次数の多項式である場合、例えば、最小自乗法を用いて特徴量wの算出が可能である。なお、最小自乗法の具体的な解法は後述する。
【1399】
例えば、第1の方法と同様に近似関数f(x)の次数が5次とされた場合、第2の方法においては、次のようにして特徴量wが演算される。
【1400】
即ち、図215は、式(111)の左辺で示される画素値P(x,y)をグラフ化したものを表している。図215で示される5つのグラフのそれぞれは、基本的に図212で示されるものと同一である。
【1401】
図215で示されるように、最大の画素値(細線に対応する画素値)は、傾きGで表されるデータの定常性の方向に続いている。
【1402】
そこで、第2の方法においては、図215で示される入力画素値P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)のそれぞれを、例えば、x軸に沿って足しこむ場合、第1の方法のようにそのまま足しこむ(yを一定とみなして、図215で示される状態のまま5つのグラフを重ねる)のではなく、図216で示される状態に変化させてから足しこむ。
【1403】
即ち、図216は、図215で示される入力画素値P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)のそれぞれを、上述した式(109)で示されるシフト量C(y)だけシフトさせた状態を表している。換言すると、図216は、図215で示される5つのグラフを、データの定常性の実際の方向を表す傾きGを、あたかも傾きG’とするように(図中、点線の直線を実線の直線とするように)移動させた状態を表している。
【1404】
図216の状態で、入力画素値P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)のそれぞれを、例えば、x軸に沿って足しこむと(図216で示される状態で5つのグラフを重ねると)、図217で示されるような、x軸に平行な複数の線(点線、3点鎖線、実線、1点鎖線、および2点鎖線)が分布する。
【1405】
なお、図217において、縦軸は画素値を表しており、横軸は注目画素からの相対位置xを表している。また、点線は入力画素値P(x,−2)を、3点鎖線は入力画素値P(x,−1)を、実線は入力画素値P(x,0)を、1点鎖線は入力画素値P(x,1)を、2点鎖線は入力画素値P(x,2)を、それぞれ表している。さらに、同一の画素値の場合、実際には2本以上の線が重なることになるが、図217においては、各線の区別がつくように、各線のそれぞれが重ならないように描画されている。
【1406】
そして、このように分布した20個の入力画素値P(x,y)のそれぞれ(ただし、xは、−1乃至2のうちのいずれかの整数値。yは、−2乃至2のうちのいずれかの整数値)と、値f(x+C(y))の誤差が最小となるような回帰曲線(最小自乗法により演算された特徴量wを上述した式(104)に代入して得られる近似関数f(x))は、図217の実線で示される曲線f(x)となる。
【1407】
このように、第2の方法により生成された近似関数f(x)は、データ定常性検出部101(図205)より出力される角度θ方向(即ち、ほぼ空間方向の定常性の方向)の入力画素値P(x,y)の平均値をX方向に結んだ曲線を表すことになる。
【1408】
これに対して、上述したように、第1の方法により生成された近似関数f(x)は、Y方向(即ち、空間方向の定常性とは異なる方向)の入力画素値P(x,y)の平均値を、X方向に結んだ曲線を単に表しているに過ぎない。
【1409】
従って、図217で示されるように、第2の方法により生成された近似関数f(x)は、第1の方法により生成された近似関数f(x)よりも、その波形の鈍り度合いが減少し、かつ、元の画素値に対するディテールの減り具合も減少する関数となる。換言すると、図示はしないが、第2の方法により生成される近似関数f(x)は、第1の方法により生成される近似関数f(x)よりも実際のX断面波形F(x)により近い波形となる。
【1410】
しかしながら、上述したように、近似関数f(x)は、空間方向の定常性が考慮されたものではあるが、入力画像(入力画素値)を原点(基準)として生成されたものに他ならない。即ち、上述した図210で示されるように、近似関数f(x)は、X断面波形F(x)とは異なる入力画像を近似したに過ぎず、X断面波形F(x)を近似したとは言い難い。換言すると、第2の方法は、上述した式(110)が成立するとして特徴量wを演算する方法であり、上述した式(104)の関係は考慮していない(センサ2の積分効果を考慮していない)。
【1411】
そこで、本願出願人は、第2の方法に対して、センサ2の積分効果をさらに考慮することで近似関数f(x)の特徴量wを演算する第3の方法を発明した。
【1412】
即ち、第3の方法は、空間混合領域の概念を導入した方法である。
【1413】
第3の方法の説明の前に、図218を参照して、空間混合領域について説明する。
【1414】
図218において、実世界1の光信号の1部分2321(以下、領域2321と称する)は、センサ2の1つの検出素子(画素)と同じ面積を有する領域を表している。
【1415】
領域2321がセンサ2に検出されると、センサ2からは、領域2321が時空間方向(X方向,Y方向,およびt方向)に積分された値(1つの画素値)2322が出力される。なお、画素値2322は、図中、画像として表現されているが、実際には、所定の値を表すデータである。
【1416】
実世界1の領域2321は、前景(例えば、上述した細線)に対応する光信号(図中白い領域)と、背景に対応する光信号(図中黒い領域)に明確に区分される。
【1417】
これに対して、画素値2322は、前景に対応する実世界1の光信号と、背景に対応する実世界1の光信号が積分された値である。換言すると、画素値2322は、前景に対応する光のレベルと背景に対応する光のレベルが空間的に混合されたレベルに対応する値である。
【1418】
このように、実世界1の光信号のうちの1画素(センサ2の検出素子)に対応する部分が、同一レベルの光信号が空間的に一様に分布する部分ではなく、前景と背景のように異なるレベルの光信号のそれぞれが分布する部分である場合、その領域は、センサ2により検出されると、センサ2の積分効果により、異なる光のレベルがあたかも空間的に混合されて(空間方向に積分されて)1つの画素値となってしまう。このように、前景に対する画像(実世界1の光信号)と、背景に対する画像(実世界1の光信号)が空間的に積分されている画素からなる領域を、ここでは、空間混合領域と称している。
【1419】
従って、第3の方法においては、実世界推定部102(図205)が、実世界1の元の領域2321(実世界1の光信号のうちの、センサ2の1画素に対応する部分2321)を表すX断面波形F(x)を、例えば、図219で示されるような、1次の多項式である近似関数f(x)で近似することによって、X断面波形F(x)を推定する。
【1420】
即ち、図219は、空間混合領域である画素値2322(図218)に対応する近似関数f(x)、即ち、実世界1の領域2331内の実線(図218)に対応するX断面波形F(x)を近似する近似関数f(x)の例を表している。図219において、図中水平方向の軸は、画素値2322に対応する画素の左下端xから右下端xまでの辺(図218)に平行な軸を表しており、x軸とされている。図中垂直方向の軸は、画素値を表す軸とされている。
【1421】
図219において、近似関数f(x)をxからxの範囲(画素幅)で積分したものが、センサ2から出力される画素値P(x,y)とほぼ一致する(誤差eだけ存在する)として、次の式(112)を定義する。
【1422】
【数82】
Figure 2004246526
Figure 2004246526
【1423】
いまの場合、図214で示される細線含有データ領域2302の20個の画素値P(x,y)(ただし、xは、−1乃至2のうちのいずれかの整数値。yは、−2乃至2のうちのいずれかの整数値)から、近似関数f(x)の特徴量wが算出されるので、式(112)の画素値Pは、画素値P(x,y)となる。
【1424】
また、第2の方法と同様に、空間方向の定常性も考慮する必要があるので、式(112)の積分範囲の開始位置xと終了位置xのそれぞれは、シフト量C(y)にも依存することになる。即ち、式(112)の積分範囲の開始位置xと終了位置xのそれぞれは、次の式(113)のように表される。
【1425】
【数83】
Figure 2004246526
Figure 2004246526
【1426】
この場合、図214で示される細線含有データ領域2302の各画素値それぞれ、即ち、図215で示される入力画素値P(x,−2),P(x,−1),P(x,0),P(x,1),P(x,2)のそれぞれ(ただし、xは、−1乃至2のうちのいずれかの整数値)を、上述した式(112)(積分範囲は、上述した式(113))に代入すると次の式(114)で示される20個の方程式が生成される。
【1427】
【数84】
Figure 2004246526
【数85】
Figure 2004246526
Figure 2004246526
【1428】
式(114)は、上述した式(111)と同様に、20個の方程式より構成されている。従って、第2の方法と同様に第3の方法においても、近似関数f(x)の特徴量wの個数が20個より少ない場合、即ち、近似関数f(x)が19次より少ない次数の多項式である場合、例えば、最小自乗法を用いて特徴量wの算出が可能である。なお、最小自乗法の具体的な解法は後述する。
【1429】
例えば、近似関数f(x)の次数が5次とされた場合、式(114)を利用して最小自乗法により演算された近似関数f(x)(演算された特徴量wにより生成される近似関数f(x))は、図220の実線で示される曲線のようになる。
【1430】
なお、図220において、縦軸は画素値を表しており、横軸は注目画素からの相対位置xを表している。
【1431】
図220で示されるように、第3の方法により生成された近似関数f(x)(図中、実線で示される曲線)は、第2の方法により生成された近似関数f(x)(図中、点線で示される曲線)と比較すると、x=0における画素値が大きくなり、また、曲線の傾斜の度合いも急な波形となる。これは、入力画素よりディテイルが増加して、入力画素の解像度とは無関係となっているためである。即ち、近似関数f(x)は、X断面波形F(x)を近似していると言える。従って、図示はしないが、近似関数f(x)は、近似関数f(x)よりもX断面波形F(x)に近い波形となる。
【1432】
図221は、このような1次多項式近似手法を利用する実世界推定部102の構成例を表している。
【1433】
図221において、実世界推定部102は、例えば、特徴量wを上述した第3の方法(最小自乗法)により演算し、演算した特徴量wを利用して上述した式(105)の近似関数f(x)を生成することで、X断面波形F(x)を推定する。
【1434】
図221で示されるように、実世界推定部102には、条件設定部2331、入力画像記憶部2332、入力画素値取得部2333、積分成分演算部2334、正規方程式生成部2335、および近似関数生成部2336が設けられている。
【1435】
条件設定部2331は、注目画素に対応するX断面波形F(x)を推定するために使用する画素の範囲(以下、タップ範囲と称する)や、近似関数f(x)の次数nを設定する。
【1436】
入力画像記憶部2332は、センサ2からの入力画像(画素値)を一次的に格納する。
【1437】
入力画素値取得部2333は、入力画像記憶部2332に記憶された入力画像のうちの、条件設定部2231により設定されたタップ範囲に対応する入力画像の領域を取得し、それを入力画素値テーブルとして正規方程式生成部2335に供給する。即ち、入力画素値テーブルは、入力画像の領域に含まれる各画素のそれぞれの画素値が記述されたテーブルである。なお、入力画素値テーブルの具体例については後述する。
【1438】
ところで、ここでは、実世界推定部102は、上述した式(112)と式(113)を利用して最小自乗法により近似関数f(x)の特徴量wを演算するが、上述した式(112)は、次の式(115)のように表現することができる。
【1439】
【数86】
Figure 2004246526
Figure 2004246526
【1440】
式(115)において、S(x,x)は、i次項の積分成分を表している。即ち、積分成分S(x,x)は、次の式(116)で示される。
【1441】
【数87】
Figure 2004246526
Figure 2004246526
【1442】
積分成分演算部2334は、この積分成分S(x、x)を演算する。
【1443】
具体的には、式(116)で示される積分成分S(x,x)(ただし、値xと値xは、上述した式(112)で示される値)は、相対画素位置(x,y)、シフト量C(y)、および、i次項のiが既知であれば演算可能である。また、これらのうちの、相対画素位置(x,y)は注目画素とタップ範囲により、シフト量C(y)は角度θにより(上述した式(107)と式(109)により)、iの範囲は次数nにより、それぞれ決定される。
【1444】
従って、積分成分演算部2334は、条件設定部2331により設定されたタップ範囲および次数、並びにデータ定常性検出部101より出力されたデータ定常性情報のうちの角度θに基づいて積分成分S(x,x)を演算し、その演算結果を積分成分テーブルとして正規方程式生成部2335に供給する。
【1445】
正規方程式生成部2335は、入力画素値取得部2333より供給された入力画素値テーブルと、積分成分演算部2334より供給された積分成分テーブルを利用して、上述した式(112)、即ち、式(115)の右辺の特徴量wを最小自乗法で求める場合の正規方程式を生成し、それを正規方程式テーブルとして近似関数生成部2336に供給する。なお、正規方程式の具体例については後述する。
【1446】
近似関数生成部2336は、正規方程式生成部2335より供給された正規方程式テーブルに含まれる正規方程式を行列解放で解くことにより、上述した式(115)の特徴量w(即ち、1次元多項式である近似関数f(x)の係数w)のそれぞれを演算し、画像生成部103に出力する。
【1447】
次に、図222のフローチャートを参照して、1次元多項式近似手法を利用する実世界推定部102(図221)の実世界の推定処理(図40のステップS102の処理)について説明する。
【1448】
例えば、いま、センサ2から出力された1フレームの入力画像であって、上述した図207の細線含有データ領域2302を含む入力画像が、既に入力画像記憶部2332に記憶されているとする。また、データ定常性検出部101が、ステップS101(図40)の定常性の検出の処理において、細線含有データ領域2302に対してその処理を施して、データ定常性情報として角度θを既に出力しているとする。
【1449】
この場合、図222のステップS2301において、条件設定部2331は、条件(タップ範囲と次数)を設定する。
【1450】
例えば、いま、図223で示されるタップ範囲2351が設定されるとともに、次数として5次が設定されたとする。
【1451】
即ち、図223は、タップ範囲の1例を説明する図である。図223において、X方向とY方向は、センサ2のX方向とY方向(図206)を表している。また、タップ範囲2351は、X方向に4画素分、かつY方向に5画素分の総計20個の画素(図中、20個の正方形)からなる画素群を表している。
【1452】
さらに、図223で示されるように、注目画素が、タップ範囲2351のうちの、図中、左から2画素目であって、下から3画素目の画素に設定されるとする。また、各画素のそれぞれに対して、注目画素からの相対画素位置(x,y)(注目画素の中心(0,0)を原点とする注目画素座標系の座標値)に応じて、図223で示されるような番号l(lは、0乃至19のうちのいずれかの整数値)が付されるとする。
【1453】
図222に戻り、ステップS2302において、条件設定部2331は、注目画素を設定する。
【1454】
ステップS2303において、入力画素値取得部2333は、条件設定部2331により設定された条件(タップ範囲)に基づいて入力画素値を取得し、入力画素値テーブルを生成する。即ち、いまの場合、入力画素値取得部2333は、細線含有データ領域2302(図211)を取得し、入力画素値テーブルとして、20個の入力画素値P(l)からなるテーブルを生成する。
【1455】
なお、いまの場合、入力画素値P(l)と、上述した入力画素値P(x,y)の関係は、次の式(117)で示される関係とされる。ただし、式(117)において、左辺が入力画素値P(l)を表し、右辺が入力画素値P(x,y)を表している。
【1456】
【数88】
Figure 2004246526
Figure 2004246526
【1457】
ステップS2304において、積分成分演算部2334は、条件設定部2331により設定された条件(タップ範囲および次数)、並びにデータ定常性検出部101より供給されたデータ定常性情報(角度θ)に基づいて積分成分を演算し、積分成分テーブルを生成する。
【1458】
いまの場合、上述したように、入力画素値は、P(x,y)でなくP(l)といった、画素の番号lの値として取得されるので、積分成分演算部2334は、上述した式(116)の積分成分S(x,x)を、次の式(118)の左辺で示される積分成分S(l)といったlの関数として演算する。
【1459】
(l) = S(x,x) ・・・(118)
【1460】
具体的には、いまの場合、次の式(119)で示される積分成分S(l)が演算される。
【1461】
【数89】
Figure 2004246526
Figure 2004246526
【1462】
なお、式(119)において、左辺が積分成分S(l)を表し、右辺が積分成分S(x,x)を表している。即ち、いまの場合、iは0乃至5であるので、20個のS(l),20個のS(l),20個のS(l),20個のS(l),20個のS(l),20個のS(l)の総計120個のS(l)が演算されることになる。
【1463】
より具体的には、はじめに、積分成分演算部2334は、データ定常性検出部101より供給された角度θを使用して、シフト量C(−2),C(−1),C(1),C(2)のそれぞれを演算する。次に、積分成分演算部2334は、演算したシフト量C(−2),C(−1),C(1),C(2)を使用して式(118)の右辺に示される20個の積分成分S(x,x)のそれぞれを、i=0乃至5のそれぞれについて演算する。即ち、120個の積分成分S(x,x)が演算される。なお、この積分成分S(x,x)の演算においては、上述した式(116)が使用される。そして、積分成分演算部2334は、式(119)に従って、演算した120個の積分成分S(x,x)のそれぞれを、対応する積分成分S(l)に変換し、変換した120個の積分成分S(l)を含む積分成分テーブルを生成する。
【1464】
なお、ステップS2303の処理とステップS2304の処理の順序は、図222の例に限定されず、ステップS2304の処理が先に実行されてもよいし、ステップS2303の処理とステップS2304の処理が同時に実行されてもよい。
【1465】
次に、ステップS2305において、正規方程式生成部2335は、ステップS2303の処理で入力画素値取得部2333により生成された入力画素値テーブルと、ステップS2304の処理で積分成分演算部2334により生成された積分成分テーブルに基づいて、正規方程式テーブルを生成する。
【1466】
具体的には、いまの場合、最小自乗法により、上述した式(115)に対応する次の式(120)の特徴量wを演算する。で、それに対応する正規方程式は、次の式(121)のように表される。
【1467】
【数90】
Figure 2004246526
Figure 2004246526
【1468】
【数91】
Figure 2004246526
Figure 2004246526
【1469】
なお、式(121)において、Lは、タップ範囲の画素の番号lのうちの最大値を表している。nは、多項式である近似関数f(x)の次数を表している。具体的には、いまの場合、n=5となり、L=19となる。
【1470】
式(121)で示される正規方程式の各行列のそれぞれを、次の式(122)乃至(124)のように定義すると、正規方程式は、次の式(125)のように表される。
【1471】
【数92】
Figure 2004246526
Figure 2004246526
【1472】
【数93】
Figure 2004246526
Figure 2004246526
【1473】
【数94】
Figure 2004246526
Figure 2004246526
【1474】
【数95】
Figure 2004246526
Figure 2004246526
【1475】
式(123)で示されるように、行列WMATの各成分は、求めたい特徴量wである。従って、式(125)において、左辺の行列SMATと右辺の行列PMATが決定されれば、行列解法によって行列WMAT(即ち、特徴量w)の算出が可能である。
【1476】
具体的には、式(122)で示されるように、行列SMATの各成分は、上述した積分成分S(l)が既知であれば演算可能である。積分成分S(l)は、積分成分演算部2334より供給された積分成分テーブルに含まれているので、正規方程式生成部2335は、積分成分テーブルを利用して行列SMATの各成分を演算することができる。
【1477】
また、式(124)で示されるように、行列PMATの各成分は、積分成分S(l)と入力画素値P(l)が既知であれば演算可能である。積分成分S(l)は、行列SMATの各成分に含まれるものと同一のものであり、また、入力画素値P(l)は、入力画素値取得部2333より供給された入力画素値テーブルに含まれているので、正規方程式生成部2335は、積分成分テーブルと入力画素値テーブルを利用して行列PMATの各成分を演算することができる。
【1478】
このようにして、正規方程式生成部2335は、行列SMATと行列PMATの各成分を演算し、その演算結果(行列SMATと行列PMATの各成分)を正規方程式テーブルとして近似関数生成部2336に出力する。
【1479】
正規方程式生成部2335より正規方程式テーブルが出力されると、ステップS2306において、近似関数生成部2336は、正規方程式テーブルに基づいて、上述した式(125)の行列WMATの各成分である特徴量w(即ち、1次元多項式である近似関数f(x)の係数w)を演算する。
【1480】
具体的には、上述した式(125)の正規方程式は、次の式(126)のように変形できる。
【1481】
【数96】
Figure 2004246526
Figure 2004246526
【1482】
式(126)において、左辺の行列WMATの各成分が、求めたい特徴量wである。また、行列SMATと行列PMATのそれぞれの各成分は、正規方程式生成部2335より供給された正規方程式テーブルに含まれている。従って、近似関数生成部2336は、正規方程式テーブルを利用して、式(126)の右辺の行列演算を行うことで行列WMATを演算し、その演算結果(特徴量w)を画像生成部103に出力する。
【1483】
ステップS2307において、近似関数生成部2336は、全画素の処理を終了したか否かを判定する。
【1484】
ステップS2307において、全画素の処理がまだ終了されていないと判定された場合、処理はステップS2302に戻り、それ以降の処理が繰り返される。即ち、まだ注目画素とされない画素が、順次注目画素とされて、ステップS2302乃至S2307の処理が繰り返される。
【1485】
そして、全画素の処理が終了すると(ステップS2307において、全画素の処理が終了されたと判定されると)、実世界1の推定処理は終了となる。
【1486】
なお、以上のようにして演算された係数(特徴量)wにより生成される近似関数f(x)の波形は、上述した図220の近似関数f(x)のような波形となる。
【1487】
このように、1次元多項式近似手法においては、1次元のX断面波形F(x)と同一形状の波形が定常性の方向に連なっていると仮定して、1次元の多項式である近似関数f(x)の特徴量が演算される。従って、1次元多項式近似手法においては、他の関数近似手法に比較して、少ない演算処理量で近似関数f(x)の特徴量の算出が可能となる。
【1488】
換言すると、1次元多項式近似手法においては、例えば、図205(図3)のデータ定常性検出部101が、それぞれ時空間積分効果を有する、センサの複数の検出素子(例えば、図206のセンサ2の検出素子2−1)により実世界1の光信号(例えば、図207の実世界1の光信号の1部分2301)が射影され、実世界1の光信号の定常性(例えば、図214の傾きGで表される定常性)の一部が欠落した、検出素子2−1により射影された画素値(例えば、図212の各グラフに示される入力画素値P(x,y))を有する複数の画素からなる画像データ(例えば、図207の画像データ(入力画像の領域)2302)におけるデータの定常性(例えば、図214の傾きGで表されるデータの定常性)を検出する。
【1489】
例えば、図205(図3)の実世界推定部102は、データ定常性検出部101により検出されたデータの定常性に対応して、画像データの時空間方向のうち1次元方向(例えば、図209の矢印2311、即ち、X方向)の位置に対応する画素の画素値(例えば、上述した式(112)の左辺である入力画素値P)が、1次元方向の積分効果により取得された画素値(例えば、式(112)の右辺に示されるように、近似関数f(x)がX方向に積分された値)であるとして、実世界1の光信号を表す光信号関数F(具体的には、X断面波形F(x))を所定の近似関数f(具体的には、例えば、図220の近似関数f(x))で近似することで、光信号関数Fを推定する。
【1490】
詳細には、例えば、実世界推定部102は、定常性検出手部101により検出されたデータの定常性に対応する線(例えば、図216の傾きGに対応する線(点線))からの1次元方向(例えば、X方向)に沿った距離(例えば、図216のシフト量Cx(y))に対応する画素の画素値が、1次元方向の積分効果により取得された画素値(例えば、上述した式(112)に示されるような積分範囲で、式(112)の右辺に示されるように、近似関数f(x)がX方向に積分された値)であるとして、光信号関数Fを近似関数fで近似することにより、光信号関数Fを推定する。
【1491】
従って、1次元多項式近似手法においては、他の関数近似手法に比較して、少ない演算処理量で近似関数f(x)の特徴量の算出が可能となる。
【1492】
次に、図224乃至図230を参照して、第2の関数近似手法について説明する。
【1493】
即ち、第2の関数近似手法とは、例えば、図224で示されるような、傾きGで表される空間方向の定常性を有する実世界1の光信号を、X−Y平面上(空間方向の1方向であるX方向と、X方向に垂直なY方向に水平な平面上)の波形F(x,y)とみなし、2次元の多項式である近似関数f(x,y)で波形F(x,y)を近似することによって、その波形F(x,y)を推定する手法である。従って、以下、第2の関数近似手法を、2次元多項式近似手法と称する。
【1494】
なお、図224において、図中、水平方向は、空間方向の1方向であるX方向を、右上方向は、空間方向の他方向であるY方向を、垂直方向は、光のレベルを、それぞれ表している。Gは、空間方向の定常性の傾きを表している。
【1495】
また、2次元多項式近似手法の説明においても、センサ2は、図225で示されるような、複数の検出素子2−1がその平面上に配置されて構成されるCCDとされる。
【1496】
図225の例では、検出素子2−1の所定の1辺に平行な方向が、空間方向の1方向であるX方向とされており、X方向に垂直な方向が、空間方向の他方向であるY方向とされている。そして、X−Y平面に垂直な方向が、時間方向であるt方向とされている。
【1497】
また、図225の例では、センサ2の各検出素子2−1のそれぞれの空間的な形状は、1辺の長さが1の正方形とされている。そして、センサ2のシャッタ時間(露光時間)が1とされている。
【1498】
さらに、図225の例では、センサ2の所定の1つの検出素子2−1の中心が、空間方向(X方向とY方向)の原点(X方向の位置x=0、およびY方向の位置y=0)とされており、また、露光時間の中間時刻が、時間方向(t方向)の原点(t方向の位置t=0)とされている。
【1499】
この場合、空間方向の原点(x=0,y=0)にその中心が存在する検出素子2−1は、X方向に−0.5乃至0.5の範囲、Y方向に−0.5乃至0.5の範囲、およびt方向に−0.5乃至0.5の範囲で光信号関数F(x,y,t)を積分し、その積分値を画素値Pとして出力することになる。
【1500】
即ち、空間方向の原点にその中心が存在する検出素子2−1から出力される画素値Pは、次の式(127)で表される。
【1501】
【数97】
Figure 2004246526
Figure 2004246526
【1502】
その他の検出素子2−1も同様に、対象とする検出素子2−1の中心を空間方向の原点とすることで、式(127)で示される画素値Pを出力することになる。
【1503】
ところで、上述したように、2次元多項式近似手法は、実世界1の光信号を、例えば、図224で示されるような波形F(x,y)として扱い、その2次元の波形F(x,y)を、2次元の多項式である近似関数f(x,y)に近似する手法である。
【1504】
そこで、はじめに、このような近似関数f(x,y)を2次元の多項式で表現する手法について説明する。
【1505】
上述したように、実世界1の光信号は、3次元の空間上の位置x,y、およびz、並びに時刻tを変数とする光信号関数F(x,y,t)で表される。この光信号関数F(x,y,t)を、Y方向の任意の位置yにおいて、X方向に射影した1次元の波形を、ここでは、X断面波形F(x)と称している。
【1506】
このX断面波形F(x)に注目すると、実世界1の信号が、空間方向の所定の方向に定常性を有している場合、X断面波形F(x)と同一形状の波形がその定常性の方向に連なっていると考えることができる。例えば、図224の例では、X断面波形F(x)と同一形状の波形が、傾きGの方向に連なっている。換言すると、X断面波形F(x)と同一形状の波形が傾きGの方向に連なって、波形F(x,y)が形成されているとも言える。
【1507】
従って、波形F(x,y)を近似する近似関数f(x,y)の波形は、X断面波形F(x)を近似する近似関数f(x)と同一形状の波形が連なって形成されると考えることで、近似関数f(x,y)を2次元の多項式で表現することが可能になる。
【1508】
さらに詳細に、近似関数f(x,y)の表現方法について説明する。
【1509】
例えば、いま、上述した図224で示されるような、実世界1の光信号、即ち、傾きGで表される空間方向の定常性を有する光信号が、センサ2(図225)により検出されて入力画像(画素値)として出力されたとする。
【1510】
さらに、図226で示されるように、データ定常性検出部101(図3)が、この入力画像のうちの、X方向に4画素分、かつY方向に5画素分の総計20個の画素(図中、点線で表される20個の正方形)から構成される入力画像の領域2401に対してその処理を実行し、データ定常性情報の1つとして角度θ(傾きGに対応する傾きGで表されるデータの定常性の方向と、X方向とのなす角度θ)を出力したとする。
【1511】
なお、入力画像の領域2401において、図中水平方向は、空間方向の1方向であるX方向を表しており、図中垂直方向は、空間方向の他方向であるY方向を表している。
【1512】
また、図226中、左から2画素目であって、下から3画素目の画素が注目画素とされ、その注目画素の中心を原点(0,0)とするように(x,y)座標系が設定されている。そして、原点(0,0)を通る角度θの直線(データの定常性の方向を表す傾きGの直線)に対するX方向の相対的な距離(以下、断面方向距離と称する)がx’と記述されている。
【1513】
さらに、図226中、右側のグラフは、X断面波形F(x’)が近似された関数であって、n次(nは、任意の整数)の多項式である近似関数f(x’)を表している。右側のグラフの軸のうち、図中水平方向の軸は、断面方向距離を表しており、図中垂直方向の軸は、画素値を表している。
【1514】
この場合、図226で示される近似関数f(x’)は、n次の多項式であるので、次の式(128)のように表される。
【1515】
【数98】
Figure 2004246526
Figure 2004246526
【1516】
また、角度θが決定されていることから、原点(0,0)を通る角度θの直線は一意に決まり、Y方向の任意の位置yにおける、直線のX方向の位置xが、次の式(129)のように表される。ただし、式(129)において、sはcotθを表している。
【1517】
= s×y ・・・(129)
【1518】
即ち、図226で示されるように、傾きGで表されるデータの定常性に対応する直線上の点は、座標値(x,y)で表される。
【1519】
式(129)より、断面方向距離x’は、次の式(130)のように表される。
【1520】
x’ = x−x = x−s×y ・・・(130)
【1521】
従って、入力画像の領域2401内の任意の位置(x,y)における近似関数f(x,y)は、式(128)と式(130)より、次の式(131)のように示される。
【1522】
【数99】
Figure 2004246526
Figure 2004246526
【1523】
なお、式(131)において、wは、近似関数f(x,y)の係数を表している。なお、近似関数f(x,y)を含む近似関数fの係数wを、近似関数fの特徴量と位置づけることもできる。従って、以下、近似関数fの係数wを、近似関数fの特徴量wとも称する。
【1524】
このようにして、角度θが既知であれば、2次元波形の近似関数f(x,y)を、式(131)の多項式として表現することができる。
【1525】
従って、実世界推定部102は、式(131)の特徴量wiを演算することができれば、図224で示されるような波形F(x,y)を推定することができる。
【1526】
そこで、以下、式(131)の特徴量wiを演算する手法について説明する。
【1527】
即ち、式(131)で表される近似関数f(x,y)を、画素(センサ2の検出素子2−1(図225))に対応する積分範囲(空間方向の積分範囲)で積分すれば、その積分値が、画素の画素値の推定値となる。このことを、式で表現したものが、次の式(132)である。なお、2次元多項式近似手法においては、時間方向tは一定値とみなされるので、式(132)は、空間方向(X方向とY方法)の位置x,yを変数とする方程式とされている。
【1528】
【数100】
Figure 2004246526
Figure 2004246526
【1529】
式(132)において、P(x,y)は、センサ2からの入力画像のうちの、その中心位置が位置(x,y)(注目画素からの相対位置(x,y))に存在する画素の画素値を表している。また、eは、誤差を表している。
【1530】
このように、2次元多項式近似手法においては、入力画素値P(x,y)と、2次元の多項式である近似関数f(x,y)の関係を、式(132)で表現することが可能であるので、実世界推定部102は、式(132)を利用して、特徴量wiを、例えば、最小自乗法等により演算することで(演算した特徴量wiを式(130)に代入して近似関数f(x,y)を生成することで)、2次元の関数F(x,y)(傾きG(図224)で表される空間方向の定常性を有する実世界1の光信号を、空間方向に着目して表した波形F(x,y))を推定することが可能となる。
【1531】
図227は、このような2次元多項式近似手法を利用する実世界推定部102の構成例を表している。
【1532】
図227で示されるように、実世界推定部102には、条件設定部2421、入力画像記憶部2422、入力画素値取得部2423、積分成分演算部2424、正規方程式生成部2425、および近似関数生成部2426が設けられている。
【1533】
条件設定部2421は、注目画素に対応する関数F(x,y)を推定するために使用する画素の範囲(タップ範囲)や、近似関数f(x,y)の次数nを設定する。
【1534】
入力画像記憶部2422は、センサ2からの入力画像(画素値)を一次格納する。
【1535】
入力画素値取得部2423は、入力画像記憶部2422に記憶された入力画像のうちの、条件設定部2421により設定されたタップ範囲に対応する入力画像の領域を取得し、それを入力画素値テーブルとして正規方程式生成部2425に供給する。即ち、入力画素値テーブルは、入力画像の領域に含まれる各画素のそれぞれの画素値が記述されたテーブルである。なお、入力画素値テーブルの具体例については後述する。
【1536】
ところで、上述したように、2次元多項式近似手法を利用する実世界推定部102は、上述した式(132)を最小自乗法で解くことにより、上述した式(131)で示される近似関数f(x,y)の特徴量wを演算する。
【1537】
式(132)は、次の式(133)乃至式(135)を用いることで得られる次の式(136)を使用することで、次の式(137)のように表現することができる。
【1538】
【数101】
Figure 2004246526
Figure 2004246526
【1539】
【数102】
Figure 2004246526
Figure 2004246526
【1540】
【数103】
Figure 2004246526
Figure 2004246526
【1541】
【数104】
Figure 2004246526
Figure 2004246526
【1542】
【数105】
Figure 2004246526
Figure 2004246526
【1543】
式(137)において、S(x−0.5,x+0.5,y−0.5,y+0.5)は、i次項の積分成分を表している。即ち、積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)は、次の式(138)で示される通りである。
【1544】
【数106】
Figure 2004246526
Figure 2004246526
【1545】
積分成分演算部2424は、この積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)を演算する。
【1546】
具体的には、式(138)で示される積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)は、相対画素位置(x,y)、上述した式(131)における変数s、および、i次項のiが既知であれば、演算可能である。これらのうちの、相対画素位置(x,y)は注目画素とタップ範囲により、変数sはcotθであるので角度θにより、iの範囲は次数nにより、それぞれ決定される。
【1547】
従って、積分成分演算部2424は、条件設定部2421により設定されたタップ範囲および次数、並びにデータ定常性検出部101より出力されたデータ定常性情報のうちの角度θに基づいて積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)を演算し、その演算結果を積分成分テーブルとして正規方程式生成部2425に供給する。
【1548】
正規方程式生成部2425は、入力画素値取得部2423より供給された入力画素値テーブルと、積分成分演算部2424より供給された積分成分テーブルを利用して、上述した式(132)、即ち、式(137)を最小自乗法で求める場合の正規方程式を生成し、それを正規方程式テーブルとして近似関数生成部2426に出力する。なお、正規方程式の具体例については後述する。
【1549】
近似関数生成部2426は、正規方程式生成部2425より供給された正規方程式テーブルに含まれる正規方程式を行列解放で解くことにより、上述した式(132)の特徴量w(即ち、2次元多項式である近似関数f(x,y)の係数w)のそれぞれを演算し、画像生成部103に出力する。
【1550】
次に、図228のフローチャートを参照して、2次元多項式近似手法が適用される実世界の推定処理(図40のステップS102の処理)について説明する。
【1551】
例えば、いま、傾きGで表される空間方向の定常性を有する実世界1の光信号が、センサ2(図225)により検出されて、1フレームに対応する入力画像として、入力画像記憶部2422に既に記憶されているとする。また、データ定常性検出部101が、ステップS101(図40)の定常性の検出の処理において、入力画像のうちの、上述した図226で示される領域2401に対して処理を施して、データ定常性情報として角度θを既に出力しているとする。
【1552】
この場合、ステップS2401において、条件設定部2421は、条件(タップ範囲と次数)を設定する。
【1553】
例えば、いま、図229で示されるタップ範囲2441が設定されるとともに、次数として5次が設定されたとする。
【1554】
即ち、図229は、タップ範囲の1例を説明する図である。図229において、X方向とY方向は、センサ2のX方向とY方向(図225)を表している。また、タップ範囲2441は、X方向に4画素分、かつY方向に5画素分の総計20個の画素(図中、20個の正方形)からなる画素群を表している。
【1555】
さらに、図229に示されるように、注目画素が、タップ範囲2441のうちの、図中、左から2画素目であって、下から3画素目の画素に設定されるとする。また、各画素のそれぞれに対して、注目画素からの相対画素位置(x,y)(注目画素の中心(0,0)を原点とする注目画素座標系の座標値)に応じて、図229で示されるような番号l(lは、0乃至19のうちのいずれかの整数値)が付されるとする。
【1556】
図228に戻り、ステップS2402において、条件設定部2421は、注目画素を設定する。
【1557】
ステップS2403において、入力画素値取得部2423は、条件設定部2421により設定された条件(タップ範囲)に基づいて入力画素値を取得し、入力画素値テーブルを生成する。即ち、いまの場合、入力画素値取得部2423は、入力画像の領域2401(図226)を取得し、入力画素値テーブルとして、20個の入力画素値P(l)からなるテーブルを生成する。
【1558】
なお、いまの場合、入力画素値P(l)と、上述した入力画素値P(x,y)の関係は、次の式(139)で示される関係とされる。ただし、式(139)において、左辺が入力画素値P(l)を表し、右辺が入力画素値P(x,y)を表している。
【1559】
【数107】
Figure 2004246526
Figure 2004246526
【1560】
ステップS2404において、積分成分演算部2424は、条件設定部2421により設定された条件(タップ範囲および次数)、並びにデータ定常性検出部101より供給されたデータ定常性情報(角度θ)に基づいて積分成分を演算し、積分成分テーブルを生成する。
【1561】
いまの場合、上述したように、入力画素値は、P(x,y)でなくP(l)といった、画素の番号lの値として取得されるので、積分成分演算部2424は、上述した式(138)の積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)を、次の式(140)の左辺で示される積分成分S(l)といったlの関数として演算する。
【1562】
(l) = S(x−0.5,x+0.5,y−0.5,y+0.5) ・・・(140)
【1563】
具体的には、いまの場合、次の式(141)で示される積分成分S(l)が演算される。
【1564】
【数108】
Figure 2004246526
Figure 2004246526
【1565】
なお、式(141)において、左辺が積分成分S(l)を表し、右辺が積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)を表している。即ち、いまの場合、iは0乃至5であるので、20個のS(l),20個のS(l),20個のS(l),20個のS(l),20個のS(l),20個のS(l)の総計120個のS(l)が演算されることになる。
【1566】
より具体的には、はじめに、積分成分演算部2424は、データ定常性検出部101より供給された角度θに対するcotθを演算し、それを変数sとする。次に、積分成分演算部2424は、演算した変数sを使用して式(140)の右辺で示される20個の積分成分S(x−0.5,x+0.5,y−0.5,y+0.5) のそれぞれを、i=0乃至5のそれぞれについて演算する。即ち、120個の積分成分S(x−0.5,x+0.5,y−0.5,y+0.5) が演算されることになる。なお、この積分成分S(x−0.5,x+0.5,y−0.5,y+0.5) の演算においては、上述した式(138)が使用される。そして、積分成分演算部2424は、式(141)に従って、演算した120個の積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)のそれぞれを、対応するS(l)のそれぞれに変換し、変換した120個のS(l)を含む積分成分テーブルを生成する。
【1567】
なお、ステップS2403の処理とステップS2404の処理の順序は、図228の例に限定されず、ステップS2404の処理が先に実行されてもよいし、ステップS2403の処理とステップS2404の処理が同時に実行されてもよい。
【1568】
次に、ステップS2405において、正規方程式生成部2425は、ステップS2403の処理で入力画素値取得部2423により生成された入力画素値テーブルと、ステップS2404の処理で積分成分演算部2424により生成された積分成分テーブルに基づいて、正規方程式テーブルを生成する。
【1569】
具体的には、いまの場合、上述した式(137)を利用して最小自乗法により特徴量wが演算される(ただし、式(136)において、積分成分S(x−0.5,x+0.5,y−0.5,y+0.5)は、式(140)により変換されるSi(l)が使用される)ので、それに対応する正規方程式は、次の式(142)のように表される。
【1570】
【数109】
Figure 2004246526
Figure 2004246526
【1571】
なお、式(142)において、Lは、タップ範囲の画素の番号lのうちの最大値を表している。nは、多項式である近似関数f(x)の次数を表している。具体的には、いまの場合、n=5となり、L=19となる。
【1572】
式(142)で示される正規方程式の各行列のそれぞれを、次の式(143)乃至(145)のように定義すると、正規方程式は、次の式(146)のように表現される。
【1573】
【数110】
Figure 2004246526
Figure 2004246526
【1574】
【数111】
Figure 2004246526
Figure 2004246526
【1575】
【数112】
Figure 2004246526
Figure 2004246526
【1576】
【数113】
Figure 2004246526
Figure 2004246526
【1577】
式(144)で示されるように、行列WMATの各成分は、求めたい特徴量wである。従って、式(146)において、左辺の行列SMATと右辺の行列PMATが決定されれば、行列解法によって行列WMATの演算が可能になる。
【1578】
具体的には、式(143)で示されるように、行列SMATの各成分は、上述した積分成分S(l)で演算可能である。即ち、積分成分S(l)は、積分成分演算部2424より供給された積分成分テーブルに含まれているので、正規方程式生成部2425は、積分成分テーブルを利用して行列SMATの各成分を演算することができる。
【1579】
また、式(145)で示されるように、行列PMATの各成分は、積分成分S(l)と入力画素値P(l)で演算可能である。即ち、積分成分S(l)は、行列SMATの各成分に含まれるものと同一のものであり、また、入力画素値P(l)は、入力画素値取得部2423より供給された入力画素値テーブルに含まれているので、正規方程式生成部2425は、積分成分テーブルと入力画素値テーブルを利用して行列PMATの各成分を演算することができる。
【1580】
このようにして、正規方程式生成部2425は、行列SMATと行列PMATの各成分を演算し、その演算結果(行列SMATと行列PMATの各成分)を正規方程式テーブルとして近似関数生成部2426に出力する。
【1581】
正規方程式生成部2425より正規方程式テーブルが出力されると、ステップS2406において、近似関数生成部2426は、正規方程式テーブルに基づいて、上述した式(146)の行列WMATの各成分である特徴量w(即ち、2次元多項式である近似関数f(x,y)の係数w)を演算する。
【1582】
具体的には、上述した式(146)の正規方程式は、次の式(147)のように変形できる。
【1583】
【数114】
Figure 2004246526
Figure 2004246526
【1584】
式(147)において、左辺の行列WMATの各成分が、求めたい特徴量wである。また、行列SMATと行列PMATのそれぞれの各成分は、正規方程式生成部2425より供給された正規方程式テーブルに含まれている。従って、近似関数生成部2426は、正規方程式テーブルを利用して、式(147)の右辺の行列演算を行うことで行列WMATを演算し、その演算結果(特徴量w)を画像生成部103に出力する。
【1585】
ステップS2407において、近似関数生成部2426は、全画素の処理を終了したか否かを判定する。
【1586】
ステップS2407において、全画素の処理がまだ終了されていないと判定された場合、処理はステップS2402に戻り、それ以降の処理が繰り返される。即ち、まだ注目画素とされない画素が、順次注目画素とされて、ステップS2402乃至S2407の処理が繰り返される。
【1587】
そして、全画素の処理が終了すると(ステップS2407において、全画素の処理が終了されたと判定されると)、実世界1の推定処理は終了となる。
【1588】
以上、2次元多項式近似手法の説明として、空間方向(X方向とY方向)に対する近似関数f(x,y)の係数(特徴量)wを演算する例を用いたが、2次元多項式近似手法は、時空間方向(X方向とt方向、または、Y方向とt方向)に対しても適用可能である。
【1589】
即ち、上述した例は、実世界1の光信号が、例えば、傾きG(図224)で表される空間方向の定常性を有する場合の例であったので、上述した式(132)で示されるような、空間方向(X方向とY方向)の二次元積分が含まれる式が利用された。しかしながら、二次元積分の考え方は、空間方向だけによるものではなく、時空間方向(X方向とt方向、または、Y方向とt方向)に対して適用することも可能である。
【1590】
換言すると、2次元多項式近似手法においては、推定したい光信号関数F(x,y,t)が、空間方向の定常性のみならず、時空間方向(ただし、X方向とt方向、または、Y方向とt方向)の定常性を有している場合であっても、2次元の多項式により近似することが可能である。
【1591】
具体的には、例えば、X方向に水平に等速で動いている物体がある場合、その物体の動きの方向は、図230で示されるようなX−t平面においては、傾きVのように表される。換言すると、傾きVは、X−t平面における時空間方向の定常性の方向を表しているとも言える。従って、データ定常性検出部101は、上述した角度θ(X−Y平面における、傾きGで表される空間方向の定常性に対応するデータ定常性情報)と同様に、X−t平面における時空間方向の定常性を表す傾きVに対応するデータ定常性情報として、図230で示されるような動きθ(厳密には、図示はしないが、傾きVに対応する傾きVで表されるデータの定常性の方向と、空間方向のX方向とのなす角度である動きθ)を出力することが可能である。
【1592】
従って、2次元多項式近似手法を利用する実世界推定部102は、動きθを上述した角度θの代わりとして使用すれば、上述した方法と同様な方法で、近似関数f(x,t)の係数(特徴量)wを演算することが可能になる。ただし、この場合、使用される式は、上述した式(132)ではなく、次の式(148)である。
【1593】
【数115】
Figure 2004246526
Figure 2004246526
【1594】
なお、式(148)において、sはcotθ(ただし、θは動きである)である。
【1595】
また、空間方向Xの変わりに、空間方向Yに注目した近似関数f(y,t)も、上述した近似関数f(x、t)と全く同様に取り扱うことが可能である。
【1596】
このように、2次元多項式近似手法においては、例えば、図205(図3)のデータ定常性検出部101が、それぞれ時空間積分効果を有する、センサの複数の検出素子(例えば、図225のセンサ2の検出素子2−1)により実世界1(図205)の光信号が射影され、実世界1の光信号の定常性(例えば、図224の傾きGで表される定常性)の一部が欠落した、検出素子2−1により射影された画素値を有する複数の画素からなる画像データ(例えば、図205の入力画像)におけるデータの定常性(例えば、図226の傾きGで表されるデータの定常性)を検出する。
【1597】
そして、例えば、図205(図3)の実世界推定部102(構成は、図227)が、データ定常性検出部101により検出されたデータの定常性に対応して、画像データの時空間方向のうち少なくとも2次元方向(例えば、図224と図225の空間方向Xと、空間方向Y)の位置に対応する画素の画素値(例えば、上述した式(131)の左辺である入力画素値P(x、y))が、少なくとも2次元方向の積分効果により取得された画素値(例えば、式(132)の右辺に示されるように、上述した式(131)で示される近似関数f(x,y)がX方向とY方向に積分された値)であるとして、実世界1の光信号を表す光信号関数F(具体的には、図224の関数F(x,y))を、多項式である近似関数f(例えば、式(131)で示される近似関数f(x,y))で近似することで、光信号関数Fを推定する。
【1598】
詳細には、例えば、実世界推定部102は、データ定常性検出部101により検出されたデータの定常性に対応する線(例えば、図226の傾きGに対応する線(矢印))からの少なくとも2次元方向に沿った距離(例えば、図226の断面方向距離x‘)に対応する画素の画素値が、少なくとも2次元方向の積分効果により取得された画素値であるとして、現実世界の光信号を表す第1の関数を、多項式である第2の関数で近似することで、第1の関数を推定する。
【1599】
このように、2次元多項式近似手法は、1次元ではなく2次元の積分効果を考慮しているので、1次元多項式近似手法に比較して、より正確に実世界1の光信号を推定することが可能になる。
【1600】
次に、図231乃至図235を参照して、第3の関数近似手法について説明する。
【1601】
即ち、第3の関数近似手法とは、例えば、時空間方向のうちの所定の方向の定常性を有する実世界1の光信号が、光信号関数F(x,y,t)で表されることに注目して、近似関数f(x,y,t)で光信号関数F(x,y,t)を近似することによって、光信号関数F(x,y,t)を推定する手法である。従って、以下、第3の関数近似手法を、3次元関数近似手法と称する。
【1602】
また、3次元関数近似手法の説明においても、センサ2は、図231で示されるような、複数の検出素子2−1がその平面上に配置されて構成されるCCDとされる。
【1603】
図231の例では、検出素子2−1の所定の1辺に平行な方向が、空間方向の1方向であるX方向とされており、X方向に垂直な方向が、空間方向の他方向であるY方向とされている。そして、X−Y平面に垂直な方向が、時間方向であるt方向とされている。
【1604】
また、図231の例では、センサ2の各検出素子2−1のそれぞれの空間的な形状は、1辺の長さが1の正方形とされている。そして、センサ2のシャッタ時間(露光時間)が1とされている。
【1605】
さらに、図231の例では、センサ2の所定の1つの検出素子2−1の中心が、空間方向(X方向とY方向)の原点(X方向の位置x=0、およびY方向の位置y=0)とされており、また、露光時間の中間時刻が、時間方向(t方向)の原点(t方向の位置t=0)とされている。
【1606】
この場合、空間方向の原点(x=0,y=0)にその中心が存在する検出素子2−1は、X方向に−0.5乃至0.5の範囲、Y方向に−0.5乃至0.5の範囲、およびt方向に−0.5乃至0.5の範囲で光信号関数F(x,y,t)を積分し、その積分値を画素値Pとして出力することになる。
【1607】
即ち、空間方向の原点にその中心が存在する検出素子2−1から出力される画素値Pは、次の式(149)で表される。
【1608】
【数116】
Figure 2004246526
Figure 2004246526
【1609】
その他の検出素子2−1も同様に、対象とする検出素子2−1の中心を空間方向の原点とすることで、式(149)で示される画素値Pを出力することになる。
【1610】
ところで、上述したように、3次元関数近似手法においては、光信号関数F(x,y,t)は、3次元の近似関数f(x,y,t)に近似される。
【1611】
具体的には、例えば、近似関数f(x,y,t)を、N個の変数(特徴量)を有する関数とし、式(149)に対応する入力画素値P(x,y,t)と近似関数f(x,y,t)の関係式を定義する。これにより、Nより大きいM個の入力画素値P(x,y,t)が取得されていれば、定義された関係式からN個の変数(特徴量)の算出が可能である。即ち、実世界推定部102は、M個の入力画素値P(x,y,t)を取得してN個の変数(特徴量)を演算することで、光信号関数F(x,y,t)を推定することが可能である。
【1612】
この場合、実世界推定部102は、センサ2からの入力画像(入力画素値)に含まれるデータの定常性を縛りとして(即ち、データ定常性検出部101より出力される入力画像に対するデータ定常性情報を利用して)、入力画像全体のうちの、M個の入力画像P(x,y,t)を抽出(取得)する。結果的に、予測関数f(x,y,t)は、データの定常性に拘束されることになる。
【1613】
例えば、図232で示されるように、入力画像に対応する光信号関数F(x,y,t)が、傾きGで表される空間方向の定常性を有している場合、データ定常性検出部101は、入力画像に対するデータ定常性情報として、角度θ(傾きGに対応する傾きG(図示せず)で表されるデータの定常性の方向と、X方向のなす角度θ)を出力することになる。
【1614】
この場合、光信号関数F(x,y,t)をX方向に射影した1次元の波形(ここでは、このような波形を、X断面波形と称している)は、Y方向のいずれの位置で射影した場合であっても同一の形状であるとする。
【1615】
即ち、同一形状のX断面波形が、定常性の方向(X方向に対して角度θ方向)に連なっている2次元の(空間方向の)波形が存在するとし、そのような2次元波形が時間方向tに連なった3次元波形を、近似関数f(x,y,t)で近似する。
【1616】
換言すると、注目画素の中心からY方向に位置yだけずれたX断面波形は、注目画素の中心を通るX断面波形がX方向に所定の量(角度θに応じて変化する量)だけ移動した(シフトした)波形となる。なお、以下、このような量を、シフト量と称する。
【1617】
このシフト量は、次のようにして算出が可能である。
【1618】
即ち、傾きV(例えば、図232の傾きVに対応する、データの定常性の方向を表す傾きV)と角度θは、次の式(150)のように表される。
【1619】
【数117】
Figure 2004246526
Figure 2004246526
【1620】
なお、式(150)において、dxは、X方向の微小移動量を表しており、dyは、dxに対するY方向の微小移動量を表している。
【1621】
従って、X方向に対するシフト量をC(y)と記述すると、次の式(151)のように表される。
【1622】
【数118】
Figure 2004246526
Figure 2004246526
【1623】
このようにして、シフト量C(y)を定義すると、式(149)に対応する入力画素値P(x,y,t)と近似関数f(x,y,t)の関係式は、次の式(152)のように表される。
【1624】
【数119】
Figure 2004246526
Figure 2004246526
【1625】
式(152)において、eは、誤差を表している。tは、t方向の積分開始位置を表しており、tは、t方向の積分終了位置を表している。同様に、yは、Y方向の積分開始位置を表しており、yは、Y方向の積分終了位置を表している。また、xは、X方向の積分開始位置を表しており、xは、X方向の積分終了位置を表している。ただし、具体的な各積分範囲のそれぞれは、次の式(153)で示される通りになる。
【1626】
【数120】
Figure 2004246526
Figure 2004246526
【1627】
式(153)で示されるように、注目画素から空間方向に(x,y)だけ離れて位置する画素に対するX方向の積分範囲を、シフト量C(y)だけ移動させることで、同一形状のX断面波形が、定常性の方向(X方向に対して角度θ方向)に連なっていることを表すことが可能になる。
【1628】
このように、3次元関数近似手法においては、画素値P(x,y、t)と、3次元の近似関数f(x,y,t)の関係を式(152)(積分範囲は、式(153))で表すことができるので、式(152)と式(153)を利用して、近似関数f(x,y,t)のN個の特徴量を、例えば、最小自乗法等により演算することで、光信号関数F(x,y,t)(例えば、図232で示されるような傾きV表される空間方向の定常性を有する光信号)の推定が可能となる。
【1629】
なお、光信号関数F(x,y,t)で表される光信号が、例えば、図232で示されるような傾きVで表される空間方向の定常性を有している場合、次のようにして光信号関数F(x,y,t)を近似してもよい。
【1630】
即ち、光信号関数F(x,y,t)をY方向に射影した1次元の波形(以下、このような波形を、Y断面波形と称する)は、X方向のいずれの位置で射影した場合であっても同一の形状であるとする。
【1631】
換言すると、同一形状のY断面波形が、定常性の方向(X方向に対して角度θ方向)に連なっている2次元の(空間方向の)波形が存在するとし、そのような2次元波形が時間方向tに連なった3次元波形を、近似関数f(x,y,t)で近似する。
【1632】
従って、注目画素の中心からX方向にxだけずれたY断面波形は、注目画素の中心を通るY断面波形がY方向に所定のシフト量(角度θに応じて変化するシフト量)だけ移動した波形となる。
【1633】
このシフト量は、次のようにして算出が可能である。
【1634】
即ち、傾きGが、上述した式(150)のように表されるので、Y方向に対するシフト量をC(x)と記述すると、次の式(154)のように表される。
【1635】
【数121】
Figure 2004246526
Figure 2004246526
【1636】
このようにして、シフト量C(x)を定義すると、式(149)に対応する入力画素値P(x,y,t)と近似関数f(x,y,t)の関係式は、シフト量C(y)を定義したときと同様に、上述した式(152)で表される。
【1637】
ただし、今度は、具体的な各積分範囲のそれぞれは、次の式(155)で示される通りになる。
【1638】
【数122】
Figure 2004246526
Figure 2004246526
【1639】
式(155)(および上述した式(152))で示されるように、注目画素から(x,y)だけ離れて位置する画素に対するY方向の積分範囲を、シフト量C(x)だけ移動させることで、同一形状のY断面波形が、定常性の方向(X方向に対して角度θ方向)に連なっていることを表すことが可能になる。
【1640】
このように、3次元関数近似手法においては、上述した式(152)の右辺の積分範囲を式(153)のみならず式(155)とすることもできるので、積分範囲として式(155)が採用された式(152)を利用して、近似関数f(x,y,t)のn個の特徴量を、例えば、最小自乗法等により演算することで、光信号関数F(x,y,t)(傾きGで表される空間方向の定常性を有する実世界1の光信号)の推定が可能となる。
【1641】
このように、積分範囲を表す式(153)と式(155)は、定常性の方向にあわせて周辺画素をX方向にシフトさせるか(式(153)の場合)、或いはY方向にシフトさせるか(式(155)の場合)の違いがあるだけであり、本質的には同じことを表している。
【1642】
しかしながら、定常性の方向(傾きG)に応じて、光信号関数F(x,y,t)を、X断面波形の集まりと捉えるか、Y断面波形の集まりと捉えるかが異なる。即ち、定常性の方向がY方向に近い場合、光信号関数F(x,y,t)を、X断面波形の集まりと捉えた方が好適である。これに対して、定常性の方向がX方向に近い場合、光信号関数F(x,y,t)を、Y断面波形の集まりと捉えた方が好適である。
【1643】
従って、実世界推定部102は、積分範囲として式(153)と式(155)の両方を用意しておき、定常性の方向に応じて、適宜式(152)の右辺の積分範囲として、式(153)と式(155)のうちのいずれか一方を選択するとよい。
【1644】
以上、光信号関数F(x,y,t)が空間方向(X方向とY方向)の定常性(例えば、図232の傾きGで表される空間方向の定常性)を有する場合についての3次元関数手法について説明したが、3次元関数手法は、図233で示されるように、光信号関数F(x,y,t)が時空間方向(X方向、Y方向、およびt方向)の定常性(傾きVで表される定常性)を有する場合についても適用可能である。
【1645】
即ち、図233において、フレーム番号#N−1のフレームに対応する光信号関数がF(x、y、#N−1)とされ、フレーム番号#Nのフレームに対応する光信号関数がF(x、y、#N)とされ、かつ、フレーム番号#N+1のフレームに対応する光信号関数がF(x、y、#N+1)とされている。
【1646】
なお、図233において、図中、水平方向は、空間方向の1方向であるX方向とされており、右斜め上方向は、空間方向の他方向であるY方向とされており、かつ、垂直方向は、時間方向であるt方向とされている。
【1647】
また、フレーム#N−1は、フレーム#Nに対して時間的に前のフレームであり、フレーム#N+1は、フレーム#Nに対して時間的に後のフレームである。即ち、フレーム#N−1、フレーム#N、およびフレーム#N+1は、フレーム#N−1、フレーム#N、およびフレーム#N+1の順で表示される。
【1648】
図233の例では、傾きVで示される方向(図中左下手前から右上奥の方向)に沿った断面の光のレベルがほぼ一定とされている。従って、図233の例では、光信号関数F(x,y,t)は、傾きVで表される時空間方向の定常性を有していると言える。
【1649】
この場合、時空間方向の定常性を表す関数C(x,y,t)を定義し、かつ、定義された関数C(x,y,t)を利用して、上述した式(152)の積分範囲を定義すれば、上述した式(153)や式(155)と同様に、近似関数f(x,y,t)のN個の特徴量の算出が可能になる。
【1650】
関数C(x,y,t)は、定常性の方向を表す関数であれば特に限定されない。ただし、以下においては、直線的な定常性であるとして、それに対応する関数C(x,y,t)として、上述した空間方向の定常性を表す関数であるシフト量C(y)(式(151))やシフト量C(x)(式(153))に相当する、C(t)とC(t)を次のように定義するとする。
【1651】
即ち、上述した空間方向のデータの定常性を表す傾きGに対応する、時空間方向のデータの定常性の傾きをVとすると、この傾きVをX方向の傾き(以下、Vfxと記述する)とY方向の傾き(以下、Vfyと記述する)に分割すると、傾きVfxは次の式(156)で、傾きVfyは次の式(157)で、それぞれ表される。
【1652】
【数123】
Figure 2004246526
Figure 2004246526
【1653】
【数124】
Figure 2004246526
Figure 2004246526
【1654】
この場合、関数C(t)は、式(156)で示される傾きVfxを利用して、次の式(158)のように表される。
【1655】
【数125】
Figure 2004246526
Figure 2004246526
【1656】
同様に、関数C(t)は、式(157)で示される傾きVfyを利用して、次の式(159)のように表される。
【1657】
【数126】
Figure 2004246526
Figure 2004246526
【1658】
このようにして、時空間方向の定常性2511を表す関数C(t)と関数C(t)を定義すると、式(152)の積分範囲は、次の式(160)のように表される。
【1659】
【数127】
Figure 2004246526
Figure 2004246526
【1660】
このように、3次元関数近似手法においては、画素値P(x,y、t)と、3次元の近似関数f(x,y,t)の関係を式(152)で表すことができるので、その式(152)の右辺の積分範囲として式(160)を利用して、近似関数f(x,y,t)のn+1個の特徴量を、例えば、最小自乗法等により演算することで、光信号関数F(x,y,t)(時空間方向の所定の方向に定常性を有する実世界1の光信号)を推定することが可能となる。
【1661】
図234は、このような3次元関数近似手法を利用する実世界推定部102の構成例を表している。
【1662】
なお、3次元関数近似手法を利用する実世界推定部102が演算する近似関数f(x,y,t)(実際には、その特徴量(係数)を演算する)は、特に限定されないが、以下の説明においては、n(n=N−1)次の多項式とされる。
【1663】
図234で示されるように、実世界推定部102には、条件設定部2521、入力画像記憶部2522、入力画素値取得部2523、積分成分演算部2524、正規方程式生成部2525、および近似関数生成部2526が設けられている。
【1664】
条件設定部2521は、注目画素に対応する光信号関数F(x,y,t)を推定するために使用する画素の範囲(タップ範囲)や、近似関数f(x,y,t)の次数nを設定する。
【1665】
入力画像記憶部2522は、センサ2からの入力画像(画素値)を一次格納する。
【1666】
入力画素値取得部2523は、入力画像記憶部2522に記憶された入力画像のうちの、条件設定部2521により設定されたタップ範囲に対応する入力画像の領域を取得し、それを入力画素値テーブルとして正規方程式生成部2525に供給する。即ち、入力画素値テーブルは、入力画像の領域に含まれる各画素のそれぞれの画素値が記述されたテーブルである。
【1667】
ところで、上述したように、3次元関数近似手法を利用する実世界推定部102は、上述した式(152)(ただし積分範囲は、式(153)、式(156)、または式(160))を利用して最小自乗法により近似関数f(x,y)のN個の特徴量(いまの場合、各次の係数)を演算する。
【1668】
式(152)の右辺は、その積分を演算することで、次の式(161)のように表現することができる。
【1669】
【数128】
Figure 2004246526
Figure 2004246526
【1670】
式(161)において、wは、i次項の係数(特徴量)を表しており、また、S(x,x,y,y,t,t)は、i次項の積分成分を表している。ただし、xはX方向の積分範囲の開始位置を、xはX方向の積分範囲の終了位置を、yはY方向の積分範囲の開始位置を、yはY方向の積分範囲の終了位置を、tはt方向の積分範囲の開始位置を、tはt方向の積分範囲の終了位置を、それぞれ表している。
【1671】
積分成分演算部2524は、この積分成分S(x,x,y,y,t,t)を演算する。
【1672】
即ち、積分成分演算部2524は、条件設定部2521により設定されたタップ範囲および次数、並びにデータ定常性検出部101より出力されたデータ定常性情報のうちの角度若しくは動き(積分範囲として、上述した式(153)若しくは式(156)が利用される場合には角度であり、上述した式(160)が利用される場合には動きである)に基づいて積分成分S(x,x,y,y,t,t)を演算し、その演算結果を積分成分テーブルとして正規方程式生成部2525に供給する。
【1673】
正規方程式生成部2525は、入力画素値取得部2523より供給された入力画素値テーブルと、積分成分演算部2524より供給された積分成分テーブルを利用して、上述した式(161)を最小自乗法で求める場合の正規方程式を生成し、それを正規方程式テーブルとして近似関数生成部2526に出力する。正規方程式の例については、後述する。
【1674】
近似関数生成部2526は、正規方程式生成部2525より供給された正規方程式テーブルに含まれる正規方程式を行列解放で解くことにより、特徴量w(いまの場合、3次元多項式である画素値関数f(x,y)の係数w)のそれぞれを演算し、画像生成部103に出力する。
【1675】
次に、図235のフローチャートを参照して、3次元関数近似手法が適用される実世界の推定処理(図40のステップS102の処理)について説明する。
【1676】
はじめに、ステップS2501において、条件設定部2521は、条件(タップ範囲と次数)を設定する。
【1677】
例えば、いま、L個の画素からなるタップ範囲が設定されたとする。また、各画素のそれぞれに対して、所定の番号l(lは、0乃至L−1のうちのいずれかの整数値)が付されるとする。
【1678】
次に、ステップS2502において、条件設定部2521は、注目画素を設定する。
【1679】
ステップS2503において、入力画素値取得部2523は、条件設定部2521により設定された条件(タップ範囲)に基づいて入力画素値を取得し、入力画素値テーブルを生成する。いまの場合、L個の入力画素値P(x,y,t)からなるテーブルが生成されることになる。ここで、L個の入力画素値P(x,y,t)のそれぞれを、その画素の番号lの関数としてP(l)と記述することにする。即ち、入力画素値テーブルは、L個のP(l)が含まれるテーブルとなる。
【1680】
ステップS2504において、積分成分演算部2524は、条件設定部2521により設定された条件(タップ範囲および次数)、並びにデータ定常性検出部101より供給されたデータ定常性情報(角度若しくは動き)に基づいて積分成分を演算し、積分成分テーブルを生成する。
【1681】
ただし、いまの場合、上述したように、入力画素値は、P(x,y,t)でなくP(l)といった、画素の番号lの値として取得されるので、積分成分演算部2524は、上述した式(161)の積分成分S(x,x,y,y,t,t)を、積分成分S(l)といったlの関数として演算することになる。即ち、積分成分テーブルは、L×i個のS(l)が含まれるテーブルとなる。
【1682】
なお、ステップS2503の処理とステップS2504の処理の順序は、図235の例に限定されず、ステップS2504の処理が先に実行されてもよいし、ステップS2503の処理とステップS2504の処理が同時に実行されてもよい。
【1683】
次に、ステップS2505において、正規方程式生成部2525は、ステップS2503の処理で入力画素値取得部2523により生成された入力画素値テーブルと、ステップS2504の処理で積分成分演算部2524により生成された積分成分テーブルに基づいて、正規方程式テーブルを生成する。
【1684】
具体的には、いまの場合、最小自乗法により、上述した式(161)に対応する次の式(162)の特徴量wを演算する。で、それに対応する正規方程式は、次の式(163)のように表される。
【1685】
【数129】
Figure 2004246526
Figure 2004246526
【1686】
【数130】
Figure 2004246526
Figure 2004246526
【1687】
式(163)で示される正規方程式の各行列のそれぞれを、次の式(164)乃至(166)のように定義すると、正規方程式は、次の式(167)のように表される。
【1688】
【数131】
Figure 2004246526
Figure 2004246526
【1689】
【数132】
Figure 2004246526
Figure 2004246526
【1690】
【数133】
Figure 2004246526
Figure 2004246526
【1691】
【数134】
Figure 2004246526
Figure 2004246526
【1692】
式(165)で示されるように、行列WMATの各成分は、求めたい特徴量wである。従って、式(167)において、左辺の行列SMATと右辺の行列PMATが決定されれば、行列解法によって行列WMAT(即ち、特徴量w)の算出が可能である。
【1693】
具体的には、式(164)で示されるように、行列SMATの各成分は、上述した積分成分S(l)が既知であれば演算可能である。積分成分S(l)は、積分成分演算部2524より供給された積分成分テーブルに含まれているので、正規方程式生成部2525は、積分成分テーブルを利用して行列SMATの各成分を演算することができる。
【1694】
また、式(166)で示されるように、行列PMATの各成分は、積分成分S(l)と入力画素値P(l)が既知であれば演算可能である。積分成分S(l)は、行列SMATの各成分に含まれるものと同一のものであり、また、入力画素値P(l)は、入力画素値取得部2523より供給された入力画素値テーブルに含まれているので、正規方程式生成部2525は、積分成分テーブルと入力画素値テーブルを利用して行列PMATの各成分を演算することができる。
【1695】
このようにして、正規方程式生成部2525は、行列SMATと行列PMATの各成分を演算し、その演算結果(行列SMATと行列PMATの各成分)を正規方程式テーブルとして近似関数生成部2526に出力する。
【1696】
正規方程式生成部2526より正規方程式テーブルが出力されると、ステップS2506において、近似関数生成部2526は、正規方程式テーブルに基づいて、上述した式(167)の行列WMATの各成分である特徴量w(即ち、近似関数f(x,y,t)の係数w)を演算する。
【1697】
具体的には、上述した式(167)の正規方程式は、次の式(168)のように変形できる。
【1698】
【数135】
Figure 2004246526
Figure 2004246526
【1699】
式(168)において、左辺の行列WMATの各成分が、求めたい特徴量wである。また、行列SMATと行列PMATのそれぞれの各成分は、正規方程式生成部2525より供給された正規方程式テーブルに含まれている。従って、近似関数生成部2526は、正規方程式テーブルを利用して、式(168)の右辺の行列演算を行うことで行列WMATを演算し、その演算結果(特徴量w)を画像生成部103に出力する。
【1700】
ステップS2507において、近似関数生成部2526は、全画素の処理を終了したか否かを判定する。
【1701】
ステップS2507において、全画素の処理がまだ終了されていないと判定された場合、処理はステップS2502に戻り、それ以降の処理が繰り返される。即ち、まだ注目画素とされない画素が、順次注目画素とされて、ステップS2502乃至S2507の処理が繰り返される。
【1702】
そして、全画素の処理が終了すると(ステップS5407において、全画素の処理が終了されたと判定されると)、実世界1の推定処理は終了となる。
【1703】
以上、説明したように、3次元関数近似手法は、1次元や2次元ではなく、時空間方向の3次元の積分効果を考慮しているので、1次元多項式近似手法や2次元多項式近似手法に比較して、より正確に実世界1の光信号を推定することが可能になる。
【1704】
換言すると、3次元関数近似手法においては、例えば、図205(図3)の実世界推定部102(構成は、例えば、図234)は、それぞれ時空間積分効果を有する、センサの複数の検出素子(例えば、図231のセンサ2の検出素子2−1)により実世界1の光信号が射影され、実世界1の光信号の定常性(例えば、図232の傾きG、または、図233の傾きVで表される定常性)の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる入力画像の、時空間方向のうち少なくとも1次元方向(例えば、図233の空間方向X、空間方向Y、および、時間方向tの3次元方向)の位置に対応する前記画素の前記画素値(例えば、式(153)の左辺の入力画素値P(x,y,z))が、少なくとも1次元方向の積分効果により取得された画素値(例えば、上述した式(153)の右辺に示されるように、近似関数f(x,y,t)がX方向、Y方向、およびt方向の3次元に積分された値)であるとして、実世界の光信号を表す光信号関数F(具体的には、例えば、図232や図233の光信号関数F(x,y,t))を所定の近似関数f(具体的には、例えば、式(152)の右辺の近似関数f(x,y,t))で近似することで、光信号関数Fを推定する。
【1705】
さらに、例えば、図205(図3)のデータ定常性検出部101が、入力画像のデータの定常性を検出した場合、実世界推定部102は、データ定常性検出部101により検出されたデータの定常性に対応して、画像データの時空間方向のうち少なくとも1次元方向の位置に対応する画素の画素値が、少なくとも1次元方向の積分効果により取得された画素値であるとして、光信号関数Fを近似関数fで近似することで、光信号関数Fを推定する。
【1706】
詳細には、例えば、実世界推定部102は、定常性検出部101により検出されたデータの定常性に対応する線からの少なくとも1次元方向に沿った距離(例えば、上述した式(151)のシフト量Cx(y))に対応する画素の画素値が、少なくとも1次元方向の積分効果により取得された画素値(例えば、上述した式(153)で示されるような積分範囲で、式(152)の右辺に示されるように、近似関数f(x,y,t)がX方向、Y方向、およびt方向の3次元に積分された値)であるとして、光信号関数Fを近似関数で近似することで、光信号関数を推定する。
【1707】
従って、3次元関数近似手法は、より正確に実世界1の光信号を推定することが可能になる。
【1708】
次に、図236乃至図257を参照して、画像生成部103(図3)の実施の形態の1例について説明する。
【1709】
図236は、この例の実施の形態の原理を説明する図である。
【1710】
図236で示されるように、この例の実施の形態においては、実世界推定部102が、関数近似手法を利用することが前提とされている。即ち、センサ2に入射される画像である、実世界1の信号(光の強度の分布)が、所定の関数Fで表されるとして、実世界推定部102が、センサ2から出力された入力画像(画素値P)と、データ定常性検出部101から出力されたデータ定常性情報を使用して、関数Fを所定の関数fで近似することによって、関数Fを推定することが前提とされている。
【1711】
なお、以下、この例の実施の形態の説明においても、画像である、実世界1の信号を、特に光信号と称し、関数Fを、特に光信号関数Fと称する。また、関数fを、特に近似関数fと称する。
【1712】
そこで、この例の実施の形態においては、このような前提に基づいて、画像生成部103が、データ定常性検出部101から出力されたデータ定常性情報と、実世界推定部102から出力された実世界推定情報(図236の例では、近似関数fの特徴量)を使用して、近似関数fを所定の時空間範囲で積分し、その積分値を出力画素値M(出力画像)として出力する。なお、この例の実施の形態においては、入力画像の画素と出力画像の画素を区別するために、入力画素値をPと記述し、出力画素値をMと記述する。
【1713】
換言すると、光信号関数Fが1度積分されて入力画素値Pとなり、その入力画素値Pから光信号関数Fが推測され(近似関数fで近似され)、推測された光信号関数F(即ち、近似関数f)が再度積分されて、出力画素値Mが生成される。従って、以下、画像生成部103が実行する近似関数fの積分を、再積分と称する。また、この例の実施の形態を、再積分手法と称する。
【1714】
なお、後述するように、再積分手法において、出力画素値Mが生成される場合の近似関数fの積分範囲は、入力画素値Pが生成される場合の光信号関数Fの積分範囲(即ち、空間方向においては、センサ2の検出素子の縦幅と横幅であり、時間方向においては、センサ2の露光時間である)に限定されず、任意の積分範囲が可能である。
【1715】
例えば、出力画素値Mが生成される場合、近似関数fの積分範囲のうちの空間方向の積分範囲を可変することで、その積分範囲に応じて出力画像の画素ピッチを可変することが可能になる。即ち、空間解像度の創造が可能になる。
【1716】
同様に、例えば、出力画素値Mが生成される場合、近似関数fの積分範囲のうちの時間方向の積分範囲を可変することで、時間解像度の創造が可能になる。
【1717】
以下、図面を参照して、このような再積分手法のうちの3つの具体的な手法についてそれぞれ個別に説明していく。
【1718】
即ち、3つの具体的な手法とは、関数近似手法の3つの具体的な手法(実世界推定部102の実施の形態の上述した3つの具体的な例)のそれぞれに対応する再積分手法である。
【1719】
具体的には、1つ目の手法は、上述した1次元多項式近似手法(関数近似手法の1手法)に対応する再積分手法である。従って、1つ目の手法では1次元の再積分を行うことになるので、以下、このような再積分手法を、1次元再積分手法と称する。
【1720】
2つ目の手法は、上述した2次元多項式近似手法(関数近似手法の1手法)に対応する再積分手法である。従って、2つ目の手法では2次元の再積分を行うことになるので、以下、このような再積分手法を、2次元再積分手法と称する。
【1721】
3つ目の手法は、上述した3次元関数近似手法(関数近似手法の1手法)に対応する再積分手法である。従って、3つ目の手法では3次元の再積分を行うことになるので、以下、このような再積分手法を、3次元再積分手法と称する。
【1722】
以下、1次元再積分手法、2次元再積分手法、および3次元再積分手法のそれぞれの詳細について、その順番で説明していく。
【1723】
はじめに、1次元再積分手法について説明する。
【1724】
1次元再積分手法においては、1次元多項式近似手法により近似関数f(x)が既に生成されていることが前提とされる。
【1725】
即ち、3次元の空間上の位置x,y、およびz、並びに時刻tを変数とする光信号関数F(x,y,t)を、空間方向であるX方向、Y方向、およびZ方向、並びに時間方向であるt方向のうちの所定の1方向(例えば、X方向)に射影した1次元の波形(再積分手法の説明においても、このような波形のうちのX方向に射影した波形を、X断面波形F(x)と称することにする)が、n次(nは、任意の整数)の多項式である近似関数f(x)で近似されていることが前提とされる。
【1726】
この場合、1次元再積分手法においては、出力画素値Mは、次の式(169)のように演算される。
【1727】
【数136】
Figure 2004246526
Figure 2004246526
【1728】
なお、式(169)において、xは、積分開始位置を表しており、xは、積分終了位置を表している。また、Gは、所定のゲインを表している。
【1729】
具体的には、例えば、いま、実世界推測部102が、図237で示されるような画素3101(センサ2の所定の1つの検出素子に対応する画素3101)を注目画素として、図237で示されるような近似関数f(x)(X断面波形F(x)の近似関数f(x))を既に生成しているとする。
【1730】
なお、図237の例では、画素3101の画素値(入力画素値)がPとされ、かつ、画素3101の形状が、1辺の長さが1の正方形とされている。また、空間方向のうちの、画素3101の1辺に平行な方向(図中水平方向)がX方向とされ、X方向に垂直な方向(図中垂直方向)がY方向とされている。
【1731】
また、図237の下側に、画素3101の中心が原点とされる空間方向(X方向とY方向)の座標系(以下、注目画素座標系と称する)と、その座標系における画素3101が示されている。
【1732】
さらに、図237の上方に、y=0(yは、図中下側で示される注目画素座標系のY方向の座標値)における近似関数f(x)をグラフ化したものが示されている。このグラフにおいて、図中水平方向に平行な軸は、図中下側で示される注目画素座標系のX方向のx軸と同一の軸であり(原点も同一であり)、また、図中垂直方向に平行な軸は、画素値を表す軸とされている。
【1733】
この場合、近似関数f(x)と画素3101の画素値Pの間には、次の式(170)の関係が成立する。
【1734】
【数137】
Figure 2004246526
Figure 2004246526
【1735】
また、図237で示されるように、画素3101は、傾きGで表される空間方向のデータの定常性を有しているとする。そして、データ定常性検出部101(図236)が、傾きGで表されるデータの定常性に対応するデータ定常性情報として、図237で示されるような角度θを既に出力しているとする。
【1736】
この場合、例えば、1次元再積分方法においては、図238で示されるように、X方向に−0.5乃至0.5の範囲、かつY方向に−0.5乃至0.5の範囲(図237の画素3101が位置する範囲)に、4個の画素3111乃至画素3114を新たに創造することが可能である。
【1737】
なお、図238の下側に、図237のものと同一の注目画素座標系と、その注目画素座標系における画素3111乃至画素3114が示されている。また、図238の上側に、図237のものと同一のグラフ(y=0における近似関数f(x)をグラフ化したもの)が示されている。
【1738】
具体的には、図238で示されるように、1次元再積分方法においては、次の式(171)により画素3111の画素値M(1)の算出が、次の式(172)により画素3112の画素値M(2)の算出が、次の式(173)により画素3113の画素値M(3)の算出が、次の式(174)により画素3114の画素値M(4)の算出が、それぞれ可能である。
【1739】
【数138】
Figure 2004246526
Figure 2004246526
【1740】
【数139】
Figure 2004246526
Figure 2004246526
【1741】
【数140】
Figure 2004246526
Figure 2004246526
【1742】
【数141】
Figure 2004246526
Figure 2004246526
【1743】
なお、式(171)のxs1、式(172)のxs2、式(173)のxs3、および式(174)のxs4のそれぞれは、対応する式の積分開始位置を表している。また、式(171)のxe1、式(172)のxe2、式(173)のxe3、および式(174)のxe4のそれぞれは、対応する式の積分終了位置を表している。
【1744】
式(171)乃至式(174)のそれぞれの右辺の積分範囲は、画素3111乃至画素3114のそれぞれの画素幅(X方向の長さ)となる。即ち、xe1−xs1,xe2−xs2,xe3−xs3,xe4−xs4のそれぞれは、0.5となる。
【1745】
ただし、いまの場合、y=0における近似関数f(x)と同一形状の1次元の波形が、Y方向ではなく、傾きGで表されるデータの定常性の方向(即ち、角度θ方向)に連なっていると考えられる(実際には、y=0におけるX断面波形F(x)と同一形状の波形が定常性の方向に連なっている)。即ち、図238の注目画素座標系における原点(0,0)(図237の画素3101の中心)における画素値f(0)を画素値f1とした場合、画素値f1が続く方向は、Y方向ではなく、傾きGで表されるデータの定常性の方向(角度θ方向)である。
【1746】
換言すると、Y方向の所定の位置y(ただし、yは0以外の数値)における近似関数f(x)の波形を考えた場合、画素値f1となる位置は、位置(0,y)ではなく、位置(0,y)からX方向に所定の量(ここでも、このような量をシフト量と称することにする。また、シフト量は、Y方向の位置yに依存する量であるので、このシフト量をC(y)と記述することにする)だけ移動した位置(C(y),y)である。
【1747】
従って、上述した式(171)乃至式(174)のそれぞれの右辺の積分範囲として、求めたい画素値M(l)(ただし、lは、1乃至4のうちのいずれかの整数値)の中心が存在するY方向の位置yを考慮した範囲、即ち、シフト量C(y)を考慮した積分範囲の設定が必要である。
【1748】
具体的には、例えば、画素3111と画素3112の中心が存在するY方向の位置yは、y=0ではなく、y=0.25である。
【1749】
従って、y=0.25における近似関数f(x)の波形は、y=0における近似関数f(x)の波形をX方向にシフト量C(0.25)だけ移動させた波形に相当する。
【1750】
換言すると、上述した式(171)において、画素3111に対する画素値M(1)は、y=0における近似関数f(x)を所定の積分範囲(開始位置xs1から終了位置xe1まで)で積分したものであるとすると、その積分範囲は、開始位置xs1=−0.5から終了位置xe1=0までの範囲(画素3111がX方向に占める範囲そのもの)ではなく、図238で示される範囲、即ち、開始位置xs1=−0.5+C(0.25)から終了位置xe1=0+C(0.25)(シフト量C(0.25)だけ画素3111を仮に移動させた場合における、画素3111がX方向に占める範囲)となる。
【1751】
同様に、上述した式(172)において、画素3112に対する画素値M(2)は、y=0における近似関数f(x)を所定の積分範囲(開始位置xs2から終了位置xe2まで)で積分したものであるとすると、その積分範囲は、開始位置xs2=0から終了位置xe2=0.5までの範囲(画素3112のX方向に占める範囲そのもの)ではなく、図238で示される範囲、即ち、開始位置xs2=0+C(0.25)から終了位置xe1=0.5+C(0.25)(シフト量C(0.25)だけ画素3112を仮に移動させた場合における、画素3112のX方向に占める範囲)となる。
【1752】
また、例えば、画素3113と画素3114の中心が存在するY方向の位置yは、y=0ではなく、y=−0.25である。
【1753】
従って、y=−0.25における近似関数f(x)の波形は、y=0における近似関数f(x)の波形をX方向にシフト量C(−0.25)だけ移動させた波形に相当する。
【1754】
換言すると、上述した式(173)において、画素3113に対する画素値M(3)は、y=0における近似関数f(x)を所定の積分範囲(開始位置xs3から終了位置xe3まで)で積分したものであるとすると、その積分範囲は、開始位置xs3=−0.5から終了位置xe3=0までの範囲(画素3113のX方向に占める範囲そのもの)ではなく、図238で示される範囲、即ち、開始位置xs3=−0.5+C(−0.25)から終了位置xe3=0+C(−0.25)(シフト量C(−0.25)だけ画素3113を仮に移動させた場合における、画素3113のX方向に占める範囲)となる。
【1755】
同様に、上述した式(174)において、画素3114に対する画素値M(4)は、y=0における近似関数f(x)を所定の積分範囲(開始位置xs4から終了位置xe4まで)で積分したものであるとすると、その積分範囲は、開始位置xs4=0から終了位置xe4=0.5までの範囲(画素3114のX方向の占める範囲そのもの)ではなく、図238で示される範囲、即ち、開始位置xs4=0+C(−0.25)から終了位置xe1=0.5+C(−0.25)(シフト量C(−0.25)だけ画素3114を仮に移動させた場合における、画素3114のX方向に占める範囲)となる。
【1756】
従って、画像生成部102(図236)は、上述した式(171)乃至式(174)のそれぞれに、上述した積分範囲のうちの対応するものを代入してそれぞれ演算し、それらの演算結果を出力画素値M(1)乃至M(4)のそれぞれとして出力することになる。
【1757】
このように、画像生成部102は、1次元再積分手法を利用することで、センサ2(図236)からの出力画素3101(図237)における画素として、出力画素3101よりも空間解像度の高い4つの画素、即ち、画素3111乃至画素3114(図238)を創造することができる。さらに、図示はしないが、上述したように、画像生成部102は、画素3111乃至画素3114のみならず、積分範囲を適宜変えることで、出力画素3101に対して任意の倍率の空間解像度の画素を劣化することなく創造することができる。
【1758】
図239は、このような1次元再積分手法を利用する画像生成部103の構成例を表している。
【1759】
図239で示されるように、この例の画像生成部103には、条件設定部3121、特徴量記憶部3122、積分成分演算部3123、および出力画素値演算部3124が設けられている。
【1760】
条件設定部3121は、実世界推定部102より供給された実世界推定情報(図239の例では、近似関数f(x)の特徴量)に基づいて近似関数f(x)の次数nを設定する。
【1761】
条件設定部3121はまた、近似関数f(x)を再積分する場合(出力画素値を演算する場合)の積分範囲を設定する。なお、条件設定部3121が設定する積分範囲は、画素の幅である必要は無い。例えば、近似関数f(x)は空間方向(X方向)に積分されるので、センサ2(図236)からの入力画像の各画素の空間的な大きさに対する、出力画素(画像生成部103がこれから演算する画素)の相対的な大きさ(空間解像度の倍率)がわかれば、具体的な積分範囲の決定が可能である。従って、条件設定部3121は、積分範囲として、例えば、空間解像度倍率を設定することもできる。
【1762】
特徴量記憶部3122は、実世界推定部102より順次供給されてくる近似関数f(x)の特徴量を一次的に記憶する。そして、特徴量記憶部3122は、近似関数f(x)の特徴量の全てを記憶すると、近似関数f(x)の特徴量を全て含む特徴量テーブルを生成し、出力画素値演算部3124に供給する。
【1763】
ところで、上述したように、画像生成部103は、上述した式(169)を利用して出力画素値Mを演算するが、上述した式(169)の右辺に含まれる近似関数f(x)は、具体的には、次の式(175)のように表される。
【1764】
【数142】
Figure 2004246526
Figure 2004246526
【1765】
なお、式(175)において、wは、実世界推定部102より供給される近似関数f(x)の特徴量を表している。
【1766】
従って、上述した式(169)の右辺の近似関数f(x)に、式(175)の近似関数f(x)を代入して、式(169)の右辺を展開(演算)すると、出力画素値Mは、次の式(176)のように表される。
【1767】
【数143】
Figure 2004246526
Figure 2004246526
【1768】
式(176)において、K(x,x)は、i次項の積分成分を表している。即ち、積分成分K(x,x)は、次の式(177)で示される通りである。
【1769】
【数144】
Figure 2004246526
Figure 2004246526
【1770】
積分成分演算部3123は、この積分成分K(x,x)を演算する。
【1771】
具体的には、式(177)で示されるように、積分成分K(x,x)は、積分範囲の開始位置x、および終了位置x、ゲインG、並びにi次項のiが既知であれば演算可能である。
【1772】
これらのうちの、ゲインGは、条件設定部3121により設定された空間解像度倍率(積分範囲)により決定される。
【1773】
iの範囲は、条件設定部3121により設定された次数nにより決定される。
【1774】
また、積分範囲の開始位置x、および終了位置xのそれぞれは、これから生成する出力画素の中心画素位置(x,y)および画素幅、並びにデータの定常性の方向を表すシフト量C(y)により決定される。なお、(x,y)は、実世界推定部102が近似関数f(x)を生成したときの注目画素の中心位置からの相対位置を表している。
【1775】
さらに、これから生成する出力画素の中心画素位置(x,y)および画素幅のそれぞれは、条件設定部3121により設定された空間解像度倍率(積分範囲)により決定される。
【1776】
また、シフト量C(y)と、データ定常性検出部101より供給された角度θは、次の式(178)と式(179)のような関係が成り立つので、シフト量C(y)は角度θにより決定される。
【1777】
【数145】
Figure 2004246526
Figure 2004246526
【1778】
【数146】
Figure 2004246526
Figure 2004246526
【1779】
なお、式(178)において、Gは、データの定常性の方向を表す傾きを表しており、θは、データ定常性検出部101(図236)より出力されるデータ定常性情報の1つである角度(空間方向の1方向であるX方向と、傾きGで表されるデータの定常性の方向とのなす角度)を表している。また、dxは、X方向の微小移動量を表しており、dyは、dxに対するY方向(X方向と垂直な空間方向)の微小移動量を表している。
【1780】
従って、積分成分演算部3123は、条件設定部3121により設定された次数および空間解像度倍率(積分範囲)、並びにデータ定常性検出部101より出力されたデータ定常性情報のうちの角度θに基づいて積分成分K(x,x)を演算し、その演算結果を積分成分テーブルとして出力画素値演算部3124に供給する。
【1781】
出力画素値演算部3124は、特徴量記憶部3122より供給された特徴量テーブルと、積分成分演算部3123より供給された積分成分テーブルを利用して、上述した式(176)の右辺を演算し、その演算結果を出力画素値Mとして外部に出力する。
【1782】
次に、図240のフローチャートを参照して、1次元再積分手法を利用する画像生成部103(図239)の画像の生成の処理(図40のステップS103の処理)について説明する。
【1783】
例えば、いま、上述した図40のステップS102の処理で、実世界推測部102が、上述した図237で示されるような画素3101を注目画素として、図237で示されるような近似関数f(x)を既に生成しているとする。
【1784】
また、上述した図40のステップS101の処理で、データ定常性検出部101が、データ定常性情報として、図237で示されるような角度θを既に出力しているとする。
【1785】
この場合、図240のステップS3101において、条件設定部3121は、条件(次数と積分範囲)を設定する。
【1786】
例えば、いま、次数として5が設定されるとともに、積分範囲として空間4倍密(画素のピッチ幅が上下左右ともに1/2倍となる空間解像度倍率)が設定されたとする。
【1787】
即ち、この場合、図238で示されるように、X方向に−0.5乃至0.5の範囲、かつY方向に−0.5乃至0.5の範囲(図237の画素3101の範囲)に、4個の画素3111乃至画素3114を新たに創造することが設定されたことになる。
【1788】
ステップS3102において、特徴量記憶部3122は、実世界推定部102より供給された近似関数f(x)の特徴量を取得し、特徴量テーブルを生成する。いまの場合、5次の多項式である近似関数f(x)の係数w乃至wが実世界推定部102より供給されるので、特徴量テーブルとして、(w,w,w,w,w,w)が生成される。
【1789】
ステップS3103において、積分成分演算部3123は、条件設定部3121により設定された条件(次数および積分範囲)、並びにデータ定常性検出部101より供給されたデータ定常性情報(角度θ)に基づいて積分成分を演算し、積分成分テーブルを生成する。
【1790】
具体的には、例えば、これから生成する画素3111乃至画素3114のそれぞれに対して、番号(このような番号を、以下、モード番号と称する)1乃至4のそれぞれが付されているとすると、積分成分演算部3123は、上述した式(177)の積分成分K(x,x)を、次の式(180)の左辺で示される積分成分K(l)といったl(ただし、lはモード番号を表している)の関数として演算する。
【1791】
(l) = K(x,x) ・・・(180)
【1792】
具体的には、いまの場合、次の式(181)で示される積分成分K(l)が演算される。
【1793】
【数147】
Figure 2004246526
Figure 2004246526
【1794】
なお、式(181)において、左辺が積分成分K(l)を表し、右辺が積分成分K(x,x)を表している。即ち、いまの場合、lは、1乃至4のうちのいずれかであり、かつ、iは0乃至5のうちのいずれかであるので、6個のK(1),6個のK(2),6個のK(3),6個のK(4)の総計24個のK(l)が演算されることになる。
【1795】
より具体的には、はじめに、積分成分演算部3123は、データ定常性検出部101より供給された角度θを使用して、上述した式(178)と式(179)よりシフト量C(−0.25)、およびC(0.25)のそれぞれを演算する。
【1796】
次に、積分成分演算部3123は、演算したシフト量C(−0.25)、およびC(0.25)を使用して、式(181)の4つの式の各右辺の積分成分K(x,x)のそれぞれを、i=0乃至5についてそれぞれ演算する。なお、この積分成分K(x,x)の演算においては、上述した式(177)が使用される。
【1797】
そして、積分成分演算部3123は、式(181)に従って、演算した24個の積分成分K(x,x)のそれぞれを、対応する積分成分K(l)に変換し、変換した24個の積分成分K(l)(即ち、6個のK(1)、6個のK(2)、6個のK(3)、および6個のK(4))を含む積分成分テーブルを生成する。
【1798】
なお、ステップS3102の処理とステップS3103の処理の順序は、図240の例に限定されず、ステップS3103の処理が先に実行されてもよいし、ステップS3102の処理とステップS3103の処理が同時に実行されてもよい。
【1799】
次に、ステップS3104において、出力画素値演算部3124は、ステップS3102の処理で特徴量記憶部3122により生成された特徴量テーブルと、ステップS3103の処理で積分成分演算部3123により生成された積分成分テーブルに基づいて出力画素値M(1)乃至M(4)のそれぞれを演算する。
【1800】
具体的には、いまの場合、出力画素値演算部3124は、上述した式(176)に対応する、次の式(182)乃至式(185)の右辺を演算することで、画素3111(モード番号1の画素)の画素値M(1)、画素3112(モード番号2の画素)の画素値M(2)、画素3113(モード番号3の画素)の画素値M(3)、および画素3114(モード番号4の画素)の画素値M(4)のそれぞれを演算する。
【1801】
【数148】
Figure 2004246526
Figure 2004246526
【1802】
【数149】
Figure 2004246526
Figure 2004246526
【1803】
【数150】
Figure 2004246526
Figure 2004246526
【1804】
【数151】
Figure 2004246526
Figure 2004246526
【1805】
ステップS3105において、出力画素値演算部3124は、全画素の処理を終了したか否かを判定する。
【1806】
ステップS3105において、全画素の処理がまだ終了されていないと判定された場合、処理はステップS3102に戻り、それ以降の処理が繰り返される。即ち、まだ注目画素とされない画素が、順次注目画素とされて、ステップS3102乃至S3104の処理が繰り返される。
【1807】
そして、全画素の処理が終了すると(ステップS3105において、全画素の処理が終了されたと判定すると)、出力画素値演算部3124は、ステップS3106において、画像を出力する。その後、画像の生成の処理は終了となる。
【1808】
次に、図241乃至図248を参照して、所定の入力画像に対して、1次元再積分手法を適用して得られた出力画像と、他の手法(従来のクラス分類適応処理)を適用して得られた出力画像の違いについて説明する。
【1809】
図241は、入力画像の元の画像を示す図であり、図242は、図241の元の画像に対応する画像データを示している。図242において、図中垂直方向の軸は、画素値を示し、図中右下方向の軸は、画像の空間方向の一方向であるX方向を示し、図中右上方向の軸は、画像の空間方向の他の方向であるY方向を示す。なお、後述する図244、図246、および図248の軸のそれぞれは、図242の軸と対応している。
【1810】
図243は、入力画像の例を示す図である。図243で示される入力画像は、図241で示される画像の2×2の画素からなるブロックに属する画素の画素値の平均値を、1つの画素の画素値として生成された画像である。即ち、入力画像は、図241で示される画像に、センサの積分特性を模した、空間方向の積分を適用することにより得られた画像である。また、図244は、図243の入力画像に対応する画像データを示している。
【1811】
図241で示される元の画像において、上下方向から、ほぼ5度時計方向に傾いた細線の画像が含まれている。同様に、図243で示される入力画像において、上下方向から、ほぼ5度時計方向に傾いた細線の画像が含まれている。
【1812】
図245は、図243で示される入力画像に、従来のクラス分類適応処理を適用して得られた画像(以下、図245で示される画像を、従来の画像と称する)を示す図である。また、図246は、従来の画像に対応する画像データを示している。
【1813】
なお、クラス分類適応処理は、クラス分類処理と適応処理とからなり、クラス分類処理によって、データを、その性質に基づいてクラス分けし、各クラスごとに適応処理を施すものである。適応処理では、例えば、低画質または標準画質の画像が、所定のタップ係数を用いてマッピング(写像)されることにより、高画質の画像に変換される。
【1814】
図247は、図243で示される入力画像に、本発明が適用される1次元再積分手法を適用して得られた画像(以下、図247で示される画像を、本発明の画像と称する)を示す図である。また、図248は、本発明の画像に対応する画像データを示している。
【1815】
図245の従来の画像と、図247の本発明の画像を比較するに、従来の画像においては、細線の画像が、図241の元の画像とは異なるものになっているのに対して、本発明の画像においては、細線の画像が、図241の元の画像とほぼ同じものになっていることがわかる。
【1816】
この違いは、従来のクラス分類適応処理は、あくまでも図243の入力画像を基準(原点)として処理を行う手法であるのに対して、本発明の1次元再積分手法は、細線の定常性を考慮して、図241の元の画像を推定し(元の画像に対応する近似関数f(x)を生成し)、推定した元の画像を基準(原点)として処理を行う(再積分して画素値を演算する)手法であるからである。
【1817】
このように、1次元再積分手法においては、1次元多項式近似手法により生成された1次元の多項式である近似関数f(x)(実世界のX断面波形F(x)の近似関数f(x))を基準(原点)として、近似関数f(x)を任意の範囲に積分することで出力画像(画素値)が生成される。
【1818】
従って、1次元再積分手法においては、従来の他の手法に比較して、元の画像(センサ2に入射される前の実世界1の光信号)により近い画像の出力が可能になる。
【1819】
換言すると、1次元再積分手法においては、図236のデータ定常性検出部101が、それぞれ時空間積分効果を有する、センサ2の複数の検出素子により実世界1の光信号が射影され、実世界1の光信号の定常性の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる入力画像におけるデータの定常性を検出し、実世界推定部102が、検出されたデータの定常性に対応して、入力画像の時空間方向のうち1次元方向の位置に対応する画素の画素値が、その1次元方向の積分効果により取得された画素値であるとして、実世界1の光信号を表す光信号関数F(具体的には、X断面波形F(x))を、所定の近似関数f(x)で近似することで、光信号関数Fを推定していることが前提とされている。
【1820】
詳細には、例えば、検出されたデータの定常性に対応する線からの1次元方向に沿った距離に対応する各画素の画素値が、その1次元方向の積分効果により取得された画素値であるとして、X断面波形F(x)が近似関数f(x)で近似されていることが前提とされている。
【1821】
そして、1次元再積分手法においては、このような前提に基づいて、例えば、図236(図3)の画像生成部103が、実世界推定部102により推定されたX断面波形F(x)、即ち、近似関数f(x)を、1次元方向の所望の単位で積分することにより所望の大きさの画素に対応する画素値Mを生成し、それを出力画像として出力する。
【1822】
従って、1次元再積分手法においては、従来の他の手法に比較して、元の画像(センサ2に入射される前の実世界1の光信号)により近い画像の出力が可能になる。
【1823】
また、1次元再積分手法においては、上述したように、積分範囲は任意なので、積分範囲を可変することにより、入力画像の解像度とは異なる解像度(時間解像度、または空間解像度)を創造することも可能になる。即ち、入力画像の解像度に対して、整数値だけではなく任意の倍率の解像度の画像を生成することが可能になる。
【1824】
さらに、1次元再積分手法においては、他の再積分手法に比較して、より少ない演算処理量で出力画像(画素値)の算出が可能となる。
【1825】
次に、図249乃至図255を参照して、2次元再積分手法について説明する。
【1826】
2次元再積分手法においては、2次元多項式近似手法により近似関数f(x,y)が既に生成されていることが前提とされる。
【1827】
即ち、例えば、図249で示されるような、傾きGで表される空間方向の定常性を有する実世界1(図236)の光信号を表す画像関数F(x,y,t)を、空間方向(X方向とY方向)に射影した波形、即ち、X−Y平面上の波形F(x,y)が、n次(nは、任意の整数)の多項式である近似関数f(x,y)に近似されていることが前提とされる。
【1828】
図249において、図中、水平方向は、空間方向の1方向であるX方向を、右上方向は、空間方向の他方向であるY方向を、垂直方向は、光のレベルを、それぞれ表している。Gは、空間方向の定常性の傾きを表している。
【1829】
なお、図249の例では、定常性の方向は、空間方向(X方向とY方向)とされているため、近似の対象とされる光信号の射影関数は、関数F(x,y)とされているが、後述するように、定常性の方向に応じて、関数F(x,t)や関数F(y,t)が近似の対象とされてもよい。
【1830】
図249の例の場合、2次元再積分手法においては、出力画素値Mは、次の式(186)のように演算される。
【1831】
【数152】
Figure 2004246526
Figure 2004246526
【1832】
なお、式(186)において、yは、Y方向の積分開始位置を表しており、yは、Y方向の積分終了位置を表している。同様に、xは、X方向の積分開始位置を表しており、xは、X方向の積分終了位置を表している。また、Gは、所定のゲインを表している。
【1833】
式(186)において、積分範囲は任意に設定可能であるので、2次元再積分手法においては、この積分範囲を適宜変えることで、元の画素(センサ2(図236)からの入力画像の画素)に対して任意の倍率の空間解像度の画素を劣化することなく創造することが可能になる。
【1834】
図250は、2次元再積分手法を利用する画像生成部103の構成例を表している。
【1835】
図250で示されるように、この例の画像生成部103には、条件設定部3201、特徴量記憶部3202、積分成分演算部3203、および出力画素値演算部3204が設けられている。
【1836】
条件設定部3201は、実世界推定部102より供給された実世界推定情報(図250の例では、近似関数f(x,y)の特徴量)に基づいて近似関数f(x,y)の次数nを設定する。
【1837】
条件設定部3201はまた、近似関数f(x,y)を再積分する場合(出力画素値を演算する場合)の積分範囲を設定する。なお、条件設定部3201が設定する積分範囲は、画素の縦幅や横幅である必要は無い。例えば、近似関数f(x,y)は空間方向(X方向とY方向)に積分されるので、センサ2からの入力画像の各画素の空間的な大きさに対する、出力画素(画像生成部103がこれから生成する画素)の相対的な大きさ(空間解像度の倍率)がわかれば、具体的な積分範囲の決定が可能である。従って、条件設定部3201は、積分範囲として、例えば、空間解像度倍率を設定することもできる。
【1838】
特徴量記憶部3202は、実世界推定部102より順次供給されてくる近似関数f(x,y)の特徴量を一次的に記憶する。そして、特徴量記憶部3202は、近似関数f(x,y)の特徴量の全てを記憶すると、近似関数f(x,y)の特徴量を全て含む特徴量テーブルを生成し、出力画素値演算部3204に供給する。
【1839】
ここで、近似関数f(x,y)の詳細について説明する。
【1840】
例えば、いま、上述した図249で示されるような傾きGで表される空間方向の定常性を有する実世界1(図236)の光信号(波形F(x,y)で表される光信号)が、センサ2(図236)により検出されて入力画像(画素値)として出力されたとする。
【1841】
さらに、例えば、図251で示されるように、データ定常性検出部101(図3)が、この入力画像のうちの、X方向に4画素分、かつY方向に5画素分の総計20個の画素(図中、点線で表される20個の正方形)から構成される入力画像の領域3221に対してその処理を実行し、データ定常性情報の1つとして角度θ(傾きGに対応する傾きGで表されるデータの定常性の方向と、X方向とのなす角度θ)を出力したとする。
【1842】
なお、実世界推定部102から見ると、データ定常性検出部101は、注目画素における角度θを単に出力すればよいので、データ定常性検出部101の処理範囲は、上述した入力画像の領域3221に限定されない。
【1843】
また、入力画像の領域3221において、図中水平方向は、空間方向の1方向であるX方向を表しており、図中垂直方向は、空間方向の他方向であるY方向を表している。
【1844】
さらに、図251中、左から2画素目であって、下から3画素目の画素が注目画素とされ、その注目画素の中心を原点(0,0)とするように(x,y)座標系が設定されている。そして、原点(0,0)を通る角度θの直線(データの定常性の方向を表す傾きGの直線)に対するX方向の相対的な距離(以下、断面方向距離と称する)がx’とされている。
【1845】
さらに、図251中、右側のグラフは、3次元の空間上の位置x,y、およびz、並びに時刻tを変数とする画像関数F(x,y,t)を、Y方向の任意の位置yにおいて、X方向に射影した1次元の波形(以下、このような波形を、X断面波形F(x’)と称する)が近似された関数であって、n次(nは、任意の整数)の多項式である近似関数f(x’)を表している。右側のグラフの軸のうち、図中水平方向の軸は、断面方向距離を表しており、図中垂直方向の軸は、画素値を表している。
【1846】
この場合、図251で示される近似関数f(x’)は、n次の多項式であるので、次の式(187)のように表される。
【1847】
【数153】
Figure 2004246526
Figure 2004246526
【1848】
また、角度θが決定されていることから、原点(0,0)を通る角度θの直線は一意に決まり、Y方向の任意の位置yにおける、直線のX方向の位置xが、次の式(188)のように表される。ただし、式(188)において、sはcotθを表している。
【1849】
= s×y ・・・(188)
【1850】
即ち、図251で示されるように、傾きGで表されるデータの定常性に対応する直線上の点は、座標値(x,y)で表される。
【1851】
式(188)より、断面方向距離x’は、次の式(189)のように表される。
【1852】
x’ = x−x = x−s×y ・・・(189)
【1853】
従って、入力画像の領域3221内の任意の位置(x,y)における近似関数f(x,y)は、式(187)と式(189)より、次の式(190)のように示される。
【1854】
【数154】
Figure 2004246526
Figure 2004246526
【1855】
なお、式(190)において、wは、近似関数f(x,y)の特徴量を表している。
【1856】
図250に戻り、式(190)に含まれる特徴量wが、実世界推定部102より供給され、特徴量記憶部3202に記憶される。特徴量記憶部3202は、式(190)で表される特徴量wの全てを記憶すると、特徴量wを全て含む特徴量テーブルを生成し、出力画素値演算部3204に供給する。
【1857】
また、上述した式(186)の右辺の近似関数f(x,y)に、式(190)の近似関数f(x,y)を代入して、式(186)の右辺を展開(演算)すると、出力画素値Mは、次の式(191)のように表される。
【1858】
【数155】
Figure 2004246526
Figure 2004246526
【1859】
式(191)において、K(x,x,y,y)は、i次項の積分成分を表している。即ち、積分成分K(x,x,y,y)は、次の式(192)で示される通りである。
【1860】
【数156】
Figure 2004246526
Figure 2004246526
【1861】
積分成分演算部3203は、この積分成分K(x,x,y,y)を演算する。
【1862】
具体的には、式(191)と式(192)で示されるように、積分成分K(x,x,y,y)は、積分範囲のX方向の開始位置x、およびX方向の終了位置x、積分範囲のY方向の開始位置y、およびY方向の終了位置y、変数s、ゲインG、並びにi次項のiが既知であれば演算可能である。
【1863】
これらのうちの、ゲインGは、条件設定部3201により設定された空間解像度倍率(積分範囲)により決定される。
【1864】
iの範囲は、条件設定部3201により設定された次数nにより決定される。
【1865】
変数sは、上述したように、cotθであるので、データ定常性検出部101より出力される角度θにより決定される。
【1866】
また、積分範囲のX方向の開始位置x、およびX方向の終了位置x、並びに、積分範囲のY方向の開始位置y、およびY方向の終了位置yのそれぞれは、これから生成する出力画素の中心画素位置(x,y)および画素幅により決定される。なお、(x,y)は、実世界推定部102が近似関数f(x)を生成したときの注目画素の中心位置からの相対位置を表している。
【1867】
さらに、これから生成する出力画素の中心画素位置(x,y)および画素幅のそれぞれは、条件設定部3201により設定された空間解像度倍率(積分範囲)により決定される。
【1868】
従って、積分成分演算部3203は、条件設定部3201により設定された次数および空間解像度倍率(積分範囲)、並びにデータ定常性検出部101より出力されたデータ定常性情報のうちの角度θに基づいて積分成分K(x,x,y,y)を演算し、その演算結果を積分成分テーブルとして出力画素値演算部3204に供給する。
【1869】
出力画素値演算部3204は、特徴量記憶部3202より供給された特徴量テーブルと、積分成分演算部3203より供給された積分成分テーブルを利用して、上述した式(191)の右辺を演算し、その演算結果を出力画素値Mとして外部に出力する。
【1870】
次に、図252のフローチャートを参照して、2次元再積分手法を利用する画像生成部103(図251)の画像の生成の処理(図40のステップS103の処理)について説明する。
【1871】
例えば、いま、図249で示される関数F(x,y)で表される光信号がセンサ2に入射されて入力画像となり、上述した図40のステップS102の処理で、実世界推測部102が、その入力画像のうちの、図253で示されるような1つの画素3231を注目画素として、関数F(x,y)を近似する近似関数f(x,y)を既に生成しているとする。
【1872】
なお、図253において、画素3231の画素値(入力画素値)がPとされ、かつ、画素3231の形状が、1辺の長さが1の正方形とされている。また、空間方向のうちの、画素3231の1辺に平行な方向がX方向とされ、X方向に垂直な方向がY方向とされている。さらに、画素3231の中心が原点とされる空間方向(X方向とY方向)の座標系(以下、注目画素座標系と称する)が設定されている。
【1873】
また、図253において、上述した図40のステップS101の処理で、データ定常性検出部101が、画素3231を注目画素として、傾きGで表されるデータの定常性に対応するデータ定常性情報として、角度θを既に出力しているとする。
【1874】
図252に戻り、この場合、ステップS3201において、条件設定部3201は、条件(次数と積分範囲)を設定する。
【1875】
例えば、いま、次数として5が設定されるとともに、積分範囲として空間4倍密(画素のピッチ幅が上下左右ともに1/2倍となる空間解像度倍率)が設定されたとする。
【1876】
即ち、この場合、図254で示されるように、X方向に−0.5乃至0.5の範囲、かつY方向に−0.5乃至0.5の範囲(図253の画素3231の範囲)に、4個の画素3241乃至画素3244を新たに創造することが設定されたことになる。なお、図254においても、図253のものと同一の注目画素座標系が示されている。
【1877】
また、図254において、M(1)は、これから生成される画素3241の画素値を、M(2)は、これから生成される画素3242の画素値を、M(3)は、これから生成される画素3243の画素値を、M(4)は、これから生成される画素3241の画素値を、それぞれ表している。
【1878】
図252に戻り、ステップS3202において、特徴量記憶部3202は、実世界推定部102より供給された近似関数f(x,y)の特徴量を取得し、特徴量テーブルを生成する。いまの場合、5次の多項式である近似関数f(x)の係数w乃至wが実世界推定部102より供給されるので、特徴量テーブルとして、(w,w,w,w,w,w)が生成される。
【1879】
ステップS3203において、積分成分演算部3203は、条件設定部3201により設定された条件(次数および積分範囲)、並びにデータ定常性検出部101より供給されたデータ定常性情報(角度θ)に基づいて積分成分を演算し、積分成分テーブルを生成する。
【1880】
具体的には、例えば、これから生成される画素3241乃至画素3244のそれぞれに対して、番号(このような番号を、以下、モード番号と称する)1乃至4のそれぞれが付されているとすると、積分成分演算部3203は、上述した式(191)の積分成分K(x,x,y,y)を、次の式(193)の左辺で示される積分成分K(l)といったl(ただし、lはモード番号を表している)の関数として演算する。
【1881】
(l) = K(x,x,y,y) ・・・(193)
【1882】
具体的には、いまの場合、次の式(194)で示される積分成分K(l)が演算される。
【1883】
【数157】
Figure 2004246526
Figure 2004246526
【1884】
なお、式(194)において、左辺が積分成分K(l)を表し、右辺が積分成分K(x,x,y,y)を表している。即ち、いまの場合、lは、1乃至4のうちのいずれかであり、かつ、iは0乃至5のうちのいずれかであるので、6個のK(1),6個のK(2),6個のK(3),6個のK(4)の総計24個のK(l)が演算されることになる。
【1885】
より具体的には、はじめに、積分成分演算部3203は、データ定常性検出部101より供給された角度θを使用して、上述した式(188)の変数s(s=cotθ)を演算する。
【1886】
次に、積分成分演算部3203は、演算した変数sを使用して、式(194)の4つの式の各右辺の積分成分K(x,x,y,y)のそれぞれを、i=0乃至5についてそれぞれ演算する。なお、この積分成分K(x,x,y,y)の演算においては、上述した式(191)が使用される。
【1887】
そして、積分成分演算部3203は、式(194)に従って、演算した24個の積分成分K(x,x,y,y)のそれぞれを、対応する積分成分K(l)に変換し、変換した24個の積分成分K(l)(即ち、6個のK(1)、6個のK(2)、6個のK(3)、および6個のK(4))を含む積分成分テーブルを生成する。
【1888】
なお、ステップS3202の処理とステップS3203の処理の順序は、図252の例に限定されず、ステップS3203の処理が先に実行されてもよいし、ステップS3202の処理とステップS3203の処理が同時に実行されてもよい。
【1889】
次に、ステップS3204において、出力画素値演算部3204は、ステップS3202の処理で特徴量記憶部3202により生成された特徴量テーブルと、ステップS3203の処理で積分成分演算部3203により生成された積分成分テーブルに基づいて出力画素値M(1)乃至M(4)のそれぞれを演算する。
【1890】
具体的には、いまの場合、出力画素値演算部3204は、上述した式(191)に対応する、次の式(195)乃至式(198)の右辺のそれぞれを演算することで、図254で示される、画素3241(モード番号1の画素)の画素値M(1)、画素3242(モード番号2の画素)の画素値M(2)、画素3243(モード番号3の画素)の画素値M(3)、および画素3244(モード番号4の画素)の画素値M(4)のそれぞれを演算する。
【1891】
【数158】
Figure 2004246526
Figure 2004246526
【1892】
【数159】
Figure 2004246526
Figure 2004246526
【1893】
【数160】
Figure 2004246526
Figure 2004246526
【1894】
【数161】
Figure 2004246526
Figure 2004246526
【1895】
ただし、いまの場合、式(195)乃至式(198)のnは全て5となる。
【1896】
ステップS3205において、出力画素値演算部3204は、全画素の処理を終了したか否かを判定する。
【1897】
ステップS3205において、全画素の処理がまだ終了されていないと判定された場合、処理はステップS3202に戻り、それ以降の処理が繰り返される。即ち、まだ注目画素とされない画素が、順次注目画素とされて、ステップS3202乃至S3204の処理が繰り返される。
【1898】
そして、全画素の処理が終了すると(ステップS3205において、全画素の処理が終了されたと判定すると)、出力画素値演算部3204は、ステップS3206において、画像を出力する。その後、画像の生成の処理は終了となる。
【1899】
このように、2次元再積分手法を利用することで、センサ2(図236)からの入力画像の画素3231(図253)における画素として、入力画素3231よりも空間解像度の高い4つの画素、即ち、画素3241乃至画素3244(図254)を創造することができる。さらに、図示はしないが、上述したように、画像生成部103は、画素3241乃至画素3244のみならず、積分範囲を適宜変えることで、入力画素3231に対して任意の倍率の空間解像度の画素を劣化することなく創造することができる。
【1900】
以上、2次元再積分手法の説明として、空間方向(X方向とY方向)に対する近似関数f(x,y)を2次元積分する例を用いたが、2次元再積分手法は、時空間方向(X方向とt方向、または、Y方向とt方向)に対しても適用可能である。
【1901】
即ち、上述した例は、実世界1(図236)の光信号が、例えば、図249で示されるような傾きGで表される空間方向の定常性を有する場合の例であったので、上述した式(186)で示されるような、空間方向(X方向とY方向)の二次元積分が含まれる式が利用された。しかしながら、二次元積分の考え方は、空間方向だけによるものではなく、時空間方向(X方向とt方向、または、Y方向とt方向)に対して適用することも可能である。
【1902】
換言すると、2次元再積分手法の前提となる2次元多項式近似手法においては、光信号を表す画像関数F(x,y,t)が、空間方向の定常性のみならず、時空間方向(ただし、X方向とt方向、または、Y方向とt方向)の定常性を有している場合であっても、2次元の多項式により近似することが可能である。
【1903】
具体的には、例えば、X方向に水平に等速で動いている物体がある場合、その物体の動きの方向は、図255で示されるようなX−t平面においては、傾きVのように表される。換言すると、傾きVは、X−t平面における時空間方向の定常性の方向を表しているとも言える。従って、データ定常性検出部101(図236)は、上述した角度θ(X−Y平面における、空間方向の定常性を表す傾きGに対応するデータ定常性情報)と同様に、X−t平面における時空間方向の定常性を表す傾きVに対応するデータ定常性情報として、図255で示されるような動きθ(厳密には、図示はしないが、傾きVに対応する傾きVで表されるデータの定常性の方向と、空間方向のX方向とのなす角度である動きθ)を出力することが可能である。
【1904】
また、2次元多項式近似手法を利用する実世界推定部102(図236)は、動きθを上述した角度θの代わりとして使用すれば、上述した方法と同様な方法で、近似関数f(x,t)の係数(特徴量)wiを演算することが可能になる。ただし、この場合、使用される式は、上述した式(190)ではなく、次の式(199)である。
【1905】
【数162】
Figure 2004246526
Figure 2004246526
【1906】
なお、式(199)において、sはcotθ(ただし、θは動きである)である。
【1907】
従って、2次元再積分手法を利用する画像生成部103(図236)は、次の式(200)の右辺に、上述した式(199)のf(x,t)を代入して、演算することで、画素値Mを算出することが可能になる。
【1908】
【数163】
Figure 2004246526
Figure 2004246526
【1909】
なお、式(200)において、tは、t方向の積分開始位置を表しており、tは、t方向の積分終了位置を表している。同様に、xは、X方向の積分開始位置を表しており、xは、X方向の積分終了位置を表している。Gは、所定のゲインを表している。
【1910】
また、空間方向Xの変わりに、空間方向Yに注目した近似関数f(y,t)も、上述した近似関数f(x、t)と全く同様に取り扱うことが可能である。
【1911】
ところで、式(199)において、t方向を一定とみなし、即ち、t方向の積分を無視して積分することで、時間方向には積分されないデータ、即ち、動きボケのないデータを得ることが可能になる。換言すると、この手法は、2次元の多項式のうちの所定の1次元を一定として再積分する点で、2次元再積分手法の1つとみなしてもよいし、実際には、X方向の1次元の再積分をすることになるという点で、1次元再積分手法の1つとみなしてもよい。
【1912】
また、式(200)において、積分範囲は任意に設定可能であるので、2次元再積分手法においては、この積分範囲を適宜変えることで、元の画素(センサ2(図236)からの入力画像の画素)に対して任意の倍率の解像度の画素を劣化することなく創造することが可能になる。
【1913】
即ち、2次元再積分手法においては、時間方向tの積分範囲を適宜変えることで、時間解像度の創造が可能になる。また、空間方向X(または、空間方向Y)の積分範囲を適宜変えることで、空間解像度の創造が可能になる。さらに、時間方向tと空間方向Xの積分範囲のそれぞれを適宜変えることで、時間解像度と空間解像度の両方の創造が可能になる。
【1914】
なお、上述したように、時間解像度と空間解像度のうちのいずれか一方の創造は、1次元再積分手法でも可能であるが、両方の解像度の創造は、1次元再積分手法では原理上不可能であり、2次元以上の再積分を行うことではじめて可能になる。即ち、2次元再積分手法と後述する3次元再積分手法ではじめて、両方の解像度の創造が可能になる。
【1915】
また、2次元再積分手法は、1次元ではなく2次元の積分効果を考慮しているので、より実世界1(図236)の光信号に近い画像を生成することも可能になる。
【1916】
換言すると、2次元再積分手法においては、例えば、図236(図3)のデータ定常性検出部101が、それぞれ時空間積分効果を有する、センサ2の複数の検出素子により実世界1の光信号が射影され、実世界1の光信号の定常性(例えば、図249の傾きGで表される定常性)の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる入力画像におけるデータの定常性(例えば、図251の傾きGで表されるデータの定常性)を検出する。
【1917】
そして、例えば、図236(図3)の実世界推定部102が、データ定常性検出部101により検出されたデータの定常性に対応して、画像データの時空間方向のうち少なくとも2次元方向(例えば、図249の空間方向Xと、空間方向Y)の位置に対応する画素の画素値が、少なくとも2次元方向の積分効果により取得された画素値であるとして、実世界1の光信号を表す光信号関数F(具体的には、図249の関数F(x,y))を、多項式である近似関数f(x,y)で近似することで、光信号関数Fを推定することが前提とされている。
【1918】
詳細には、例えば、実世界推定部102は、データ定常性検出部101により検出されたデータの定常性に対応する線(例えば、図251の傾きGに対応する線(矢印))からの少なくとも2次元方向に沿った距離(例えば、図251の断面方向距離x‘)に対応する画素の画素値が、少なくとも2次元方向の積分効果により取得された画素値であるとして、現実世界の光信号を表す第1の関数を、多項式である第2の関数で近似することで、第1の関数を推定することが前提とされている。
【1919】
2次元再積分手法においては、このような前提に基づいて、例えば、図236(図3)の画像生成部103(構成は、図250)が、実世界推定部102により推定された関数F(x,y)、即ち、近似関数f(x,y)を、少なくとも2次元方向の所望の単位で積分する(例えば、上述した式(186)の右辺を演算する)ことにより所望の大きさの画素(例えば、図236の出力画像(画素値M)。具体的には、例えば、図254の画素3241乃至画素3244)に対応する画素値を生成する。
【1920】
従って、2次元再積分手法においては、時間解像度と空間解像度のうちのいずれか一方の創造のみならず、両方の解像度の創造が可能になる。また、2次元再積分手法においては、1次元再積分手法に比較して、より実世界1(図236)の光信号に近い画像を生成することも可能になる。
【1921】
次に、図256と図257を参照して、3次元再積分手法について説明する。
【1922】
3次元再積分手法においては、3次元関数近似手法により近似関数f(x,y,t)が既に生成されていることが前提とされる。
【1923】
この場合、3次元再積分手法においては、出力画素値Mは、次の式(201)のように演算される。
【1924】
【数164】
Figure 2004246526
Figure 2004246526
【1925】
なお、式(201)において、tは、t方向の積分開始位置を表しており、tは、t方向の積分終了位置を表している。同様に、yは、Y方向の積分開始位置を表しており、yは、Y方向の積分終了位置を表している。また、xは、X方向の積分開始位置を表しており、xは、X方向の積分終了位置を表している。さらに、Gは、所定のゲインを表している。
【1926】
式(201)において、積分範囲は任意に設定可能であるので、3次元再積分手法においては、この積分範囲を適宜変えることで、元の画素(センサ2(図236)からの入力画像の画素)に対して任意の倍率の時空間解像度の画素を劣化することなく創造することが可能になる。即ち、空間方向の積分範囲を小さくすれば、画素ピッチを自由に細かくできる。逆に、空間方向の積分範囲を大きくすれば、画素ピッチを自由に大きくすることができる。また、時間方向の積分範囲を小さくすれば、実世界波形に基づいて時間解像度を創造できる。
【1927】
図256は、3次元再積分手法を利用する画像生成部103の構成例を表している。
【1928】
図256で示されるように、この例の画像生成部103には、条件設定部3301、特徴量記憶部3302、積分成分演算部3303、および出力画素値演算部3304が設けられている。
【1929】
条件設定部3301は、実世界推定部102より供給された実世界推定情報(図256の例では、近似関数f(x,y,t)の特徴量)に基づいて近似関数f(x,y,t)の次数nを設定する。
【1930】
条件設定部3301はまた、近似関数f(x,y,t)を再積分する場合(出力画素値を演算する場合)の積分範囲を設定する。なお、条件設定部3301が設定する積分範囲は、画素の幅(縦幅と横幅)やシャッタ時間そのものである必要は無い。例えば、センサ2(図236)からの入力画像の各画素の空間的な大きさに対する、出力画素(画像生成部103がこれから生成する画素)の相対的な大きさ(空間解像度の倍率)がわかれば、具体的な空間方向の積分範囲の決定が可能である。同様に、センサ2(図236)のシャッタ時間に対する出力画素値の相対的な時間(時間解像度の倍率)がわかれば、具体的な時間方向の積分範囲の決定が可能である。従って、条件設定部3301は、積分範囲として、例えば、空間解像度倍率や時間解像度倍率を設定することもできる。
【1931】
特徴量記憶部3302は、実世界推定部102より順次供給されてくる近似関数f(x,y,t)の特徴量を一次的に記憶する。そして、特徴量記憶部3302は、近似関数f(x,y,t)の特徴量の全てを記憶すると、近似関数f(x,y,t)の特徴量を全て含む特徴量テーブルを生成し、出力画素値演算部3304に供給する。
【1932】
ところで、上述した式(201)の右辺の近似関数f(x,y)の右辺を展開(演算)すると、出力画素値Mは、次の式(202)のように表される。
【1933】
【数165】
Figure 2004246526
Figure 2004246526
【1934】
式(202)において、K(x,x,y,y,t,t)は、i次項の積分成分を表している。ただし、xはX方向の積分範囲の開始位置を、xはX方向の積分範囲の終了位置を、yはY方向の積分範囲の開始位置を、yはY方向の積分範囲の終了位置を、tはt方向の積分範囲の開始位置を、tはt方向の積分範囲の終了位置を、それぞれ表している。
【1935】
積分成分演算部3303は、この積分成分K(x,x,y,y,t,t)を演算する。
【1936】
具体的には、積分成分演算部3303は、条件設定部3301により設定された次数、および積分範囲(空間解像度倍率や時間解像度倍率)、並びにデータ定常性検出部101より出力されたデータ定常性情報のうちの角度θまたは動きθに基づいて積分成分K(x,x,y,y,t,t)を演算し、その演算結果を積分成分テーブルとして出力画素値演算部3304に供給する。
【1937】
出力画素値演算部3304は、特徴量記憶部3302より供給された特徴量テーブルと、積分成分演算部3303より供給された積分成分テーブルを利用して、上述した式(202)の右辺を演算し、その演算結果を出力画素値Mとして外部に出力する。
【1938】
次に、図257のフローチャートを参照して、3次元再積分手法を利用する画像生成部103(図256)の画像の生成の処理(図40のステップS103の処理)について説明する。
【1939】
例えば、いま、上述した図40のステップS102の処理で、実世界推測部102(図236)が、入力画像のうちの、所定の画素を注目画素として、実世界1(図236)の光信号を近似する近似関数f(x,y,t)を既に生成しているとする。
【1940】
また、上述した図40のステップS101の処理で、データ定常性検出部101(図236)が、実世界推定部102と同じ画素を注目画素として、データ定常性情報として、角度θまたは動きθを既に出力しているとする。
【1941】
この場合、図257のステップS3301において、条件設定部3301は、条件(次数と積分範囲)を設定する。
【1942】
ステップS3302において、特徴量記憶部3302は、実世界推定部102より供給された近似関数f(x,y,t)の特徴量wを取得し、特徴量テーブルを生成する。
【1943】
ステップS3303において、積分成分演算部3303は、条件設定部3301により設定された条件(次数および積分範囲)、並びにデータ定常性検出部101より供給されたデータ定常性情報(角度θまたは動きθ)に基づいて積分成分を演算し、積分成分テーブルを生成する。
【1944】
なお、ステップS3302の処理とステップS3303の処理の順序は、図257の例に限定されず、ステップS3303の処理が先に実行されてもよいし、ステップS3302の処理とステップS3303の処理が同時に実行されてもよい。
【1945】
次に、ステップS3304において、出力画素値演算部3304は、ステップS3302の処理で特徴量記憶部3302により生成された特徴量テーブルと、ステップS3303の処理で積分成分演算部3303により生成された積分成分テーブルに基づいて各出力画素値のそれぞれを演算する。
【1946】
ステップS3305において、出力画素値演算部3304は、全画素の処理を終了したか否かを判定する。
【1947】
ステップS3305において、全画素の処理がまだ終了されていないと判定された場合、処理はステップS3302に戻り、それ以降の処理が繰り返される。即ち、まだ注目画素とされない画素が、順次注目画素とされて、ステップS3302乃至S3304の処理が繰り返される。
【1948】
そして、全画素の処理が終了すると(ステップS3305において、全画素の処理が終了されたと判定すると)、出力画素値演算部3304は、ステップS3306において、画像を出力する。その後、画像の生成の処理は終了となる。
【1949】
このように、上述した式(201)において、その積分範囲は任意に設定可能であるので、3次元再積分手法においては、この積分範囲を適宜変えることで、元の画素(センサ2(図236)からの入力画像の画素)に対して任意の倍率の解像度の画素を劣化することなく創造することが可能になる。
【1950】
即ち、3次元再積分手法においては、時間方向の積分範囲を適宜変えることで、時間解像度の創造が可能になる。また、空間方向の積分範囲を適宜変えることで、空間解像度の創造が可能になる。さらに、時間方向と空間方向の積分範囲のそれぞれを適宜変えることで、時間解像度と空間解像度の両方の創造が可能になる。
【1951】
具体的には、3次元再積分手法においては、2次元や1次元に落とすときの近似がないので精度の高い処理が可能になる。また、斜め方向の動きも2次元に縮退することなく処理することが可能になる。さらに、2次元に縮退していないので各次元の加工が可能になる。例えば、2次元再積分手法において、空間方向(X方向とY方向)に縮退している場合には時間方向であるt方向の加工ができなくなってしまう。これに対して、3次元再積分手法においては、時空間方向のいずれの加工も可能になる。
【1952】
なお、上述したように、時間解像度と空間解像度のうちのいずれか一方の創造は、1次元再積分手法でも可能であるが、両方の解像度の創造は、1次元再積分手法では原理上不可能であり、2次元以上の再積分を行うことではじめて可能になる。即ち、上述した2次元再積分手法と3次元再積分手法ではじめて、両方の解像度の創造が可能になる。
【1953】
また、3次元再積分手法は、1次元や2次元ではなく3次元の積分効果を考慮しているので、より実世界1(図236)の光信号に近い画像を生成することも可能になる。
【1954】
換言すると、3次元再積分似手法においては、例えば、図236(図3)の実世界推定部102は、それぞれ時空間積分効果を有する、センサ2の複数の検出素子により実世界1の光信号が射影され、実世界1の光信号の定常性の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる入力画像の、時空間方向のうち少なくとも1次元方向の位置に対応する画素の画素値が、少なくとも1次元方向の積分効果により取得された画素値であるとして、実世界の光信号を表す光信号関数Fを所定の近似関数fで近似することで、光信号関数Fを推定することが前提とされる。
【1955】
さらに、例えば、図236(図3)のデータ定常性検出部101が、入力画像のデータの定常性を検出した場合、実世界推定部102は、データ定常性検出部101により検出されたデータの定常性に対応して、画像データの時空間方向のうち少なくとも1次元方向の位置に対応する画素の画素値が、少なくとも1次元方向の積分効果により取得された画素値であるとして、光信号関数Fを近似関数fで近似することで、光信号関数Fを推定することが前提とされる。
【1956】
詳細には、例えば、実世界推定部102は、定常性検出部101により検出されたデータの定常性に対応する線からの少なくとも1次元方向に沿った距離に対応する画素の画素値が、少なくとも1次元方向の積分効果により取得された画素値であるとして、光信号関数Fを近似関数で近似することで、光信号関数を推定することが前提とされる。
【1957】
3次元再積分手法においては、例えば、図236(図3)の画像生成部103(構成は、図256)が、実世界推定部102により推定された光信号関数F、即ち、近似関数fを、少なくとも1次元方向の所望の単位で積分する(例えば、上述した式(201)の右辺を演算する)ことにより所望の大きさの画素に対応する画素値を生成する。
【1958】
従って、3次元再積分手法は、従来の画像生成手法や、上述した1次元または2次元再積分手法に比較して、より実世界1(図236)の光信号に近い画像を生成することも可能になる。
【1959】
次に、図258を参照して、実世界推定部102より入力される実世界推定情報が、実世界を近似的に表現する近似関数f(x)上の、各画素の微分値、または、傾きの情報である場合、各画素の微分値、または、傾きに基づいて、新たに画素を生成し、画像を出力する画像生成部103について説明する。
【1960】
尚、ここでいう微分値は、現実世界を近似的に表現する近似関数f(x)を求めた後、その近似関数f(x)から得られる1次微分式f(x)’(近似関数がフレーム方向の場合、近似関数f(t)から得られる1次微分式f(t)’)を用いて、所定の位置で得られる値のことである。また、ここでいう傾きは、上述の近似関数f(x)(または、f(t))を求めることなく、所定の位置における周辺画素の画素値から直接得られる近似関数f(x)上の所定の位置の傾きのことを示している。しかしながら、微分値は、近似関数f(x)の所定の位置での傾きなので、いずれも、現実世界を近似的に記述する近似関数f(x)上の所定の位置における傾きである。そこで、実世界推定部102より入力される実世界推定情報としての微分値と傾きについては、図258、および、図262の画像生成部103の説明においては、統一して近似関数f(x)(または、f(t))上の傾きと称する。
【1961】
傾き取得部3401は、実世界推定部102より入力される実世界を近似的に表現する近似関数f(x)についての、各画素の傾きの情報と、対応する画素の画素値、および、定常性の方向の傾きを取得して、外挿補間部3402に出力する。
【1962】
外挿補間部3402は、傾き取得部3401より入力された各画素の近似関数f(x)上の傾きと、対応する画素の画素値、および、定常性の方向の傾きに基づいて、外挿補間により、入力画像よりも所定の倍率の高密度の画素を生成し、出力画像として出力する。
【1963】
次に、図259のフローチャートを参照して、図258の画像生成部103による画像の生成の処理について説明する。
【1964】
ステップS3401において、傾き取得部3401は、実世界推定部102より入力されてくる、各画素の近似関数f(x)上の傾き(微分値)、位置、画素値、および、定常性の方向の傾きの情報を実世界推定情報として取得する。
【1965】
このとき、例えば、入力画像に対して空間方向X、および、空間方向Yについてそれぞれ2倍(合計4倍)の密度の画素からなる画像を生成する場合、実世界推定部102からは、図260で示されるような画素Pinに対して、傾きf(Xin)’(画素Pinの中央位置における傾き),f(Xin−Cx(−0.25))’(画素PinからY方向に2倍密度の画素が生成されるときの画素Paの中央位置の傾き),f(Xin−Cx(0.25))’ (画素PinからY方向に2倍密度の画素が生成されるときの画素Pbの中央位置の傾き)、画素Pinの位置、画素値、および、定常性の方向の傾きGの情報が入力される。
【1966】
ステップS3402において、傾き取得部3401は、入力された実世界推定情報のうち、対応する注目画素の情報を選択し、外挿補間部3402に出力する。
【1967】
ステップS3403において、外挿補間部3402は、入力された画素の位置情報と定常性の方向の傾きGからシフト量を求める。
【1968】
ここで、シフト量Cx(ty)は、定常性の傾きがGで示されるとき、Cx(ty)=ty/Gで定義される。このシフト量Cx(ty)は、空間方向Y=0の位置上で定義される近似関数f(x)が、空間方向Y=tyの位置における、空間方向Xに対するずれ幅を示すものである。従って、例えば、空間方向Y=0の位置上で近似関数がf(x)として定義されている場合、この近似関数f(x)は、空間方向Y=tyにおいては、空間方向XについてCx(ty)だけずれた関数となるので、近似関数は、f(x−Cx(ty))(=f(x−ty/G))で定義されることになる。
【1969】
例えば、図260で示されるような画素Pinの場合、図中の1画素(図中の1画素の大きさは、水平方向、および、垂直方向ともに1であるものとする)を垂直方向に2分割するとき(垂直方向に倍密度の画素を生成するとき)、外挿補間部3402は、求めようとする画素Pa,Pbのシフト量を求める。すなわち、今の場合、画素Pa,Pbは、画素Pinからみて、空間方向Yについて、それぞれ−0.25,0.25だけシフトしているので、画素Pa,Pbのシフト量は、それぞれCx(−0.25),Cx(0.25)となる。尚、図260中において、画素Pinは、(Xin,Yin)を略重心位置とする正方形であり、画素Pa,Pbは、(Xin,Yin+0.25)、(Xin,Yin−0.25)をそれぞれ略重心位置とする図中水平方向に長い長方形である。
【1970】
ステップS3404において、外挿補間部3402は、ステップS3403の処理で求められたシフト量Cx、実世界推定情報として取得された画素Pinの近似関数f(x)上の注目画素上での傾きf(Xin)’、および、画素Pinの画素値に基づいて、以下の式(203),式(204)により外挿補間を用いて画素Pa,Pbの画素値を求める。
【1971】
Pa=Pin−f(Xin)’×Cx(−0.25)・・・(203)
【1972】
Pb=Pin−f(Xin)’×Cx(0.25)・・・(204)
【1973】
以上の式(203),式(204)において、Pa,Pb,Pinは、画素Pa,Pb,Pinの画素値を示す。
【1974】
すなわち、図261で示されるように、注目画素Pinにおける傾きf(Xin)’に、X方向の移動距離、すなわち、シフト量を乗じることにより画素値の変化量を設定し、注目画素の画素値を基準として、新たに生成する画素の画素値を設定する。
【1975】
ステップS3405において、外挿補間部3402は、所定の解像度の画素が得られたか否かを判定する。例えば、所定の解像度が入力画像の画素に対して、垂直方向に2倍の密度の画素であれば、以上の処理により、外挿補間部3402は、所定の解像度の画像が得られたと判定することになるが、例えば、入力画像の画素に対して、4倍の密度(水平方向に2倍×垂直方向に2倍)の画素が所望とされていた場合、以上の処理では、所定の解像度の画素が得られていないことになる。そこで、4倍の密度の画像が所望とされていた画像である場合、外挿補間部3402は、所定の解像度の画素が得られていないと判定し、その処理は、ステップS3403に戻る。
【1976】
ステップS3403において、外挿補間部3402は、2回目の処理で、求めようとする画素P01,P02,P03,およびP04(注目画素Pinに対して4倍となる密度の画素)を生成しようとする画素の中心位置からのシフト量をそれぞれ求める。すなわち、今の場合、画素P01,P02は、画素Paから得られるものなので、画素Paからのシフト量がそれぞれ求められることになる。ここで、画素P01,P02は、画素Paからみて空間方向Xについて、それぞれ−0.25,0.25だけシフトしているので、その値そのものがシフト量となる(空間方向Xについてシフトしているため)。同様にして、画素P03,P04は、画素Pbからみて空間方向Xについて、それぞれ−0.25,0.25だけシフトしているので、その値そのものがシフト量となる。尚、図260において、画素P01,P02,P03,P04は、図中の4個のバツ印の位置を重心位置とする正方形であり、各辺の長さは、画素Pinが、それぞれ1であるので、画素P01,P02,P03,P04は、それぞれ略0.5となる。
【1977】
ステップS3404において、外挿補間部3402は、ステップS3403の処理で求められたシフト量Cx、実世界推定情報として取得された画素Pa,Pbの近似関数f(x)上の所定の位置での傾きf(Xin−Cx(−0.25))’,f(Xin−Cx(0.25))’、および、上述の処理で求められた画素Pa,Pbの画素値に基づいて、外挿補間により以下の式(205)乃至式(208)により画素P01,P02,P03,P04の画素値を求め、図示せぬメモリに記憶させる。
【1978】
P01=Pa+f(Xin−Cx(−0.25))’×(−0.25)・・・(205)
【1979】
P02=Pa+f(Xin−Cx(−0.25))’×(0.25)・・・(206)
【1980】
P03=Pb+f(Xin−Cx(0.25))’×(−0.25)・・・(207)
【1981】
P04=Pb+f(Xin−Cx(0.25))’×(0.25)・・・(208)
【1982】
上述の式(205)乃至式(208)において、P01乃至P04は、画素P01乃至P04のそれぞれの画素値を示す。
【1983】
ステップS3405において、外挿補間部3402は、所定の解像度の画素が得られたか否かを判定し、今の場合、所望とされていた4倍の密度の画素が得られたことになるので、外挿補間部3402は、所定の解像度の画素が得られたと判定し、その処理は、ステップS3406に進む。
【1984】
ステップS3406において、傾き取得部3401は、全ての画素で処理がなされたか否かを判定し、まだ、全ての画素について処理がなされていないと判定した場合、その処理は、ステップS3402に戻り、それ以降の処理が繰り返される。
【1985】
ステップS3406において、傾き取得部3401は、全ての画素について処理がなされたと判定した場合、ステップS3407において、外挿補間部3402は、図示せぬメモリに記憶されている、生成された画素からなる画像を出力する。
【1986】
すなわち、図261で示されるように、近似関数f(x)上の傾きf(x)’を用いて、その傾きを求めた注目画素から空間方向Xに離れた距離に応じて、新たな画素の画素値が外挿補間により求められる。
【1987】
尚、以上の例においては、4倍密度の画素を演算する際の傾き(微分値)を例として説明してきたが、さらに多くの位置における、傾きの情報が、実世界推定情報として得られれば、上述と同様の手法で、それ以上の空間方向の密度の画素を演算する事も可能である。
【1988】
また、以上の例については、倍密度の画素値を求める例について説明してきたが、近似関数f(x)は連続関数であるので、倍密度以外の画素値についても必要な傾き(微分値)の情報が得られれば、さらに高密度の画素からなる画像を生成することが可能となる。
【1989】
以上によれば、実世界推定情報として供給される入力画像の各画素の実世界を空間方向に近似する近似関数f(x)の傾き(または、微分値)f(x)’の情報に基づいて、入力画像よりも高解像度の画像の画素を生成することが可能となる。
【1990】
次に、図262を参照して、実世界推定部102より入力される実世界推定情報が、実世界を近似的に表現するフレーム方向(時間方向)の関数f(t)上の、各画素の微分値、または、傾きの情報である場合、各画素の微分値、または、傾きに基づいて、新たに画素を生成し、画像を出力する画像生成部103について説明する。
【1991】
傾き取得部3411は、実世界推定部102より入力される実世界を近似的に表現する近似関数f(t)上の、各画素の位置における傾きの情報と、対応する画素の画素値、および、定常性の動きを取得して、外挿補間部3412に出力する。
【1992】
外挿補間部3412は、傾き取得部3411より入力された各画素の近似関数f(t)上の傾きと、対応する画素の画素値、および、定常性の動きに基づいて、外挿補間により、入力画像よりも所定の倍率の高密度の画素を生成し、出力画像として出力する。
【1993】
次に、図263のフローチャートを参照して、図262の画像生成部103による画像の生成の処理について説明する。
【1994】
ステップS3421において、傾き取得部3411は、実世界推定部102より入力されてくる、各画素の近似関数f(t)上の傾き(微分値)、位置、画素値、および、定常性の動きの情報を実世界推定情報として取得する。
【1995】
このとき、例えば、入力画像に対して空間方向、および、フレーム方向にそれぞれ2倍(合計4倍)の密度の画素からなる画像を生成する場合、実世界推定部102からは、図264で示されるような画素Pinに対して、傾きf(Tin)’(画素Pinの中央位置における傾き),f(Tin−Ct(−0.25))’(画素PinからY方向に2倍密度の画素が生成されるときの画素Patの中央位置の傾き),f(Tin−Ct(0.25))’(画素PinからY方向に2倍密度の画素が生成されるときの画素Pbtの中央位置の傾き)、画素Pinの位置、画素値、および、定常性の動き(動きベクトル)の情報が入力される。
【1996】
ステップS3422において、傾き取得部3411は、入力された実世界推定情報のうち、対応する注目画素の情報を選択し、外挿補間部3412に出力する。
【1997】
ステップS3423において、外挿補間部3412は、入力された画素の位置情報と定常性の方向の傾きからシフト量を求める。
【1998】
ここで、シフト量Ct(ty)は、定常性の動き(フレーム方向と空間方向からなる面に対する傾き)がVで示されるとき、Ct(ty)=ty/Vで定義される。このシフト量Ct(ty)は、空間方向Y=0の位置上で定義される近似関数f(t)が、空間方向Y=tyの位置における、フレーム方向Tに対するずれ幅を示すものである。従って、例えば、空間方向Y=0の位置上で近似関数がf(t)として定義されている場合、この近似関数f(t)は、空間方向Y=tyにおいては、空間方向TについてCt(ty)だけずれた関数となるので、近似関数は、f(t−Ct(ty))(=f(t−ty/V))で定義されることになる。
【1999】
例えば、図264で示されるような画素Pinの場合、図中の1画素(図中の1画素の大きさは、フレーム方向、および、空間方向ともに1であるものとする)を空間方向に2分割するとき(空間方向に倍密度の画素を生成するとき)、外挿補間部3412は、求めようとする画素Pat,Pbtのシフト量を求める。すなわち、今の場合、画素Pat,Pbtは、画素Pinからみて、空間方向Yについて、それぞれ−0.25,0.25だけシフトしているので、画素Pat,Pbtのシフト量は、それぞれCt(−0.25),Ct(0.25)となる。尚、図264中において、画素Pinは、(Xin,Yin)を略重心位置とする正方形であり、画素Pat,Pbtは、(Xin,Yin+0.25)、(Xin,Yin−0.25)をそれぞれ略重心位置とする図中水平方向に長い長方形である。
【2000】
ステップS3424において、外挿補間部3412は、ステップS3423の処理で求められたシフト量、実世界推定情報として取得された画素Pinの近似関数f(t)上の注目画素上での傾きf(Tin)’、および、画素Pinの画素値に基づいて、外挿補間により以下の式(209),式(210)により画素Pat,Pbtの画素値を求める。
【2001】
Pat=Pin−f(Tin)’×Ct(−0.25)・・・(209)
【2002】
Pbt=Pin−f(Xin)’×Ct(0.25)・・・(210)
【2003】
以上の式(209),式(210)において、Pat,Pbt,Pinは、画素Pat,Pbt,Pinの画素値を示す。
【2004】
すなわち、図265で示されるように、注目画素Pinにおける傾きf(Xin)’に、X方向の移動距離、すなわち、シフト量を乗じることにより画素値の変化量を設定し、注目画素の画素値を基準として、新たに生成する画素の画素値を設定する。
【2005】
ステップS3425において、外挿補間部3412は、所定の解像度の画素が得られたか否かを判定する。例えば、所定の解像度が入力画像の画素に対して、空間方向に2倍の密度の画素であれば、以上の処理により、外挿補間部3402は、所定の解像度の画像が得られたと判定することになるが、例えば、入力画像の画素に対して、4倍の密度(フレーム方向に2倍×空間方向に2倍)の画素が所望とされていた場合、以上の処理では、所定の解像度の画素が得られていないことになる。そこで、4倍の密度の画像が所望とされていた画像である場合、外挿補間部3412は、所定の解像度の画素が得られていないと判定し、その処理は、ステップS3423に戻る。
【2006】
ステップS3423において、外挿補間部3412は、2回目の処理で、求めようとする画素P01t,P02t,P03t,およびP04t(注目画素Pinに対して4倍となる密度の画素)を生成しようとする画素の中心位置からのシフト量をそれぞれ求める。すなわち、今の場合、画素P01t,P02tは、画素Patから得られるものなので、画素Patからのシフト量がそれぞれ求められることになる。ここで、画素P01t,02tは、画素Patからみてフレーム方向Tについて、それぞれ−0.25,0.25だけシフトしているので、その値そのものがシフト量となる(空間方向Xについてシフトしているため)。同様にして、画素P03t,P04tは、画素Pbtからみてフレーム方向Tについて、それぞれ−0.25,0.25だけシフトしているので、その値そのものがシフト量となる。尚、図264において、画素P01t,P02t,P03t,P04tは、図中の4個のバツ印の位置を重心位置とする正方形であり、各辺の長さは、画素Pinが、それぞれ1であるので、画素P01t,P02t,P03t,P04tは、それぞれ略0.5となる。
【2007】
ステップS3424において、外挿補間部3412は、ステップS3423の処理で求められたシフト量Ct、実世界推定情報として取得された画素Pat,Pbtの近似関数f(t)上の所定の位置での傾きf(Tin−Ct(−0.25))’,f(Tin−Ct(0.25))’、および、上述の処理で求められた画素Pat,Pbtの画素値に基づいて、外挿補間により以下の式(211)乃至式(214)により画素P01t,P02t,P03t,P04tの画素値を求め、図示せぬメモリに記憶させる。
【2008】
P01t=Pat+f(Tin−Ct(−0.25))’×(−0.25)・・・(211)
【2009】
P02t=Pat+f(Tin−Ct(−0.25))’×(0.25)・・・(212)
【2010】
P03t=Pbt+f(Tin−Ct(0.25))’×(−0.25)・・・(213)
【2011】
P04t=Pbt+f(Tin−Ct(0.25))’×(0.25)・・・(214)
【2012】
上述の式(205)乃至式(208)において、P01t乃至P04tは、画素P01t乃至P04tのそれぞれの画素値を示す。
【2013】
ステップS3425において、外挿補間部3412は、所定の解像度の画素が得られたか否かを判定し、今の場合、所望とされていた4倍密度の画素が得られたことになるので、外挿補間部3412は、所定の解像度の画素が得られたと判定し、その処理は、ステップS3426に進む。
【2014】
ステップS3426において、傾き取得部3411は、全ての画素で処理がなされたか否かを判定し、まだ、全ての画素について処理がなされていないと判定した場合、その処理は、ステップS3422に戻り、それ以降の処理が繰り返される。
【2015】
ステップS3426において、傾き取得部3411は、全ての画素について処理がなされたと判定された場合、ステップS3427において、外挿補間部3412は、図示せぬメモリに記憶されている、生成された画素からなる画像を出力する。
【2016】
すなわち、図265で示されるように、近似関数f(t)上の傾きf(t)’を用いて、その傾きを求めた注目画素からフレーム方向Tに離れたフレーム数に応じて、新たな画素の画素値が外挿補間により求められる。
【2017】
尚、以上の例においては、4倍密度の画素を演算する際の傾き(微分値)を例として説明してきたが、さらに多くの位置における、傾きの情報が、実世界推定情報として得られれば、上述と同様の手法で、それ以上のフレーム方向の密度の画素を演算する事も可能である。
【2018】
また、以上の例については、倍密度の画素値を求める例について説明してきたが、近似関数f(t)は連続関数であるので、倍密度以外の画素値についても必要な傾き(微分値)の情報が得られれば、さらに高密度の画素からなる画像を生成することが可能となる。
【2019】
以上の処理により、実世界推定情報として供給される入力画像の各画素の実世界をフレーム方向に近似する近似関数f(t)の傾き(または、微分値)f(t)’の情報に基づいて、入力画像よりも高解像度の画像の画素をフレーム方向にも生成することが可能となる。
【2020】
以上によれば、それぞれ時空間積分効果を有する、センサの複数の検出素子により現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる画像データにおけるデータの定常性を検出し、検出された定常性に対応して、画像データ内の注目画素に対して時空間方向のうち1次元方向にシフトした位置の複数画素の画素値の傾きを、現実世界の光信号に対応する関数として推定し、注目画素の中心位置から1次元方向にシフトした位置を中心とする傾きを有する直線の前記注目画素内に配される両端の値を注目画素よりも高解像度の画素の画素値として生成するようにしたので、入力画像よりも時空間方向に高解像度の画素を生成することが可能となる。
【2021】
次に、図266乃至図291を参照して、画像生成部103(図3)の実施の形態のさらに他の例について説明する。
【2022】
図266は、この例の実施の形態が適用される画像生成部103の構成例を表している。
【2023】
図266で示される画像生成部103には、従来のクラス分類適応処理を実行するクラス分類適応処理部3501、クラス分類適応処理に対する補正の処理(処理の詳細については後述する)を実行するクラス分類適応処理補正部3502、および、クラス分類適応処理部3501より出力された画像と、クラス分類適応処理補正部3502より出力された画像を加算し、加算した画像を出力画像として外部に出力する加算部3503が設けられている。
【2024】
なお、以下、クラス分類適応処理部3501より出力される画像を、予測画像と称し、クラス分類適応処理補正部3502より出力される画像を、補正画像、または、差分予測画像と称する。ただし、予測画像と差分予測画像の名称の由来についてはそれぞれ後述する。
【2025】
また、この例の実施の形態においては、クラス分類適応処理は、例えば、入力画像の空間解像度を向上する処理であるとする。即ち、標準解像度の画像である入力画像を、高解像度の画像である予測画像に変換する処理であるとする。
【2026】
なお、以下、標準解像度の画像を、適宜、SD(Standard Definition)画像と称する。また、SD画像を構成する画素を、適宜、SD画素と称する。
【2027】
これに対して、以下、高解像度の画像を、適宜、HD(High Definition)画像と称する。また、HD画像を構成する画素を、適宜、HD画素と称する。
【2028】
具体的には、この例の実施の形態においては、クラス分類適応処理とは、次のような処理である。
【2029】
即ち、はじめに、入力画像(SD画像)の注目画素(SD画素)における、予測画像(HD画像)のHD画素を求めるために、注目画素を含めた、その付近に配置されるSD画素(以下、このようなSD画素を、クラスタップと称する)の特徴量のそれぞれを求めて、その特徴量毎に予め分類されたクラスを特定する(クラスタップ群のクラスコードを特定する)
【2030】
そして、予め設定された複数の係数群(各係数群のそれぞれは、所定の1つのクラスコードに対応している)のうちの、特定されたクラスコードに対応する係数群を構成する各係数と、注目画素を含めた、その付近のSD画素(以下、このような入力画像のSD画素を、予測タップと称する。なお、予測タップは、クラスタップと同じこともある)とを用いて積和演算を実行することで、入力画像(SD画像)の注目画素(SD画素)における、予測画像(HD画像)のHD画素を求めるものである。
【2031】
従って、この例の実施の形態においては、入力画像(SD画像)は、クラス分類適応処理部3501において、従来のクラス分類適応処理が施されて予測画像(HD画像)となり、さらに、加算部3503において、その予測画像が、クラス分類適応処理補正部3502からの補正画像で補正されて(補正画像が加算されて)出力画像(HD画像)となる。
【2032】
即ち、この例の実施の形態は、定常性の観点からは、定常性を用いて処理を行う画像処理装置(図3)のうちの画像生成部103の1つの実施の形態であると言える。これに対して、クラス分類適応処理の観点からは、センサ2とクラス分類適応処理部3501から構成される従来の画像処理装置に対して、クラス分類適応処理の補正を行うために、データ定常性検出部101、実世界推定部102、クラス分類適応処理補正部3502、および加算部3503をさらに付加した画像処理装置の実施の形態であるとも言える。
【2033】
従って、以下、この例の実施の形態を、上述した再積分手法に対して、クラス分類適応処理補正手法と称する。
【2034】
クラス分類適応処理補正手法を利用する画像生成部103についてさらに詳しく説明する。
【2035】
図266において、画像である、実世界1の信号(光の強度の分布)がセンサ2に入射されると、センサ2からは入力画像が出力される。この入力画像は、データ定常性検出部101に入力されるとともに、画像生成部103のクラス分類適応処理部3501に入力される。
【2036】
クラス分類適応処理部3501は、入力画像に対して、従来のクラス分類適応処理を施して予測画像を生成し、加算部3503に出力する。
【2037】
このように、クラス分類適応処理部3501は、センサ2からの入力画像(画像データ)を基準とするとともに、入力画像そのものを処理の対象としている。即ち、センサ2からの入力画像は、上述した積分効果により実世界1の信号とは異なるもの(歪んだもの)となっているにも関わらず、クラス分類適応処理部3501は、その実世界1の信号とは異なる入力画像を正として処理を行っている。
【2038】
その結果、センサ2から出力された段階で実世界1のディテールがつぶれてしまった入力画像(SD画像)は、クラス分類適応処理によりたとえHD画像とされても、元のディテールが完全に復元されないことがあるという課題が発生してしまう。
【2039】
そこで、この課題を解決するために、クラス分類適応処理補正手法においては、画像生成部103のクラス分類適応処理補正部3502が、センサ2からの入力画像ではなく、センサ2に入射される前の元の画像(所定の定常性を有する実世界1の信号)を推定する情報(実世界推定情報)を基準とするとともに、その実世界推定情報を処理の対象として、クラス分類適応処理部3501より出力された予測画像を補正するための補正画像を生成する。
【2040】
この実世界推定情報は、データ定常性検出部101と実世界推定部102により生成される。
【2041】
即ち、データ定常性検出部101は、センサ2からの入力画像に含まれるデータの定常性(センサ2に入射された実世界1の信号が有する定常性に対応するデータの定常性)を検出し、その検出結果をデータ定常性情報として実世界推定部102に出力する。
【2042】
なお、データ定常性情報は、図266の例では角度とされているが、角度に限定されず、上述した様々な情報が使用可能である。
【2043】
実世界推定部102は、入力された角度(データ定常性情報)に基づいて、実世界推定情報を生成し、画像生成部103のクラス分類適応処理補正部3502に出力する。
【2044】
なお、実世界推定情報は、図266の例では特徴量画像(その詳細は後述する)とされているが、特徴量画像に限定されず、上述した様々な情報が使用可能である。
【2045】
クラス分類適応処理補正部3502は、入力された特徴量画像(実世界推定情報)に基づいて補正画像を生成し、加算部3503に出力する。
【2046】
加算部3503は、クラス分類適応処理部3501より出力された予測画像と、クラス分類適応処理補正部3502より出力された補正画像を加算し、加算した画像(HD画像)を出力画像として外部に出力する。
【2047】
このようにして出力された出力画像は、予測画像よりもより実世界1の信号(画像)に近い画像となる。即ち、クラス分類適応処理補正手法は、上述した課題を解決することが可能な手法である。
【2048】
さらに、図266のように信号処理装置(画像処理装置)4を構成することで、1フレームの全体的に処理をアプライすることが可能になる。即ち、後述する併用手法を利用する信号処理装置(例えば、後述する図292)等では、画素の領域特定をした上で出力画像を生成する必要があるが、図266の信号処理装置4は、この領域特定が不要になるという効果を奏することが可能になる。
【2049】
次に、画像生成部103のうちのクラス分類適応処理部3501の詳細について説明する。
【2050】
図267は、クラス分類適応処理部3501の構成例を表している。
【2051】
図267において、センサ2より入力された入力画像(SD画像)は、領域抽出部3511と領域抽出部3515にそれぞれ供給される。領域抽出部3511は、供給された入力画像から、クラス分類を行うために必要なクラスタップ(注目画素(SD画素)を含む予め設定された位置に存在するSD画素)を抽出し、パターン検出部3512に出力する。パターン検出部3512は、入力されたクラスタップに基づいて入力画像のパターンを検出する。
【2052】
クラスコード決定部3513は、パターン検出部3512で検出されたパターンに基づいてクラスコードを決定し、係数メモリ3514、および、領域抽出部3515に出力する。係数メモリ3514は、学習により予め求められたクラスコード毎の係数を記憶しており、クラスコード決定部3513より入力されたクラスコードに対応する係数を読み出し、予測演算部3516に出力する。
【2053】
なお、係数メモリ3514の係数の学習処理については、図269のクラス分類適応処理用学習部のブロック図を参照して後述する。
【2054】
また、係数メモリ3514に記憶される係数は、後述するように、予測画像(HD画像)を生成するときに使用される係数である。従って、以下、係数メモリ3514に記憶される係数を、他の係数と区別するために、予測係数と称する。
【2055】
領域抽出部3515は、クラスコード決定部3513より入力されたクラスコードに基づいて、センサ2より入力された入力画像(SD画像)から、予測画像(HD画像)を予測生成するのに必要な予測タップ(注目画素を含む予め設定された位置に存在するSD画素)をクラスコードに対応して抽出し、予測演算部3516に出力する。
【2056】
予測演算部3516は、領域抽出部3515より入力された予測タップと、係数メモリ3514より入力された予測係数とを用いて積和演算を実行し、入力画像(SD画像)の注目画素(SD画素)における、予測画像(HD画像)のHD画素を生成し、加算部3503に出力する。
【2057】
より詳細には、係数メモリ3514は、クラスコード決定部3513より供給されるクラスコードに対応する予測係数を、予測演算部3516に出力する。予測演算部3516は、領域抽出部3515より供給される入力画像の所定の画素位置の画素値から抽出された予測タップと、係数メモリ3514より供給された予測係数とを用いて、次の式(215)で示される積和演算を実行することにより、予測画像(HD画像)のHD画素を求める(予測推定する)。
【2058】
【数166】
Figure 2004246526
Figure 2004246526
【2059】
式(215)において、q’は、予測画像(HD画像)のHD画素を表している。c(iは、1乃至nの整数値)のそれぞれは、予測タップ(SD画素)のそれぞれを表している。また、d のそれぞれは、予測係数のそれぞれを表している。
【2060】
このように、クラス分類適応処理部3501は、SD画像(入力画像)から、それに対するHD画像を予測推定するので、ここでは、クラス分類適応処理部3501から出力されるHD画像を、予測画像と称している。
【2061】
図268は、このようなクラス分類適応処理部3501の係数メモリ3514に記憶される予測係数(式(215)におけるd )を決定するための学習装置(予測係数の算出装置)を表している。
【2062】
なお、クラス分類適応処理補正手法においては、係数メモリ3514の他に、クラス分類適応処理補正部3502の係数メモリ(後述する図276で示される補正係数メモリ3554)が設けられている。従って、図268で示されるように、クラス分類適応処理手法における学習装置3504には、クラス分類適応処理部3501の係数メモリ3514に記憶される予測係数(式(215)におけるd )を決定するための学習部3521(以下、クラス分類適応処理用学習部3521と称する)の他に、クラス分類適応処理補正部3502の補正係数メモリ3554に記憶される係数を決定するための学習部3561(以下、クラス分類適応処理補正用学習部3561と称する)が設けられている。
【2063】
従って、以下、クラス分類適応処理用学習部3521における教師画像を第1の教師画像と称するのに対して、クラス分類適応処理補正用学習部3561における教師画像を第2の教師画像と称する。同様に、以下、クラス分類適応処理用学習部3521における生徒画像を第1の生徒画像と称するのに対して、クラス分類適応処理補正用学習部3561における生徒画像を第2の生徒画像と称する。
【2064】
なお、クラス分類適応処理補正用学習部3561については後述する。
【2065】
図269は、クラス分類適応処理用学習部3521の詳細な構成例を表している。
【2066】
図269において、所定の画像が、第1の教師画像(HD画像)としてダウンコンバート部3531と正規方程式生成部3536のそれぞれに入力されるとともに、クラス分類適応処理補正用学習部3561(図268)に入力される。
【2067】
ダウンコンバート部3531は、入力された第1の教師画像(HD画像)から、第1の教師画像よりも解像度の低い第1の生徒画像(SD画像)を生成し(第1の教師画像をダウンコンバートしたものを第1の生徒画像とし)、領域抽出部3532、領域抽出部3535、およびクラス分類適応処理補正用学習部3561(図268)のそれぞれに出力する。
【2068】
このように、クラス分類適応処理用学習部3521には、ダウンコンバート部3531が設けられているので、第1の教師画像(HD画像)は、上述したセンサ2(図266)からの入力画像よりも高解像度の画像である必要は無い。なぜならば、第1の教師画像がダウンコンバートされた(解像度が下げられた)第1の生徒画像をSD画像とすれば、第1の生徒画像に対する第1の教師画像がHD画像になるからである。従って、第1の教師画像は、例えば、センサ2からの入力画像そのものとされてもよい。
【2069】
領域抽出部3532は、供給された第1の生徒画像(SD画像)から、クラス分類を行うために必要なクラスタップ(SD画素)を抽出し、パターン検出部3533に出力する。パターン検出部3533は、入力されたクラスタップのパターンを検出し、その検出結果をクラスコード決定部3534に出力する。クラスコード決定部3534は、入力されたパターンに対応するクラスコードを決定し、そのクラスコードを領域抽出部3535、および、正規方程式生成部3536のそれぞれに出力する。
【2070】
領域抽出部3535は、クラスコード決定部3534より入力されたクラスコードに基づいて、ダウンコンバート部3531より入力された第1の生徒画像(SD画像)から予測タップ(SD画素)を抽出し、正規方程式生成部3536と予測演算部3558のそれぞれに出力する。
【2071】
なお、以上の領域抽出部3532、パターン検出部3533、クラスコード決定部3534、および領域抽出部3535のそれぞれは、図267のクラス分類適応処理部3501の領域抽出部3511、パターン検出部3512、クラスコード決定部3513、および、領域抽出部3515のそれぞれと、基本的に同様の構成と機能を有するものである。
【2072】
正規方程式生成部3536は、クラスコード決定部3534より入力された全てのクラスコードに対して、クラスコード毎に、領域抽出部3535より入力される第1の生徒画像(SD画像)の予測タップ(SD画素)と、第1の教師画像(HD画像)のHD画素とから正規方程式を生成し、係数決定部3537に供給する。係数決定部3537は、正規方程式生成部3537より所定のクラスコードに対応する正規方程式が供給されてきたとき、その正規方程式より予測係数のそれぞれを演算し、係数メモリ3514にクラスコードと関連付けて記憶させるとともに、予測演算部3538に供給する。
【2073】
正規方程式生成部3536と、係数決定部3537についてさらに詳しく説明する。
【2074】
上述した式(215)において、学習前は予測係数dのそれぞれが未定係数である。学習は、クラスコード毎に複数の教師画像(HD画像)のHD画素を入力することによって行う。所定のクラスコードに対応するHD画素がm個存在し、m個のHD画素のそれぞれを、q(kは、1乃至mの整数値)と記述する場合、式(215)から、次の式(216)が設定される。
【2075】
【数167】
Figure 2004246526
Figure 2004246526
【2076】
即ち、式(216)は、右辺の演算をすることで、所定のHD画素qを予測推定することができることを表している。なお、式(216)において、eは誤差を表している。即ち、右辺の演算結果である予測画像(HD画像)のHD画素q’が、実際のHD画素qと厳密には一致せず、所定の誤差eを含む。
【2077】
そこで、式(216)において、例えば、誤差eの自乗和を最小にするような予測係数dが、学習により求まればよい。
【2078】
具体的には、例えば、m>nとなるように、HD画素qを学習により集めることができれば、最小自乗法によって予測係数dが一意に決定される。
【2079】
即ち、式(216)の右辺の予測係数dを最小自乗法で求める場合の正規方程式は、次の式(217)で表される。
【2080】
【数168】
Figure 2004246526
Figure 2004246526
【2081】
従って、式(217)で示される正規方程式が生成されれば、その正規方程式を解くことで予測係数dが一意に決定されることになる。
【2082】
具体的には、式(217)で示される正規方程式の各行列のそれぞれを、次の式(218)乃至(220)のように定義すると、正規方程式は、次の式(221)のように表される。
【2083】
【数169】
Figure 2004246526
Figure 2004246526
【2084】
【数170】
Figure 2004246526
Figure 2004246526
【2085】
【数171】
Figure 2004246526
Figure 2004246526
【2086】
【数172】
Figure 2004246526
Figure 2004246526
【2087】
式(219)で示されるように、行列DMATの各成分は、求めたい予測係数dである。従って、式(221)において、左辺の行列CMATと右辺の行列QMATが決定されれば、行列解法によって行列DMAT(即ち、予測係数d)の算出が可能である。
【2088】
より具体的には、式(218)で示されるように、行列CMATの各成分は、予測タップcikが既知であれば演算可能である。予測タップcikは、領域抽出部3535により抽出されるので、正規方程式生成部3536は、領域抽出部3535より供給されてくる予測タップcikのそれぞれを利用して行列CMATの各成分を演算することができる。
【2089】
また、式(220)で示されるように、行列QMATの各成分は、予測タップcikとHD画素qが既知であれば演算可能である。予測タップcikは、行列CMATの各成分に含まれるものと同一のものであり、また、HD画素qは、予測タップcikに含まれる注目画素(第1の生徒画像のSD画素)に対する第1の教師画像のHD画素である。従って、正規方程式生成部3536は、領域抽出部3535より供給された予測タップcikと、第1の教師画像を利用して行列QMATの各成分を演算することができる。
【2090】
このようにして、正規方程式生成部3536は、クラスコード毎に、行列CMATと行列QMATの各成分を演算し、その演算結果をクラスコードに対応付けて係数決定部3537に供給する。
【2091】
係数決定部3537は、供給された所定のクラスコードに対応する正規方程式に基づいて、上述した式(221)の行列DMATの各成分である予測係数dを演算する。
【2092】
具体的には、上述した式(221)の正規方程式は、次の式(222)のように変形できる。
【2093】
【数173】
Figure 2004246526
Figure 2004246526
【2094】
式(222)において、左辺の行列DMATの各成分が、求めたい予測係数dである。また、行列CMATと行列QMATのそれぞれの各成分は、正規方程式生成部3536より供給されるものである。従って、係数決定部3537は、正規方程式生成部3536より所定のクラスコードに対応する行列CMATと行列QMATのそれぞれの各成分が供給されてきたとき、式(222)の右辺の行列演算を行うことで行列DMATを演算し、その演算結果(予測係数d)をクラスコードに対応付けて係数メモリ3514に記憶させるとともに、予測演算部3538に供給する。
【2095】
予測演算部3538は、領域抽出部3535より入力された予測タップと、係数決定部3537により決定された予測係数とを用いて積和演算を実行し、第1の生徒画像(SD画像)の注目画素(SD画素)における、予測画像(第1の教師画像を予測する画像)のHD画素を生成し、それを学習用予測画像としてクラス分類適応処理補正用学習部3561(図268)に出力する。
【2096】
より詳細には、予測演算部3538は、領域抽出部3535より供給される第1の生徒画像の所定の画素位置の画素値から抽出された予測タップを、c(iは、1乃至nの整数値)とし、係数決定部3537より供給された予測係数を、d として、上述した式(215)で示される積和演算を実行することにより、学習用予測画像(HD画像)のHD画素q’を求める(第1の教師画像を予測推定する)。
【2097】
ここで、図270乃至図275を参照して、上述した従来のクラス分類適応処理(クラス分類適応処理部3501)が有する課題、即ち、図266において、センサ2から出力された段階で実世界1のディテールがつぶれてしまった入力画像(SD画像)は、クラス分類適応処理部3501によりたとえHD画像(実世界1の信号を予測する予測画像)とされても、元のディテールが完全に復元されないことがあるという課題について説明する。
【2098】
図270は、クラス分類適応処理部3501の処理結果の例を表している。
【2099】
図270において、HD画像3541は、図中上下方向から、ほぼ5度時計方向に傾いた細線の画像が含まれる画像である。また、SD画像3542は、HD画像3541の2×2の画素(HD画素)からなるブロックに属する画素(HD画素)の画素値の平均値を、1つの画素(SD画素)の画素値として生成された画像である。即ち、SD画像3542は、HD画像3541がダウンコンバートされた(解像度が落とされた)画像である。
【2100】
換言すると、HD画像3541は、センサ2(図266)に入射される前の画像(実世界1(図266)の信号)を模した画像であるとする。この場合、SD画像3542は、HD画像3541に、センサ2の積分特性を模した、空間方向の積分を適用することにより得られた画像に相当することなる。即ち、SD画像3542は、センサ2からの入力画像を模した画像となる。
【2101】
また、SD画像3542をクラス分類適応処理部3501(図266)に入力させ、クラス分類適応処理部3501より出力された予測画像が、予測画像3543である。即ち、予測画像3543は、従来のクラス分類適応処理により生成されたHD画像(元のHD画像3541と同一解像度の画像)である。ただし、クラス分類適応処理部3501が予測演算に使用した予測係数(係数メモリ3514(図267)に記憶された予測係数)は、HD画像3541を第1の教師画像とし、かつSD画像3542を第1の生徒画像として、クラス分類適応処理用学習部3561(図269)に学習演算させたものである。
【2102】
HD画像3541、SD画像3542、および予測画像3543のそれぞれを比較するに、予測画像3543は、SD画像3542よりも、HD画像3541により近い画像となっていることがわかる。
【2103】
この比較結果は、クラス分類適応処理部3501が、HD画像3541のディテールがつぶれてしまったSD画像3542に対して、従来のクラス分類適応処理を施すことで、元のディテールが復元された予測画像3543を生成することができるということを意味している。
【2104】
しかしながら、予測画像3543とHD画像3541を比較するに、予測画像3543は、HD画像3541を完全に復元した画像であるとは言い難い。
【2105】
そこで、本願出願人は、予測画像3543がHD画像3541を完全に復元できていない理由を調査するために、所定の加算器3546により、HD画像3541と、予測画像3543の反転入力との加算画像、即ち、HD画像3541と予測画像3543の差分画像(画素の差分が大の場合、白に近い画素とし、画素の差分が小の場合、黒に近い画素とした画像)3544を生成した。
【2106】
同様に、本願出願人は、所定の加算器3547により、HD画像3541と、SD画像3542の反転入力との加算画像、即ち、HD画像3541とSD画像3542の差分画像(画素の差分が大の場合、白に近い画素とし、画素の差分が小の場合、黒に近い画素とした画像)3545を生成した。
【2107】
そして、本願出願人は、このようにして生成された差分画像3544と差分画像3545を比較することによって、次のような調査結果を得た。
【2108】
即ち、HD画像3541とSD画像3542の差分の大きい領域(差分画像3545の白に近い領域)と、HD画像3541と予測画像3543の差分の大きい領域(差分画像3544の白に近い領域)はほぼ対応している。
【2109】
換言すると、予測画像3543がHD画像3541を完全に復元できていない領域は、予測画像3543のうちの、HD画像3541とSD画像3542の差分の大きい領域(差分画像3545の白に近い領域)にほぼ一致する。
【2110】
そこで、本願出願人は、この調査結果の要因を解明するために、さらに次のような調査を行った。
【2111】
即ち、本願出願人は、まず、HD画像3541と予測画像3543の差分の小さい領域(差分画像3544の黒に近い領域)において、HD画像3541の具体的な画素値、SD画像3542の具体的な画素値、およびHD画像3541に対応する実際の波形(実世界1の信号)を調査した。その調査結果が、図271と図272に示されている。
【2112】
図271は、調査した領域のうちの1例を示している。なお、図271において、図中、水平方向は、空間方向の1方向であるX方向とされており、また、垂直方向は、空間方向の他方向であるY方向とされている。
【2113】
即ち、本願出願人は、HD画像3541と予測画像3543の差分の小さい領域の1例として、図271で示される、差分画像3544の領域3544−1について調査した。
【2114】
図272は、図271で示される領域3544−1に含まれるX方向に連続した6個のHD画素のうちの、図中左から4個分のHD画素に対応する、HD画像3541の具体的な画素値、SD画像3542の具体的な画素値、および、実際の波形(実世界1の信号)のそれぞれをプロットしたものを表している。
【2115】
図272において、縦軸は画素値を、横軸は空間方向Xに平行なx軸を、それぞれ表している。x軸において、原点は、差分画像3544の6個のHD画素のうちの図中左から3番目のHD画素の左端の位置とされており、その原点を基準として座標値が付されている。ただし、x軸の座標値は、差分画像3544のHD画素の画素幅を0.5として付されている。即ち、差分画像3544はHD画像であるので、HD画像3541の画素幅L(以下、HD画素幅Lと称する)も0.5になる。従って、いまの場合、SD画像3542の画素幅(以下、SD画素幅Lと称する)は、HD画素幅Lの2倍になるので、SD画素幅Lは1になる。
【2116】
また、図272において、実線は、HD画像3541の画素値を、点線は、SD画像3542の画素値を、一点鎖線は、実世界1の信号のX断面波形を、それぞれ表している。ただし、実世界1の信号の波形を実際に描写することは困難であるので、図272で示される一点鎖線は、上述した1次元多項式近似手法(図266の実世界推定部102の1実施形態)によりX断面波形が近似された近似関数f(x)が示されている。
【2117】
次に、本願出願人は、上述した差分の小さい領域の調査と同様に、HD画像3541と予測画像3543の差分の大きい領域(差分画像3544の白に近い領域)においても、HD画像3541の具体的な画素値、SD画像3542の具体的な画素値、およびHD画像3541に対応する実際の波形(実世界1の信号)を調査した。その調査結果が、図273と図274に示されている。
【2118】
図273は、調査した領域のうちの1例を示している。なお、図273において、図中、水平方向は、空間方向の1方向であるX方向とされており、また、垂直方向は、空間方向の他方向であるY方向とされている。
【2119】
即ち、本願出願人は、HD画像3541と予測画像3543の差分の大きい領域の1例として、図273で示される、差分画像3544の領域3544−2について調査した。
【2120】
図274は、図273で示される領域3544−2に含まれるX方向に連続した6個のHD画素のうちの、図中左から4個分のHD画素に対応する、HD画像3541の具体的な画素値、SD画像3542の具体的な画素値、および実際の波形(実世界1の信号)のそれぞれをプロットしたものを表している。
【2121】
図274において、縦軸は画素値を、横軸は空間方向Xに平行なx軸を、それぞれ表している。x軸において、原点は、差分画像3544の6個のHD画素のうちの図中左から3番目のHD画素の左端の位置とされており、その原点を基準として座標値が付されている。ただし、x軸の座標値は、SD画素幅Lを1として付されている。
【2122】
図274において、実線は、HD画像3541の画素値を、点線は、SD画像3542の画素値を、一点鎖線は、実世界1の信号のX断面波形を、それぞれ表している。ただし、図274で示される一点鎖線は、図272で示される一点鎖線と同様に、X断面波形が近似された近似関数f(x)が示されている。
【2123】
図272と図274を比較するに、両者の近似関数f(x)の波形の形状より、いずれの領域も細線の領域を含んでいることがわかる。
【2124】
しかしながら、図272においては、細線の領域は、ほぼx=0からx=1の範囲に存在するのに対して、図274においては、細線の領域は、ほぼx=−0.5からx=0.5の範囲に存在する。即ち、図272においては、x=0からx=1の範囲に存在するSD画像3542の1つのSD画素内に細線の領域がほぼ含まれることになる。これに対して、図274においては、x=0からx=1の範囲に存在するSD画像3542の1つのSD画素内に、細線の領域が一部だけ含まれる(細線と背景の境目が含まれる)ことになる。
【2125】
従って、図272で示される状態の場合、x=0からx=1.0の範囲に存在するHD画像3541の2つのHD画素の画素値(図中、実線)の差は小さくなる。その結果、当然ながら、これら2つのHD画素の画素値の平均値である、SD画像3542の1つのSD画素の画素値(図中、点線)と、HD画像3541の2つのHD画素の画素値のそれぞれとの差分は小さいものになる。
【2126】
このような状態で(図272で示される状態で)、x=0からx=1.0の範囲に存在するSD画像3542の1つのSD画素が注目画素とされて、従来のクラス分類適応処理によりx=0からx=1.0の範囲に2つのHD画素(予測画像3543の画素)が生成された場合について考える。この場合、図271で示されるように、生成された予測画像3543のHD画素は、HD画像3541のHD画素をほぼ正確に予測したものになる。即ち、図271で示されるように、領域3544−1においては、予測画像3543のHD画素と、HD画像3541のHD画素の差分も小さくなるので、黒に近い画像が表示される。
【2127】
これに対して、図274で示される状態の場合、x=0からx=1.0の範囲に存在するHD画像3541の2つのHD画素の画素値(図中、実線)の差は大きくなる。その結果、当然ながら、これら2つのHD画素の画素値の平均値である、SD画像3542の1つのSD画素の画素値(図中、点線)と、HD画像3541の2つのHD画素の画素値のそれぞれとの差分は、図272の対応する差分に対して大きなものになる。
【2128】
このような状態で(図274で示される状態で)、x=0からx=1.0の範囲に存在するSD画像3542の1つのSD画素が注目画素とされて、従来のクラス分類適応処理によりx=0からx=1.0の範囲にHD画素(予測画像3543の画素)が生成された場合について考える。この場合、図273で示されるように、生成された予測画像3543のHD画素は、HD画像3541のHD画素を正確に予測したものとはならない。即ち、図273で示されるように、領域3544−2においては、予測画像3543のHD画素と、HD画像3541のHD画素の差分も大きなものになってしまうので、白に近い画像が表示される。
【2129】
ところで、図272と図274の実世界1の信号の近似関数f(x)(図中、一点鎖線)のそれぞれを比較するに、図272においては、x=0からx=1の範囲での近似関数f(x)の変化量は小さいのに対して、図274においては、x=0からx=1の範囲での近似関数f(x)の変化量は大きいことがわかる。
【2130】
従って、図272で示されるx=0からx=1.0の範囲に存在するSD画像3542の1つのSD画素は、SD画素内での近似関数f(x)の変化量が小さい(即ち、実世界1の信号の変化量が小さい)SD画素と言える。
【2131】
このような観点から、上述した調査結果を言いなおすと、例えば、図272で示されるx=0からx=1.0の範囲に存在するSD画素のような、SD画素内での近似関数f(x)の変化が少ない(即ち、実世界1の信号の変化が少ない)SD画素から、従来のクラス分類適応処理によりHD画素が生成されると、生成されたHD画素は、実世界1の信号(いまの場合、細線の画像)をほぼ正確に予測したものとなる。
【2132】
これに対して、図274で示されるx=0からx=1.0の範囲に存在するSD画像3542の1つのSD画素は、SD画素内での近似関数f(x)の変化量が大きい(即ち、実世界1の信号の変化量が大きい)SD画素と言える。
【2133】
このような観点から、上述した調査結果を言いなおすと、例えば、図274で示されるx=0からx=1.0の範囲に存在するSD画素のような、SD画素内での近似関数f(x)の変化が大きい(即ち、実世界1の信号の変化が大きい)SD画素から、従来のクラス分類適応処理によりHD画素が生成されると、生成されたHD画素は、実世界1の信号(いまの場合、細線の画像)を正確に予測したものとはならない。
【2134】
以上の調査結果をまとめると、図275で示されるような状態の場合、従来の画素間の信号処理(例えば、クラス分類適応処理)では、画素内のディテールを復元することは困難であるということである。
【2135】
即ち、図275は、本願出願人が上述したような調査を行った結果として、得られた知見を説明する図である。
【2136】
図275において、図中水平方向は、センサ2(図266)の検出素子が並んでいる方向(空間方向)のうちの1方向であるX方向を表しており、図中垂直方向は、光のレベルまたは画素値を表している。点線は、画像である、実世界1(図266)の信号のX断面波形F(x)を表しており、実線は、X断面波形F(x)で表される実世界1の信号(画像)がセンサ2に入射された場合、センサ2から出力される画素値Pを表している。また、センサ2の1つの検出素子の幅(X方向の長さ)は、Lと記述されており、△Pは、センサ2の1つの検出素子の幅L、即ち、センサ2の画素幅L内におけるX断面波形F(x)の変化量を表している。
【2137】
ところで、上述したSD画像3542(図270)は、センサ2からの入力画像(図266)を模したものであるので、SD画像3542のSD画素幅L(図272と図274)は、センサ2の画素幅(検出素子の幅)Lとして考えることができる。
【2138】
また、上述した調査においては、細線に対応する実世界1の信号(近似関数f(x))に対する調査であったが、細線に限らず、実世界1の信号のレベルの変化は存在する。
【2139】
従って、上述した調査結果を、図275で示される状態に当てはめると、次の通りになる。
【2140】
即ち、図275で示されるような、画素内において実世界1の信号の変化量(X断面波形F(x)の変化量)△Pが大きいSD画素(センサ2からの出力画素)が注目画素とされて、従来のクラス分類適応処理によりHD画素(例えば、図266のクラス分類適応処理部3501から出力される予測画像の画素)が生成された場合、生成されたHD画素は、実世界1の信号(図275の例では、X断面波形F(x))を正確に予測したものとはならない。
【2141】
具体的には、クラス分類適応処理をはじめとする従来の手法においては、センサ2の画素の画素間の画像処理が行われている。
【2142】
即ち、図275で示されるように、実世界1では、1画素内の領域でX断面波形F(x)の変化量△Pが大きい状態であっても、センサ2からは、X断面波形F(x)が積分された(厳密には、実世界1の信号が、時空間方向に積分された)1つの画素値P(1画素内で均一の値P)のみが出力される。
【2143】
従来の手法においては、その画素値Pが基準とされるとともに、画素値Pが処理の対象とされて画像処理が行われている。換言すると、従来の手法においては、画素内における実世界1の信号(X断面波形F(x))の変化、即ち、画素内のディテールを無視して、画像処理が行われている。
【2144】
このように、画素を最小の単位として処理する限り、例えどのような画像処理(クラス分類適応処理でも)を施したとしても、画素内における実世界1の信号の変化を正確に再現することは困難である。特に、実世界1の信号の変化量△Pが大きい場合、その困難さはより顕著なものとなる。
【2145】
換言すると、上述したクラス分類適応処理が有する課題、即ち、図266において、センサ2から出力された段階で実世界1のディテールがつぶれてしまった入力画像(SD画像)は、クラス分類適応処理によりたとえHD画像とされても、元のディテールが完全に復元されないことがあるという課題が発生する原因は、画素内における実世界1の信号の変化量△Pを考慮せずに、画素(1つの画素値しか有しない画素)を最小の単位としてクラス分類適応処理が行われているからである。
【2146】
この課題は、クラス分類適応処理に限らず従来の画像処理手法の全てが有する課題であり、課題が発生する原因も全く同じである。
【2147】
以上、従来の画像処理手法が有する課題と、その発生要因について説明した。
【2148】
ところで、上述したように、本発明のデータ定常性検出部101と実世界推定部102(図3)は、実世界1の信号が有する定常性を利用して、センサ2からの入力画像(即ち、画素内における、実世界1の信号の変化が無視された画像)から、実世界1の信号を推定することができる。即ち、実世界推定部102は、実世界1の信号を推定することが可能な実世界推定情報を出力することができる。
【2149】
従って、この実世界推定情報から、画素内における、実世界1の信号の変化量の推定も可能である。
【2150】
そこで、本願出願人は、従来のクラス分類適応処理により生成された予測画像(画素内における、実世界1の信号の変化を考慮せずに、実世界1を予測した画像)を、実世界推定情報に基づいて生成される所定の補正画像(画素内における、実世界1の信号の変化に起因する予測画像の誤差を推定した画像)で補正することで、上述した課題の解決が可能になるという思想に基づいて、例えば、図266で示されるような、クラス分類適応処理補正手法を発明した。
【2151】
即ち、図266において、データ定常性検出部101と実世界推定部102が、実世界推定情報を生成し、クラス分類適応処理補正部3502が、生成された実世界推定情報に基づいて所定の補正画像を生成する。そして、加算部3503が、クラス分類適応処理部3501より出力された予測画像を、クラス分類適応処理補正部3502より出力された補正画像で補正する(具体的には、予測画像に補正画像を加算した画像を出力画像として出力する)。
【2152】
クラス分類適応処理補正手法を利用する画像生成部103のうちの、クラス分類適応処理部3501の詳細については既に説明した。また、加算部3503は、予測画像と補正画像を加算することができるものであれば、その形態は特に限定されず、例えば、従来より存在する、様々な加算器やプログラム等を適用することが可能である。
【2153】
そこで、以下、残りのクラス分類適応処理補正部3502の詳細について説明する。
【2154】
はじめに、クラス分類適応処理補正部3502の原理について説明する。
【2155】
上述したように、図270において、HD画像3541を、センサ2(図266)に入射される前の元の画像(実世界1の信号)とみなし、かつ、SD画像3542を、センサ2からの入力画像とみなすと、予測画像3543が、クラス分類適応処理部3501より出力される予測画像(元の画像(HD画像3541)を予測した予測画像)となる。
【2156】
また、HD画像3541から、その予測画像3543を減算した画像が、差分画像3544である。
【2157】
従って、クラス分類適応処理補正部3502が、差分画像3544を生成し、その差分画像3544を補正画像として出力することができれば、加算部3503が、クラス分類適応処理部3501より出力された予測画像3543と、クラス分類適応処理補正部3502より出力された差分画像3544(補正画像)を加算することで、HD画像3541を復元することができる。
【2158】
即ち、クラス分類適応処理補正部3502が、画像である、実世界1の信号(センサ2に入射される前の元の画像)と、クラス分類適応処理部3501から出力される予測画像との差分画像(ただし、クラス分類適応処理部3501から出力される予測画像と同一解像度の画像)を適切に予測し、予測した差分画像(以下、差分予測画像と称する。これが、上述した差分予測画像の名称の由来である)を補正画像として出力することができれば、実世界1の信号(元の画像)をほぼ復元することができる。
【2159】
ところで、上述したように、実世界1の信号(センサ2に入射される前の元の画像)と、クラス分類適応処理部3501から出力される予測画像との差分(誤差)の度合いと、入力画像の1画素内における、実世界1の信号の変化量の度合いは対応している。また、実世界推定部102は、実世界1の信号自身を推定することができるので、当然ながら、入力画像の1画素内における、実世界1の信号の変化量の度合いを表す所定の特徴量を画素毎に算出することも可能である。
【2160】
従って、クラス分類適応処理補正部3502は、入力画像の各画素のそれぞれに対する特徴量を取得することで、差分予測画像を生成する(差分画像を予測する)ことができる。
【2161】
そこで、例えば、クラス分類適応処理補正部3502は、実世界推定部102より、特徴量を画素値とする画像(以下、このような画像を、特徴量画像と称する)を実世界推定情報として実世界推定部102より入力する。
【2162】
このとき、特徴量画像の解像度は、センサ2からの入力画像と同一の解像度である。また、補正画像(差分予測画像)は、クラス分類適応処理部3501より出力される予測画像と同一の解像度である。
【2163】
従って、クラス分類適応処理補正部3502が、特徴量画像をSD画像とし、補正画像(差分予測画像)をHD画像とし、従来のクラス分類適応処理を利用して、特徴量画像から差分画像を予測演算すれば、その予測演算の結果が、適切な差分予測画像となる。
【2164】
以上、クラス分類適応処理補正部3502の原理について説明した。
【2165】
図276は、このような原理で動作するクラス分類適応処理補正部3502の構成例を表している。
【2166】
図276において、実世界推定部102より入力された特徴量画像(SD画像)は、領域抽出部3551と領域抽出部3555にそれぞれ供給される。領域抽出部3551は、供給された特徴量画像から、クラス分類を行うために必要なクラスタップ(注目画素を含む予め設定された位置に存在するSD画素)を抽出し、パターン検出部3552に出力する。パターン検出部3552は、入力されたクラスタップに基づいて特徴量画像のパターンを検出する。
【2167】
クラスコード決定部3553は、パターン検出部3552で検出されたパターンに基づいてクラスコードを決定し、補正係数メモリ3554、および、領域抽出部3555に出力する。補正係数メモリ3554は、学習により予め求められたクラスコード毎の係数を記憶しており、クラスコード決定部3553より入力されたクラスコードに対応する係数を読み出し、補正演算部3556に出力する。
【2168】
なお、補正係数メモリ3554の係数の学習処理については、図277のクラス分類適応処理補正用学習部のブロック図を参照して後述する。
【2169】
また、補正係数メモリ3554に記憶される係数は、後述するように、差分画像を予測する(HD画像である差分予測画像を生成する)ときに使用される予測係数である。しかしながら、ここでは、クラス分類適応処理部3501の係数メモリ3514(図267)に記憶されている係数を、予測係数と称している。従って、以下、補正係数メモリ3554に記憶される予測係数を、係数メモリ3514に記憶される予測係数と区別するために、補正係数と称する。
【2170】
領域抽出部3555は、クラスコード決定部3553より入力されたクラスコードに基づいて、実世界推定部102より入力された特徴量画像(SD画像)から、差分画像(HD画像)を予測する(HD画像である差分予測画像を生成する)のに必要な予測タップ(注目画素を含む予め設定された位置に存在するSD画素)をクラスコードに対応して抽出し、補正演算部3556に出力する。補正演算部3556は、領域抽出部3555より入力された予測タップと、補正係数メモリ3554より入力された補正係数とを用いて積和演算を実行し、特徴量画像(SD画像)の注目画素(SD画素)における、差分予測画像(HD画像)のHD画素を生成する。
【2171】
より詳細には、補正係数メモリ3554は、クラスコード決定部3553より供給されるクラスコードに対応する補正係数を、補正演算部3556に出力する。補正演算部3556は、領域抽出部3555より供給される入力画像の所定の画素位置の画素値から抽出された予測タップ(SD画素)と、補正係数メモリ3554より供給された補正係数とを用いて、次の式(223)で示される積和演算を実行することにより、差分予測画像(HD画像)のHD画素を求める(差分画像を予測推定する)。
【2172】
【数174】
Figure 2004246526
Figure 2004246526
【2173】
式(223)において、u’は、差分予測画像(HD画像)のHD画素を表している。a(iは、1乃至nの整数値)のそれぞれは、予測タップ(SD画素)のそれぞれを表している。また、g のそれぞれは、補正係数のそれぞれを表している。
【2174】
従って、図266において、クラス分類適応処理部3501からは、上述した式(215)で示される予測画像のHD画素q’が出力されるのに対して、クラス分類適応処理補正部3502からは、式(223)で示される差分予測画像のHD画素u’が出力される。そして、加算部3503が、予測画像のHD画素q’と、差分予測画像のHD画素u’とを加算した画素(以下、o’と記述する)を、出力画像のHD画素として外部に出力する。
【2175】
即ち、画像生成部103より最終的に出力される出力画像のHD画素o’は、次の式(224)で示されるようになる。
【2176】
【数175】
Figure 2004246526
Figure 2004246526
【2177】
図277は、このようなクラス分類適応処理補正部3502の補正係数メモリ3554に記憶される補正係数(上述した式(222)におけるg )を決定するための学習部、即ち、上述した図268の学習装置3504のクラス分類適応処理補正用学習部3561の詳細な構成例を表している。
【2178】
図268において、上述したように、クラス分類適応処理用学習部3521は、その学習処理を終了すると、クラス分類適応処理補正用学習部3561に対して、学習に利用した第1の教師画像(HD画像)と第1の生徒画像(SD画像)のそれぞれを出力するともに、学習により求められた予測係数を用いて第1の生徒画像から第1の教師画像を予測した画像である、学習用予測画像を出力してくる。
【2179】
図277に戻り、これらのうちの第1の生徒画像は、データ定常性検出部3572に入力される。
【2180】
一方、これらのうちの第1の教師画像と学習用予測画像は、加算部3571に入力される。ただし、学習用予測画像は、反転入力される。
【2181】
加算部3571は、入力された第1の教師画像と、反転入力された学習用予測画像を加算し、即ち、第1の教師画像と学習用予測画像の差分画像を生成し、それをクラス分類適応処理補正用学習部3561における教師画像(この教師画像を、上述したように、第1の教師画像と区別するために、第2の教師画像と称する)として正規方程式生成部3578に出力する。
【2182】
データ定常性検出部3572は、入力された第1の生徒画像に含まれるデータの定常性を検出し、その検出結果をデータ定常性情報として実世界推定部3573に出力する。
【2183】
実世界推定部3573は、入力されたデータ定常性情報に基づいて、特徴量画像を生成し、それをクラス分類適応処理補正用学習部3561における生徒画像(この生徒画像を、上述したように、第1の生徒画像と区別するために、第2の生徒画像と称する)として領域抽出部3574と領域抽出部3577のそれぞれに出力する。
【2184】
領域抽出部3574は、供給された第2の生徒画像(SD画像)から、クラス分類を行うために必要なSD画素(クラスタップ)を抽出し、パターン検出部3575に出力する。パターン検出部3575は、入力されたクラスタップのパターンを検出し、検出結果をクラスコード決定部3576に出力する。クラスコード決定部3576は、入力されたパターンに対応するクラスコードを決定し、そのクラスコードを領域抽出部3577、および、正規方程式生成部3578のそれぞれに出力する。
【2185】
領域抽出部3577は、クラスコード決定部3576より入力されたクラスコードに基づいて、実世界推定部3573より入力された第2の生徒画像(SD画像)から予測タップ(SD画素)を抽出し、正規方程式生成部3578に出力する。
【2186】
なお、以上の領域抽出部3574、パターン検出部3575、クラスコード決定部3576、および領域抽出部3577のそれぞれは、図276のクラス分類適応処理補正部3502の領域抽出部3551、パターン検出部3552、クラスコード決定部3553、および、領域抽出部3555のそれぞれと、基本的に同様の構成と機能を有するものである。また、以上のデータ定常性検出部3572、および実世界推定部3573のそれぞれは、図266のデータ定常性検出部101、および実世界推定部102のそれぞれと、基本的に同様の構成と機能を有するものである。
【2187】
正規方程式生成部3578は、クラスコード決定部3576より入力された全てのクラスコードに対して、クラスコード毎に、領域抽出部3577より入力される第2の生徒画像(SD画像)の予測タップ(SD画素)と、第2の教師画像(HD画像)のHD画素とから正規方程式を生成し、補正係数決定部3579に供給する。補正係数決定部3579は、正規方程式生成部3578より所定のクラスコードに対応する正規方程式が供給されてきたとき、その正規方程式より補正係数のそれぞれを演算し、補正係数メモリ3554にクラスコードと関連付けて記憶させる。
【2188】
正規方程式生成部3578と、補正係数決定部3579についてさらに詳しく説明する。
【2189】
上述した式(223)において、学習前は補正係数gのそれぞれが未定係数である。学習は、クラスコード毎に複数の教師画像(HD画像)のHD画素を入力することによって行う。所定のクラスコードに対応するHD画素がm個存在し、m個のHD画素のそれぞれを、u(kは、1乃至mの整数値)と記述する場合、式(223)から、次の式(225)が設定される。
【2190】
【数176】
Figure 2004246526
Figure 2004246526
【2191】
即ち、式(225)は、右辺の演算をすることで、所定のHD画素を予測推定することができることを表している。なお、式(225)において、eは誤差を表している。即ち、右辺の演算結果である差分予測画像(HD画像)のHD画素u’が、実際の差分画像のHD画素uと厳密には一致せず、所定の誤差eを含む。
【2192】
そこで、式(2225)において、例えば、誤差eの自乗和を最小にするような補正係数aが、学習により求まればよい。
【2193】
例えば、m>nとなるように、差分画像のHD画素uを学習により集めることができれば、最小自乗法によって補正係数aが一意に決定される。
【2194】
即ち、式(225)の右辺の補正係数aを最小自乗法で求める場合の正規方程式は、次の式(226)で示される通りになる。
【2195】
【数177】
Figure 2004246526
Figure 2004246526
【2196】
式(226)で示される正規方程式の各行列のそれぞれを、次の式(227)乃至(229)のように定義すると、正規方程式は、次の式(230)のように表される。
【2197】
【数178】
Figure 2004246526
Figure 2004246526
【2198】
【数179】
Figure 2004246526
Figure 2004246526
【2199】
【数180】
Figure 2004246526
Figure 2004246526
【2200】
【数181】
Figure 2004246526
Figure 2004246526
【2201】
式(228)で示されるように、行列GMATの各成分は、求めたい補正係数gである。従って、式(230)において、左辺の行列AMATと右辺の行列UMATが決定されれば、行列解法によって行列GMAT(即ち、補正係数g)の算出が可能である。
【2202】
具体的には、式(227)で示されるように、行列AMATの各成分は、予測タップaikが既知であれば演算可能である。予測タップaikは、領域抽出部3577により抽出されるので、正規方程式生成部3578は、領域抽出部3577より供給されてくる予測タップaikのそれぞれを利用して行列AMATの各成分を演算することができる。
【2203】
また、式(229)で示されるように、行列UMATの各成分は、予測タップaikと差分画像のHD画素uが既知であれば演算可能である。予測タップaikは、行列AMATの各成分に含まれるものと同一のものであり、また、差分画像のHD画素uは、加算部3571より出力される第2の教師画像のHD画素である。従って、正規方程式生成部3578は、領域抽出部3577より供給された予測タップaikと、第2の教師画像(第1の教師画像と、学習用予測画像の差分画像)を利用して行列UMATの各成分を演算することができる。
【2204】
このようにして、正規方程式生成部3578は、クラスコード毎に、行列AMATと行列UMATの各成分を演算し、その演算結果をクラスコードに対応付けて補正係数決定部3579に供給する。
【2205】
補正係数決定部3579は、供給された所定のクラスコードに対応する正規方程式に基づいて、上述した式(230)の行列GMATの各成分である補正係数gを演算する。
【2206】
具体的には、上述した式(230)の正規方程式は、次の式(231)のように変形できる。
【2207】
【数182】
Figure 2004246526
Figure 2004246526
【2208】
式(231)において、左辺の行列GMATの各成分が、求めたい補正係数gである。また、行列AMATと行列UMATのそれぞれの各成分は、正規方程式生成部3578より供給されるものである。従って、補正係数決定部3579は、正規方程式生成部3578より所定のクラスコードに対応する行列AMATと行列UMATのそれぞれの各成分が供給されてきたとき、式(231)の右辺の行列演算を行うことで行列GMATを演算し、その演算結果(補正係数g)をクラスコードに対応付けて補正係数メモリ3554に記憶させる。
【2209】
以上、クラス分類適応処理補正部3502と、それに付随する学習部である、クラス分類適応処理補正用学習部3561の詳細について説明した。
【2210】
ところで、上述した特徴量画像は、クラス分類適応処理補正部3502がそれに基づいて補正画像(差分予測画像)を生成することが可能なものであれば、その形態は特に限定されない。換言すると、特徴量画像の各画素の画素値、即ち、特徴量は、上述したように、画素(センサ2(図266)の画素)内における実世界1(図266)の信号の変化量の度合いを表すことができるものであれば、特に、限定されない。
【2211】
例えば、特徴量として、画素内傾斜を適用することが可能である。
【2212】
画素内傾斜とは、ここで新しく定義した言葉である。そこで、以下、画素内傾斜について説明する。
【2213】
上述したように、図266において、画像である、実世界1の信号は、3次元の空間上の位置x,y、およびz、並びに時刻tを変数とする関数F(x,y,t)で表される。
【2214】
また、例えば、画像である、実世界1の信号が、空間方向の所定の方向に定常性を有する場合、関数F(x,y,t)を、空間方向であるX方向、Y方向、およびZ方向のうちの所定の1方向(例えば、X方向)に射影した1次元の波形(ここでも、このような波形のうちのX方向に射影した波形を、X断面波形F(x)と称することにする)と同一形状の波形が、定常性の方向に連なっていると考えることができる。
【2215】
従って、実世界推定部102は、例えば、データ定常性検出部101より出力される、実世界1の信号が有する定常性に対応するデータ定常性情報(例えば、角度)に基づいて、X断面波形F(x)を、n次(nは、任意の整数)の多項式である近似関数f(x)で近似することができる。
【2216】
図278は、このような近似関数f(x)の一例として、次の式(232)で示されるf(x)(5次の多項式であるf(x))と、次の式(233)で示されるf(x)(1次の多項式であるf(x))をプロットしたものを表している。
【2217】
【数183】
Figure 2004246526
Figure 2004246526
【2218】
【数184】
Figure 2004246526
Figure 2004246526
【2219】
なお、式(232)のw乃至w、並びに、式(233)のw’およびw’のそれぞれは、実世界推定部102が演算した各次の係数を表している。
【2220】
また、図278において、図中水平方向のx軸は、注目画素の左端を原点(x=0)とした場合における、注目画素からの空間方向Xの相対位置を表している。ただし、x軸においては、センサ2の検出素子の幅Lが1とされている。また、図中垂直方向の軸は、画素値を表している。
【2221】
図278で示されるように、1次の近似関数f(x)(式(232)で示される近似関数f(x))は、注目画素におけるX断面波形F(x)を直線近似したものである。この近似直線の傾きを、ここでは、画素内傾斜と称している。即ち、画素内傾斜とは、式(233)におけるxの係数w’である。
【2222】
画素内傾斜が急な場合、それは、注目画素における、X断面波形F(x)の変化量が大きいことを表している。これに対して、画素内傾斜が緩やかな場合、それは、注目画素における、X断面波形F(x)の変化量が小さいことを表している。
【2223】
このように、画素内傾斜は、画素(センサ2の画素)内における実世界1の信号の変化量の度合いを適切に表すことができる。従って、特徴量として、画素内傾斜を適用することができる。
【2224】
例えば、図279には、画素内傾斜を特徴量として実際に生成された特徴量画像が示されている。
【2225】
即ち、図279において、図中左側の画像は、上述した図270で示されるSD画像3542と同一の画像を表している。また、図中右側の画像は、左側のSD画像3542を構成する各画素のそれぞれに対して画素内傾斜を求め、画素内傾斜に対応する値を画素値としてプロットした特徴量画像3591を表している。ただし、特徴量画像3591は、画素内傾斜がない場合(近似直線が、X方向に平行な場合)、黒となり、これに対して、画素内傾斜が直角の場合(近似直線が、Y方向に平行な場合)、白となるように生成されている。
【2226】
SD画像3542の領域3542−1は、上述した図271の差分画像3544の領域3544−1(上述した図272を参照して、画素内における実世界1の信号の変化量が小さい領域の1例として説明した領域)に対応する領域である。このSD画像3542の領域3542−1に対応する特徴量画像3591の領域が、領域3591−1である。
【2227】
また、SD画像3542の領域3542−2は、上述した図273の差分画像3544の領域3544−2(上述した図274を参照して、画素内における実世界1の信号の変化量が大きい領域の1例として説明した領域)に対応する領域である。このSD画像3542の領域3542−2に対応する特徴量画像3591の領域が、領域3591−2である。
【2228】
SD画像3542の領域3542−1と特徴量画像3591の領域3591−1とを比較するに、実世界1の信号の変化量が小さい領域は、特徴量画像3591においては、黒に近い領域(画素内傾斜が緩い領域)となっていることがわかる。
【2229】
これに対して、SD画像3542の領域3542−2と特徴量画像3591の領域3591−2とを比較するに、実世界1の信号の変化量が大きい領域は、特徴量画像3591においては、白に近い領域(画素内傾斜が急な領域)となっていることがわかる。
【2230】
このように、画素内傾斜に対応する値を画素として生成された特徴量画像は、各画素内のそれぞれにおける実世界1の信号の変化量の度合いを適切に表すことができる。
【2231】
次に、画素内傾斜の具体的な算出方法について説明する。
【2232】
即ち、注目画素における画素内傾斜を、gradと記述すると、画素内傾斜gradは、次の式(234)で表される。
【2233】
【数185】
Figure 2004246526
Figure 2004246526
【2234】
式(234)において、Pは、注目画素の画素値を表している。Pは、中心画素の画素値を表している。
【2235】
具体的には、例えば、図280で示されるように、センサ2からの入力画像のうちの、5×5の画素(図中5×5=25個の正方形)からなる領域であって、所定のデータの定常性を有する領域3601(以下、定常領域3601と称する)が存在した場合、この定常領域3601の中心の画素3602が中心画素とされる。従って、Pは、中心画素3602の画素値となる。そして、例えば、画素3603が注目画素とされた場合、Pは、注目画素3603の画素値となる。
【2236】
また、式(234)において、x’は、注目画素の中心点における断面方向距離を表している。なお、ここでは、中心画素(図280の例では、画素3602)の中心を空間方向の原点(0,0)とし、その原点を通るデータの定常性の方向と平行な直線(図280の例では、直線3604)を引いたとすると、その直線に対するX方向の相対的な距離を、断面方向距離と称している。
【2237】
図281は、図280の定常領域3601内の各画素の断面方向距離を表した図である。即ち、図281において、定常領域3601の各画素(図中5×5=25個の正方形)内のそれぞれに記載されている値が、対応する画素の断面方向距離である。例えば、注目画素3603の断面距離x’は、−2βである。
【2238】
ただし、各画素幅は、X方向もY方向も1とされている。X方向の正方向は、図中右方向とされている。また、βは、中心画素3602のY方向に対して1つ隣(図中1つ下)の画素3605の断面方向距離を表している。このβは、図281で示されるような角度θ(直線3604の方向と、X方向のなす角度θ)が、データ定常性検出部101よりデータ定常性情報として出力されている場合、次の式(235)を利用して簡単に演算することが可能である。
【2239】
【数186】
Figure 2004246526
Figure 2004246526
【2240】
このように、画素内傾斜は、中心画素(図281の例では画素3602)と注目画素(図281の例では画素3603)の2つの入力画素値と、角度θを利用する簡単な演算で算出可能である。従って、実世界推定部102は、画素内傾斜に対応する値を画素値とする画像を、特徴量画像として生成すれば、その処理量を大幅に低減することが可能になる。
【2241】
なお、さらに精度のよい画素内傾斜を求めたい場合、実世界推定部102は、注目画素の周辺画素を用いて最小自乗法により演算すればよい。具体的には、実世界推定部102は、注目画素を含むm個(mは2以上の整数)の画素に対して番号i(iは、1乃至m)を付与し、番号iの画素のそれぞれの入力画素値Pと断面方向距離x’を、次の式(236)の右辺に代入して注目画素における画素内傾斜gradを演算すればよい。即ち、式(236)は、上述した1変数を最小自乗法で求める式と同様の式である。
【2242】
【数187】
Figure 2004246526
Figure 2004246526
【2243】
次に、図282を参照して、クラス分類適応処理補正手法を利用する画像生成部103(図266)の画像の生成の処理(図40のステップS103の処理)について説明する。
【2244】
図266において、画像である、実世界1の信号がセンサ2に入射されると、センサ2からは入力画像が出力される。この入力画像は、データ定常性検出部101に入力されるとともに、画像生成部103のクラス分類適応処理部3501に入力される。
【2245】
そこで、図282のステップS3501において、クラス分類適応処理部3501は、入力された入力画像(SD画像)に対してクラス分類適応処理を施して、予測画像(HD画像)を生成し、加算部3503に出力する。
【2246】
なお、以下、このようなクラス分類適応処理部3501が実行するステップS3501の処理を、「入力画像クラス分類適応処理」と称する。この例の「入力画像クラス分類適応処理」の詳細については、図283のフローチャートを参照して後述する。
【2247】
ステップS3501の処理とほぼ同時に、データ定常性検出部101は、入力画像に含まれるデータの定常性を検出し、その検出結果(いまの場合、角度)をデータ定常性情報として実世界推定部102に出力する(図40のステップS101の処理)。
【2248】
実世界推定部102は、入力した角度(データ定常性情報)に基づいて、実世界推定情報(いまの場合、SD画像である特徴量画像)を生成し、画像生成部103のクラス分類適応処理補正部3502に供給する(図40のステップS102の処理)。
【2249】
そこで、ステップS3502において、クラス分類適応処理補正部3502は、供給された特徴量画像(SD画像)に対してクラス分類適応処理を施して、差分予測画像(HD画像)を生成し(実際の画像(実世界1の信号)と、クラス分類適応処理部3501から出力された予測画像との差分画像(ただし、HD画像)を予測演算し)、それを補正画像として加算部3503に出力する。
【2250】
なお、以下、このようなクラス分類適応処理補正部3502が実行するステップS3502の処理を、「クラス分類適応処理の補正処理」と称する。この例の「クラス分類適応処理の補正処理」の詳細については、図284のフローチャートを参照して後述する。
【2251】
そして、ステップS3503において、加算部3503が、ステップS3501の処理でクラス分類適応処理部3501により生成された予測画像(HD画像)の注目画素(HD画素)と、その注目画素に対応する、ステップS3502の処理でクラス分類適応処理補正部3502により生成された補正画像(HD画像)の画素(HD画素)を加算し、出力画像(HD画像)の画素(HD画素)を生成する。
【2252】
ステップS3504において、加算部3503は、全画素の処理を終了したか否かを判定する。
【2253】
ステップS3504において、全画素の処理がまだ終了されていないと判定された場合、処理はステップS3501に戻り、それ以降の処理が繰り返される。即ち、まだ注目画素とされない画素が、順次注目画素とされて、ステップS3501乃至S3503の処理が繰り返される。
【2254】
そして、全画素の処理が終了すると(ステップS3504において、全画素の処理が終了されたと判定すると)、加算部3504は、ステップS3505において、出力画像(HD画像)を外部に出力する。その後、画像の生成の処理は終了となる。
【2255】
次に、図面を参照して、この例における「入力画像クラス分類適応処理(ステップS3501の処理)」、および、「クラス分類適応処理の補正処理(ステップS3502の処理)」のそれぞれの詳細について、その順番で個別に説明する。
【2256】
はじめに、図283のフローチャートを参照して、クラス分類適応処理部3501(図267)が実行する「入力画像クラス分類適応処理」の詳細について説明する。
【2257】
入力画像(SD画像)がクラス分類適応処理部3501に入力されると、ステップS3521において、領域抽出部3511と領域抽出部3515のそれぞれは、入力画像を入力する。
【2258】
ステップS3522において、領域抽出部3511は、入力画像の中から、注目画素(SD画素)、および、予め設定された注目画素からの相対位置(1以上の位置)のそれぞれに位置する画素(SD画素)を、クラスタップとして抽出し、パターン検出部3512に供給する。
【2259】
ステップS3523において、パターン検出部3512は、供給されたクラスタップのパターンを検出し、クラスコード決定部3513に供給する。
【2260】
ステップS3524において、クラスコード決定部3513は、予め設定されている複数のクラスコードの中から、供給されたクラスタップのパターンに適合するクラスコードを決定し、係数メモリ3514と領域抽出部3515のそれぞれに供給する。
【2261】
ステップS3525において、係数メモリ3514は、予め学習処理により決定された複数の予測係数(群)の中から、供給されたクラスコードに基づいてこれから使用する予測係数(群)を読み出し、予測演算部3516に供給する。
【2262】
なお、学習処理については、図288のフローチャートを参照して後述する。
【2263】
ステップS3526において、領域抽出部3515は、供給されたクラスコードに対応して、入力画像の中から、注目画素(SD画素)、および、予め設定された注目画素からの相対位置(1以上の位置であって、クラスタップの位置とは独立して設定された位置。ただし、クラスタップの位置と同一の位置でもよい)のそれぞれに位置する画素(SD画素)を、予測タップとして抽出し、予測演算部3516に供給する。
【2264】
ステップS3527において、予測演算部3516は、領域抽出部3515より供給された予測タップを、係数メモリ3514より供給された予測係数を用いて演算し、予測画像(HD画像)を生成して加算部3503に出力する。
【2265】
具体的には、予測演算部3516は、領域抽出部3515より供給された予測タップのそれぞれをc(iは、1乃至nのうちのいずれかの整数)とし、かつ、係数メモリ3514より供給された予測係数のそれぞれをdとして、上述した式(215)の右辺を演算することにより、注目画素(SD画素)におけるHD画素q’を算出し、それを予測画像(HD画像)を構成する1つの画素として加算部3503に出力する。これにより、入力画像クラス分類適応処理が終了となる。
【2266】
次に、図284のフローチャートを参照して、クラス分類適応処理補正部3502(図276)が実行する「クラス分類適応処理の補正処理」の詳細について説明する。
【2267】
実世界推定部102より実世界推定情報として特徴量画像(SD画像)がクラス分類適応処理補正部3502に入力されると、ステップS3541において、領域抽出部3551と領域抽出部3555のそれぞれは、特徴量画像を入力する。
【2268】
ステップS3542において、領域抽出部3551は、特徴量画像の中から、注目画素(SD画素)、および、予め設定された注目画素からの相対位置(1以上の位置)のそれぞれに位置する画素(SD画素)を、クラスタップとして抽出し、パターン検出部3552に供給する。
【2269】
具体的には、この例においては、例えば、図285で示されるようなクラスタップ(群)3621が抽出されるとする。即ち、図285は、クラスタップ配置の1例を表している。
【2270】
図285において、図中水平方向は、空間方向の1方向であるX方向とされており、図中垂直方向は、空間方向の他方向であるY方向とされている。また、注目画素は、画素3621−2とされている。
【2271】
この場合、図285の例では、注目画素3621−2、Y方向に対して注目画素3621−2の隣の画素3621−0および画素3621−4、並びに、X方向に対して注目画素3621−2の隣の画素3621−1および画素3621−3の総計5個の画素からなる画素群3621が、クラスタップとして抽出されることになる。
【2272】
勿論、クラスタップ配置は、注目画素3621−2を含む配置であれば、図285の例に限定されず、様々な配置が可能である。
【2273】
図284に戻り、ステップS3543において、パターン検出部3552は、供給されたクラスタップのパターンを検出し、クラスコード決定部3553に供給する。
【2274】
具体的には、この例においては、例えば、パターン検出部3552は、図285で示される5個のクラスタップ3621−0乃至3621−4のそれぞれの画素値、即ち、特徴量の値(例えば、画素内傾斜)のそれぞれが、予め設定された複数のクラスのうちのいずれのクラスに属するのかを検出し、それらの検出結果を1つにまとめたものをパターンとして出力する。
【2275】
例えば、いま、図286で示されるようなパターンが検出されたとする。即ち、図286は、クラスタップのパターンの1例を表している。
【2276】
図286において、図中水平方向の軸は、クラスタップを表しており、図中垂直方向の軸は、画素内傾斜を表している。また、画素内傾斜により、クラス
3631、クラス3632、およびクラス3633の3つのクラスが予め設定されているとする。
【2277】
この場合、図286で示されるパターンは、クラスタップ3621−0はクラス3631に、クラスタップ3621−1はクラス3631に、クラスタップ3621−2はクラス3633に、クラスタップ3621−3はクラス3631に、クラスタップ3621−4はクラス3632に、それぞれ属するパターンを表している。
【2278】
このように、5個のクラスタップ3621−0乃至3621−4のそれぞれは、3つのクラス3631乃至3633のうちのいずれかに属することになる。従って、この例においては、図286で示されるパターンを含めて総計273(=3^5)個のパターンが存在することになる。
【2279】
図284に戻り、ステップS3544において、クラスコード決定部3553は、予め設定されている複数のクラスコードの中から、供給されたクラスタップのパターンに適合するクラスコードを決定し、補正係数メモリ3554と領域抽出部3555のそれぞれに供給する。いまの場合、273個のパターンが存在するので、予め設定されているクラスコードの数も273個(または、それ以上)となる。
【2280】
ステップS3545において、補正係数メモリ3554は、予め学習処理により決定された複数の補正係数(群)の中から、供給されたクラスコードに基づいてこれから使用する補正係数(群)を読み出し、補正演算部3556に供給する。補正係数メモリ3554に記憶されている補正係数(群)のそれぞれは、予め設定されたクラスコードのうちのいずれかに対応付けられているので、いまの場合、補正係数(群)の数は、予め設定されているクラスコードの数と同数(273個以上)となる。
【2281】
なお、学習処理については、図288のフローチャートを参照して後述する。
【2282】
ステップS3546において、領域抽出部3555は、供給されたクラスコードに対応して、入力画像の中から、注目画素(SD画素)、および、予め設定された注目画素からの相対位置(1以上の位置であって、クラスタップの位置とは独立して設定された位置。ただし、クラスタップの位置と同一の位置でもよい)のそれぞれに位置する画素(SD画素)を、予測タップとして抽出し、補正演算部3556に供給する。
【2283】
具体的には、この例においては、例えば、図287で示されるような予測タップ(群)3641が抽出されるとする。即ち、図287は、予測タップ配置の1例を表している。
【2284】
図287において、図中水平方向は、空間方向の1方向であるX方向とされており、図中垂直方向は、空間方向の他方向であるY方向とされている。また、注目画素は、画素3641−1とされている。即ち、画素3641−1は、クラスタップ3621−2(図285)に対応する画素である。
【2285】
この場合、図287の例では、注目画素3641−1を中心とする5×5の画素群(総計25個の画素からなる画素群)3641が、予測タップ(群)として抽出されることになる。
【2286】
勿論、予測タップ配置は、注目画素3641−1を含む配置であれば、図287の例に限定されず、様々な配置が可能である。
【2287】
図284に戻り、ステップS3547において、補正演算部3556は、領域抽出部3555より供給された予測タップを、補正係数メモリ3554より供給された補正係数を用いて演算し、差分予測画像(HD画像)を生成し、補正画像として加算部3503に出力する。
【2288】
より詳細には、補正演算部3556は、領域抽出部3555より供給された予測タップのそれぞれをa(iは、1乃至nのうちのいずれかの整数)とし、かつ、補正係数メモリ3554より供給された補正係数のそれぞれをgとして、上述した式(223)の右辺を演算することにより、注目画素(SD画素)におけるHD画素u’を算出し、それを補正画像(HD画像)を構成する1つの画素として加算部3503に出力する。これにより、クラス分類適応処理の補正処理は終了となる。
【2289】
次に、図288のフローチャートを参照して、学習装置(図268)の学習処理、即ち、クラス分類適応処理部3501(図267)が使用する予測係数と、クラス分類適応処理補正部3502(図276)が使用する補正係数のそれぞれを学習により生成する学習処理について説明する。
【2290】
ステップS3561において、クラス分類適応処理用学習部3521は、クラス分類適応処理部3501が使用する予測係数を生成する。
【2291】
即ち、クラス分類適応処理用学習部3521は、所定の画像を第1の教師画像(HD画像)として入力し、その第1の教師画像の解像度を下げて第1の生徒画像(SD画像)を生成する。
【2292】
そして、クラス分類適応処理用学習部3521は、クラス分類適応処理により第1の生徒画像(SD画像)から第1の教師画像(HD画像)を適切に予測することが可能な予測係数を生成し、クラス分類適応処理部3501の係数メモリ3514(図267)に記憶させる。
【2293】
なお、以下、このようなクラス分類適応処理用学習部3521が実行するステップS3561の処理を、「クラス分類適応処理用学習処理」と称する。この例の「クラス分類適応処理用学習処理」の詳細については、図289のフローチャートを参照して後述する。
【2294】
クラス分類適応処理部3501が使用する予測係数が生成されると、ステップS3562において、クラス分類適応処理補正用学習部3561は、クラス分類適応処理補正部3502が使用する補正係数を生成する。
【2295】
即ち、クラス分類適応処理補正用学習部3561は、クラス分類適応処理用学習部3521より、第1の教師画像、第1の生徒画像、および学習用予測画像(クラス分類適応処理用学習部3521により生成された予測係数を用いて、第1の教師画像を予測した画像)のそれぞれを入力する。
【2296】
次に、クラス分類適応処理補正用学習部3561は、第2の教師画像として、第1の教師画像と学習用予測画像の差分画像を生成するとともに、第2の生徒画像として、第1の生徒画像から特徴量画像を生成する。
【2297】
そして、クラス分類適応処理補正用学習部3561は、クラス分類適応処理により第2の生徒画像(SD画像)から第2の教師画像(HD画像)を適切に予測することが可能な予測係数を生成し、それを補正係数としてクラス分類適応処理補正部3502の補正係数メモリ3554に記憶させる。これにより、学習処理は終了となる。
【2298】
なお、以下、このようなクラス分類適応処理補正用学習部3561が実行するステップS3562の処理を、「クラス分類適応処理補正用学習処理」と称する。この例の「クラス分類適応処理補正用学習処理」の詳細については、図290のフローチャートを参照して後述する。
【2299】
次に、図面を参照して、この例における「クラス分類適応処理用学習処理(ステップS3561の処理)」、および、「クラス分類適応処理補正用学習処理(ステップS3562の処理)」のそれぞれの詳細について、その順番で個別に説明する。
【2300】
はじめに、図289のフローチャートを参照して、クラス分類適応処理用学習部3521(図269)が実行する「クラス分類適応処理用学習処理」の詳細について説明する。
【2301】
ステップS3581において、ダウンコンバート部3531と正規方程式生成部3536のそれぞれは、供給された所定の画像を、第1の教師画像(HD画像)として入力する。なお、第1の教師画像は、上述したように、クラス分類適応処理補正用学習部3561にも入力される。
【2302】
ステップS3582において、ダウンコンバート部3531は、入力された第1の教師画像をダウンコンバートして(解像度を落として)第1の生徒画像(SD画像)を生成し、領域抽出部3532と領域抽出部3535のそれぞれに供給するとともに、クラス分類適応処理補正用学習部3561にも出力する。
【2303】
ステップS3583において、領域抽出部3532は、供給された第1の生徒画像からクラスタップを抽出してパターン検出部3533に出力する。なお、ステップS3583の処理は、ブロックに入力される情報と、ブロックから出力される情報は厳密には違う情報であるが(以下、このような違いを、単に、入出力の違いと称する)、上述したステップS3522(図283)の処理と基本的に同様の処理である。
【2304】
ステップS3584において、パターン検出部3533は、供給されたクラスタップよりクラスコードを決定するためのパターンを検出し、クラスコード決定部3534に供給する。なお、ステップS3584の処理は、入出力の違いはあるが、上述したステップS3523(図283)の処理と基本的に同様の処理である。
【2305】
ステップS3585において、クラスコード決定部3534は、供給されたクラスタップのパターンに基づいてクラスコードを決定し、領域抽出部3535と正規方程式生成部3536のそれぞれに供給する。なお、ステップS3585の処理は、入出力の違いはあるが、上述したステップS3524(図283)の処理と基本的に同様の処理である。
【2306】
ステップS3586において、領域抽出部3535は、供給されたクラスコードに対応して、第1の生徒画像の中から予測タップを抽出し、正規方程式生成部3536と予測演算部3538のそれぞれに供給する。なお、ステップS3586の処理は、入出力の違いはあるが、上述したステップS3526(図283)の処理と基本的に同様の処理である。
【2307】
ステップS3587において、正規方程式生成部3536は、領域抽出部3535より供給された予測タップ(SD画素)、および、第1の教師画像(HD画像)を構成するHD画素のうちの所定のHD画素から、上述した式(217)(即ち、式(221))で示される正規方程式を生成し、クラスコード決定部3534より供給されたクラスコードとともに係数決定部3537に供給する。
【2308】
ステップS3588において、係数決定部3537は、供給された正規方程式を解いて予測係数を決定し、即ち、上述した式(222)の右辺を演算することで予測係数を算出し、供給されたクラスコードに対応付けて係数メモリ3514に記憶させるとともに、予測演算部3538に供給する。
【2309】
ステップS3589において、予測演算部3538は、領域抽出部3535より供給された予測タップを、係数決定部3537より供給された予測係数を用いて演算し、学習用予測画像(HD画素)を生成する。
【2310】
具体的には、予測演算部3538は、領域抽出部3535より供給された予測タップのそれぞれをc(iは、1乃至nのうちのいずれかの整数)とし、かつ、係数決定部3537より供給された予測係数のそれぞれをdとして、上述した式(215)の右辺を演算することにより、第1の教師画像の所定のHD画素qを予測したHD画素q’を算出し、たHD画素q’を学習用予測画像の1つの画素とする。
【2311】
ステップS3590において、全ての画素について処理が施されたか否かが判定され、全ての画素について処理が施されていないと判定された場合、その処理は、ステップS3583に戻る。即ち、全ての画素の処理が終了されるまで、ステップS3583乃至S3590の処理が繰り返される。
【2312】
そして、ステップS3590において、全ての画素について処理が施されたと判定された場合、ステップS3591において、予測演算部3538は、学習予測画像(ステップS3589の処理毎に生成された各HD画素q’から構成されるHD画像)を、クラス分類適応処理補正用学習部3561に出力する。これにより、クラス分類適応処理用学習処理は終了となる。
【2313】
このように、この例においては、全ての画素の処理が終了された後、第1の教師画像を予測したHD画像である学習用予測画像がクラス分類適応処理補正用学習部3561に出力される。即ち、全てのHD画素(予測画素)が一括して出力される。
【2314】
しかしながら、全ての画素が一括して出力されることは必須ではなく、ステップS3589の処理でHD画素(予測画素)が生成される毎に、クラス分類適応処理補正用学習部3561に出力されてもよい。この場合、ステップS3591の処理は省略される。
【2315】
次に、図290のフローチャートを参照して、クラス分類適応処理補正用学習部3561(図277)が実行する「クラス分類適応処理補正用学習処理」の詳細について説明する。
【2316】
クラス分類適応処理用学習部3521より第1の教師画像(HD画像)と学習用予測画像(HD画像)が入力されると、ステップS3601において、加算部3571は、第1の教師画像から学習用予測画像を減算し、差分画像(HD画像)を生成し、それを第2の教師画像として正規方程式生成部3578に供給する。
【2317】
また、クラス分類適応処理用学習部3521より第1の生徒画像(SD画像)が入力されると、ステップS3602において、データ定常性検出部3572と実世界推定部3573は、入力された第1の生徒画像(SD画像)から特徴量画像を生成し、それを第2の生徒画像として領域抽出部3574と領域抽出部3577のそれぞれに供給する。
【2318】
即ち、データ定常性検出部3572は、第1の生徒画像に含まれるデータの定常性を検出し、その検出結果(いまの場合、角度)をデータ定常性情報として実世界推定部3573に出力する。なお、ステップS3602のデータ定常性検出部3572の処理は、入出力の違いはあるが、上述した図40のステップS101の処理と基本的に同様の処理である。
【2319】
実世界推定部3573は、入力した角度(データ定常性情報)に基づいて、実世界推定情報(いまの場合、SD画像である特徴量画像)を生成し、それを第2の生徒画像として領域抽出部3574と領域抽出部3577のそれぞれに供給する。なお、ステップS3602の実世界推定部3573の処理は、入出力の違いはあるが、上述した図40のステップS102の処理と基本的に同様の処理である。
【2320】
また、ステップS3601とS3602の処理の順番は、図290の例に限定されない。即ち、ステップS3602の処理が先に実行されてもよいし、ステップS3601とS3602の処理が同時に実行されてもよい。
【2321】
ステップS3603において、領域抽出部3574は、供給された第2の生徒画像(特徴量画像)からクラスタップを抽出してパターン検出部3575に出力する。なお、ステップS3603の処理は、入出力の違いはあるが、上述したステップS3542(図284)の処理と基本的に同様の処理である。即ち、いまの場合、図285で示される配置の画素群3621がクラスタップとして抽出される。
【2322】
ステップS3604において、パターン検出部3575は、供給されたクラスタップよりクラスコードを決定するためのパターンを検出し、クラスコード決定部3576に供給する。なお、ステップS3604の処理は、入出力の違いはあるが、上述したステップS3543(図284)の処理と基本的に同様の処理である。即ち、いまの場合、学習処理が終了されるときには、少なくとも273個のパターンが検出されることになる。
【2323】
ステップS3605において、クラスコード決定部3576は、供給されたクラスタップのパターンに基づいてクラスコードを決定し、領域抽出部3577と正規方程式生成部3578のそれぞれに供給する。なお、ステップS3605の処理は、入出力の違いはあるが、上述したステップS3544(図284)の処理と基本的に同様の処理である。即ち、いまの場合、学習処理が終了されるときには、少なくとも273個のクラスコードが決定されることになる。
【2324】
ステップS3606において、領域抽出部3577は、供給されたクラスコードに対応して、第2の生徒画像(特徴量画像)の中から予測タップを抽出し、正規方程式生成部3578に供給する。なお、ステップS3606の処理は、入出力の違いはあるが、上述したステップS3546(図284)の処理と基本的に同様の処理である。即ち、いまの場合、図287で示される配置の画素群3641が予測タップとして抽出される。
【2325】
ステップS3607において、正規方程式生成部3578は、領域抽出部3577より供給された予測タップ(SD画素)、および、第2の教師画像(HD画像である、第1の教師画像と学習用予測画像の差分画像)を構成するHD画素のうちの所定のHD画素から、上述した式(226)(即ち、式(230))で示される正規方程式を生成し、クラスコード決定部3576より供給されたクラスコードとともに補正係数決定部3579に供給する。
【2326】
ステップS3608において、補正係数決定部3579は、供給された正規方程式を解いて補正係数を決定し、即ち、上述した式(231)の右辺を演算することで補正係数を算出し、供給されたクラスコードに対応付けて補正係数メモリ3554に記憶させる。
【2327】
ステップS3609において、全ての画素について処理が施されたか否かが判定され、全ての画素について処理が施されていないと判定された場合、その処理は、ステップS3603に戻る。即ち、全ての画素の処理が終了されるまで、ステップS3603乃至S3609の処理が繰り返される。
【2328】
そして、ステップS3609において、全ての画素について処理が施されたと判定された場合、クラス分類適応処理補正用学習処理は終了となる。
【2329】
以上、説明したように、クラス分類適応補正処理手法においては、クラス分類適応処理部3501より出力された予測画像に対して、クラス分類適応処理補正部3502より出力された補正画像(差分予測画像)が加算されて出力される。
【2330】
例えば、上述した図270で示されるHD画像3541の解像度を落とした画像であるSD画像3542が入力画像とされた場合、クラス分類適応処理部3501からは、図291で示される予測画像3543が出力される。そして、この予測画像3543に、クラス分類適応処理補正部3502より出力された補正画像(図示せず)が加算されると(補正画像により補正されると)、図271で示される出力画像3651となる。
【2331】
出力画像3651、予測画像3543、および、元の画像であるHD画像3541(図270)のそれぞれを比較するに、出力画像3651は、予測画像3543よりもHD画像3541により近い画像になっていることがわかる。
【2332】
このように、クラス分類適応処理補正手法においては、クラス分類適応処理を含む従来の他の手法に比較して、元の画像(センサ2に入射される前の実世界1の信号)により近い画像の出力が可能になる。
【2333】
換言すると、クラス分類適応処理補正手法においては、例えば、図266のデータ定常性検出部101が、それぞれ時空間積分効果を有する、センサ(例えば、図266のセンサ2)の複数の検出素子により図266の実世界1の光信号が射影され、現実世界の光信号の定常性の一部が欠落した、検出素子により射影された画素値を有する複数の画素からなる入力画像(図266)におけるデータの定常性を検出する。
【2334】
例えば、図266の実世界推定部102は、検出されたデータの定常性に対応して、実世界1の光信号を表す光信号関数F(x)(図275)が有する実世界特徴(例えば、図266の特徴量画像を構成する画素に対応する特徴量)を検出することで、実世界1の光信号を推定する。
【2335】
詳細には、例えば、実世界推定部102は、出されたデータの定常性に対応する線(例えば、図280の線3604)からの少なくとも1次元方向に沿った距離(例えば、図280の断面方向距離Xn’)に対応する画素の画素値が、少なくとも1次元方向の積分効果により取得された画素値であるとして、光信号関数F(x)を、例えば、図278の近似関数f(x)で近似し、所定画素(例えば、図280の画素3603)内における近似関数f5(x)の傾斜である画素内傾斜(例えば、上述した式(234)のgradであり、式(233)のxの係数w1‘)を、実世界特徴として検出することで、実世界1の光信号を推定する。
【2336】
そして、例えば、図266の画像生成部103が、実世界推定手段により検出された実世界特徴に基いて、入力画像よりも高質な出力画像(図266)を予測し生成する。
【2337】
詳細には、例えば、画像生成部103において、例えば、図266のクラス分類適応処理部3501が、出力画像における注目画素の周辺に位置する、実世界1の光信号の定常性が欠落した入力画像内の複数の画素の画素値から注目画素の画素値(例えば、図266の予測画像の画素であり、上述した式(224)のq’)を予測する。
【2338】
一方、例えば、図266のクラス分類適応処理補正部3502は、例えば、図266の実世界推定部102より供給された特徴量画像(実世界推定情報)から、クラス分類適応処理部3501により予測された予測画像の注目画素の画素値を補正する補正項(例えば、図266の補正画像(差分予測画像)の画素であり、式(224)のu‘)を予測する。
【2339】
そして、例えば、図266の加算部3503は、クラス分類適応処理部3501により予測された予測画像の注目画素の画素値を、クラス分類適応処理部3501により予測された補正項で補正する(例えば、式(224)のように演算する)。
【2340】
また、クラス分類適応処理補正手法においては、例えば、図267の係数メモリ3514に記憶される予測係数を学習により決定する図268のクラス分類適応処理学習部3521と、例えば、図276の補正係数メモリ3554に記憶される補正係数を学習により決定する図268のクラス分類適応処理補正用学習部3561を有する図268の学習装置3504が設けられている。
【2341】
詳細には、例えば、図269のクラス分類適応処理学習部3521には、学習用画像データをダウンコンバートするダウンコンバート部3531、並びに、学習用画像データを第1の教師画像とし、ダウンコンバート部3531によりダウンコンバートされた学習用画像データを第1の生徒画像とし、第1の教師画像と第1の生徒画像の関係を学習することにより、予測係数を生成する係数決定部3537、および、領域抽出部3532乃至正規方程式生成部3536が設けられている。
【2342】
クラス分類適応処理学習部3521にはさらに、例えば、係数決定部3537により生成(決定)された予測係数を使用して、第1の生徒画像から第1の教師画像を予測する画像データとして、学習用予測画像を生成する予測演算部3538が設けられている。
【2343】
また、例えば、図277のクラス分類適応処理補正用学習部3561には、第1の生徒画像におけるデータの定常性を検出し、検出したデータの定常性に基づいて、第1の生徒画像を構成する各画素のそれぞれに対応する実世界特徴を検出し、検出した実世界特徴に対応する値を画素値とする特徴量画像(具体的には、例えば、図279の特徴量画像3591)を、第2の生徒画像(例えば、図277の第2の生徒画像)として生成するデータ定常性検出部3572および実世界推定部3573、第1の教師画像と、学習用予測画像の差分からなる画像データ(差分画像)を、第2教師画像として生成する加算部3571、並びに、第2の教師画像と、第2の生徒画像の関係を学習することにより、補正係数を生成する補正係数決定部3579、および領域抽出部3574乃至正規方程式生成部3578が設けられている。
【2344】
従って、クラス分類適応処理補正手法においては、クラス分類適応処理を含む従来の他の手法に比較して、元の画像(センサ2に入射される前の実世界1の信号)により近い画像の出力が可能になる。
【2345】
なお、クラス分類適応処理は、上述したように、SD画像には含まれていないが、HD画像に含まれる成分が再現される点で、例えば、単なる補間処理とは異なる。即ち、上述した式(215)や式(223)だけを見る限りは、いわゆる補間フィルタを用いての補間処理と同一に見えるが、クラス分類適応処理では、その補間フィルタの係数に相当する予測係数dまたは補足係数gが、教師データと生徒データ(第1の教師画像と第1の生徒画像、または、第2の教師画像と第2の生徒画像)を用いての学習により求められるため、HD画像に含まれる成分を再現することができる。このことから、上述したようなクラス分類適応処理は、いわば画像の創造(解像度創造)作用がある処理と称することができる。
【2346】
さらに、上述した例では、空間解像度を向上させる場合を例にして説明したが、クラス分類適応処理によれば、教師データおよび生徒データを変えて学習を行うことにより得られる種々の係数を用いることで、例えば、S/N(Signal to Noise Ratio) の向上や、ぼけの改善、その他の各種の処理を行うことが可能である。
【2347】
即ち、例えば、S/Nの向上やぼけの改善を、クラス分類適応処理によって行うには、S/Nの高い画像データを教師データとするとともに、その教師データのS/Nを低下させた画像(あるいは、ぼかした画像)を生徒データとして、係数を求めればよい。
【2348】
以上、本発明の実施の形態として、図3の構成の信号処理装置について説明したが、本発明の実施の形態は、図3の例に限定されず、様々な形態を取ることが可能である。即ち、図1の信号処理装置4の実施の形態は、図3の例に限定されず、様々な形態を取ることが可能である。
【2349】
例えば、図3の構成の信号処理装置は、画像である、実世界1の信号が有する定常性に基づいて信号処理を行う。このため、図3の構成の信号処理装置は、実世界1の信号のうちの定常性が存在する部分に対しては、他の信号処理装置の信号処理に比べて、精度のよい信号処理を実行することができ、その結果、より実世界1の信号に近い画像データを出力することが可能になる。
【2350】
しかしながら、図3の構成の信号処理装置は、定常性に基づいて信号処理を実行する以上、実世界1の信号のうちの明確な定常性が存在しない部分に対しては、定常性が存在する部分に対する処理と同等の精度で、信号処理を実行することができず、その結果、実世界1の信号に対して誤差を含む画像データを出力することになる。
【2351】
そこで、図3の構成の信号処理装置に対してさらに、定常性を利用しない他の信号処理を行う装置(または、プログラム等)を付加することができる。この場合、実世界1の信号のうちの定常性が存在する部分については、図3の構成の信号処理装置が信号処理を実行し、実世界1の信号のうちの明確な定常性が存在しない部分については、付加した他の装置(または、プログラム等)が信号処理を実行することになる。なお、以下、このような実施形態を併用手法と称する。
【2352】
以下、図292乃至図305を参照して、具体的な5つの併用手法(以下、それぞれの併用手法を、第1乃至第5の併用手法と称する)について説明する。
【2353】
なお、各併用手法が適用される信号処理装置の各機能をハードウェアで実現するか、ソフトウェアで実現するかは問わない。つまり、後述する図292乃至図294、図298、図300、図302、および図304のそれぞれのブロック図は、ハードウェアのブロック図と考えても、ソフトウェアによる機能ブロック図と考えても良い。
【2354】
図292は、第1の併用手法が適用される信号処理装置の構成例を表している。
【2355】
図292の信号処理装置においては、データ3(図1)の一例である画像データが入力され、入力された画像データ(入力画像)に基づいて、後述する画像処理が施されて画像が生成され、生成された画像(出力画像)が出力される。即ち、図292は、画像処理装置である信号処理装置4(図1)の構成を示す図である。
【2356】
信号処理装置4に入力された入力画像(データ3の一例である画像データ)は、データ定常性検出部4101、実世界推定部4102、および画像生成部4104のそれぞれに供給される。
【2357】
データ定常性検出部4101は、入力画像からデータの定常性を検出して、検出した定常性を示すデータ定常性情報を実世界推定部4102および画像生成部4103に供給する。
【2358】
このように、データ定常性検出部4101は、図3のデータ定常性検出部101と基本的に同様の構成と機能を有するものである。従って、データ定常性検出部4101は、上述した様々な実施の形態を取ることが可能である。
【2359】
ただし、データ定常性検出部4101はさらに、注目画素の領域を特定するための情報(以下、領域特定情報と称する)を生成し、領域検出部4111に供給する。
【2360】
この領域特定情報は、特に限定されず、データ定常性情報が生成された後に新たに生成された情報でもよいし、データ定常性情報が生成される場合に付帯して生成される情報でもよい。
【2361】
具体的には、例えば、領域特定情報として、推定誤差が使用可能である。即ち、例えば、データ定常性検出部4101が、データ定常性情報として角度を算出し、かつ、その角度を最小自乗法により演算する場合、最小自乗法の演算で推定誤差が付帯的に算出される。この推定誤差が、領域特定情報として使用可能である。
【2362】
実世界推定部4102は、入力画像、およびデータ定常性検出部4101から供給されたデータ定常性情報に基づいて、実世界1(図1)の信号を推定する。即ち、実世界推定部4102は、入力画像が取得されたときセンサ2(図1)に入射された、実世界1の信号である画像を推定する。実世界推定部4102は、実世界1の信号の推定の結果を示す実世界推定情報を画像生成部4103に供給する。
【2363】
このように、実世界推定部4102は、図3の実世界推定部102と基本的に同様の構成と機能を有するものである。従って、実世界推定部4102は、上述した様々な実施の形態を取ることが可能である。
【2364】
画像生成部4103は、実世界推定部4102から供給された、推定された実世界1の信号を示す実世界推定情報に基づいて、実世界1の信号により近似した信号を生成して、生成した信号をセレクタ4112に供給する。または、画像生成部4103は、データ定常性検出部4101から供給されたデータ定常性情報、および実世界推定部4102から供給された、推定された実世界1の信号を示す実世界推定情報に基づいて、実世界1の信号により近似した信号を生成して、生成した信号をセレクタ4112に供給する。
【2365】
即ち、画像生成部4103は、実世界推定情報に基づいて、実世界1の画像により近似した画像を生成し、セレクタ4112に供給する。または、画像生成部4103は、データ定常性情報、および実世界推定情報に基づいて、実世界1の画像により近似した画像を生成し、セレクタ4112に供給する。
【2366】
このように、画像生成部4103は、図3の画像生成部103と基本的に同様の構成と機能を有するものである。従って、画像生成部4103は、上述した様々な実施の形態を取ることが可能である。
【2367】
画像生成部4104は、入力画像に対して所定の画像処理を施して、画像を生成し、セレクタ4112に供給する。
【2368】
なお、画像生成部4104が実行する画像処理は、データ定常性検出部4101、実世界推定部4102、および画像生成部4103が実行する画像処理とは異なる画像処理であれば、特に限定されない。
【2369】
例えば、画像生成部4104は、従来のクラス分類適応処理を行うことができる。このクラス分類適応処理を実行する画像生成部4104の構成例が、図293に示されている。なお、図293の説明、即ち、クラス分類適応処理を実行する画像生成部4104の詳細の説明については後述する。また、クラス分類適応処理についても、図293の説明をするときに併せて説明する。
【2370】
定常領域検出部4105には、領域検出部4111、およびセレクタ4112が設けられている。
【2371】
領域検出部4111は、データ定常性検出部4101より供給された領域特定情報に基づいて、セレクタ4112に供給された画像(注目画素)が、定常領域であるか、或いは非定常領域であるかを検出し、その検出結果をセレクタ4112に供給する。
【2372】
なお、領域検出部4111が実行する領域検出の処理は、特に限定されず、例えば、上述した推定誤差が領域特定情報として供給される場合、領域検出部4111は、供給された推定誤差が所定の閾値よりも小さいとき、入力画像の注目画素は定常領域であると検出し、一方、供給された推定誤差が所定の閾値以上であるとき、入力画像の注目画素は非定常領域であると検出する。
【2373】
セレクタ4112は、領域検出部4111より供給された検出結果に基づいて、画像生成部4103より供給された画像、または、画像生成部4104より供給された画像のうちのいずれか一方を選択し、選択した画像を出力画像として外部に出力する。
【2374】
即ち、領域検出部4111により注目画素が定常領域であると検出された場合、セレクタ4112は、画像生成部4103より供給された画像(入力画像の注目画素における、画像生成部4103により生成された画素)を出力画像として選択する。
【2375】
これに対して、領域検出部4111により注目画素が非定常領域であると検出された場合、セレクタ4112は、画像生成部4104より供給された画像(入力画像の注目画素における、画像生成部4104により生成された画素)を出力画像として選択する。
【2376】
なお、外部の出力先に応じて、セレクタ4112は、画素単位で、出力画像を出力する(選択した画素毎に出力する)こともできるし、全ての画素の処理が終了するまで処理済みの画素を格納しておき、全ての画素の処理が終了したとき、全ての画素を一括して(出力画像全体を1単位として)出力することもできる。
【2377】
次に、図293を参照して、画像処理の1例であるクラス分類適応処理を実行する画像生成部4104の詳細について説明する。
【2378】
図293において、画像生成部4104が実行するクラス分類適応処理は、例えば、入力画像の空間解像度を向上する処理であるとする。即ち、標準解像度の画像である入力画像を、高解像度の画像である予測画像に変換する処理であるとする。
【2379】
なお、以下の説明においても、標準解像度の画像を、適宜、SD(Standard Definition)画像と称するとともに、SD画像を構成する画素を、適宜、SD画素と称することにする。
【2380】
また、以下の説明においても、高解像度の画像を、適宜、HD(High Definition)画像と称するとともに、HD画像を構成する画素を、適宜、HD画素と称することにする。
【2381】
具体的には、画像生成部4104が実行するクラス分類適応処理とは、次のようなものである。
【2382】
即ち、はじめに、入力画像(SD画像)の注目画素(SD画素)における、予測画像(HD画像)のHD画素を求めるために、注目画素を含めた、その付近に配置されるSD画素(以下の説明においても、このようなSD画素を、クラスタップと称することにする)の特徴量のそれぞれを求めて、その特徴量毎に予め分類されたクラスを特定する(クラスタップ群のクラスコードを特定する)。
【2383】
そして、予め設定された複数の係数群(各係数群のそれぞれは、所定の1つのクラスコードに対応している)のうちの、特定されたクラスコードに対応する係数群を構成する各係数と、注目画素を含めた、その付近のSD画素(以下の説明においても、このような入力画像のSD画素を、予測タップと称することにする。なお、予測タップは、クラスタップと同じこともある)とを用いて積和演算を実行することで、入力画像(SD画像)の注目画素(SD画素)における、予測画像(HD画像)のHD画素を求めるものである。
【2384】
より詳細には、図1において、画像である、実世界1の信号(光の強度の分布)がセンサ2に入射されると、センサ2からは入力画像が出力される。
【2385】
図293において、この入力画像(SD画像)は、画像生成部4104のうちの領域抽出部4121と領域抽出部4125にそれぞれ供給される。領域抽出部4125は、供給された入力画像から、クラス分類を行うために必要なクラスタップ(注目画素(SD画素)を含む予め設定された位置に存在するSD画素)を抽出し、パターン検出部4122に出力する。パターン検出部4122は、入力されたクラスタップに基づいて入力画像のパターンを検出する。
【2386】
クラスコード決定部4123は、パターン検出部4122で検出されたパターンに基づいてクラスコードを決定し、係数メモリ4124、および、領域抽出部4125に出力する。係数メモリ4124は、学習により予め求められたクラスコード毎の係数を記憶しており、クラスコード決定部4123より入力されたクラスコードに対応する係数を読み出し、予測演算部4126に出力する。
【2387】
なお、係数メモリ4124の係数の学習処理については、図294の学習装置のブロック図を参照して後述する。
【2388】
また、係数メモリ4124に記憶される係数は、後述するように、予測画像(HD画像)を生成するときに使用される係数である。従って、以下、係数メモリ4124に記憶される係数を予測係数と称する。
【2389】
領域抽出部4125は、クラスコード決定部4123より入力されたクラスコードに基づいて、センサ2より入力された入力画像(SD画像)から、予測画像(HD画像)を予測生成するのに必要な予測タップ(注目画素を含む予め設定された位置に存在するSD画素)をクラスコードに対応して抽出し、予測演算部4126に出力する。
【2390】
予測演算部4126は、領域抽出部4125より入力された予測タップと、係数メモリ4124より入力された予測係数とを用いて積和演算を実行し、入力画像(SD画像)の注目画素(SD画素)における、予測画像(HD画像)のHD画素を生成し、セレクタ4112に出力する。
【2391】
より詳細には、係数メモリ4124は、クラスコード決定部4123より供給されるクラスコードに対応する予測係数を、予測演算部4126に出力する。予測演算部4126は、領域抽出部4125より供給される入力画像の所定の画素位置の画素値から抽出された予測タップと、係数メモリ4124より供給された予測係数とを用いて、次の式(237)で示される積和演算を実行することにより、予測画像(HD画像)のHD画素を求める(予測推定する)。
【2392】
【数188】
Figure 2004246526
Figure 2004246526
【2393】
式(237)において、q’は、予測画像(HD画像)のHD画素を表している。c(iは、1乃至nの整数値)のそれぞれは、予測タップ(SD画素)のそれぞれを表している。また、d のそれぞれは、予測係数のそれぞれを表している。
【2394】
このように、画像生成部4104は、SD画像(入力画像)から、それに対するHD画像を予測推定するので、ここでは、画像生成部4104から出力されるHD画像を、予測画像と称している。
【2395】
図294は、このような画像生成部4104の係数メモリ4124に記憶される予測係数(式(237)におけるd )を決定するための学習装置(予測係数の算出装置)を表している。
【2396】
図294において、所定の画像が、教師画像(HD画像)としてダウンコンバート部4141と正規方程式生成部4146のそれぞれに入力される。
【2397】
ダウンコンバート部4146は、入力された教師画像(HD画像)から、教師画像よりも解像度の低い生徒画像(SD画像)を生成し(教師画像をダウンコンバートしたものを生徒画像とし)、領域抽出部4142と領域抽出部4145のそれぞれに出力する。
【2398】
このように、学習装置4131には、ダウンコンバート部4141が設けられているので、教師画像(HD画像)は、センサ2(図1)からの入力画像よりも高解像度の画像である必要は無い。なぜならば、教師画像がダウンコンバートされた(解像度が下げられた)生徒画像をSD画像とすれば、生徒画像に対する教師画像がHD画像になるからである。従って、教師画像は、例えば、センサ2からの入力画像そのものとされてもよい。
【2399】
領域抽出部4142は、ダウンコンバート部4141より供給された生徒画像(SD画像)から、クラス分類を行うために必要なクラスタップ(SD画素)を抽出し、パターン検出部4143に出力する。パターン検出部4143は、入力されたクラスタップのパターンを検出し、その検出結果をクラスコード決定部4144に出力する。クラスコード決定部4144は、入力されたパターンに対応するクラスコードを決定し、そのクラスコードを領域抽出部4145、および、正規方程式生成部4146のそれぞれに出力する。
【2400】
領域抽出部4145は、クラスコード決定部4144より入力されたクラスコードに基づいて、ダウンコンバート部4141より入力された生徒画像(SD画像)から予測タップ(SD画素)を抽出し、正規方程式生成部4146に出力する。
【2401】
なお、以上の領域抽出部4142、パターン検出部4143、クラスコード決定部4144、および領域抽出部4145のそれぞれは、図293の画像生成部4104の領域抽出部4121、パターン検出部4122、クラスコード決定部4123、および、領域抽出部4125のそれぞれと、基本的に同様の構成と機能を有するものである。
【2402】
正規方程式生成部4146は、クラスコード決定部4144より入力された全てのクラスコードに対して、クラスコード毎に、領域抽出部4145より入力される生徒画像(SD画像)の予測タップ(SD画素)と、教師画像(HD画像)のHD画素とから正規方程式を生成し、係数決定部4147に供給する。
【2403】
係数決定部4147は、正規方程式生成部4146より所定のクラスコードに対応する正規方程式が供給されてきたとき、その正規方程式より予測係数のそれぞれを演算し、係数メモリ4124にクラスコードと関連付けて記憶させる。
【2404】
正規方程式生成部4146と、係数決定部4147についてさらに詳しく説明する。
【2405】
上述した式(237)において、学習前は予測係数dのそれぞれが未定係数である。学習は、クラスコード毎に複数の教師画像(HD画像)のHD画素を入力することによって行う。所定のクラスコードに対応するHD画素がm個存在し、m個のHD画素のそれぞれを、q(kは、1乃至mの整数値)と記述する場合、式(237)から、次の式(238)が設定される。
【2406】
【数189】
Figure 2004246526
Figure 2004246526
【2407】
即ち、式(238)は、右辺の演算をすることで、所定のHD画素qを予測推定することができることを表している。なお、式(238)において、eは、誤差を表している。即ち、右辺の演算結果である予測画像(HD画像)のHD画素q’が、実際のHD画素qと厳密には一致せず、所定の誤差eを含む。
【2408】
そこで、式(238)において、誤差eの自乗和を最小にする予測係数dが学習により求まれば、その予測係数dは、実際のHD画素qを予測するのに最適な係数であると言える。
【2409】
従って、例えば、学習により集められたm個(ただし、mは、nより大きい整数)のHD画素qを用いて、最小自乗法により最適な予測係数dを一意に決定することができる。
【2410】
即ち、式(238)の右辺の予測係数dを最小自乗法で求める場合の正規方程式は、次の式(239)で表される。
【2411】
【数190】
Figure 2004246526
Figure 2004246526
【2412】
従って、式(239)で示される正規方程式が生成されれば、その正規方程式を解くことで予測係数dが一意に決定されることになる。
【2413】
具体的には、式(239)で示される正規方程式の各行列のそれぞれを、次の式(240)乃至(242)のように定義すると、正規方程式は、次の式(243)のように表される。
【2414】
【数191】
Figure 2004246526
Figure 2004246526
【2415】
【数192】
Figure 2004246526
Figure 2004246526
【2416】
【数193】
Figure 2004246526
Figure 2004246526
【2417】
【数194】
Figure 2004246526
Figure 2004246526
【2418】
式(241)で示されるように、行列DMATの各成分は、求めたい予測係数dである。従って、式(243)において、左辺の行列CMATと右辺の行列QMATが決定されれば、行列解法によって行列DMAT(即ち、予測係数d)の算出が可能である。
【2419】
より具体的には、式(240)で示されるように、行列CMATの各成分は、予測タップcikが既知であれば演算可能である。予測タップcikは、領域抽出部4145により抽出されるので、正規方程式生成部4146は、領域抽出部4145より供給されてくる予測タップcikのそれぞれを利用して行列CMATの各成分を演算することができる。
【2420】
また、式(242)で示されるように、行列QMATの各成分は、予測タップcikとHD画素qが既知であれば演算可能である。予測タップcikは、行列CMATの各成分に含まれるものと同一のものであり、また、HD画素qは、予測タップcikに含まれる注目画素(生徒画像のSD画素)に対する教師画像のHD画素である。従って、正規方程式生成部4146は、領域抽出部4145より供給された予測タップcikと、教師画像を利用して行列QMATの各成分を演算することができる。
【2421】
このようにして、正規方程式生成部4146は、クラスコード毎に、行列CMATと行列QMATの各成分を演算し、その演算結果をクラスコードに対応付けて係数決定部4147に供給する。
【2422】
係数決定部4147は、供給された所定のクラスコードに対応する正規方程式に基づいて、上述した式(243)の行列DMATの各成分である予測係数dを演算する。
【2423】
具体的には、上述した式(243)の正規方程式は、次の式(244)のように変形できる。
【2424】
【数195】
Figure 2004246526
Figure 2004246526
【2425】
式(244)において、左辺の行列DMATの各成分が、求めたい予測係数dである。また、行列CMATと行列QMATのそれぞれの各成分は、正規方程式生成部4146より供給されるものである。従って、係数決定部4147は、正規方程式生成部4146より所定のクラスコードに対応する行列CMATと行列QMATのそれぞれの各成分が供給されてきたとき、式(244)の右辺の行列演算を行うことで行列DMATを演算し、その演算結果(予測係数d)をクラスコードに対応付けて係数メモリ4124に記憶させる。
【2426】
なお、クラス分類適応処理は、上述したように、SD画像には含まれていないが、HD画像に含まれる成分が再現される点で、例えば、単なる補間処理とは異なる。即ち、適応処理では、上述した式(237)だけを見る限りは、いわゆる補間フィルタを用いての補間処理と同一に見えるが、その補間フィルタの係数に相当する予測係数dが、教師データと生徒データを用いての学習により求められるため、HD画像に含まれる成分を再現することができる。このことから、上述したようなクラス分類適応処理は、いわば画像の創造(解像度創造)作用がある処理と称することができる。
【2427】
さらに、上述した例では、空間解像度を向上させる場合を例にして説明したが、クラス分類適応処理によれば、教師データおよび生徒データを変えて学習を行うことにより得られる種々の係数を用いることで、例えば、S/N(Signal to Noise Ratio) の向上や、ぼけの改善、その他の各種の処理を行うことが可能である。
【2428】
即ち、例えば、S/Nの向上やぼけの改善を、クラス分類適応処理によって行うには、S/Nの高い画像データを教師データとするとともに、その教師データのS/Nを低下させた画像(あるいは、ぼかした画像)を生徒データとして、係数を求めればよい。
【2429】
以上、クラス分類適応処理を実行する画像生成部4104と、その学習装置4131のそれぞれの構成について説明した。
【2430】
なお、上述したように、画像生成部4104は、クラス分類適応処理以外の画像処理を実行する構成とすることも可能であるが、説明の簡略上、以下の説明においては、画像生成部4104の構成は、上述した図293の構成とされる。即ち、以下、画像生成部4104は、クラス分類適応処理を実行することで、入力画像より空間解像度の高い画像を生成し、セレクタ4112に供給するとする。
【2431】
次に、図295を参照して、第1の併用手法が適用される信号処理装置(図292)の信号の処理について説明する。
【2432】
なお、ここでは、データ定常性検出部4101は、角度(画像である、実世界1(図1)の信号の注目位置における、定常性の方向(空間方向)と、空間方向の1方向であるX方向(センサ2(図1)の検出素子の所定の一辺と平行な方向)とのなす角度)を最小自乗法により演算し、演算した角度をデータ定常性情報として出力するとする。
【2433】
データ定常性検出部4101はまた、角度を演算するときに併せて算出される推定誤差(最小自乗法の誤差)を、領域特定情報として出力するとする。
【2434】
図1において、画像である、実世界1の信号がセンサ2に入射されると、センサ2からは入力画像が出力される。
【2435】
図292において、この入力画像は、データ定常性検出部4101、および実世界推定部4102に入力されるとともに、画像生成部4104に入力される。
【2436】
そこで、図295のステップS4101において、画像生成部4104は、入力画像(SD画像)の所定のSD画素を注目画素として、上述したクラス分類適応処理を実行し、予測画像(HD画像)のHD画素(注目画素におけるHD画素)を生成し、セレクタ4112に供給する。
【2437】
なお、以下、画像生成部4104より出力される画素と、画像生成部4103より出力される画素のそれぞれを区別する場合、画像生成部4104より出力される画素を第1の画素と称し、画像生成部4103より出力される画素を第2の画素と称する。
【2438】
また、以下、このような画像生成部4104が実行する処理(いまの場合、ステップS4101の処理)を、「クラス分類適応処理の実行処理」と称する。この例の「クラス分類適応処理の実行処理」の詳細については、図296のフローチャートを参照して後述する。
【2439】
一方、ステップS4102において、データ定常性検出部4101は、定常性の方向に対応する角度を検出するとともに、その推定誤差を演算する。検出された角度は、データ定常性情報として実世界推定部4102と画像生成部4103のそれぞれに供給される。また、演算された推定誤差は、領域特定情報として領域検出部4111に供給される。
【2440】
ステップS4103において、実世界推定部4102は、データ定常性検出部4101により検出された角度と、入力画像に基づいて、実世界1の信号を推定する。
【2441】
なお、上述したように、実世界推定部4102が実行する推定の処理は、特に限定されず、上述した様々な手法を利用することができる。ここでは、例えば、実世界推定部4102は、実世界1の信号を表す関数F(以下の説明においても、関数Fを光信号関数Fと称することにする)を、所定の関数f(以下の説明においても、関数fを近似関数fと称することにする)で近似することで、実世界1の信号(光信号関数F)を推定するとする。
【2442】
また、ここでは、例えば、実世界推定部4102は、近似関数fの特徴量(係数)を、実世界推定情報として画像生成部4103に供給するとする。
【2443】
ステップS4104において、画像生成部4103は、実世界推定部4102により推定された実世界1の信号に基づいて、画像生成部4104のクラス分類適応処理により生成された第1の画素(HD画素)に対応する第2の画素(HD画素)を生成し、セレクタ4112に供給する。
【2444】
いまの場合、実世界推定部4102より近似関数fの特徴量(係数)が供給されてくるので、画像生成部4103は、例えば、供給された近似関数fの特徴量に基づいて、近似関数fを所定の積分範囲で積分することで、第2の画素(HD画素)を生成する。
【2445】
ただし、積分範囲は、画像生成部4104より出力される第1の画素(HD画素)と同一の大きさ(同一の解像度)の第2の画素が生成可能な範囲とされる。即ち、空間方向においては、積分範囲は、これから生成される第2の画素の画素幅となる。
【2446】
なお、ステップS4101の「クラス分類適応処理の実行処理」と、ステップS4102乃至S4104の一連の処理の順番は、図295の例に限定されず、ステップS4102乃至S4104の一連の処理が先に実行されても構わないし、ステップS4101の「クラス分類適応処理の実行処理」と、ステップS4102乃至S4104の一連の処理が同時に実行されても構わない。
【2447】
ステップS4105において、領域検出部4111は、ステップS4102の処理でデータ定常性検出部4101により演算された推定誤差(領域特定情報)に基づいて、ステップS4104の処理で画像生成部4103により生成された第2の画素(HD画素)の領域を検出する。
【2448】
即ち、第2の画素は、データ定常性検出部4101が注目画素として使用した入力画像のSD画素におけるHD画素である。従って、注目画素(入力画像のSD画素)と第2の画素(HD画素)の領域の種類(定常領域、または非定常領域)は同一である。
【2449】
また、データ定常性検出部4101が出力する領域特定情報は、注目画素における角度が最小自乗法により算出された場合の推定誤差である。
【2450】
そこで、領域検出部4111は、データ定常性検出部4101より供給された注目画素(入力画像のSD画素)に対する推定誤差と、予め設定された閾値を比較し、その比較の結果が、推定誤差が閾値よりも小さい場合、第2の画素は定常領域であると検出し、一方、推定誤差が閾値以上である場合、第2の画素は非定常領域であると検出する。そして、検出結果は、セレクタ4112に供給される。
【2451】
この領域検出部4111の検出結果がセレクタ4112に供給されると、ステップS4106において、セレクタ4112は、検出された領域が、定常領域であるか否かを判定する。
【2452】
ステップS4106において、検出された領域が、定常領域であると判定した場合、セレクタ4112は、ステップS4107において、画像生成部4103より供給された第2の画素を、出力画像として外部に出力する。
【2453】
これに対して、ステップS4106において、検出された領域が、定常領域ではない(非定常領域である)と判定した場合、セレクタ4112は、ステップS4108において、画像生成部4104より供給された第1の画素を、出力画像として外部に出力する。
【2454】
その後、ステップS4109において、全画素の処理を終了したか否かが判定され、全画素の処理がまだ終了していないと判定された場合、その処理は、ステップS4101に戻る。即ち、全ての画素の処理が終了されるまで、ステップS4101乃至S4109の処理が繰り返される。
【2455】
そして、ステップS4109において、全画素の処理を終了したと判定された場合、その処理は終了となる。
【2456】
このように、図295のフローチャートの例においては、第1の画素(HD画素)と第2の画素(HD画素)が生成される毎に、出力画像として第1の画素または第2の画素が画素単位で出力される。
【2457】
しかしながら、上述したように、画素単位で出力されることは必須ではなく、全ての画素の処理が終了された後、出力画像として、全ての画素が一括して出力されてもよい。この場合、ステップS4107とステップS4108のそれぞれの処理においては、画素(第1の画素または第2の画素)は出力されずに、セレクタ4112に一次格納され、ステップS4109の処理の後、全ての画素を出力する処理が追加される。
【2458】
次に、図296のフローチャートを参照して、図293の構成の画像生成部4104が実行する「クラス分類適応処理の実行処理」(例えば、上述した図295のステップS4101の処理)の詳細について説明する。
【2459】
センサ2からの入力画像(SD画像)が画像生成部4104に入力されると、ステップS4121において、領域抽出部4121と領域抽出部4125のそれぞれは、入力画像を入力する。
【2460】
ステップS4122において、領域抽出部4121は、入力画像の中から、注目画素(SD画素)、および、予め設定された注目画素からの相対位置(1以上の位置)のそれぞれに位置する画素(SD画素)を、クラスタップとして抽出し、パターン検出部4122に供給する。
【2461】
ステップS4123において、パターン検出部4122は、供給されたクラスタップのパターンを検出し、クラスコード決定部4123に供給する。
【2462】
ステップS4124において、クラスコード決定部4123は、予め設定されている複数のクラスコードの中から、供給されたクラスタップのパターンに適合するクラスコードを決定し、係数メモリ4124と領域抽出部4125のそれぞれに供給する。
【2463】
ステップS4125において、係数メモリ4124は、供給されたクラスコードに基づいて、予め学習処理により決定された複数の予測係数(群)の中から、これから使用する予測係数(群)を読み出し、予測演算部4126に供給する。
【2464】
なお、学習処理については、図297のフローチャートを参照して後述する。
【2465】
ステップS4126において、領域抽出部4125は、供給されたクラスコードに対応して、入力画像の中から、注目画素(SD画素)、および、予め設定された注目画素からの相対位置(1以上の位置であって、クラスタップの位置とは独立して設定された位置。ただし、クラスタップの位置と同一の位置でもよい)のそれぞれに位置する画素(SD画素)を、予測タップとして抽出し、予測演算部4126に供給する。
【2466】
ステップS4127において、予測演算部4126は、領域抽出部4125より供給された予測タップを、係数メモリ4124より供給された予測係数を用いて演算し、予測画像(第1の画素)を生成して外部(図292の例では、セレクタ4112)に出力する。
【2467】
具体的には、予測演算部4126は、領域抽出部4125より供給された予測タップのそれぞれをc(iは、1乃至nのうちのいずれかの整数)とし、かつ、係数メモリ4124より供給された予測係数のそれぞれをdとして、上述した式(237)の右辺を演算することにより、注目画素(SD画素)におけるHD画素q’を算出し、それを予測画像(HD画像)の所定の1つの画素(第1の画素)として外部に出力する。その後、処理は終了となる。
【2468】
次に、図297のフローチャートを参照して、画像生成部4104に対する学習装置4131(図294)が実行する学習処理(画像生成部4104が使用する予測係数を学習により生成する処理)について説明する。
【2469】
ステップS4141において、ダウンコンバート部4141と正規方程式生成部4146のそれぞれは、供給された所定の画像を、教師画像(HD画像)として入力する。
【2470】
ステップS4142において、ダウンコンバート部4141は、入力された教師画像をダウンコンバートして(解像度を落として)生徒画像(SD画像)を生成し、領域抽出部4142と領域抽出部4145のそれぞれに供給する。
【2471】
ステップS4143において、領域抽出部4142は、供給された生徒画像からクラスタップを抽出してパターン検出部4143に出力する。なお、ステップS4143の処理は、上述したステップS4122(図296)の処理と基本的に同様の処理である。
【2472】
ステップS4144において、パターン検出部4143は、供給されたクラスタップよりクラスコードを決定するためのパターンを検出し、クラスコード決定部4144に供給する。なお、ステップS4144の処理は、上述したステップS4123(図296)の処理と基本的に同様の処理である。
【2473】
ステップS4145において、クラスコード決定部4144は、供給されたクラスタップのパターンに基づいてクラスコードを決定し、領域抽出部4145と正規方程式生成部4146のそれぞれに供給する。なお、ステップS4145の処理は、上述したステップS4124(図296)の処理と基本的に同様の処理である。
【2474】
ステップS4146において、領域抽出部4145は、供給されたクラスコードに対応して、生徒画像の中から予測タップを抽出し、正規方程式生成部4146に供給する。なお、ステップS4146の処理は、上述したステップS4126(図296)の処理と基本的に同様の処理である。
【2475】
ステップS4147において、正規方程式生成部4146は、領域抽出部4145より供給された予測タップ(SD画素)、および、教師画像(HD画像)の所定のHD画素から、上述した式(239)(即ち、式(243))で示される正規方程式を生成し、生成した正規方程式と、クラスコード決定部4144より供給されたクラスコードを関連付けて係数決定部4147に供給する。
【2476】
ステップS4148において、係数決定部4147は、供給された正規方程式を解いて予測係数を決定し、即ち、上述した式(244)の右辺を演算することで予測係数を算出し、供給されたクラスコードに対応付けて係数メモリ4124に記憶させる。
【2477】
その後、ステップS4149において、全ての画素について処理が施されたか否かが判定され、全ての画素について処理が施されていないと判定された場合、その処理は、ステップS4143に戻る。即ち、全ての画素の処理が終了されるまで、ステップS4143乃至S4149の処理が繰り返される。
【2478】
そして、ステップS4149において、全ての画素について処理が施されたと判定された場合、処理は終了となる。
【2479】
次に、図298と図299を参照して、第2の併用手法について説明する。
【2480】
図298は、第2の併用手法が適用される信号処理装置の構成例を表している。
【2481】
図298において、第1の併用手法が適用される信号処理装置(図292)と対応する部分には、対応する符号が付してある。
【2482】
図292の構成例(第1の併用手法)においては、領域特定情報は、データ定常性検出部4101より出力され、領域検出部4111に入力されていたが、図298の構成例(第2の併用手法)においては、領域特定情報は、実世界推定部4102より出力され、領域検出部4111に入力される。
【2483】
この領域特定情報は、特に限定されず、実世界推定部4102が実世界1(図1)の信号を推定した後に新たに生成された情報でもよいし、実世界1の信号が推定される場合に付帯して生成される情報でもよい。
【2484】
具体的には、例えば、領域特定情報として、推定誤差が使用可能である。
【2485】
ここで、推定誤差について説明する。
【2486】
上述したように、データ定常性検出部4101より出力される推定誤差(図292の領域特定情報)は、例えば、データ定常性検出部4101より出力されるデータ定常性情報が角度であり、かつ、その角度が最小自乗法により演算される場合、その最小自乗法の演算で付帯的に算出される推定誤差である。
【2487】
これに対して、実世界推定部4102より出力される推定誤差(図298の領域特定情報)は、例えば、マッピング誤差である。
【2488】
即ち、実世界推定部4102により実世界1の信号が推定されているので、推定された実世界1の信号から任意の大きさの画素を生成する(画素値を演算する)ことが可能である。ここでは、このように、新たな画素を生成することを、マッピングと称している。
【2489】
従って、実世界推定部4102は、実世界1の信号を推定した後、その推定した実世界1の信号から、入力画像の注目画素(実世界1が推定される場合に注目画素として使用された画素)が配置されていた位置における新たな画素を生成する(マッピングする)。即ち、実世界推定部4102は、推定した実世界1の信号から、入力画像の注目画素の画素値を予測演算する。
【2490】
そして、実世界推定部4102は、マッピングした新たな画素の画素値(予測した入力画像の注目画素の画素値)と、実際の入力画像の注目画素の画素値との差分を演算する。この差分を、ここでは、マッピング誤差と称している。
【2491】
このようにして実世界推定部4102は、マッピング誤差(推定誤差)を演算することで、演算したマッピング誤差(推定誤差)を、領域特定情報として領域検出部4111に供給することができる。
【2492】
なお、領域検出部4111が実行する領域検出の処理は、上述したように、特に限定されないが、例えば、実世界推定部4102が、上述したマッピング誤差(推定誤差)を領域特定情報として領域検出部4111に供給する場合、領域検出部4111は、供給されたマッピング誤差(推定誤差)が所定の閾値よりも小さいとき、入力画像の注目画素は定常領域であると検出し、一方、供給されたマッピング誤差(推定誤差)が所定の閾値以上であるとき、入力画像の注目画素は非定常領域であると検出する。
【2493】
その他の構成は、図292のそれと基本的に同様である。即ち、第2の併用手法が適用される信号処理装置(図298)においても、第1の併用手法が適用される信号処理装置(図292)と基本的に同様の構成と機能を有する、データ定常性検出部4101、実世界推定部4102、画像生成部4103、画像生成部4104、並びに定常領域検出部4105(領域検出部4111およびセレクタ4112)が設けられている。
【2494】
図299は、図298の構成の信号処理装置の信号の処理(第2の併用手法の信号の処理)を説明するフローチャートである。
【2495】
第2の併用手法の信号の処理は、第1の併用手法の信号の処理(図295のフローチャートで示される処理)と類似している。そこで、ここでは、第1の併用手法において説明した処理については、その説明を適宜省略し、以下、図299のフローチャートを参照して、第1の併用手法とは異なる第2の併用手法の信号の処理を中心に説明する。
【2496】
なお、ここでは、データ定常性検出部4101は、第1の併用手法と同様に、角度(実世界1(図1)の信号の注目位置における、定常性の方向(空間方向)と、空間方向の1方向であるX方向(センサ2(図1)の検出素子の所定の一辺と平行な方向)とのなす角度)を最小自乗法により演算し、演算した角度をデータ定常性情報として出力するとする。
【2497】
ただし、上述したように、第1の併用手法においては、データ定常性検出部4101が領域特定情報(例えば、推定誤差)を領域検出部4111に供給していたのに対して、第2の併用手法においては、実世界推定部4102が領域特定情報(例えば、推定誤差(マッピング誤差))を領域検出部4111に供給する。
【2498】
従って、第2の併用手法においては、データ定常性検出部4101の処理として、ステップS4162の処理が実行される。この処理は、第1の併用手法における、図295のステップS4102の処理に相当する。即ち、ステップS4162において、データ定常性検出部4101は、入力画像に基づいて、定常性の方向に対応する角度を検出し、検出した角度をデータ定常性情報として、実世界推定部4102と画像生成部4103のそれぞれに供給する。
【2499】
また、第2の併用手法においては、実世界推定部4102の処理として、ステップS4163の処理が実行される。この処理は、第1の併用手法における、図295のステップS4103の処理に相当する。即ち、ステップS4163において、実世界推定部4102は、ステップS4162の処理でデータ定常性検出部4101により検出された角度に基づいて、実世界1(図1)の信号を推定するとともに、推定された実世界1の信号の推定誤差、即ち、マッピング誤差を演算し、それを領域特定情報として領域検出部4111に供給する。
【2500】
その他の処理は、第1の併用手法の対応する処理(図295のフローチャートで示される処理のうちの対応する処理)と基本的に同様であるので、その説明は省略する。
【2501】
次に、図300と図301を参照して、第3の併用手法について説明する。
【2502】
図300は、第3の併用手法が適用される信号処理装置の構成例を表している。
【2503】
図300において、第1の併用手法が適用される信号処理装置(図292)と対応する部分には、対応する符号が付してある。
【2504】
図292の構成例(第1の併用手法)においては、定常領域検出部4105は、画像生成部4103と画像生成部4104の後段に配設されていたが、図300の構成例(第3の併用手法)においては、それに対応する定常領域検出部4161が、データ定常性検出部4101の後段であって、実世界推定部4102と画像生成部4104の前段に配設されている。
【2505】
このような配設位置の違いにより、第1の併用手法における定常領域検出部4105と、第3の併用手法における定常領域検出部4161は若干差異がある。そこで、この差異を中心に、定常領域検出部4161について説明する。
【2506】
定常領域検出部4161には、領域検出部4171と実行指令生成部4172が設けられている。このうちの領域検出部4171は、定常領域検出部4105の領域検出部4111(図292)と基本的に同様の構成と機能を有している。一方、実行指令生成部4172の機能は、定常領域検出部4105のセレクタ4112(図292)のそれと若干差異がある。
【2507】
即ち、上述したように、第1の併用手法におけるセレクタ4112は、領域検出部4111の検出結果に基づいて、画像生成部4103からの画像と、画像生成部4104からの画像のうちのいずれか一方を選択し、選択した画像を出力画像として出力する。このように、セレクタ4112は、領域検出部4111の検出結果の他に、画像生成部4103からの画像と、画像生成部4104からの画像を入力し、出力画像を出力する。
【2508】
一方、第3の併用手法における実行指令生成部4172は、領域検出部4171の検出結果に基づいて、入力画像の注目画素(データ定常性検出部4101が注目画素とした画素)における新たな画素の生成の処理を実行するのは、画像生成部4103であるのか画像生成部4104であるのかを選択する。
【2509】
即ち、領域検出部4171が、入力画像の注目画素は定常領域であるという検出結果を実行指令生成部4172に供給した場合、実行指令生成部4172は、画像生成部4103を選択し、実世界推定部4102に対して、その処理の実行を開始させる指令(このような指令を、以下、実行指令と称する)を供給する。すると、実世界推定部4102が、その処理を開始し、実世界推定情報を生成し、画像生成部4103に供給する。画像生成部4103は、供給された実世界推定情報(必要に応じて、それに加えてデータ定常性検出部4101より供給されたデータ定常性情報)に基づいて新たな画像を生成し、それを出力画像として外部に出力する。
【2510】
これに対して、領域検出部4171が、入力画像の注目画素は非定常領域であるという検出結果を実行指令生成部4172に供給した場合、実行指令生成部4172は、画像生成部4104を選択し、画像生成部4104に対して実行指令を供給する。すると、画像生成部4104が、その処理を開始し、入力画像に対して所定の画像処理(いまの場合、クラス分類適応処理)を施して、新たな画像を生成し、それを出力画像として外部に出力する。
【2511】
このように、第3の併用手法における実行指令生成部4172は、領域検出部4171の検出結果を入力し、実行指令を出力する。即ち、実行指令生成部4172は、画像を入出力しない。
【2512】
なお、定常領域検出部4161以外の構成は、図292のそれと基本的に同様である。即ち、第2の併用手法が適用される信号処理装置(図300の信号処理装置)においても、第1の併用手法が適用される信号処理装置(図292)と基本的に同様の構成と機能を有する、データ定常性検出部4101、実世界推定部4102、画像生成部4103、および、画像生成部4104が設けられている。
【2513】
ただし、第3の併用手法においては、実世界推定部4102と画像生成部4104のそれぞれは、実行指令生成部4172からの実行指令が入力されない限り、その処理を実行しない。
【2514】
ところで、図300の例では、画像の出力単位は画素単位とされている。そこで、図示はしないが、出力単位を1フレームの画像全体とするために(全ての画素を一括して出力するために)、例えば、画像生成部4103と画像生成部4104の後段に、画像合成部をさらに設けることもできる。
【2515】
この画像合成部は、画像生成部4103から出力された画素値と、画像生成部4104より出力された画素値を加算し(合成し)、加算した値を対応する画素の画素値とする。この場合、画像生成部4103と画像生成部4104のうちの、実行指令が供給されていない方は、その処理を実行せず、所定の一定値(例えば、0)を画像合成部に常時供給する。
【2516】
画像合成部は、このような処理を全ての画素について繰り返し実行し、全ての画素の処理を終了すると、全ての画素を一括して(1フレームの画像データとして)外部に出力する。
【2517】
次に、図301のフローチャートを参照して、第3の併用手法が適用される信号処理装置(図300)の信号の処理について説明する。
【2518】
なお、ここでは、第1の併用手法のときと同様に、データ定常性検出部4101は、角度(実世界1(図1)の信号の注目位置における、定常性の方向(空間方向)と、空間方向の1方向であるX方向(センサ2(図1)の検出素子の所定の一辺と平行な方向)とのなす角度)を最小自乗法により演算し、演算した角度をデータ定常性情報として出力するとする。
【2519】
データ定常性検出部4101はまた、角度を演算するときに併せて算出される推定誤差(最小自乗法の誤差)を、領域特定情報として出力するとする。
【2520】
図1において、実世界1の信号がセンサ2に入射されると、センサ2からは入力画像が出力される。
【2521】
図300において、この入力画像は、画像生成部4104に入力されるとともに、データ定常性検出部4101、および実世界推定部4102にも入力される。
【2522】
そこで、図301のステップS4181において、データ定常性検出部4101は、入力画像に基づいて、定常性の方向に対応する角度を検出するとともに、その推定誤差を演算する。検出された角度は、データ定常性情報として実世界推定部4102と画像生成部4103のそれぞれに供給される。また、演算された推定誤差は、領域特定情報として領域検出部4171に供給される。
【2523】
なお、ステップS4181の処理は、上述したステップS4102(図295)の処理と基本的に同様の処理である。
【2524】
また、上述したように、いまの時点においては(実行指令生成部4172から実行指令が供給されない限り)、実世界推定部4102も画像生成部4104もその処理を実行しない。
【2525】
ステップS4182において、領域検出部4171は、データ定常性検出部4101により演算された推定誤差(供給された領域特定情報)に基づいて、入力画像の注目画素(データ定常性検出部4101が角度を検出する場合に注目画素とした画素)の領域を検出し、その検出結果を実行指令生成部4172に供給する。なお、ステップS4182の処理は、上述したステップS4105(図295)の処理と基本的に同様の処理である。
【2526】
領域検出部4171の検出結果が実行指令生成部4172に供給されると、ステップS4183において、実行指令生成部4172は、検出された領域が、定常領域であるか否かを判定する。なお、ステップS4183の処理は、上述したステップS4106(図295)の処理と基本的に同様の処理である。
【2527】
ステップS4183において、検出された領域が定常領域ではないと判定した場合、実行指令生成部4172は、実行指令を画像生成部4104に供給する。すると、画像生成部4104は、ステップS4184において、「クラス分類適応処理の実行処理」を実行して、第1の画素(注目画素(入力画像のSD画素)におけるHD画素)を生成し、ステップS4185において、クラス分類適応処理により生成された第1の画素を、出力画像として外部に出力する。
【2528】
なお、ステップS4184の処理は、上述したステップS4101(図295)の処理と基本的に同様の処理である。即ち、図296のフローチャートは、ステップS4184の処理の詳細を説明するフローチャートでもある。
【2529】
これに対して、ステップS4183において、検出された領域が定常領域であると判定した場合、実行指令生成部4172は、実行指令を実世界推定部4102に供給する。すると、ステップS4186において、実世界推定部4102は、データ定常性検出部4101により検出された角度と、入力画像に基づいて、実世界1の信号を推定する。なお、ステップS4186の処理は、上述したステップS4103(図295)の処理と基本的に同様の処理である。
【2530】
そして、画像生成部4103は、ステップS4187において、実世界推定部4102により推定された実世界1の信号に基づいて、検出された領域(即ち、入力画像の注目画素(SD画素))における第2の画素(HD画素)を生成し、ステップS4188において、その第2の画素を出力画像として出力する。なお、ステップS4187の処理は、上述したステップS4104(図295)の処理と基本的に同様の処理である。
【2531】
第1の画素または第2の画素が出力画像として出力されると(ステップS4185、またはステップS4188の処理の後)、ステップS4189において、全画素の処理を終了したか否かが判定され、全画素の処理がまだ終了していないと判定された場合、その処理は、ステップS4181に戻る。即ち、全ての画素の処理が終了されるまで、ステップS4181乃至S4189の処理が繰り返される。
【2532】
そして、ステップS4189において、全画素の処理を終了したと判定された場合、その処理は終了となる。
【2533】
このように、図301のフローチャートの例においては、第1の画素(HD画素)と第2の画素(HD画素)が生成される毎に、出力画像として第1の画素または第2の画素が画素単位で出力される。
【2534】
しかしながら、上述したように、図300の構成の信号処理装置の最終段(画像生成部4103と画像生成部4104の後段)に画像合成部(図示せず)をさらに設ければ、全ての画素の処理が終了された後、出力画像として、全ての画素を一括して出力することが可能になる。この場合、ステップS4185とステップS4188のそれぞれに処理においては、画素(第1の画素または第2の画素)は外部ではなく画像合成部に出力される。そして、ステップS4189の処理の前に、画像合成部が、画像生成部4103から供給される画素の画素値と、画像生成部4104から供給される画素の画素値を合成して、出力画像の画素を生成する処理と、ステップS4189の処理の後に、画像合成部が、全ての画素を出力する処理が追加される。
【2535】
次に、図302と図303を参照して、第4の併用手法について説明する。
【2536】
図302は、第4の併用手法が適用される信号処理装置の構成例を表している。
【2537】
図302において、第3の併用手法が適用される信号処理装置(図300)と対応する部分には、対応する符号が付してある。
【2538】
図300の構成例(第3の併用手法)においては、領域特定情報は、データ定常性検出部4101より出力され領域検出部4171に入力されていたが、図302の構成例(第4の併用手法)においては、領域特定情報は、実世界推定部4102より出力され領域検出部4171に入力される。
【2539】
その他の構成は、図300のそれと基本的に同様である。即ち、第4の併用手法が適用される信号処理装置(図302)においても、第3の併用手法が適用される信号処理装置(図300)と基本的に同様の構成と機能を有する、データ定常性検出部4101、実世界推定部4102、画像生成部4103、画像生成部4104、並びに定常領域検出部4161(領域検出部4171および実行指令生成部4172)が設けられている。
【2540】
なお、第3の併用方法と同様に、図示はしないが、全ての画素を一括して出力するために、例えば、画像生成部4103と画像生成部4104の後段に、画像合成部をさらに設けることもできる。
【2541】
図303は、図302の構成の信号処理装置の信号の処理(第4の併用手法の信号の処理)を説明するフローチャートである。
【2542】
第4の併用手法の信号の処理は、第3の併用手法の信号の処理(図301のフローチャートで示される処理)と類似している。そこで、ここでは、第3の併用手法において説明した処理については、その説明を適宜省略し、以下、図303のフローチャートを参照して、第3の併用手法とは異なる第4の併用手法の信号の処理を中心に説明する。
【2543】
なお、ここでは、データ定常性検出部4101は、第3の併用手法と同様に、角度(実世界1(図1)の信号の注目位置における、定常性の方向(空間方向)と、空間方向の1方向であるX方向(センサ2(図1)の検出素子の所定の一辺と平行な方向)とのなす角度)を最小自乗法により演算し、演算した角度をデータ定常性情報として出力するとする。
【2544】
ただし、上述したように、第3の併用手法においては、データ定常性検出部4101が領域特定情報(例えば、推定誤差)を領域検出部4171に供給していたのに対して、第4の併用手法においては、実世界推定部4102が領域特定情報(例えば、推定誤差(マッピング誤差))を領域検出部4171に供給する。
【2545】
従って、第4の併用手法においては、データ定常性検出部4101の処理として、ステップS4201の処理が実行される。この処理は、第3の併用手法における、図301のステップS4181の処理に相当する。即ち、ステップS4201において、データ定常性検出部4101は、入力画像に基づいて、定常性の方向に対応する角度を検出し、検出した角度をデータ定常性情報として、実世界推定部4102と画像生成部4103のそれぞれに供給する。
【2546】
また、第4の併用手法においては、実世界推定部4102の処理として、ステップS4202の処理が実行される。この処理は、第3の併用手法における、図295のステップS4182の処理に相当する。即ち、実世界推定部4102は、ステップS4202の処理でデータ定常性検出部4101により検出された角度に基づいて、実世界1(図1)の信号を推定するとともに、推定された実世界1の信号の推定誤差、即ち、マッピング誤差を演算し、それを領域特定情報として領域検出部4171に供給する。
【2547】
その他の処理は、第3の併用手法の対応する処理(図301のフローチャートで示される処理のうちの対応する処理)と基本的に同様であるので、その説明は省略する。
【2548】
次に、図304と図305を参照して、第5の併用手法について説明する。
【2549】
図304は、第5の併用手法が適用される信号処理装置の構成例を表している。
【2550】
図304において、第3と第4の併用手法が適用される信号処理装置(図300と図302)と対応する部分には、対応する符号が付してある。
【2551】
図300の構成例(第3の併用手法)においては、データ定常性検出部4101の後段であって、実世界推定部4102と画像生成部4104の前段に、1つの定常領域検出部4161が配設されている。
【2552】
また、図302の構成例(第4の併用手法)においては、実世界推定部4102の後段であって、画像生成部4103と画像生成部4104の前段に、1つの定常領域検出部4161が配設されている。
【2553】
これらに対して、図304の構成例(第5の併用手法)においては、第3の併用方法と同様に、データ定常性検出部4101の後段であって、実世界推定部4102と画像生成部4104の前段に、定常領域検出部4181が配設されている。さらに、第4の併用方法と同様に、実世界推定部4102の後段であって、画像生成部4103と画像生成部4104の前段に、定常領域検出部4182が配設されている。
【2554】
定常領域検出部4181と定常領域検出部4182のそれぞれは、定常領域検出部4161(図300または図302)と基本的に同様の構成と機能を有している。即ち、領域検出部4191と領域検出部4201はいずれも、領域検出部4171と基本的に同様の構成と機能を有している。また、実行指令生成部4192と実行指令生成部4202はいずれも、実行指令生成部4172と基本的に同様の構成と機能を有している。
【2555】
換言すると、第5の併用手法は、第3の併用手法と第4の併用手法を組み合わせたものである。
【2556】
即ち、第3の併用手法や第4の併用手法においては、1つの領域特定情報(第3の併用手法においては、データ定常性検出部4101からの領域特定情報であり、第4の併用手法においては、実世界推定部4102からの領域特定情報である)に基づいて、入力画像の注目画素が定常領域であるか非定常領域であるかが検出される。従って、第3の併用手法や第4の併用手法では、本来、非定常領域であるにも関わらず、定常領域であると検出される恐れもある。
【2557】
そこで、第5の併用手法においては、はじめにデータ定常性検出部4101からの領域特定情報(第5の併用手法の説明においては、第1の領域特定情報と称する)に基づいて、入力画像の注目画素が定常領域であるか非定常領域であるかが検出された後、さらに、実世界推定部4102からの領域特定情報(第5の併用手法の説明においては、第2の領域特定情報と称する)に基づいて、入力画像の注目画素が定常領域であるか非定常領域であるかが検出される。
【2558】
このように、第5の併用手法においては、領域の検出の処理が2回行われるので、第3の併用手法や第4の併用手法に比較して、定常領域の検出精度が上がることになる。さらに、第1の併用手法や第2の併用手法においても、第3の併用手法や第4の併用手法と同様に、1つの定常領域検出部4105(図292または図298)しか設けられていない。従って、第1の併用手法や第2の併用手法と比較しても、定常領域の検出精度が上がることになる。その結果、第1乃至第4の併用手法のいずれよりも実世界1(図1)の信号に近い画像データを出力することが可能になる。
【2559】
ただし、第1乃至第4の併用手法でも、従来の画像処理を行う画像生成部4104と、本発明が適用されるデータの定常性を利用して画像を生成する装置またはプログラム等(即ち、データ定常性検出部4101、実世界推定部4102、および、画像生成部4103)を併用していることに変わりはない。
【2560】
従って、第1乃至第4の併用手法でも、従来の信号処理装置や、図3の構成の本発明の信号処理のいずれよりも実世界1(図1)の信号に近い画像データを出力することが可能になる。
【2561】
一方、処理速度の観点からは、第1乃至第4の併用手法においては、領域の検出の処理が1回だけで済むので、領域の検出の処理を2回行う第5の併用手法よりも優れていることになる。
【2562】
従って、ユーザ(または製造者)等は、必要とされる出力画像の品質と、必要とされる処理時間(出力画像が出力されるまでの時間)に合致した併用手法を選択的に利用することができる。
【2563】
なお、図304におけるその他の構成は、図300、または、図302のそれと基本的に同様である。即ち、第5の併用手法が適用される信号処理装置(図304)においても、第3または第4の併用手法が適用される信号処理装置(図300、または図302)と基本的に同様の構成と機能を有する、データ定常性検出部4101、実世界推定部4102、画像生成部4103、および画像生成部4104が設けられている。
【2564】
ただし、第5の併用手法においては、実世界推定部4102は、実行指令生成部4192からの実行指令が入力されない限り、画像生成部4103は、実行指令生成部4202からの実行指令が入力されない限り、画像生成部4104は、実行指令生成部4192、または実行指令生成部4202からの実行指令が入力されない限り、その処理を実行しない。
【2565】
また、第5の併用手法においても、第3や第4の併用方法と同様に、図示はしないが、全ての画素を一括して出力するために、例えば、画像生成部4103と画像生成部4104の後段に、画像合成部をさらに設けることもできる。
【2566】
次に、図305のフローチャートを参照して、第5の併用手法が適用される信号処理装置(図304)の信号の処理について説明する。
【2567】
なお、ここでは、第3や第4の併用手法のときと同様に、データ定常性検出部4101は、角度(実世界1(図1)の信号の注目位置における、定常性の方向(空間方向)と、空間方向の1方向であるX方向(センサ2(図1)の検出素子の所定の一辺と平行な方向)とのなす角度)を最小自乗法により演算し、演算した角度をデータ定常性情報として出力するとする。
【2568】
また、ここでは、第3の併用手法のときと同様に、データ定常性検出部4101はまた、角度を演算するときに併せて算出される推定誤差(最小自乗法の誤差)を、第1の領域特定情報として出力するとする。
【2569】
さらに、ここでは、第4の併用手法のときと同様に、実世界推定部4102は、マッピング誤差(推定誤差)を、第2の領域特定情報として出力するとする。
【2570】
図1において、実世界1の信号がセンサ2に入射されると、センサ2からは入力画像が出力される。
【2571】
図304において、この入力画像は、データ定常性検出部4101、実世界推定部4102、および、画像生成部4104のそれぞれに入力される。
【2572】
そこで、図305のステップS4221において、データ定常性検出部4101は、入力画像に基づいて、定常性の方向に対応する角度を検出するとともに、その推定誤差を演算する。検出された角度は、データ定常性情報として実世界推定部4102と画像生成部4103のそれぞれに供給される。また、演算された推定誤差は、第1の領域特定情報として領域検出部4191に供給される。
【2573】
なお、ステップS4221の処理は、上述したステップS4181(図301)の処理と基本的に同様の処理である。
【2574】
また、上述したように、いまの時点においては(実行指令生成部4192から実行指令が供給されない限り)、実世界推定部4102も画像生成部4104もその処理を実行しない。
【2575】
ステップS4222において、領域検出部4191は、データ定常性検出部4101により演算された推定誤差(供給された第1の領域特定情報)に基づいて、入力画像の注目画素(データ定常性検出部4101が角度を検出する場合に注目画素とした画素)の領域を検出し、その検出結果を実行指令生成部4192に供給する。なお、ステップS4222の処理は、上述したステップS4182(図301)の処理と基本的に同様の処理である。
【2576】
領域検出部4181の検出結果が実行指令生成部4192に供給されると、ステップS4223において、実行指令生成部4192は、検出された領域が、定常領域であるか否かを判定する。なお、ステップS4223の処理は、上述したステップS4183(図301)の処理と基本的に同様の処理である。
【2577】
ステップS4223において、検出された領域が定常領域ではない(非定常領域である)と判定した場合、実行指令生成部4192は、実行指令を画像生成部4104に供給する。すると、画像生成部4104は、ステップS4224において、「クラス分類適応処理の実行処理」を実行して、第1の画素(注目画素(入力画像のSD画素)におけるHD画素)を生成し、ステップS4225において、クラス分類適応処理により生成された第1の画素を、出力画像として外部に出力する。
【2578】
なお、ステップS4224の処理は、上述したステップS4184(図301)の処理と基本的に同様の処理である。即ち、図296のフローチャートは、ステップS4186の処理の詳細を説明するフローチャートでもある。また、ステップS4225の処理は、上述したステップS4185(図301)の処理と基本的に同様の処理である。
【2579】
これに対して、ステップS4223において、検出された領域が定常領域であると判定した場合、実行指令生成部4192は、実行指令を実世界推定部4102に供給する。すると、ステップS4226において、実世界推定部4102は、ステップS4221の処理でデータ定常性検出部4101により検出された角度に基づいて、実世界1の信号を推定するとともに、その推定誤差(マッピング誤差)を演算する。推定された実世界1の信号は、実世界推定情報として画像生成部4103に供給される。また、演算された推定誤差は、第2の領域特定情報として領域検出部4201に供給される。
【2580】
なお、ステップS4226の処理は、上述したステップS4202(図303)の処理と基本的に同様の処理である。
【2581】
また、上述したように、いまの時点においては(実行指令生成部4192、または実行指令生成部4202から実行指令が供給されない限り)、画像生成部4103も画像生成部4104もその処理を実行しない。
【2582】
ステップS4227において、領域検出部4201は、実世界推定部4102により演算された推定誤差(供給された第2の領域特定情報)に基づいて、入力画像の注目画素(データ定常性検出部4101が角度を検出する場合に注目画素とした画素)の領域を検出し、その検出結果を実行指令生成部4202に供給する。なお、ステップS4227の処理は、上述したステップS4203(図303)の処理と基本的に同様の処理である。
【2583】
領域検出部4201の検出結果が実行指令生成部4202に供給されると、ステップS4228において、実行指令生成部4202は、検出された領域が、定常領域であるか否かを判定する。なお、ステップS4228の処理は、上述したステップS4204(図303)の処理と基本的に同様の処理である。
【2584】
ステップS4228において、検出された領域が定常領域ではない(非定常領域である)と判定した場合、実行指令生成部4202は、実行指令を画像生成部4104に供給する。すると、画像生成部4104は、ステップS4224において、「クラス分類適応処理の実行処理」を実行して、第1の画素(注目画素(入力画像のSD画素)におけるHD画素)を生成し、ステップS4225において、クラス分類適応処理により生成された第1の画素を、出力画像として外部に出力する。
【2585】
なお、いまの場合のステップS4224の処理は、上述したステップS4205(図303)の処理と基本的に同様の処理である。また、いまの場合のステップS4225の処理は、上述したステップS4206(図303)の処理と基本的に同様の処理である。
【2586】
これに対して、ステップS4228において、検出された領域が定常領域であると判定した場合、実行指令生成部4202は、実行指令を画像生成部4103に供給する。すると、ステップS4229において、画像生成部4103は、実世界推定部4102により推定された実世界1の信号(および、必要に応じてデータ定常性検出部4101からのデータ定常性情報)に基づいて、領域検出部4201により検出された領域(即ち、入力画像の注目画素(SD画素))における、第2の画素(HD画素)を生成する。そして、ステップS4230において、画像生成部4103は、生成された第2の画素を、出力画像として外部に出力する。
【2587】
なお、ステップS4229とS4230のそれぞれの処理は、上述したステップS4207とS4208(図303)のそれぞれの処理と基本的に同様の処理である。
【2588】
第1の画素または第2の画素が出力画像として出力されると(ステップS4225、またはステップS4230の処理の後)、ステップS4231において、全画素の処理を終了したか否かが判定され、全画素の処理がまだ終了していないと判定された場合、その処理は、ステップS4221に戻る。即ち、全ての画素の処理が終了されるまで、ステップS4221乃至S4231の処理が繰り返される。
【2589】
そして、ステップS4231において、全画素の処理を終了したと判定された場合、その処理は終了となる。
【2590】
以上、図292乃至図305を参照して、本発明の信号処理装置4(図1)の実施の形態の1例として、併用手法について説明した。
【2591】
上述したように、併用手法においては、図3の構成の本発明の信号処理装置に対してさらに、定常性を利用しない他の信号処理を行う装置(または、プログラム等)が付加されている。
【2592】
換言すると、併用手法においては、従来の信号処理装置(または、プログラム等)に対して、図3の構成の本発明の信号処理装置(または、プログラム等)が付加されている。
【2593】
即ち、併用手法においては、例えば、図292や図298の定常領域検出部4105が、実世界1の光信号が射影され、実世界1の光信号の定常性の一部が欠落した画像データ(例えば、図292や図298の入力画像)内において、画像データのデータの定常性を有する領域(例えば、図295のステップS4106や図299のステップS4166に記載の定常領域)を検出する。
【2594】
また、図292や図298の実世界推定部4102が、実世界1の光信号の定常性の一部が欠落した画像データのデータの定常性に基づいて、欠落した実世界1の光信号の定常性を推定することにより光信号を推定する。
【2595】
さらに、例えば、図292や図298のデータ定常性検出部4101が、実世界1の光信号が射影され、実世界1の光信号の定常性の一部が欠落した画像データ内において、画像データのデータの定常性の基準軸に対する角度(例えば、図295のステップS4102や図299のステップS4162に記載の角度)を検出する。この場合、例えば、図292や図298の定常領域検出部4105は、角度に基いて画像データのデータの定常性を有する領域を検出し、実世界推定部4102は、その領域に対して、欠落した実世界1の光信号の定常性を推定することにより光信号を推定する。
【2596】
ただし、図292においては、定常領域検出部4105は、角度に沿って定常であるモデルと入力画像との誤差(即ち、例えば、図中の領域特定情報であって、図295のステップS4102の処理で演算される推定誤差)に基づいて入力画像のデータの定常性を有する領域を検出する。
【2597】
これに対して、図298においては、定常領域検出部4105は、実世界推定部4102の後段に配され、実世界推定部4102により演算される、入力画像に対応する実世界1の光信号を表す実世界モデルと、入力画像との誤差(即ち、例えば、図中の領域特定情報であって、図295のステップS4163の処理で演算される実世界の信号の推定誤差(マッピング誤差))に基いて、実世界推定部4102により推定された実世界モデル、即ち、画像生成部4103から出力される画像を選択的に出力する(例えば、図298のセレクタ4112が、図299のステップS4166乃至S4168の処理を実行する)。
【2598】
以上、図292と図298の例で説明したが、以上のことは、図300、図302、および図304においても同様である。
【2599】
従って、併用手法においては、実世界1の信号のうちの定常性が存在する部分(画像データのデータの定常性を有する領域)については、図3の構成の信号処理装置に相当する装置(またはプログラム等)が信号処理を実行し、実世界1の信号のうちの明確な定常性が存在しない部分については、従来の信号処理装置(または、プログラム等)が信号処理を実行することが可能になる。その結果、従来の信号処理装置や、図3の構成の本発明の信号処理のいずれよりも実世界1(図1)の信号に近い画像データを出力することが可能になる。
【2600】
次に、図306,図307を参照して、データ定常性検出部101より直接画像を生成する例について説明する。
【2601】
図306のデータ定常性検出部101は、図165のデータ定常性検出部101に画像生成部4501を付加したものである。画像生成部4501は、実世界推定部802より出力される実世界の近似関数f(x)の係数を実世界推定情報として取得し、この係数に基づいて、各画素を再積分することにより画像を生成して出力する。
【2602】
次に、図307のフローチャートを参照して、図306のデータの定常性の検出の処理について説明する。尚、図307のフローチャートのステップS4501乃至S4504、および、ステップS4506乃至S4511の処理に付いては、図166のフローチャートのステップS801乃至S810の処理と同様であるのでその説明は省略する。
【2603】
ステップS4504において、画像生成部4501は、実世界推定部802より入力された係数に基づいて各画素を再積分して、画像を生成し出力する。
【2604】
以上の処理により、データ定常性検出部101は、領域情報のみならず、その領域判定に用いた(実世界推定情報に基づいて生成された画素からなる)画像を出力することができる。
【2605】
このように、図306のデータ定常性検出部101においては、画像生成部4501が設けられている。即ち、図306のデータ定常性検出部101は、入力画像のデータの定常性に基づいて出力画像を生成することができる。従って、図306で示される構成を有する装置を、データ定常性検出部101の実施の形態と捉えるのではなく、図1の信号処理装置(画像処理装置)4の他の実施の形態と捉えることもできる。
【2606】
さらに、上述した併用手法が適用される信号処理装置において、実世界1の信号のうちの定常性が存在する部分に対して信号処理を施す信号処理部として、図306で示される構成を有する装置(即ち、図306のデータ定常性検出部101と同様の機能と構成を有する信号処理装置)を適用することも可能である。
【2607】
具体的には、例えば、第1の併用手法が適用される図292の信号処理装置においては、実世界1の信号のうちの定常性が存在する部分に対して信号処理を施す信号処理部は、データ定常性検出部4101、実世界推定部4102、および画像生成部4103とされている。図示はしないが、これらのデータ定常性検出部4101、実世界推定部4102、および画像生成部4103の代わりに、図306の構成の信号処理装置(画像処理装置)を適用することも可能である。この場合、図306の比較部804が、その出力を領域特定情報をとして領域検出部4111に供給し、また、画像生成部4501が、出力画像(第2の画素)をセレクタ4112に供給することになる。
【2608】
なお、センサ2は、固体撮像素子である、例えば、BBD(Bucket Brigade Device)、CID(Charge Injection Device)、またはCPD(Charge Priming Device)などのセンサでもよい。
【2609】
本発明の信号処理を行うプログラムを記録した記録媒体は、図2で示されるように、コンピュータとは別に、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク51(フレキシブルディスクを含む)、光ディスク52(CD−ROM(Compaut Disk−Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク53(MD(Mini−Disk)(商標)を含む)、もしくは半導体メモリ54などよりなるパッケージメディアにより構成されるだけでなく、コンピュータに予め組み込まれた状態でユーザに提供される、プログラムが記録されているROM22や、記憶部28に含まれるハードディスクなどで構成される。
【2610】
なお、上述した一連の処理を実行させるプログラムは、必要に応じてルータ、モデムなどのインタフェースを介して、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の通信媒体を介してコンピュータにインストールされるようにしてもよい。
【2611】
なお、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。
【2612】
【発明の効果】
以上のように、本発明によれば、正確で、精度の高い処理結果を得ることができるようになる。
【2613】
また、本発明によれば、現実世界の事象に対して、より正確で、より精度の高い処理結果を得ることができるようになる。
【図面の簡単な説明】
【図1】本発明の原理を示す図である。
【図2】信号処理装置4の構成の例を示すブロック図である。
【図3】信号処理装置4を示すブロック図である。
【図4】従来の信号処理装置121の処理の原理を説明する図である。
【図5】信号処理装置4の処理の原理を説明する図である。
【図6】本発明の原理をより具体的に説明する図である。
【図7】本発明の原理をより具体的に説明する図である。
【図8】イメージセンサ上の画素の配置の例を説明する図である。
【図9】CCDである検出素子の動作を説明する図である。
【図10】画素D乃至画素Fに対応する検出素子に入射される光と、画素値との関係を説明する図である。
【図11】時間の経過と、1つの画素に対応する検出素子に入射される光と、画素値との関係を説明する図である。
【図12】実世界1の線状の物の画像の例を示す図である。
【図13】実際の撮像により得られた画像データの画素値の例を示す図である。
【図14】画像データの模式図である。
【図15】背景とは異なる色であって、単色の、直線状の縁を有する物の実世界1の画像の例を示す図である。
【図16】実際の撮像により得られた画像データの画素値の例を示す図である。
【図17】画像データの模式図である。
【図18】本発明の原理を説明する図である。
【図19】本発明の原理を説明する図である。
【図20】高解像度データ181の生成の例を説明する図である。
【図21】モデル161による近似を説明する図である。
【図22】M個のデータ162によるモデル161の推定を説明する図である。
【図23】実世界1の信号とデータ3との関係を説明する図である。
【図24】式を立てるときに注目するデータ3の例を示す図である。
【図25】式を立てる場合における、実世界1における2つの物体に対する信号および混合領域に属する値を説明する図である。
【図26】式(18)、式(19)、および式(22)で表される定常性を説明する図である。
【図27】データ3から抽出される、M個のデータ162の例を示す図である。
【図28】データ3である画素値が取得された領域を説明する図である。
【図29】画素の時空間方向の位置の近似を説明する図である。
【図30】データ3における、時間方向および2次元の空間方向の実世界1の信号の積分を説明する図である。
【図31】空間方向により解像度の高い高解像度データ181を生成するときの、積分の領域を説明する図である。
【図32】時間方向により解像度の高い高解像度データ181を生成するときの、積分の領域を説明する図である。
【図33】動きボケを除去した高解像度データ181を生成するときの、積分の領域を説明する図である。
【図34】時間空間方向により解像度の高い高解像度データ181を生成するときの、積分の領域を説明する図である。
【図35】入力画像の元の画像を示す図である。
【図36】入力画像の例を示す図である。
【図37】従来のクラス分類適応処理を適用して得られた画像を示す図である。
【図38】細線の領域を検出した結果を示す図である。
【図39】信号処理装置4から出力された出力画像の例を示す図である。
【図40】信号処理装置4による、信号の処理を説明するフローチャートである。
【図41】データ定常性検出部101の構成を示すブロック図である。
【図42】背景の前に細線がある実世界1の画像を示す図である。
【図43】平面による背景の近似を説明する図である。
【図44】細線の画像が射影された画像データの断面形状を示す図である。
【図45】細線の画像が射影された画像データの断面形状を示す図である。
【図46】細線の画像が射影された画像データの断面形状を示す図である。
【図47】頂点の検出および単調増減領域の検出の処理を説明する図である。
【図48】頂点の画素値が閾値を超え、隣接する画素の画素値が閾値以下である細線領域を検出する処理を説明する図である。
【図49】図48の点線AA’で示す方向に並ぶ画素の画素値を表す図である。
【図50】単調増減領域の連続性の検出の処理を説明する図である。
【図51】平面での近似により定常成分を抽出した画像の例を示す図である。
【図52】単調減少している領域を検出した結果を示す図である。
【図53】連続性が検出された領域を示す図である。
【図54】連続性が検出された領域の画素値を示す図である。
【図55】細線の画像が射影された領域の検出の他の処理の例を示す図である。
【図56】定常性検出の処理を説明するフローチャートである。
【図57】時間方向のデータの定常性を検出の処理を説明する図である。
【図58】非定常成分抽出部201の構成を示すブロック図である。
【図59】棄却される回数を説明する図である。
【図60】入力画像の例を示す図である。
【図61】棄却をしないで平面で近似した結果得られる標準誤差を画素値とした画像を示す図である。
【図62】棄却をして平面で近似した結果得られる標準誤差を画素値とした画像を示す図である。
【図63】棄却された回数を画素値とした画像を示す図である。
【図64】平面の空間方向Xの傾きを画素値とした画像を示す図である。
【図65】平面の空間方向Yの傾きを画素値とした画像を示す図である。
【図66】平面で示される近似値からなる画像を示す図である。
【図67】平面で示される近似値と画素値との差分からなる画像を示す図である。
【図68】非定常成分の抽出の処理を説明するフローチャートである。
【図69】定常成分の抽出の処理を説明するフローチャートである。
【図70】定常成分の抽出の他の処理を説明するフローチャートである。
【図71】定常成分の抽出のさらに他の処理を説明するフローチャートである。
【図72】データ定常性検出部101の他の構成を示すブロック図である。
【図73】データの定常性を有する入力画像におけるアクティビティを説明する図である。
【図74】アクティビティを検出するためのブロックを説明する図である。
【図75】アクティビティに対するデータの定常性の角度を説明する図である。
【図76】データ定常性検出部101のより詳細な構成を示すブロック図である。
【図77】画素の組を説明する図である。
【図78】画素の組の位置とデータの定常性の角度との関係を説明する図である。
【図79】データの定常性の検出の処理を説明するフローチャートである。
【図80】時間方向および空間方向のデータの定常性の角度を検出するとき、抽出される画素の組を示す図である。
【図81】データ定常性検出部101のより詳細な他の構成を示すブロック図である。
【図82】設定された直線の角度の範囲に応じた数の画素からなる画素の組を説明する図である。
【図83】設定された直線の角度の範囲を説明する図である。
【図84】設定された直線の角度の範囲と、画素の組の数、および画素の組毎の画素の数を説明する図である。
【図85】画素の組の数および画素の組毎の画素の数を説明する図である。
【図86】画素の組の数および画素の組毎の画素の数を説明する図である。
【図87】画素の組の数および画素の組毎の画素の数を説明する図である。
【図88】画素の組の数および画素の組毎の画素の数を説明する図である。
【図89】画素の組の数および画素の組毎の画素の数を説明する図である。
【図90】画素の組の数および画素の組毎の画素の数を説明する図である。
【図91】画素の組の数および画素の組毎の画素の数を説明する図である。
【図92】画素の組の数および画素の組毎の画素の数を説明する図である。
【図93】データの定常性の検出の処理を説明するフローチャートである。
【図94】データ定常性検出部101のさらに他の構成を示すブロック図である。
【図95】データ定常性検出部101のより詳細な構成を示すブロック図である。
【図96】ブロックの例を説明する図である。
【図97】注目ブロックと参照ブロックとの、画素値の差分の絶対値の算出の処理を説明する図である。
【図98】注目画素の周辺の画素の位置と、角度θを有する直線との空間方向Xの距離を説明する図である。
【図99】シフト量γと角度θとの関係を示す図である。
【図100】シフト量γに対する、注目画素の周辺の画素の位置と、注目画素を通り、角度θを有する直線との空間方向Xの距離を示す図である。
【図101】注目画素を通り、空間方向Xの軸に対して角度θの直線との距離が最小の参照ブロックを示す図である。
【図102】検出するデータの定常性の角度の範囲を1/2にする処理を説明する図である。
【図103】データの定常性の検出の処理を説明するフローチャートである。
【図104】間方向および空間方向のデータの定常性の角度を検出するとき、抽出されるブロックを示す図である。
【図105】入力画像のコンポーネント信号を基に、データの定常性の検出の処理を実行するデータ定常性検出部101の構成を示すブロック図である。
【図106】入力画像のコンポーネント信号を基に、データの定常性の検出の処理を実行するデータ定常性検出部101の構成を示すブロック図である。
【図107】データ定常性検出部101のさらに他の構成を示すブロック図である。
【図108】入力画像における、基準軸を基準としたデータの定常性の角度を説明する図である。
【図109】入力画像における、基準軸を基準としたデータの定常性の角度を説明する図である。
【図110】入力画像における、基準軸を基準としたデータの定常性の角度を説明する図である。
【図111】入力画像における、画素の空間方向の位置に対する、画素値の変化と、回帰直線との関係を示す図である。
【図112】回帰直線Aと、例えば、基準軸である空間方向Xを示す軸との角度を説明する図である。
【図113】領域の例を示す図である。
【図114】図107で構成が示されるデータ定常性検出部101による、データの定常性の検出の処理を説明するフローチャートである。
【図115】データ定常性検出部101のさらに他の構成を示すブロック図である。
【図116】入力画像における、画素の空間方向の位置に対する、画素値の変化と、回帰直線との関係を示す図である。
【図117】標準偏差とデータの定常性を有する領域との関係を説明する図である。
【図118】領域の例を示す図である。
【図119】図115で構成が示されるデータ定常性検出部101による、データの定常性の検出の処理を説明するフローチャートである。
【図120】図115で構成が示されるデータ定常性検出部101による、データの定常性の検出の他の処理を説明するフローチャートである。
【図121】本発明を適用した細線、または、2値エッジの角度をデータ定常性情報として検出するデータ定常性検出部の構成を示すブロック図である。
【図122】データ定常性情報の検出方法を説明する図である。
【図123】データ定常性情報の検出方法を説明する図である。
【図124】図121のデータ定常性検出部のより詳細な構成を示す図である。
【図125】水平・垂直判定処理を説明する図である。
【図126】水平・垂直判定処理を説明する図である。
【図127】現実世界の細線とセンサにより撮像される細線の関係を説明する図である。
【図128】現実世界の画像の細線と背景の関係を説明する図である。
【図129】センサにより撮像された画像の細線と背景の関係を説明する図である。
【図130】センサにより撮像された画像の細線と背景の関係の例を説明する図である。
【図131】現実世界の画像の細線と背景の関係を説明する図である。
【図132】センサにより撮像された画像の細線と背景の関係を説明する図である。
【図133】センサにより撮像された画像の細線と背景の関係の例を説明する図である。
【図134】細線の角度を求めるためのモデルを示す図である。
【図135】細線の角度を求めるためのモデルを示す図である。
【図136】注目画素に対応するダイナミックレンジブロックの画素値の最大値と最小値を説明する図である。
【図137】細線の角度の求め方を説明する図である。
【図138】細線の角度の求め方を説明する図である。
【図139】抽出ブロックとダイナミックレンジブロックを説明する図である。
【図140】最小自乗法の解法を説明する図である。
【図141】最小自乗法の解法を説明する図である。
【図142】2値エッジを説明する図である。
【図143】センサにより撮像された画像の2値エッジを説明する図である。
【図144】センサにより撮像された画像の2値エッジの例を説明する図である。
【図145】センサにより撮像された画像の2値エッジを説明する図である。
【図146】2値エッジの角度を求めるためのモデルを示す図である。
【図147】2値エッジの角度を求める方法を説明する図である。
【図148】2値エッジの角度を求める方法を説明する図である。
【図149】細線、または、2値エッジの角度をデータ定常性と検出する処理を説明するフローチャートである。
【図150】データ抽出処理を説明するフローチャートである。
【図151】正規方程式への足し込み処理を説明するフローチャートである。
【図152】本発明を適用して求めた細線の傾きと、相関を用いて求めた細線の角度とを比較する図である。
【図153】本発明を適用して求めた2値エッジの傾きと、相関を用いて求めた細線の角度とを比較する図である。
【図154】本発明を適用した混合比をデータ定常性情報として検出するデータ定常性検出部の構成を示すブロック図である。
【図155】混合比の求め方を説明する図である。
【図156】混合比をデータ定常性と検出する処理を説明するフローチャートである。
【図157】正規方程式への足し込み処理を説明するフローチャートである。
【図158】細線の混合比の分布例を示す図である。
【図159】2値エッジの混合比の分布例を示す図である。
【図160】混合比の直線近似を説明する図である。
【図161】物体の動きをデータ定常性情報として求める方法を説明する図である。
【図162】物体の動きをデータ定常性情報として求める方法を説明する図である。
【図163】物体の動きによる混合比をデータ定常性情報として求める方法を説明する図である。
【図164】物体の動きによる混合比をデータ定常性情報として求める際の混合比の直線近似を説明する図である。
【図165】本発明を適用した処理領域をデータ定常性情報として検出するデータ定常性検出部の構成を示すブロック図である。
【図166】図165のデータ定常性検出部による定常性の検出の処理を説明するフローチャートである。
【図167】図165のデータ定常性検出部による定常性の検出の処理の積分範囲を説明する図である。
【図168】図165のデータ定常性検出部による定常性の検出の処理の積分範囲を説明する図である。
【図169】本発明を適用した処理領域をデータ定常性情報として検出するデータ定常性検出部のその他の構成を示すブロック図である。
【図170】図169のデータ定常性検出部による定常性の検出の処理を説明するフローチャートである。
【図171】図169のデータ定常性検出部による定常性の検出の処理の積分範囲を説明する図である。
【図172】図169のデータ定常性検出部による定常性の検出の処理の積分範囲を説明する図である。
【図173】実世界推定部102の構成を示すブロック図である。
【図174】実世界1の信号における、細線の幅を検出する処理を説明する図である。
【図175】実世界1の信号における、細線の幅を検出する処理を説明する図である。
【図176】実世界1の信号における、細線の信号のレベルを推定する処理を説明する図である。
【図177】実世界の推定の処理を説明するフローチャートである。
【図178】実世界推定部102の他の構成を示すブロック図である。
【図179】境界検出部2121の構成を示すブロック図である。
【図180】分配比の算出の処理を説明する図である。
【図181】分配比の算出の処理を説明する図である。
【図182】分配比の算出の処理を説明する図である。
【図183】単調増減領域の境界を示す回帰直線の算出の処理を説明する図である。
【図184】単調増減領域の境界を示す回帰直線の算出の処理を説明する図である。
【図185】実世界の推定の処理を説明するフローチャートである。
【図186】境界検出の処理を説明するフローチャートである。
【図187】空間方向の微分値を実世界推定情報として推定する実世界推定部の構成を示すブロック図である。
【図188】図187の実世界推定部による実世界推定の処理を説明するフローチャートである。
【図189】参照画素を説明する図である。
【図190】空間方向の微分値を求める位置を説明する図である。
【図191】空間方向の微分値とシフト量の関係を説明する図である。
【図192】空間方向の傾きを実世界推定情報として推定する実世界推定部の構成を示すブロック図である。
【図193】図192の実世界推定部による実世界推定の処理を説明するフローチャートである。
【図194】空間方向の傾きを求める処理を説明する図である。
【図195】空間方向の傾きを求める処理を説明する図である。
【図196】フレーム方向の微分値を実世界推定情報として推定する実世界推定部の構成を示すブロック図である。
【図197】図196の実世界推定部による実世界推定の処理を説明するフローチャートである。
【図198】参照画素を説明する図である。
【図199】フレーム方向の微分値を求める位置を説明する図である。
【図200】フレーム方向の微分値とシフト量の関係を説明する図である。
【図201】フレーム方向の傾きを実世界推定情報として推定する実世界推定部の構成を示すブロック図である。
【図202】図201の実世界推定部による実世界推定の処理を説明するフローチャートである。
【図203】フレーム方向の傾きを求める処理を説明する図である。
【図204】フレーム方向の傾きを求める処理を説明する図である。
【図205】図3の実世界推定部の実施の形態の1例である、関数近似手法の原理を説明する図である。
【図206】センサがCCDとされる場合の積分効果を説明する図である。
【図207】図206のセンサの積分効果の具体的な例を説明する図である。
【図208】図206のセンサの積分効果の具体的な他の例を説明する図である。
【図209】図207で示される細線含有実世界領域を表した図である。
【図210】図3の実世界推定部の実施の形態の1例の原理を、図205の例と対比させて説明する図である。
【図211】図207で示される細線含有データ領域を表した図である。
【図212】図211の細線含有データ領域に含まれる各画素値のそれぞれをグラフ化した図である。
【図213】図212の細線含有データ領域に含まれる各画素値を近似した近似関数をグラフ化した図である。
【図214】図207で示される細線含有実世界領域が有する空間方向の定常性を説明する図である。
【図215】図211の細線含有データ領域に含まれる各画素値のそれぞれをグラフ化した図である。
【図216】図215で示される入力画素値のそれぞれを、所定のシフト量だけシフトさせた状態を説明する図である。
【図217】空間方向の定常性を考慮して、図212の細線含有データ領域に含まれる各画素値を近似した近似関数をグラフ化した図である。
【図218】空間混合領域を説明する図である。
【図219】空間混合領域における、実世界の信号を近似した近似関数を説明する図である。
【図220】センサの積分特性と空間方向の定常性の両方を考慮して、図212の細線含有データ領域に対応する実世界の信号を近似した近似関数をグラフ化した図である。
【図221】図205で示される原理を有する関数近似手法のうちの、1次多項式近似手法を利用する実世界推定部の構成例を説明するブロック図である。
【図222】図221の構成の実世界推定部が実行する実世界の推定処理を説明するフローチャートである。
【図223】タップ範囲を説明する図である。
【図224】空間方向の定常性を有する実世界の信号を説明する図である。
【図225】センサがCCDとされる場合の積分効果を説明する図である。
【図226】断面方向距離を説明する図である。
【図227】図205で示される原理を有する関数近似手法のうちの、2次多項式近似手法を利用する実世界推定部の構成例を説明するブロック図である。
【図228】図227の構成の実世界推定部が実行する実世界の推定処理を説明するフローチャートである。
【図229】タップ範囲を説明する図である。
【図230】時空間方向の定常性の方向を説明する図である。
【図231】センサがCCDとされる場合の積分効果を説明する図である。
【図232】空間方向の定常性を有する実世界の信号を説明する図である。
【図233】時空間方向の定常性を有する実世界の信号を説明する図である。
【図234】図205で示される原理を有する関数近似手法のうちの、3次元関数近似手法を利用する実世界推定部の構成例を説明するブロック図である。
【図235】図234の構成の実世界推定部が実行する実世界の推定処理を説明するフローチャートである。
【図236】図3の画像生成部の実施の形態の1例である、再積分手法の原理を説明する図である。
【図237】入力画素と、その入力画素に対応する、実世界の信号を近似する近似関数の例を説明する図である。
【図238】図237で示される近似関数から、図237で示される1つの入力画素における、高解像度の4つの画素を創造する例を説明する図である。
【図239】図236で示される原理を有する再積分手法のうちの、1次元再積分手法を利用する画像生成部の構成例を説明するブロック図である。
【図240】図239の構成の画像生成部が実行する画像の生成処理を説明するフローチャートである。
【図241】入力画像の元の画像の例を表す図である。
【図242】図241の画像に対応する画像データの例を表す図である。
【図243】入力画像の例を表す図である。
【図244】図243の画像に対応する画像データの例を表す図である。
【図245】入力画像に対して従来のクラス分類適応処理を施して得られる画像の例を表す図である。
【図246】図245の画像に対応する画像データの例を表す図である。
【図247】入力画像に対して本発明の1次元再積分手法の処理を施して得られる画像の例を表す図である。
【図248】図247の画像に対応する画像データの例を表す図である。
【図249】空間方向の定常性を有する実世界の信号を説明する図である。
【図250】図236で示される原理を有する再積分手法のうちの、2次元再積分手法を利用する画像生成部の構成例を説明するブロック図である。
【図251】断面方向距離を説明する図である。
【図252】図250の構成の画像生成部が実行する画像の生成処理を説明するフローチャートである。
【図253】入力画素の1例を説明する図である。
【図254】2次元再積分手法により、図253で示される1つの入力画素における、高解像度の4つの画素を創造する例を説明する図である。
【図255】時空間方向の定常性の方向を説明する図である。
【図256】図236で示される原理を有する再積分手法のうちの、3次元再積分手法を利用する画像生成部の構成例を説明するブロック図である。
【図257】図256の構成の画像生成部が実行する画像の生成処理を説明するフローチャートである。
【図258】本発明を適用した画像生成部のその他の構成を示すブロック図である。
【図259】図258の画像生成部による画像の生成の処理を説明するフローチャートである。
【図260】入力画素から4倍密度の画素を生成する処理を説明する図である。
【図261】画素値を示す近似関数とシフト量との関係を示す図である。
【図262】本発明を適用した画像生成部のその他の構成を示すブロック図である。
【図263】図262の画像生成部による画像の生成の処理を説明するフローチャートである。
【図264】入力画素から4倍密度の画素を生成する処理を説明する図である。
【図265】画素値を示す近似関数とシフト量との関係を示す図である。
【図266】図3の画像生成部の実施の形態の1例である、クラス分類適応処理補正手法の1次元再積分手法を利用する画像生成部の構成例を説明するブロック図である。
【図267】図266の画像生成部のクラス分類適応処理部の構成例を説明するブロック図である。
【図268】図266のクラス分類適応処理部と、クラス分類適応処理補正部が使用する係数を学習により決定する学習装置の構成例を示すブロック図である。
【図269】図268のクラス分類適応処理用学習部の詳細な構成例を説明するブロック図である。
【図270】図267のクラス分類適応処理部の処理結果の例を示す図である。
【図271】図270の予測画像とHD画像の差分画像を示す図である。
【図272】図271で示される領域に含まれるX方向に連続した6個のHD画素のうちの、図中左から4個のHD画素に対応する、図270のHD画像の具体的な画素値、SD画像の具体的な画素値、および、実際の波形(実世界の信号)のそれぞれをプロットしたものを示す図である。
【図273】図270の予測画像とHD画像の差分画像を示す図である。
【図274】図273で示される領域に含まれるX方向に連続した6個のHD画素のうちの、図中左から4個のHD画素に対応する、図270のHD画像の具体的な画素値、SD画像の具体的な画素値、および、実際の波形(実世界の信号)のそれぞれをプロットしたものを示す図である。
【図275】図272乃至図274に示される内容に基づいて得られた知見を説明する図である。
【図276】図266の画像生成部のクラス分類適応処理補正部の構成例を説明するブロック図である。
【図277】図268のクラス分類適応処理補正用学習部の詳細な構成例を説明するブロック図である。
【図278】画素内傾斜を説明する図である。
【図279】図270のSD画像と、そのSD画像の各画素の画素内傾斜を画素値とする特徴量画像を示す図である。
【図280】画素内傾斜の算出方法を説明する図である。
【図281】画素内傾斜の算出方法を説明する図である。
【図282】図266の構成の画像生成部が実行する画像の生成処理を説明するフローチャートである。
【図283】図282の画像の生成処理の入力画像クラス分類適応処理の詳細を説明するフローチャートである。
【図284】図282の画像の生成処理のクラス分類適応処理の補正処理の詳細を説明するフローチャートである。
【図285】クラスタップの配置例を説明する図である。
【図286】クラス分類の1例を説明する図である。
【図287】予測タップ配置例を説明する図である。
【図288】図268の学習装置の学習処理を説明するフローチャートである。
【図289】図288の学習処理のクラス分類適応処理用学習処理の詳細を説明するフローチャートである。
【図290】図288の学習処理のクラス分類適応処理補正用学習処理の詳細を説明するフローチャートである。
【図291】図270の予測画像と、その予測画像に補正画像を加算した画像(図266の画像生成部により生成される画像)を表した図である。
【図292】図1の信号処理装置の実施の形態の他の例である、併用手法を利用する信号処理装置の第1の構成例を説明するブロック図である。
【図293】図292の信号処理装置の、クラス分類適応処理を実行する画像生成部の構成例を説明するブロック図である。
【図294】図293の画像生成部に対する学習装置の構成例を説明するブロック図である。
【図295】図292の構成の信号処理装置が実行する信号の処理を説明するフローチャートである。
【図296】図295の信号の処理のクラス分類適応処理の実行処理の詳細を説明するフローチャートである。
【図297】図294の学習装置の学習処理を説明するフローチャートである。
【図298】図1の信号処理装置の実施の形態の他の例である、併用手法を利用する信号処理装置の第2の構成例を説明するブロック図である。
【図299】図296の構成の信号処理装置が実行する信号の処理を説明するフローチャートである。
【図300】図1の信号処理装置の実施の形態の他の例である、併用手法を利用する信号処理装置の第3の構成例を説明するブロック図である。
【図301】図298の構成の信号処理装置が実行する信号の処理を説明するフローチャートである。
【図302】図1の信号処理装置の実施の形態の他の例である、併用手法を利用する信号処理装置の第4の構成例を説明するブロック図である。
【図303】図300の構成の信号処理装置が実行する信号の処理を説明するフローチャートである。
【図304】図1の信号処理装置の実施の形態の他の例である、併用手法を利用する信号処理装置の第5の構成例を説明するブロック図である。
【図305】図302の構成の信号処理装置が実行する信号の処理を説明するフローチャートである。
【図306】データ定常性検出部の他の実施の形態の構成を示すブロック図である。
【図307】図306のデータ定常性検出部によるデータの定常性の検出処理を説明するフローチャートである。
【符号の説明】
4 信号処理装置, 21 CPU, 22 ROM, 23 RAM, 28 記憶部, 51 磁気ディスク, 52 光ディスク, 53 光磁気ディスク, 54 半導体メモリ, 101 データ定常性検出部, 102 実世界推定部, 103 画像生成部, 201 非定常成分抽出部, 202 頂点検出部, 203 単調増減検出部, 204 連続性検出部, 221 ブロック抽出部, 222 平面近似部, 223 繰り返し判定部, 401 アクティビティ検出部, 402 データ選択部, 403 誤差推定部, 404 定常方向導出部, 411−1乃至411−L 画素選択部, 412−1乃至412−L 推定誤差算出部, 413 最小誤差角度選択部, 421−1乃至421−L 画素選択部, 422−1乃至422−L 推定誤差算出部, 441 データ選択部, 442 誤差推定部, 443 定常方向導出部, 461−1乃至461−L 画素選択部, 462−1乃至462−L 推定誤差算出部, 463 最小誤差角度選択部, 481−1乃至481−3データ定常性検出部, 482 決定部, 491 コンポーネント処理部,492 データ定常性検出部, 502 画素取得部, 503 度数検出部, 504 回帰直線演算部, 505 角度算出部, 602 画素取得部,603 度数検出部, 604 回帰直線演算部, 605 領域算出部, 701 データ選択部, 702 データ足し込み部, 703 定常方向導出部, 711 水平・垂直判定部, 712 データ取得部, 721 差分足し込み部, 722 MaxMin取得部, 723 差分足し込み部, 731 定常方向演算部, 751 データ足し込み部, 752 MaxMin取得部, 753 足し込み部, 754 差分演算部, 755 足し込み部, 761 混合比導出部, 762 混合比算出部, 801 角度検出部, 802 実世界推定部, 803 誤差演算部, 804 比較部, 821 動き検出部,822 実世界推定部, 823 誤差演算部, 824 比較部, 2101 線幅検出部, 2102 信号レベル推定部, 2121 境界検出部, 2131 分配比算出部, 2132 回帰直線算出部, 2201 実世界推定部, 2202 近似関数推定部, 2203 微分処理部, 2211 参照画素抽出部, 2212 傾き推定部, 2231 実世界推定部, 2232 近似関数推定部, 2233 微分処理部, 2251 参照画素抽出部,2252 傾き推定部, 2331 条件設定部, 2332 入力画像記憶部, 2333 入力画素値取得部, 2334 積分成分演算部, 2335 正規方程式生成部, 2336 近似関数生成部, 2341 入力画素値テーブル, 2342 積分成分テーブル, 2343 正規方程式テーブル, 2421 条件設定部, 2422 入力画像記憶部, 2423 入力画素値取得部,2424 積分成分演算部, 2425 正規方程式生成部, 2426 近似関数生成部, 2431 入力画素値テーブル, 2432 積分成分テーブル,2433 正規方程式テーブル, 2521 条件設定部, 2522 入力画像記憶部, 2523 入力画素値取得部, 2524 積分成分演算部, 2525 正規方程式生成部, 2526 近似関数生成部, 2531 入力画素値テーブル, 2532 積分成分テーブル, 2533 正規方程式テーブル,3121 条件設定部, 3122 特徴量記憶部, 3123 積分成分演算部, 3124 出力画素値演算部, 3131 特徴量テーブル, 3132 積分成分テーブル, 3201 条件設定部, 3202 特徴量記憶部, 3203 積分成分演算部, 3204 出力画素値演算部, 3211 特徴量テーブル, 3212 積分成分テーブル, 3301 条件設定部, 3302 特徴量記憶部, 3303 積分成分演算部, 3304 出力画素値演算部, 3311 特徴量テーブル, 3312 積分成分テーブル, 3201 傾き取得部, 3202 外挿補間部, 3211 傾き取得部, 3212 外挿補間部, 3501 クラス分類適応処理部, 3502 クラス分類適応処理補正部, 3503 加算部, 3504 学習装置, 3521 クラス分類適応処理用学習部, 3561 クラス分類適応処理補正用学習部, 4101 データ定常性検出部4101 実世界推定部, 4103 画像生成部, 4104 画像生成部, 4105 定常領域検出部, 4111 領域検出部, 4112 セレクタ, 4161 定常領域検出部, 4171 領域検出部,4172 実行指令生成部, 4181,4182 定常領域検出部, 4191 領域検出部, 4192 実行指令生成部, 4201 領域検出部, 4202 実行指令生成部, 4501 画像生成部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus and method, a recording medium, and a program, and more particularly, to a signal processing apparatus and method, a recording medium, and a program in consideration of a real world from which data is acquired.
[0002]
[Prior art]
2. Description of the Related Art A technology for detecting an event in the real world (real world) with a sensor and processing sampling data output from the sensor is widely used. For example, an image processing technique of imaging the real world with an image sensor and processing sampling data as image data is widely used.
[0003]
Further, the image processing apparatus has a second dimension having a smaller dimension than the first dimension, obtained by detecting an image which is a real-world signal having the first dimension by a sensor, and has a distortion with respect to the first signal. By acquiring the first image data including the first image data and performing image processing based on the first image data, second image data with reduced distortion as compared with the first image data is generated. Some are also available (for example, see Patent Document 1).
[0004]
[Patent Document 1]
JP 2001-250119 A
[0005]
[Problems to be solved by the invention]
However, image processing that takes into account the real world from which the data was acquired has not been considered.
[0006]
The present invention has been made in view of such a situation, and it is possible to obtain a more accurate and more accurate processing result with respect to a real world event in consideration of the real world from which data is acquired. The purpose is to be.
[0007]
[Means for Solving the Problems]
The image processing apparatus according to the present invention is configured to detect a region having stationarity of image data in image data in which a real-world optical signal is projected and part of the stationarity of the real-world optical signal is missing. Estimating the optical signal by estimating the stationarity of the missing real-world optical signal based on the area detection means and the stationarity of the image data in which part of the stationarity of the real-world optical signal is missing And a real world estimating means.
[0008]
In the image data in which the real-world optical signal is projected and part of the continuity of the real-world optical signal is missing, an angle detecting means for detecting an angle of the continuity of the image data with respect to the reference axis is further provided. The steady area detecting means detects an area having continuity of the image data based on the angle, and the real world estimating means estimates the continuity of the missing real world optical signal with respect to the area. The optical signal can be estimated.
[0009]
The steady area detection means can detect an area having a stationarity of the image data based on an error between the model that is stationary along the angle and the image data.
[0010]
The steady area detecting means is provided at a stage subsequent to the real world estimating means, and is based on an error between the real world model representing the real world optical signal corresponding to the image data and the image data, which is calculated by the real world estimating means. Alternatively, the real world model estimated by the real world estimation means can be selectively output.
[0011]
The image processing method according to the present invention is a method for detecting an area having data stationarity of image data in image data in which a real-world optical signal is projected and part of the stationarity of the real-world optical signal is missing. The optical signal is estimated by estimating the stationarity of the missing real-world optical signal based on the region detection step and the stationarity of the image data in which part of the stationarity of the real-world optical signal is missing. And a real world estimation step.
[0012]
The program of the recording medium according to the present invention detects an area having the stationarity of image data in image data in which a real-world optical signal is projected and part of the stationarity of the real-world optical signal is missing. Estimate the optical signal by estimating the continuity of the missing real-world optical signal based on the steady-state detection step and the continuity of the image data in which part of the continuity of the real-world optical signal is missing And a real world estimation step.
[0013]
A program according to the present invention is a program for detecting a steady-state area in an image data in which a real-world optical signal is projected and in which part of the continuity of the real-world optical signal is missing, in the image data. A real world that estimates an optical signal by estimating the stationarity of a missing real-world optical signal based on the steps and the stationarity of the image data in which part of the stationarity of the optical signal of the real-world is missing. And an estimating step.
[0014]
In the image processing apparatus and method, the recording medium, and the program of the present invention, a real-world optical signal is projected, and in the image data in which a part of the continuity of the real-world optical signal is missing, the data of the image data is As the region having stationarity is detected, the stationarity of the missing real-world optical signal is estimated based on the stationarity of the image data in which part of the stationarity of the real-world optical signal is missing. You.
[0015]
The image processing device may be an independent device or a block that performs image processing.
[0016]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 illustrates the principle of the present invention. As shown in the figure, an event (phenomenon) in the real world 1 having dimensions of space, time, and mass is acquired by the sensor 2 and converted into data. The events in the real world 1 refer to light (image), sound, pressure, temperature, mass, density, brightness / darkness, smell, and the like. Events in the real world 1 are distributed in the spatiotemporal direction. For example, the image of the real world 1 is the distribution of the light intensity of the real world 1 in the spatiotemporal direction.
[0017]
Focusing on the sensor 2, the events of the real world 1 that can be acquired by the sensor 2 among the events of the real world 1 having dimensions of space, time, and mass are converted into data 3 by the sensor 2. It can also be said that the sensor 2 acquires information indicating an event in the real world 1.
[0018]
That is, the sensor 2 converts information indicating an event in the real world 1 into data 3. It can be said that a signal that is information indicating an event (phenomenon) of the real world 1 having dimensions of space, time, and mass is acquired by the sensor 2 and converted into data.
[0019]
Hereinafter, the distribution of events such as images, sounds, pressures, temperatures, masses, concentrations, brightness / darkness, or odors in the real world 1 is also referred to as a signal that is information indicating events in the real world 1. Further, a signal that is information indicating an event in the real world 1 is also simply referred to as a signal in the real world 1. In this specification, a signal includes a phenomenon and an event, and includes a signal that the transmitting side does not intend.
[0020]
Data 3 (detection signal) output from the sensor 2 is information obtained by projecting information indicating an event of the real world 1 onto a lower-dimensional space-time as compared to the real world 1. For example, data 3 that is image data of a moving image is information obtained by projecting a three-dimensional spatial and temporal image of the real world 1 into a two-dimensional spatial and temporal spatio-temporal image. It is. Further, for example, when the data 3 is digital data, the data 3 is rounded according to a sampling unit. When the data 3 is analog data, the information in the data 3 is compressed or a part of the information is deleted by a limiter or the like according to the dynamic range.
[0021]
In this manner, by projecting a signal that is information indicating an event of the real world 1 having a predetermined dimension onto the data 3 (detection signal), a part of the information indicating the event of the real world 1 is lost. That is, in the data 3 output by the sensor 2, a part of the information indicating the event of the real world 1 is missing.
[0022]
However, although a part of the information indicating the event of the real world 1 is missing due to the projection, the data 3 includes significant information for estimating a signal that is information indicating the event (phenomenon) of the real world 1. I have.
[0023]
In the present invention, information having continuity included in the data 3 is used as significant information for estimating a signal which is information of the real world 1. Stationarity is a newly defined concept.
[0024]
Here, focusing on the real world 1, the event of the real world 1 includes a certain feature in a direction of a predetermined dimension. For example, in an object (a tangible object) in the real world 1, a shape, a pattern, a color, or the like is continuous or a pattern such as a shape, a pattern, or a color is repeated in a space direction or a time direction.
[0025]
Therefore, information indicating an event in the real world 1 includes a certain feature in a direction of a predetermined dimension.
[0026]
To give a more specific example, a linear object such as a thread, a string, or a rope has a certain characteristic in the longitudinal direction, that is, the spatial direction, that the cross-sectional shape is the same at any position in the longitudinal direction. Having. The feature in the spatial direction that the cross-sectional shape is the same at an arbitrary position in the length direction arises from the feature that the linear object is long.
[0027]
Therefore, the image of the linear object has a certain feature in the longitudinal direction, that is, the spatial direction, that the cross-sectional shape is the same at an arbitrary position in the longitudinal direction.
[0028]
In addition, it can be said that a single-color object, which is a tangible object extending in the spatial direction, has a certain characteristic in the spatial direction that it has the same color regardless of the region.
[0029]
Similarly, an image of a monochrome object, which is a tangible object extending in the spatial direction, has a certain feature in the spatial direction that it has the same color regardless of the region.
[0030]
As described above, since the event of the real world 1 (real world) has a certain characteristic in the direction of the predetermined dimension, the signal of the real world 1 has a certain characteristic in the direction of the predetermined dimension.
[0031]
In the present specification, such a feature that is fixed in the direction of the predetermined dimension is called continuity. The continuity of the signal of the real world 1 (real world) refers to a characteristic of a signal indicating an event of the real world 1 (real world), which is constant in a direction of a predetermined dimension.
[0032]
In the real world 1 (real world), there are countless such stationarities.
[0033]
Next, paying attention to the data 3, since the data 3, which is a signal projected from the sensor 2 as information indicating an event in the real world 1 having a predetermined dimension, is projected, the continuity of the signal in the real world is Contains the corresponding stationarity. It can be said that the data 3 includes the continuity in which the continuity of the signal in the real world is projected.
[0034]
However, as described above, the data 3 output by the sensor 2 lacks a part of the information of the real world 1, and therefore, the data 3 outputs the stationary state included in the signal of the real world 1 (real world). Some are missing.
[0035]
In other words, the data 3 includes, as the data continuity, a part of the continuity of the signal of the real world 1 (real world). The data continuity is a feature of the data 3 that is constant in a direction of a predetermined dimension.
[0036]
In the present invention, the data continuity of the data 3 is used as significant information for estimating a signal that is information indicating an event in the real world 1.
[0037]
For example, in the present invention, information indicating a missing event of the real world 1 is generated by performing signal processing on the data 3 using the continuity of the data.
[0038]
In the present invention, of the dimension of a signal, which is information indicating an event in the real world 1, of the length (space), time, and mass, stationarity in the space direction or the time direction is used.
[0039]
Returning to FIG. 1, the sensor 2 is configured by, for example, a digital still camera or a video camera, captures an image of the real world 1, and outputs image data that is obtained data 3 to the signal processing device 4. The sensor 2 can be, for example, a thermographic device or a pressure sensor using photoelasticity.
[0040]
The signal processing device 4 is composed of, for example, a personal computer.
[0041]
The signal processing device 4 is configured, for example, as shown in FIG. A CPU (Central Processing Unit) 21 executes various processes according to a program stored in a ROM (Read Only Memory) 22 or a storage unit 28. In a RAM (Random Access Memory) 23, a program executed by the CPU 21, data and the like are stored as appropriate. These CPU 21, ROM 22, and RAM 23 are mutually connected by a bus 24.
[0042]
An input / output interface 25 is also connected to the CPU 21 via a bus 24. The input / output interface 25 is connected to an input unit 26 including a keyboard, a mouse, a microphone, and the like, and an output unit 27 including a display, a speaker, and the like. The CPU 21 executes various processes in response to a command input from the input unit 26. Then, the CPU 21 outputs an image, a sound, and the like obtained as a result of the processing to the output unit 27.
[0043]
The storage unit 28 connected to the input / output interface 25 is composed of, for example, a hard disk, and stores programs executed by the CPU 21 and various data. The communication unit 29 communicates with an external device via the Internet or another network. In the case of this example, the communication unit 29 functions as an acquisition unit that captures the data 3 output by the sensor 2.
[0044]
Alternatively, a program may be obtained via the communication unit 29 and stored in the storage unit 28.
[0045]
The drive 30 connected to the input / output interface 25 drives a magnetic disk 51, an optical disk 52, a magneto-optical disk 53, a semiconductor memory 54, or the like when mounted, and drives programs and data recorded thereon. Get etc. The acquired programs and data are transferred to and stored in the storage unit 28 as necessary.
[0046]
FIG. 3 is a block diagram illustrating the signal processing device 4.
[0047]
Note that it does not matter whether each function of the signal processing device 4 is realized by hardware or software. That is, each block diagram in this specification may be considered as a hardware block diagram or a functional block diagram using software.
[0048]
In the signal processing device 4 having the configuration shown in FIG. 3, image data which is an example of the data 3 is input, and data continuity is detected from the input image data (input image). Next, the signal of the real world 1 acquired by the sensor 2 is estimated from the continuity of the detected data. Then, an image is generated based on the estimated signal of the real world 1 and the generated image (output image) is output. That is, FIG. 3 is a diagram illustrating a configuration of the signal processing device 4 that is an image processing device.
[0049]
The input image (image data as an example of the data 3) input to the signal processing device 4 is supplied to the data continuity detecting unit 101 and the real world estimating unit 102.
[0050]
The data continuity detection unit 101 detects data continuity from the input image and supplies data continuity information indicating the detected continuity to the real world estimation unit 102 and the image generation unit 103. The data continuity information includes, for example, the position of a pixel region having data continuity in the input image, the direction of the pixel region having data continuity (angle or inclination in the time direction and the spatial direction), or the data It includes the length of a region of a pixel having stationarity and the like. Details of the configuration of the data continuity detecting unit 101 will be described later.
[0051]
The real world estimating unit 102 estimates a signal of the real world 1 based on the input image and the data continuity information supplied from the data continuity detecting unit 101. That is, the real-world estimating unit 102 estimates an image, which is a real-world signal, incident on the sensor 2 when the input image is acquired. The real world estimating unit 102 supplies real world estimation information indicating the result of estimation of the signal of the real world 1 to the image generating unit 103. Details of the configuration of the real world estimation unit 102 will be described later.
[0052]
The image generation unit 103 generates and generates a signal that is closer to the signal of the real world 1 based on the real world estimation information indicating the estimated signal of the real world 1 supplied from the real world estimation unit 102. Output a signal. Alternatively, the image generation unit 103 uses the data continuity information supplied from the data continuity detection unit 101 and the real world estimation information indicating the signal of the estimated real world 1 supplied from the real world estimation unit 102. Then, a signal that is closer to the signal of the real world 1 is generated, and the generated signal is output.
[0053]
That is, the image generation unit 103 generates an image closer to the image of the real world 1 based on the real world estimation information, and outputs the generated image as an output image. Alternatively, the image generation unit 103 generates an image closer to the image of the real world 1 based on the data continuity information and the real world estimation information, and outputs the generated image as an output image.
[0054]
For example, based on the real world estimation information, the image generation unit 103 integrates the estimated image of the real world 1 in a desired space direction or time direction range to compare the image with the input image in the space direction or in the space direction. A high-resolution image is generated in the time direction, and the generated image is output as an output image. For example, the image generation unit 103 generates an image by extrapolation and outputs the generated image as an output image.
[0055]
Details of the configuration of the image generation unit 103 will be described later.
[0056]
Next, the principle of the present invention will be described with reference to FIGS.
[0057]
FIG. 4 is a diagram illustrating the principle of processing in the conventional signal processing device 121. The conventional signal processing device 121 performs a process such as a higher resolution with the data 3 as a processing reference and the data 3 as a processing target. In the conventional signal processing device 121, the real world 1 is not taken into consideration, and the data 3 is the final reference, and it is not possible to obtain more information than the information included in the data 3 as an output.
[0058]
Further, in the conventional signal processing device 121, since the distortion due to the sensor 2 (difference between the signal which is information of the real world 1 and the data 3) existing in the data 3 is not considered at all, the conventional signal processing device 121 A signal containing distortion is output. Further, depending on the content of the processing of the signal processing device 121, the distortion caused by the sensor 2 existing in the data 3 is further amplified, and data including the amplified distortion is output.
[0059]
As described above, in the conventional signal processing, the (real signal) of the real world 1 from which the data 3 is obtained is not considered. In other words, in the conventional signal processing, since the real world 1 is captured within the frame of the information included in the data 3, the limit of the signal processing is determined by the information and the distortion included in the data 3. Is done.
[0060]
On the other hand, in the signal processing of the present invention, the processing is executed in consideration of (the signal of) the real world 1 itself.
[0061]
FIG. 5 is a diagram illustrating the principle of processing in the signal processing device 4 according to the present invention.
[0062]
It is the same as the related art in that the sensor 2 acquires a signal as information indicating an event in the real world 1 and the sensor 2 outputs data 3 obtained by projecting the signal as the information in the real world 1.
[0063]
However, in the present invention, a signal which is information indicating an event of the real world 1 and acquired by the sensor 2 is explicitly considered. That is, the signal processing is performed in consideration of the fact that the data 3 includes distortion caused by the sensor 2 (difference between a signal which is information of the real world 1 and the data 3).
[0064]
By doing so, in the signal processing of the present invention, the result of the processing is not limited by the information and distortion included in the data 3, and for example, the event of the real world 1 , A more accurate and more accurate processing result can be obtained. That is, according to the present invention, a more accurate and more accurate processing result can be obtained for a signal that is input to the sensor 2 and that indicates information about an event in the real world 1.
[0065]
6 and 7 are diagrams for more specifically explaining the principle of the present invention.
[0066]
As shown in FIG. 6, for example, a signal of the real world 1, which is an image, is converted by a lens or an optical system 141 such as an optical LPF (Low Pass Filter) into a CCD (Charge Coupled Device) which is an example of the sensor 2. )). Since the CCD, which is an example of the sensor 2, has an integration characteristic, the data 3 output from the CCD has a difference from the image of the real world 1. Details of the integration characteristic of the sensor 2 will be described later.
[0067]
In the signal processing of the present invention, the relationship between the image of the real world 1 acquired by the CCD and the data 3 captured and output by the CCD is clearly considered. That is, the relationship between the data 3 and the signal that is the information of the real world acquired by the sensor 2 is clearly considered.
[0068]
More specifically, as shown in FIG. 7, the signal processing device 4 approximates (describes) the real world 1 using the model 161. The model 161 is represented by, for example, N variables. More precisely, the model 161 approximates (describes) the real world 1 signal.
[0069]
In order to predict the model 161, the signal processing device 4 extracts M data 162 from the data 3. When extracting the M pieces of data 162 from the data 3, the signal processing device 4 uses the continuity of the data included in the data 3. In other words, the signal processing device 4 extracts data 162 for predicting the model 161 based on the stationarity of the data included in the data 3. As a result, the model 161 is constrained by the stationarity of the data.
[0070]
That is, when the model 161 is acquired by the sensor 2, the information (indicating an event (indicating an event (in the real world 1) in the real world 1) that causes continuity of data in the data 3 and has continuity (a constant feature in a predetermined dimensional direction). Signal)).
[0071]
Here, if the number M of the data 162 is equal to or more than the number N of model variables, the model 161 represented by the N variables can be predicted from the M data 162.
[0072]
As described above, by predicting the model 161 that approximates (describes) (the signal of) the real world 1, the signal processing device 4 can consider a signal that is information of the real world 1.
[0073]
Next, the integration effect of the sensor 2 will be described.
[0074]
An image sensor, such as a CCD or a CMOS (Complementary Metal-Oxide Semiconductor) sensor, which is an image sensor 2 that projects an image, projects a signal, which is information of the real world, into two-dimensional data when imaging the real world. Each pixel of the image sensor has a predetermined area as a so-called light receiving surface (light receiving region). Light incident on a light receiving surface having a predetermined area is integrated in the spatial direction and the time direction for each pixel, and is converted into one pixel value for each pixel.
[0075]
The spatial and temporal integration of an image will be described with reference to FIGS.
[0076]
The image sensor captures an image of an object in the real world, and outputs image data obtained as a result of the capture in units of one frame. That is, the image sensor acquires a signal of the real world 1, which is light reflected by the object of the real world 1, and outputs data 3.
[0077]
For example, the image sensor outputs image data composed of 30 frames per second. In this case, the exposure time of the image sensor can be set to 1/30 second. The exposure time is a period from when the image sensor starts to convert incident light into electric charges until the image sensor finishes converting the incident light into electric charges. Hereinafter, the exposure time is also referred to as a shutter time.
[0078]
FIG. 8 is a diagram illustrating an example of the arrangement of pixels on the image sensor. In FIG. 8, A to I indicate individual pixels. The pixels are arranged on a plane corresponding to the image displayed by the image data. One detection element corresponding to one pixel is arranged on the image sensor. When the image sensor captures an image of the real world 1, one detection element outputs one pixel value corresponding to one pixel constituting the image data. For example, the position (X coordinate) of the detection element in the spatial direction X corresponds to the horizontal position on the image displayed by the image data, and the position (Y coordinate) of the detection element in the spatial direction Y is determined by the image data. This corresponds to the vertical position on the displayed image.
[0079]
The distribution of the light intensity of the real world 1 has a spread in the three-dimensional spatial direction and the temporal direction, but the image sensor acquires the light of the real world 1 in the two-dimensional spatial direction and the temporal direction, Data 3 expressing the distribution of light intensity in the spatial direction and the time direction is generated.
[0080]
As shown in FIG. 9, for example, a detection element such as a CCD converts light input to a light receiving surface (light receiving area) (detection area) into electric charges for a period corresponding to a shutter time, and converts the converted electric charges. To accumulate. Light is information (signal) in the real world 1 whose intensity is determined by a position in a three-dimensional space and time. The distribution of light intensity in the real world 1 can be represented by a function F (x, y, z, t) with variables x, y, and z in a three-dimensional space and time t.
[0081]
The amount of charge stored in the detection element, which is a CCD, is substantially proportional to the intensity of light incident on the entire light receiving surface having a two-dimensional spatial spread and the time during which the light is incident. During a period corresponding to the shutter time, the detection element adds the charge converted from the light incident on the entire light receiving surface to the already accumulated charge. That is, the detection element integrates light incident on the entire light receiving surface having a two-dimensional spatial spread for a period corresponding to the shutter time, and accumulates an amount of charge corresponding to the integrated light. It can be said that the detection element has an integration effect on space (light receiving surface) and time (shutter time).
[0082]
The electric charge accumulated in the detection element is converted into a voltage value by a circuit (not shown), and the voltage value is further converted into a pixel value such as digital data and output as data 3. Therefore, the individual pixel values output from the image sensor represent a part of the information (signal) of the real world 1 having a temporal and spatial spread in the time direction of the shutter time and the spatial direction of the light receiving surface of the detection element. It has a value projected onto a one-dimensional space, which is the result of integration.
[0083]
That is, the pixel value of one pixel is represented by integration of F (x, y, t). F (x, y, t) is a function representing the distribution of light intensity on the light receiving surface of the detection element. For example, the pixel value P is represented by Expression (1).
[0084]
(Equation 1)
Figure 2004246526
Figure 2004246526
[0085]
In equation (1), x1Is the spatial coordinate (X coordinate) of the left boundary of the light receiving surface of the detection element. x2Is the spatial coordinate (X coordinate) of the right boundary of the light receiving surface of the detection element. In equation (1), y1Is the spatial coordinate (Y coordinate) of the upper boundary of the light receiving surface of the detection element. y2Is the spatial coordinate (Y coordinate) of the lower boundary of the light receiving surface of the detection element. Also, t1Is the time at which the conversion of the incident light into charge has started. t2Is the time at which the conversion of the incident light into charges has been completed.
[0086]
Actually, the gain of the pixel value of the image data output from the image sensor is corrected for, for example, the entire frame.
[0087]
Each pixel value of the image data is an integral value of the light incident on the light receiving surface of each detection element of the image sensor. Of the light incident on the image sensor, the real world 1 smaller than the light receiving surface of the detection element is used. The light waveform is hidden by the pixel value as an integrated value.
[0088]
Hereinafter, in the present specification, a waveform of a signal expressed on the basis of a predetermined dimension is also simply referred to as a waveform.
[0089]
As described above, since the image of the real world 1 is integrated in the spatial direction and the temporal direction in units of pixels, a part of the continuity of the image of the real world 1 is lost in the image data, Only another part of the stationarity of one image will be included in the image data. Alternatively, the image data may include stationarity that has changed from the stationarity of the image in the real world 1.
[0090]
The integration effect in the spatial direction of the image captured by the image sensor having the integration effect will be further described.
[0091]
FIG. 10 is a diagram illustrating a relationship between light incident on the detection elements corresponding to the pixels D to F and pixel values. F (x) in FIG. 10 is an example of a function that represents the distribution of light intensity in the real world 1 with the coordinate x in the spatial direction X in space (on the detection element) as a variable. In other words, F (x) is an example of a function representing the distribution of light intensity in the real world 1 when it is constant in the spatial direction Y and the time direction. In FIG. 10, L indicates the length in the spatial direction X of the light receiving surfaces of the detection elements corresponding to the pixels D to F.
[0092]
The pixel value of one pixel is represented by integration of F (x). For example, the pixel value P of the pixel E is represented by Expression (2).
[0093]
(Equation 2)
Figure 2004246526
Figure 2004246526
[0094]
In equation (2), x1Is the spatial coordinate in the spatial direction X of the left boundary of the light receiving surface of the detection element corresponding to the pixel E. x2Is the spatial coordinate in the spatial direction X of the right boundary of the light receiving surface of the detection element corresponding to the pixel E.
[0095]
Similarly, the integration effect in the time direction of the image captured by the image sensor having the integration effect will be further described.
[0096]
FIG. 11 is a diagram illustrating the relationship between the passage of time, light incident on a detection element corresponding to one pixel, and a pixel value. F (t) in FIG. 11 is a function representing the distribution of light intensity in the real world 1 with time t as a variable. In other words, F (t) is an example of a function representing the distribution of light intensity of the real world 1 when it is constant in the spatial direction Y and the spatial direction X. tsIndicates a shutter time.
[0097]
The frame # n-1 is a frame temporally before the frame #n, and the frame # n + 1 is a frame temporally after the frame #n. That is, frame # n-1, frame #n, and frame # n + 1 are displayed in the order of frame # n-1, frame #n, and frame # n + 1.
[0098]
Note that, in the example shown in FIG.sAnd the frame interval are the same.
[0099]
The pixel value of one pixel is represented by integration of F (t). For example, the pixel value P of the pixel in frame #n is represented by Expression (3).
[0100]
(Equation 3)
Figure 2004246526
Figure 2004246526
[0101]
In equation (3), t1Is the time at which the conversion of the incident light into charge has started. t2Is the time at which the conversion of the incident light into charges has been completed.
[0102]
Hereinafter, the integration effect in the spatial direction by the sensor 2 is simply referred to as the spatial integration effect, and the integration effect in the time direction by the sensor 2 is simply referred to as the time integration effect. Further, the spatial integration effect or the time integration effect is simply referred to as an integration effect.
[0103]
Next, an example of the continuity of the data included in the data 3 acquired by the image sensor having the integration effect will be described.
[0104]
FIG. 12 is a diagram illustrating an image of a linear object (for example, a thin line) in the real world 1, that is, an example of light intensity distribution. 12, the upper position in the figure indicates the intensity (level) of light, the upper right position in the figure indicates a position in the spatial direction X which is one direction in the spatial direction of the image. The position on the right side indicates a position in the spatial direction Y which is another direction in the spatial direction of the image.
[0105]
The image of the linear object in the real world 1 includes a predetermined stationarity. That is, the image shown in FIG. 12 has stationarity in which the cross-sectional shape (change in level with respect to change in position in the direction orthogonal to the length direction) is the same at an arbitrary position in the length direction.
[0106]
FIG. 13 is a diagram illustrating an example of pixel values of image data obtained by actual imaging corresponding to the image illustrated in FIG.
[0107]
FIG. 14 is a schematic diagram of the image data shown in FIG.
[0108]
The schematic diagram shown in FIG. 14 shows a linear object having a diameter shorter than the length L of the light receiving surface of each pixel, which extends in a direction deviated from the arrangement of pixels (vertical or horizontal arrangement of pixels) of the image sensor. FIG. 3 is a schematic diagram of image data obtained by capturing an image with an image sensor. The image incident on the image sensor when the image data shown in FIG. 14 is acquired is the image of the linear object in the real world 1 in FIG.
[0109]
In FIG. 14, the upper position in the drawing indicates a pixel value, the upper right position in the drawing indicates a position in the spatial direction X that is one direction in the spatial direction of the image, and the right position in the drawing is , The position in the spatial direction Y which is another direction in the spatial direction of the image. The direction indicating the pixel value in FIG. 14 corresponds to the level direction in FIG. 12, and the spatial direction X and the spatial direction Y in FIG. 14 are the same as the directions in FIG.
[0110]
When an image of a linear object having a diameter shorter than the length L of the light receiving surface of each pixel is captured by the image sensor, the linear object is schematically illustrated in image data obtained as a result of the imaging, for example, It is represented by a plurality of circular arc shapes (kamaboko type) having a predetermined length, which are arranged obliquely. Each arc shape is almost the same shape. One arc shape is formed vertically on one row of pixels or horizontally on one row of pixels. For example, one arc shape in FIG. 14 is formed on one column of pixels vertically.
[0111]
As described above, for example, in image data captured and acquired by an image sensor, a cross section in the spatial direction Y at an arbitrary position in the length direction, which has an image of a linear object in the real world 1 The stationarity of the same shape has been lost. In addition, the continuity of the image of the linear object in the real world 1 has an arc shape of the same shape formed on one row of pixels vertically or one row of pixels horizontally. Can be said to have changed to a stationarity of being lined up at regular intervals.
[0112]
FIG. 15 is a diagram showing an example of the real world 1 image of a single color object having a linear edge, which is a color different from the background, that is, an example of light intensity distribution. In FIG. 15, the upper position in the drawing indicates the intensity (level) of light, the upper right position in the drawing indicates a position in the spatial direction X which is one direction in the spatial direction of the image, and The position on the right side indicates a position in the spatial direction Y which is another direction in the spatial direction of the image.
[0113]
An image of the real world 1 of an object having a straight edge in a color different from that of the background includes a predetermined continuity. That is, the image shown in FIG. 15 has stationarity in which the cross-sectional shape (change in level with respect to change in position in the direction perpendicular to the edge) is the same at an arbitrary position in the length direction of the edge.
[0114]
FIG. 16 is a diagram illustrating an example of pixel values of image data obtained by actual imaging corresponding to the image illustrated in FIG. As shown in FIG. 16, the image data is composed of pixel values in units of pixels, and thus has a stepped shape.
[0115]
FIG. 17 is a schematic diagram of the image data shown in FIG.
[0116]
The schematic diagram illustrated in FIG. 17 is a color different from the background, in which the edge extends in a direction displaced from the arrangement of the pixels (vertical or horizontal arrangement of the pixels) of the image sensor. FIG. 2 is a schematic diagram of image data obtained by imaging an image of the real world 1 of an object having the object with an image sensor. The image incident on the image sensor when the image data shown in FIG. 17 is acquired is a real world of an object having a color different from the background and having a single-colored linear edge shown in FIG. 1 is an image.
[0117]
In FIG. 17, the upper position in the figure indicates the pixel value, the upper right position in the figure indicates the position in the spatial direction X which is one direction in the spatial direction of the image, and the right position in the figure is , The position in the spatial direction Y which is another direction in the spatial direction of the image. The direction indicating the pixel value in FIG. 17 corresponds to the level direction in FIG. 15, and the spatial direction X and the spatial direction Y in FIG. 17 are the same as the directions in FIG.
[0118]
When an image of the real world 1 which is a color different from the background and has a single color and has a linear edge is captured by an image sensor, the linear edge is schematically represented in image data obtained as a result of the imaging. For example, it is represented by a plurality of pawls of a predetermined length, which are arranged obliquely. Each pawl shape is substantially the same shape. One claw shape is formed vertically on one column of pixels or horizontally on one column of pixels. For example, in FIG. 17, one claw shape is vertically formed on one column of pixels.
[0119]
Thus, for example, in the image data captured and acquired by the image sensor, the image of the real world 1 of an object having a color different from the background and having a single-color, linear edge was present. The continuity that the cross-sectional shape is the same at an arbitrary position in the length direction of the edge is lost. In addition, the continuity of the image of the real world 1 which is a color different from the background and has a single color and has a linear edge has one column of pixels vertically or one column horizontally. It can be said that the same shape of the claw shape formed on the pixel is changed to the continuity in which it is arranged at a constant interval.
[0120]
The data continuity detecting unit 101 detects such continuity of data included in the data 3 which is an input image, for example. For example, the data continuity detecting unit 101 detects data continuity by detecting an area having a certain feature in a direction of a predetermined dimension. For example, the data continuity detecting unit 101 detects a region shown in FIG. 14 in which the same arc shapes are arranged at regular intervals. In addition, for example, the data continuity detecting unit 101 detects a region illustrated in FIG. 17 in which the same claw shapes are arranged at regular intervals.
[0121]
In addition, the data continuity detecting unit 101 detects data continuity by detecting an angle (inclination) in the spatial direction that indicates a similar shape arrangement.
[0122]
Further, for example, the data continuity detecting unit 101 detects data continuity by detecting angles (movements) in the spatial direction and the temporal direction, which indicate how the same shape is arranged in the spatial direction and the temporal direction.
[0123]
Further, for example, the data continuity detecting unit 101 detects data continuity by detecting a length of an area having a certain characteristic in a direction of a predetermined dimension.
[0124]
Hereinafter, the portion of the data 3 in which the image of the real world 1 of a single color having a linear edge and different from the background is projected by the sensor 2 is also referred to as a binary edge.
[0125]
Next, the principle of the present invention will be described more specifically.
[0126]
As shown in FIG. 18, in the conventional signal processing, for example, desired high-resolution data 181 is generated from data 3.
[0127]
On the other hand, in the signal processing according to the present invention, the real world 1 is estimated from the data 3, and the high-resolution data 181 is generated based on the estimation result. That is, as shown in FIG. 19, the real world 1 is estimated from the data 3, and the high-resolution data 181 is generated from the estimated real world 1 in consideration of the data 3.
[0128]
In order to generate the high-resolution data 181 from the real world 1, it is necessary to consider the relationship between the real world 1 and the data 3. For example, what happens when the real world 1 is projected onto the data 3 by the sensor 2, which is a CCD, is considered.
[0129]
The sensor 2 which is a CCD has an integration characteristic as described above. That is, one unit (for example, a pixel value) of the data 3 can be calculated by integrating a signal of the real world 1 with a detection area (for example, a light receiving surface) of a detection element (for example, a CCD) of the sensor 2. it can.
[0130]
When this is applied to the high-resolution data 181, high-resolution data 181 is obtained by applying the process of projecting the signal of the real world 1 to the data 3 by the virtual high-resolution sensor to the estimated real world 1. be able to.
[0131]
In other words, as shown in FIG. 20, if the signal of the real world 1 can be estimated from the data 3, the signal of the real world 1 is output for each detection region of the detection element of the virtual high-resolution sensor (in the space-time direction). 1), one value included in the high-resolution data 181 can be obtained.
[0132]
For example, when the change of the signal of the real world 1 is smaller than the size of the detection area of the detection element of the sensor 2, the data 3 cannot represent the small change of the signal of the real world 1. Therefore, by comparing the signal of the real world 1 estimated from the data 3 with respect to the change of the signal of the real world 1 and integrating each smaller area (in the spatio-temporal direction), the signal of the real world 1 is small. High-resolution data 181 indicating a change can be obtained.
[0133]
That is, for each detection element of the virtual high-resolution sensor, the high-resolution data 181 can be obtained by integrating the estimated real world 1 signal in the detection area.
[0134]
In the present invention, for example, the image generation unit 103 integrates the estimated real world 1 signal in a space-time region of each detection element of a virtual high-resolution sensor, and thereby converts the high-resolution data 181. Generate.
[0135]
Next, in order to estimate the real world 1 from the data 3, in the present invention, the relationship between the data 3 and the real world 1, the stationarity, and the spatial mixing in the data 3 are used.
[0136]
Here, the term “mixing” means that signals of two objects in the real world 1 are mixed into one value in the data 3.
[0137]
Spatial mixing refers to mixing of signals for two objects in the spatial direction due to the spatial integration effect of the sensor 2.
[0138]
The real world 1 itself consists of an infinite number of events. Therefore, in order to express the real world 1 itself by, for example, a mathematical expression, an infinite number of variables are required. From data 3, it is not possible to predict all events in real world 1.
[0139]
Similarly, it is not possible to predict all the signals of the real world 1 from the data 3.
[0140]
Therefore, as shown in FIG. 21, in the present invention, attention is paid to a part of the signal of the real world 1 which has stationarity and can be represented by a function f (x, y, z, t). A part of the signal of the real world 1 having a stationarity, which can be represented by a function f (x, y, z, t), is approximated by a model 161 represented by N variables. Then, as shown in FIG. 22, a model 161 is predicted from M pieces of data 162 in data 3.
[0141]
To enable the model 161 to be predicted from the M data 162, first, the model 161 is represented by N variables based on stationarity, and secondly, based on the integral characteristics of the sensor 2. , It is necessary to formulate an expression using N variables, which indicates the relationship between the model 161 represented by N variables and the M data 162. Since the model 161 is represented by N variables based on the stationarity, N variables indicating the relationship between the model 161 represented by N variables and the M data 162 were used. It can be said that the expression describes the relationship between the signal part of the real world 1 having the stationarity and the data part 3 having the stationarity of the data.
[0142]
In other words, the part of the signal of the real world 1 having the stationarity, which is approximated by the model 161 expressed by N variables, causes the data 3 to have the stationarity of the data.
[0143]
The data continuity detecting unit 101 detects features of a portion of the data 3 where the continuity of the data has occurred and a portion of the portion where the continuity of the data has occurred, based on the signal portion of the real world 1 having the continuity.
[0144]
For example, as shown in FIG. 23, in the image of the real world 1 of a single color having a straight edge, which is a color different from the background, the edge at the position of interest indicated by A in FIG. , Have a slope. The arrow in B in FIG. 23 indicates the inclination of the edge. The inclination of the predetermined edge can be represented by an angle with respect to a reference axis or a direction with respect to a reference position. For example, the inclination of the predetermined edge can be represented by an angle between the coordinate axis in the spatial direction X and the edge. For example, the inclination of the predetermined edge can be represented by a direction indicated by the length in the spatial direction X and the length in the spatial direction Y.
[0145]
When an image of the real world 1 of an object having a color and a linear edge having a color different from the background is acquired by the sensor 2 and the data 3 is output, the data 3 In the image, the claw shape corresponding to the edge is arranged at a position indicated by A 'in FIG. 23 with respect to the position (A) of interest of the edge, and B' in FIG. 23 corresponding to the inclination of the edge of the image of the real world 1. The claw shapes corresponding to the edges are arranged in the direction of inclination indicated by.
[0146]
The model 161 represented by N variables approximates one real-world signal portion that causes data continuity in such data 3.
[0147]
When formulating an expression using N variables indicating the relationship between the model 161 represented by N variables and the M data 162, the value of the portion where data continuity occurs in data 3 is calculated. Use.
[0148]
In this case, in the data 3 shown in FIG. 24, data continuity occurs, and the detection element of the sensor 2 outputs a value obtained by integrating the signal of the real world 1 by focusing on values belonging to the mixed region. An expression is set up as equal to the value. For example, a plurality of formulas can be established for a plurality of values in the data 3 where data continuity occurs.
[0149]
In FIG. 24, A indicates the position of interest of the edge, and A ′ indicates (the position of) the pixel with respect to the position of interest (A) of the edge in the image of the real world 1.
[0150]
Here, the mixed region refers to a data region in which signals of two objects in the real world 1 in the data 3 are mixed to have one value. For example, in data 3 for an image of the real world 1 of an object having a color and a straight edge having a color different from the background, the image for the object having the linear edge and the image for the background are integrated. The pixel value that belongs is in the mixed area.
[0151]
FIG. 25 is a diagram illustrating signals for two objects in the real world 1 and values belonging to a mixed area when an equation is formed.
[0152]
The left side in FIG. 25 shows a signal of the real world 1 for two objects in the real world 1 having a predetermined spread in the spatial direction X and the spatial direction Y acquired in the detection area of one detection element of the sensor 2. Show. The right side in FIG. 25 shows the pixel value P of one pixel of the data 3 in which the signal of the real world 1 shown on the left side of FIG. That is, one of data 3 obtained by projecting a signal of the real world 1 for two objects in the real world 1 having a predetermined spread in the spatial direction X and the spatial direction Y acquired by one detection element of the sensor 2. 4 shows a pixel value P of one pixel.
[0153]
L in FIG. 25 indicates the signal level of the real world 1 in the white part of FIG. R in FIG. 25 indicates the level of the signal of the real world 1 at the portion indicated by the oblique lines in FIG. 25 with respect to another object in the real world 1.
[0154]
Here, the mixture ratio α indicates a ratio of (area of) a signal to two objects that is incident on a detection region having a predetermined spread in the spatial direction X and the spatial direction Y of one detection element of the sensor 2. . For example, the mixing ratio α has a predetermined spread in the spatial direction X and the spatial direction Y with respect to the area of the detection region of one detection element of the sensor 2 and is incident on the detection region of one detection element of the sensor 2. The ratio of the area of the level L signal is shown.
[0155]
In this case, the relationship between the level L, the level R, and the pixel value P can be expressed by Expression (4).
[0156]
α × L + (1−α) × R = P (4)
[0157]
Note that the level R may be the pixel value of the pixel of the data 3 located on the right side of the pixel of interest, and the level L may be located on the left side of the pixel of interest. In some cases, the pixel value of data 3 can be used.
[0158]
The mixing ratio α and the mixing region can be considered in the time direction as in the spatial direction. For example, when the object in the real world 1 to be imaged is moving with respect to the sensor 2, the ratio of the signal for the two objects incident on the detection area of one detection element of the sensor 2 in the time direction Changes. The signals for two objects, which change in the time direction and are incident on the detection area of one detection element of the sensor 2, are projected onto one value of the data 3 by the detection element of the sensor 2.
[0159]
Mixing of signals for two objects in the time direction due to the time integration effect of the sensor 2 is referred to as time mixing.
[0160]
The data continuity detecting unit 101 detects, for example, a pixel area in the data 3 on which signals of the real world 1 for two objects in the real world 1 are projected. The data continuity detecting unit 101 detects, for example, a tilt in the data 3 corresponding to a tilt of an edge of an image of the real world 1.
[0161]
Then, the real world estimating unit 102 generates a model represented by N variables based on, for example, an area of pixels having a predetermined mixture ratio α detected by the data continuity detecting unit 101 and an inclination of the area. A signal using the N variables, which indicates the relationship between the data 161 and the M data 162, is set, and the set equation is solved to estimate the signal of the real world 1.
[0162]
Further, a specific estimation of the real world 1 will be described.
[0163]
Of the real-world signals represented by the function F (x, y, z, t), the real-world signal represented by the function F (x, y, t) in the cross section in the spatial direction Z (the position of the sensor 2) Consider that a signal is approximated by an approximate function f (x, y, t) determined by a position x in the spatial direction X, a position y in the spatial direction Y, and a time t.
[0164]
Here, the detection area of the sensor 2 has a spread in the spatial direction X and the spatial direction Y. In other words, the approximation function f (x, y, t) is a function that approximates the signal of the real world 1 acquired by the sensor 2 and having a spatial and temporal spread.
[0165]
It is assumed that the value P (x, y, t) of the data 3 is obtained by the projection of the signal of the real world 1 by the sensor 2. The value P (x, y, t) of the data 3 is, for example, a pixel value output by the sensor 2 which is an image sensor.
[0166]
Here, when the projection by the sensor 2 can be formulated, a value obtained by projecting the approximate function f (x, y, t) can be represented as a projection function S (x, y, t).
[0167]
There are the following problems in obtaining the projection function S (x, y, t).
[0168]
First, in general, the function F (x, y, z, t) representing the real world 1 signal can be a function of infinite order.
[0169]
Second, even if real-world signals can be described as functions, it is generally not possible to define a projection function S (x, y, t) via the projection of the sensor 2. That is, since the operation of the projection by the sensor 2, in other words, the relationship between the input signal and the output signal of the sensor 2 is not known, the projection function S (x, y, t) cannot be determined.
[0170]
For the first problem, a function f that is a function (for example, a function of a finite order) that can describe a function f (x, y, t) that approximates the signal of the real world 1i(X, y, t) and variable wiConsider expressing the product sum of
[0171]
For the second problem, by formulating the projection by the sensor 2, the function fiFrom the description of (x, y, t), the function Si(X, y, t) can be described.
[0172]
That is, a function f (x, y, t) approximating the signal of the real world 1 is converted to a function fi(X, y, t) and variable wiExpression (5) is obtained by expressing the sum of the products.
[0173]
(Equation 4)
Figure 2004246526
Figure 2004246526
[0174]
For example, as shown in Expression (6), by formulating the projection of the sensor 2, from Expression (5), the relationship between the data 3 and the real world signal is formulated as Expression (7). Can be.
[0175]
(Equation 5)
Figure 2004246526
Figure 2004246526
[0176]
(Equation 6)
Figure 2004246526
Figure 2004246526
In Expression (7), j is an index of data.
[0177]
N variables w in equation (7)iIf there are M data groups (j = 1 to M) having the same (i = 1 to N), Expression (8) is satisfied, so that the real world model 161 can be obtained from the data 3.
[0178]
N ≦ M (8)
N is the number of variables expressing the model 161 approximating the real world 1. M is the number of data 162 included in data 3.
[0179]
By expressing a function f (x, y, t) approximating the signal of the real world 1 by Expression (5), wiAs part of the variable can be independent. At this time, i indicates the number of variables as it is. Also, fiCan be independent from each other, and fiAs a result, a desired function can be used.
[0180]
Therefore, the function fiVariable wiN can be defined, and the variable wiVariable w in the relationship between the number N of data and the number M of dataiCan be requested.
[0181]
That is, by using the following three, the real world 1 can be estimated from the data 3.
[0182]
First, N variables are determined, that is, equation (5) is determined. This is made possible by describing the real world 1 using stationarity. For example, a signal of the real world 1 can be described by a model 161 in which a cross section is represented by a polynomial and the same cross-sectional shape continues in a certain direction.
[0183]
Second, for example, the projection by the sensor 2 is formulated, and the equation (7) is described. For example, the result of integrating the signals of the real world 2 is formulated as data 3.
[0184]
Third, M data 162 are collected to satisfy equation (8). For example, data 162 is collected from an area having data continuity detected by the data continuity detecting unit 101. For example, data 162 of an area where a certain cross section continues, which is an example of stationarity, is collected.
[0185]
As described above, the relationship between the data 3 and the real world 1 is described by the equation (5), and by gathering M pieces of data 162, the real world 1 can be estimated by satisfying the equation (8). it can.
[0186]
More specifically, when N = M, since the number N of variables is equal to the number M of equations, the simultaneous equations are established to obtain the variable w.iCan be requested.
[0187]
When N <M, various solutions can be applied. For example, by the least square method, the variable wiCan be requested.
[0188]
Here, the solution by the least squares method will be described in detail.
[0189]
First, Expression (9) for predicting data 3 from the real world 1 is shown according to Expression (7).
[0190]
(Equation 7)
Figure 2004246526
Figure 2004246526
[0191]
In equation (9), P ′j(Xj, Yj,tj) Is a predicted value.
[0192]
The sum of squares E of the difference between the predicted value P ′ and the actually measured value P is represented by Expression (10).
[0193]
(Equation 8)
Figure 2004246526
Figure 2004246526
[0194]
The variable w is set so that the sum of squared differences E is minimized.iIs required. Therefore, each variable wkIs set to 0. That is, equation (11) holds.
[0195]
(Equation 9)
Figure 2004246526
Figure 2004246526
[0196]
Equation (12) is derived from equation (11).
[0197]
(Equation 10)
Figure 2004246526
Figure 2004246526
[0198]
When Equation (12) holds for K = 1 to N, a solution by the least squares method is obtained. The normal equation at this time is represented by Expression (13).
[0199]
(Equation 11)
Figure 2004246526
Figure 2004246526
However, in equation (13), Si(Xj, Yj, Tj) Is Si(J).
[0200]
(Equation 12)
Figure 2004246526
Figure 2004246526
[0201]
(Equation 13)
Figure 2004246526
Figure 2004246526
[0202]
[Equation 14]
Figure 2004246526
Figure 2004246526
[0203]
From Expressions (14) to (16), Expression (13) is expressed as SMATWMAT= PMATIt can be expressed as.
[0204]
In equation (13), SiRepresents the projection of the real world 1. In equation (13), PjRepresents data 3. In equation (13), wiIs a variable that describes the characteristics of the signal in the real world 1 and seeks to obtain.
[0205]
Therefore, data 3 is input to equation (13), and WMAT, The real world 1 can be estimated. That is, by calculating Expression (17), the real world 1 can be estimated.
[0206]
Figure 2004246526
[0207]
Note that SMATIf is not regular, SMATUsing the transpose ofMATCan be requested.
[0208]
The real-world estimating unit 102 inputs, for example, the data 3 into the equation (13), and performs WMAT, The real world 1 is estimated.
[0209]
Here, an even more specific example will be described. For example, a cross-sectional shape of a signal in the real world 1, that is, a change in level with respect to a change in position is described by a polynomial. It is assumed that the cross section of the signal of the real world 1 is constant and the cross section of the signal of the real world 1 moves at a constant speed. Then, the projection of the signal of the real world 1 by the sensor 2 onto the data 3 is formulated by three-dimensional integration of the signal of the real world 1 in the spatiotemporal direction.
[0210]
Equations (18) and (19) are obtained on the assumption that the cross-sectional shape of the signal in the real world 1 moves at a constant speed.
[0211]
[Equation 15]
Figure 2004246526
Figure 2004246526
[0212]
(Equation 16)
Figure 2004246526
Figure 2004246526
Where vxAnd vyIs constant.
[0213]
The cross-sectional shape of the signal in the real world 1 is expressed by Expression (20) by using Expressions (18) and (19).
[0214]
Figure 2004246526
[0215]
If the projection of the signal of the real world 1 by the sensor 2 onto the data 3 is formulated by three-dimensional integration of the signal of the real world 1 in the spatiotemporal direction, Expression (21) is obtained.
[0216]
[Equation 17]
Figure 2004246526
Figure 2004246526
[0217]
In the equation (21), S (x, y, t) represents the position x in the spatial direction X.sFrom position xeUp to the position y in the spatial direction YsFrom position yeUp to time t in the time direction tsTo time te, Ie, the integrated value of the region represented by the rectangular parallelepiped in space and time.
[0218]
By solving Expression (13) using a desired function f (x ′, y ′) that can determine Expression (21), the signal of the real world 1 can be estimated.
[0219]
In the following, as an example of the function f (x ', y'), the function shown in Expression (22) is used.
[0220]
f (x ', y') = w1x '+ w2y '+ w3
= W1(X + vxt) + w2(Y + vyt) + w3          ... (22)
[0221]
That is, it is assumed that the signal of the real world 1 includes the stationarity represented by Expression (18), Expression (19), and Expression (22). This indicates that the cross section of a certain shape is moving in the space-time direction, as shown in FIG.
[0222]
By substituting equation (22) into equation (21), equation (23) is obtained.
[0223]
(Equation 18)
Figure 2004246526
Figure 2004246526
However,
Volume = (xe-Xs) (Ye-Ys)(Te-Ts)
S0(X, y, t) = Volume / 2 × (xe+ Xs+ Vx(Te+ Ts))
S1(X, y, t) = Volume / 2 × (ye+ Ys+ Vy(Te+ Ts))
S2(X, y, t) = 1
It is.
[0224]
FIG. 27 is a diagram illustrating an example of M pieces of data 162 extracted from data 3. For example, 27 pixel values are extracted as data 162, and the extracted pixel value is Pj(X, y, t). In this case, j is 0 to 26.
[0225]
In the example shown in FIG. 27, the pixel value of the pixel corresponding to the position of interest at time t, which is n, is PThirteen(X, y, t), and the direction in which pixel values of pixels having data continuity are arranged (for example, the direction in which the same claw shape detected by the data continuity detection unit 101 is arranged) is P4(X, y, t), PThirteen(X, y, t), and P22In the direction connecting (x, y, t), the pixel value P at time t which is n9(X, y, t) through P17(X, y, t), the pixel value P at time t which is n-1 and is temporally earlier than n0(X, y, t) through P8(X, y, t), and the pixel value P at time t that is n + 1, which is temporally later than n18(X, y, t) through P26(X, y, t) is extracted.
[0226]
Here, the area where the pixel value as the data 3 output from the image sensor as the sensor 2 is obtained has a spread in a time direction and a two-dimensional spatial direction as shown in FIG. Therefore, for example, as shown in FIG. 29, the center of gravity of a rectangular parallelepiped (region in which a pixel value is obtained) corresponding to a pixel can be used as the position of the pixel in the spatiotemporal direction. The circle in FIG. 29 indicates the center of gravity.
[0227]
27 pixel values P0(X, y, t) through P26By generating Expression (13) from (x, y, t) and Expression (23) and obtaining W, the real world 1 can be estimated.
[0228]
As described above, the real world estimating unit 102 calculates, for example, 27 pixel values P0(X, y, t) through P26Expression (13) is generated from (x, y, t) and Expression (23), and W is obtained to estimate the signal of the real world 1.
[0229]
Note that the function fiAs (x, y, t), a Gaussian function, a sigmoid function, or the like can be used.
[0230]
An example of a process of generating higher-resolution high-resolution data 181 corresponding to data 3 from the estimated signal of the real world 1 will be described with reference to FIGS.
[0231]
As shown in FIG. 30, the data 3 has a value obtained by integrating the signal of the real world 1 in the time direction and the two-dimensional spatial direction. For example, a pixel value as data 3 output from the image sensor as the sensor 2 is obtained by integrating a signal of the real world 1 which is light incident on the detection element with a shutter time as a detection time in a time direction. And has a value integrated in the light receiving area of the detection element in the spatial direction.
[0232]
On the other hand, as shown in FIG. 31, the high-resolution data 181 having a higher resolution in the spatial direction is obtained by converting the estimated signal of the real world 1 in the time direction with the detection time of the sensor 2 that has output the data 3. It is generated by integrating at the same time and by integrating in a narrower area in the spatial direction as compared with the light receiving area of the detection element of the sensor 2 that has output the data 3.
[0233]
When the high-resolution data 181 having a higher resolution in the spatial direction is generated, the region where the estimated signal of the real world 1 is integrated is completely independent of the light receiving region of the detection element of the sensor 2 that outputs the data 3. Can be set. For example, the high-resolution data 181 is given a resolution that is an integer multiple in the spatial direction with respect to the data 3 as well as a rational multiple of the data 3 in the spatial direction, such as 5/3. be able to.
[0234]
Further, as shown in FIG. 32, the high-resolution data 181 having a higher resolution in the time direction is obtained by converting the signal of the estimated real world 1 into the light receiving area of the detection element of the sensor 2 which has output the data 3 in the spatial direction. It is generated by integrating in the same area and integrating in a shorter time than the detection time of the sensor 2 that outputs the data 3 in the time direction.
[0235]
When the high-resolution data 181 having a higher resolution in the time direction is generated, the estimated time for integrating the signal of the real world 1 is completely independent of the shutter time of the detection element of the sensor 2 that outputs the data 3. Can be set. For example, the high-resolution data 181 may have a resolution that is an integral multiple of the data 3 in the time direction with respect to the data 3, and may have a rational multiple of the resolution of the data 3 in the time direction, such as 7/4. be able to.
[0236]
As shown in FIG. 33, the high-resolution data 181 from which the motion blur has been removed is generated by integrating the estimated signal of the real world 1 only in the spatial direction without integrating it in the time direction.
[0237]
Further, as shown in FIG. 34, the high-resolution data 181 having a higher resolution in the temporal direction and the spatial direction converts the estimated signal of the real world 1 into the spatial direction by the detection element of the sensor 2 that outputs the data 3. It is generated by integrating in a narrower area than in the light receiving area and integrating in a shorter time in the time direction as compared with the detection time of the sensor 2 that has output the data 3.
[0238]
In this case, the region and time in which the estimated signal of the real world 1 is integrated can be set completely independently of the light receiving region of the detection element of the sensor 2 that has output the data 3 and the shutter time.
[0239]
As described above, the image generation unit 103 generates higher-resolution data in the time direction or the space direction, for example, by integrating the estimated signal of the real world 1 in a desired space-time region.
[0240]
As described above, by estimating the signal of the real world 1, it is possible to generate more accurate data with higher resolution in the time direction or the spatial direction for the signal of the real world 1.
[0241]
35 to 39, an example of an input image and an example of a processing result of the signal processing device 4 according to the present invention will be described.
[0242]
FIG. 35 is a diagram showing the original image of the input image. FIG. 36 is a diagram illustrating an example of an input image. The input image shown in FIG. 36 is an image in which the average value of the pixel values of the pixels belonging to the block of 2 × 2 pixels of the image shown in FIG. 35 is generated as the pixel value of one pixel. That is, the input image is an image obtained by applying spatial integration that imitates the integration characteristics of the sensor to the image shown in FIG.
[0243]
The original image shown in FIG. 35 includes an image of a thin line inclined approximately 5 degrees clockwise from the vertical direction. Similarly, the input image shown in FIG. 36 includes a thin line image inclined approximately 5 degrees clockwise from the vertical direction.
[0244]
FIG. 37 is a diagram showing an image obtained by applying the conventional classification adaptive processing to the input image shown in FIG. Here, the class classification adaptation process includes a class classification process and an adaptation process. The class classification process classifies the data into classes based on their properties, and performs an adaptation process for each class. In the adaptive processing, for example, an image of low image quality or standard image quality is converted into a high image quality image by mapping (mapping) using a predetermined tap coefficient.
[0245]
In the image shown in FIG. 37, it can be seen that the thin line image is different from the original image in FIG.
[0246]
FIG. 38 is a diagram illustrating a result of detecting a thin line region from the input image illustrated in the example of FIG. 36 by the data continuity detection unit 101. In FIG. 38, a white region indicates a thin line region, that is, a region where the arc shapes shown in FIG. 14 are arranged.
[0247]
FIG. 39 is a diagram illustrating an example of an output image output from the signal processing device 4 according to the present invention, using the image illustrated in FIG. 36 as an input image. As shown in FIG. 39, according to the signal processing device 4 of the present invention, an image closer to the thin line image of the original image shown in FIG. 35 can be obtained.
[0248]
FIG. 40 is a flowchart illustrating signal processing by the signal processing device 4 according to the present invention.
[0249]
In step S101, the data continuity detecting unit 101 executes a process of detecting continuity. The data continuity detecting unit 101 detects the continuity of the data included in the input image that is the data 3, and outputs data continuity information indicating the continuity of the detected data to the real world estimating unit 102 and the image generating unit. 103.
[0250]
The data continuity detecting unit 101 detects data continuity corresponding to continuity of a signal in the real world. In the process of step S101, the continuity of the data detected by the data continuity detecting unit 101 is a part of the continuity of the image of the real world 1 included in the data 3 or the signal of the real world 1 Is the stationarity that has changed from the stationarity of
[0251]
For example, the data continuity detecting unit 101 detects data continuity by detecting an area having a certain feature in a direction of a predetermined dimension. Further, for example, the data continuity detecting unit 101 detects the continuity of data by detecting an angle (inclination) in the spatial direction that indicates a similar arrangement of shapes.
[0252]
The details of the processing for detecting the stationarity in step S101 will be described later.
[0253]
Note that the data continuity information can be used as a feature amount indicating the feature of the data 3.
[0254]
In step S102, the real world estimating unit 102 executes a process of estimating the real world. That is, the real world estimating unit 102 estimates the signal of the real world 1 based on the input image and the data continuity information supplied from the data continuity detecting unit 101. For example, in the process of step S102, the real world estimating unit 102 estimates a signal of the real world 1 by predicting a model 161 that approximates (describes) the real world 1. The real world estimation unit 102 supplies real world estimation information indicating the estimated signal of the real world 1 to the image generation unit 103.
[0255]
For example, the real world estimating unit 102 estimates the signal of the real world 1 by estimating the width of a linear object. Further, for example, the real world estimating unit 102 estimates the signal of the real world 1 by predicting the level indicating the color of the linear object.
[0256]
Details of the process of estimating the real world in step S102 will be described later.
[0257]
Note that the real world estimation information can be used as a feature amount indicating the feature of the data 3.
[0258]
In step S103, the image generation unit 103 executes a process of generating an image, and the process ends. That is, the image generation unit 103 generates an image based on the real world estimation information, and outputs the generated image. Alternatively, the image generation unit 103 generates an image based on the data continuity information and the real world estimation information, and outputs the generated image.
[0259]
For example, in the process of step S103, the image generation unit 103 integrates the estimated real-world light in the spatial direction based on the real-world estimation information, thereby achieving higher resolution in the spatial direction compared to the input image. Is generated, and the generated image is output. For example, the image generation unit 103 integrates the estimated real-world light in the spatio-temporal direction based on the real-world estimation information, so that an image with a higher resolution in the temporal direction and the spatial direction is compared with the input image. Is generated, and the generated image is output. Details of the image generation processing in step S103 will be described later.
[0260]
As described above, the signal processing device 4 according to the present invention detects the data continuity from the data 3 and estimates the real world 1 based on the detected data continuity. Then, the signal processing device 4 generates a signal closer to the real world 1 based on the estimated real world 1.
[0261]
As described above, when processing is performed by estimating a signal in the real world, an accurate and high-accuracy processing result can be obtained.
[0262]
A first signal, which is a real-world signal having the first dimension, is projected, and a second dimension of the second dimension is smaller than the first dimension in which a part of the continuity of the real-world signal is missing. By detecting the stationarity of data corresponding to the stationarity of the missing real-world signal of the signal and estimating the stationarity of the missing real-world signal based on the stationarity of the detected data, Is estimated, a more accurate and more accurate processing result can be obtained for a real-world event.
[0263]
Next, details of the configuration of the data continuity detecting unit 101 will be described.
[0264]
FIG. 41 is a block diagram illustrating a configuration of the data continuity detecting unit 101.
[0265]
The data continuity detecting unit 101 having the configuration shown in FIG. 41 detects the continuity of the data included in the data 3 due to the continuity that the cross-sectional shape of the object has the same when capturing an image of the object as a thin line. Is detected. In other words, the data continuity detecting unit 101 having the configuration shown in FIG. 41 is configured to detect light at a given position in the length direction of an image of the real world 1 as a thin line with respect to a change in position in a direction orthogonal to the length direction. The continuity of the data included in the data 3 resulting from the continuity that the level change is the same is detected.
[0266]
More specifically, the data continuity detecting unit 101 having the configuration shown in FIG. 41 is adjacent to the thin line image in the data 3 obtained by imaging the thin line image with the sensor 2 having the spatial integration effect. An area in which a plurality of arc shapes (kamaboko shapes) having a predetermined length are arranged is detected.
[0267]
The data continuity detecting unit 101 detects a portion of image data (hereinafter, also referred to as a stationary component) other than an image data portion (hereinafter, also referred to as a stationary component) in which a thin line image having data continuity is projected from the input image as the data 3. (Referred to as a non-stationary component), and from the extracted non-stationary component and the input image, a pixel on which the image of the real world 1 thin line is projected is detected. An area consisting of projected pixels is detected.
[0268]
The non-stationary component extraction unit 201 extracts a non-stationary component from the input image and supplies, together with the input image, non-stationary component information indicating the extracted non-stationary component to the vertex detection unit 202 and the monotone increase / decrease detection unit 203.
[0269]
For example, as shown in FIG. 42, when an image of the real world 1 having a thin line in front of a background having a substantially constant light level is projected on the data 3, as shown in FIG. The unit 201 extracts the non-stationary component as the background by approximating the background in the input image as the data 3 with a plane. In FIG. 43, a solid line indicates a pixel value of data 3, and a dotted line indicates an approximate value indicated by a plane approximating the background. In FIG. 43, A indicates the pixel value of the pixel on which the thin line image is projected, and PL indicates a plane approximating the background.
[0270]
As described above, the pixel values of a plurality of pixels in the image data portion having data continuity are discontinuous with respect to the non-stationary component.
[0271]
The non-stationary component extraction unit 201 projects an image that is an optical signal of the real world 1 and obtains a pixel value of a plurality of pixels of the image data of data 3 in which a part of the stationarity of the image of the real world 1 is missing. Detect discontinuities.
[0272]
The details of the process of extracting the unsteady component in the unsteady component extraction unit 201 will be described later.
[0273]
The vertex detection unit 202 and the monotone increase / decrease detection unit 203 remove the unsteady component from the input image based on the unsteady component information supplied from the unsteady component extraction unit 201. For example, the vertex detection unit 202 and the monotone increase / decrease detection unit 203 remove the non-stationary component from the input image by setting the pixel value of the pixel on which only the background image is projected among the pixels of the input image to 0. I do. In addition, for example, the vertex detection unit 202 and the monotone increase / decrease detection unit 203 remove non-stationary components from the input image by subtracting a value approximated by the plane PL from the pixel value of each pixel of the input image.
[0274]
Since the background can be removed from the input image, the vertex detection unit 202 to the continuity detection unit 204 can process only the portion of the image data on which the thin line is projected, and The processing in the sex detection unit 204 becomes easier.
[0275]
Note that the non-stationary component extraction unit 201 may supply image data obtained by removing the non-stationary component from the input image to the vertex detection unit 202 and the monotone increase / decrease detection unit 203.
[0276]
In the example of the processing described below, image data obtained by removing non-stationary components from an input image, that is, image data consisting only of pixels including a stationary component, is targeted.
[0277]
Here, image data on which a fine line image is projected, which is to be detected by the vertex detection unit 202 to the continuity detection unit 204, will be described.
[0278]
The image sensor on which the thin line image shown in FIG. 42 is projected in the spatial direction Y (the change in pixel value with respect to the change in the position in the spatial direction) has no optical LPF. From the spatial integration effect of, it can be considered that a trapezoid shown in FIG. 44 or a triangle shown in FIG. 45 is obtained. However, a normal image sensor includes an optical LPF, and the image sensor acquires an image that has passed through the optical LPF and projects the acquired image on the data 3. Therefore, in reality, the spatial direction Y of the thin line image data is actually used. Has a shape similar to a Gaussian distribution as shown in FIG.
[0279]
The vertex detection unit 202 to the continuity detection unit 204 are pixels on which a thin line image is projected, and have the same cross-sectional shape (change in pixel value with respect to change in position in the spatial direction) at regular intervals in the vertical direction of the screen. By detecting the region consisting of the lines, and further detecting the connection of the regions corresponding to the length direction of the thin line in the real world 1, the image of the thin line, which is the region having data continuity, is projected. An area composed of the pixels is detected. That is, the vertex detection unit 202 to the continuity detection unit 204 detect an area where an arc shape (kamaboko shape) is formed on one column of pixels in the input image vertically, and the detected area is in the horizontal direction. It is determined whether or not they are adjacent to each other, and the connection of the regions where the arc shape is formed corresponding to the length direction of the thin line image which is the signal of the real world 1 is detected.
[0280]
Further, the vertex detection unit 202 to the continuity detection unit 204 detect a region where pixels of the thin line image are projected and have the same cross-sectional shape arranged at regular intervals in the horizontal direction of the screen. By detecting the connection of the detected areas corresponding to the length direction of the thin line in the real world 1, an area having data continuity, that is, an area composed of pixels onto which a thin line image is projected is detected. . That is, the vertex detection unit 202 to the continuity detection unit 204 detect a region where an arc shape is formed on a row of pixels in the input image, and the detected region is vertically adjacent. It is determined whether they are arranged or not, and the connection of the regions where the arc shape is formed corresponding to the length direction of the thin line image which is the signal of the real world 1 is detected.
[0281]
First, a description will be given of a process of detecting a region where pixels of which a thin line image is projected and in which the same arc shape is arranged at regular intervals in the vertical direction of the screen.
[0282]
The vertex detection unit 202 detects a pixel having a larger pixel value than the surrounding pixels, that is, a vertex, and supplies vertex information indicating the position of the vertex to the monotone increase / decrease detection unit 203. When targeting pixels arranged in one line in the vertical direction of the screen, the vertex detection unit 202 compares the pixel value of the pixel located on the upper side of the screen and the pixel value of the pixel located on the lower side of the screen with: A pixel having a larger pixel value is detected as a vertex. The vertex detection unit 202 detects one or a plurality of vertices from one image, for example, one frame image.
[0283]
One screen includes a frame or a field. The same applies to the following description.
[0284]
For example, the vertex detection unit 202 selects a pixel of interest from pixels that have not yet been set as the pixel of interest from the image of one frame, and compares the pixel value of the pixel of interest with the pixel value of the pixel above the pixel of interest. The pixel value of the target pixel is compared with the pixel value of the lower pixel of the target pixel, and a pixel value having a pixel value larger than the pixel value of the upper pixel and a pixel value larger than the pixel value of the lower pixel is calculated. The detected pixel of interest is detected, and the detected pixel of interest is set as the vertex. The vertex detection unit 202 supplies vertex information indicating the detected vertex to the monotonous increase / decrease detection unit 203.
[0285]
The vertex detection unit 202 may not detect a vertex in some cases. For example, when the pixel values of the pixels of one image are all the same, or when the pixel value decreases in one or two directions, no vertex is detected. In this case, the thin line image is not projected on the image data.
[0286]
The monotone increase / decrease detection unit 203 is a pixel that is arranged in a line in the vertical direction with respect to the vertex detected by the vertex detection unit 202 based on the vertex information indicating the position of the vertex supplied from the vertex detection unit 202. , And detects area candidates consisting of pixels onto which the fine line image is projected, and supplies area information indicating the detected area to the continuity detection unit 204 together with vertex information.
[0287]
More specifically, the monotonous increase / decrease detection unit 203 sets a region including a pixel having a monotonically decreasing pixel value as a candidate for a region including a pixel onto which a thin line image is projected with reference to the pixel value at the vertex. To detect. Monotonically decreasing means that the pixel value of a pixel whose distance from the vertex is longer is smaller than the pixel value of a pixel whose distance from the vertex is short.
[0288]
In addition, the monotonous increase / decrease detection unit 203 detects a region including pixels having a monotonically increasing pixel value as a candidate for a region including a pixel onto which a thin line image is projected with reference to the pixel value at the vertex. Monotonic increase means that the pixel value of a pixel whose distance from the vertex is longer is larger than the pixel value of a pixel whose distance from the vertex is short.
[0289]
Hereinafter, the process for the region including the pixel having the monotonically increasing pixel value is the same as the process for the region including the pixel having the monotonically decreasing pixel value, and the description thereof will be omitted. In the process of detecting a region in which a thin line image is projected and in which the same arc shape is arranged at a constant interval in the horizontal direction of the screen, a region including a pixel having a monotonically increasing pixel value Is also the same as the processing for an area composed of pixels having monotonically decreasing pixel values, and a description thereof will be omitted.
[0290]
For example, the monotonous increase / decrease detection unit 203 calculates the difference between the pixel value of each pixel and the pixel value of the upper pixel and the difference between the pixel value of the lower pixel and the pixel value of the lower pixel for each pixel in one column vertically with respect to the vertex. Ask for. Then, the monotone increase / decrease detection unit 203 detects an area where the pixel value monotonously decreases by detecting a pixel whose sign of the difference changes.
[0291]
Further, the monotonous increase / decrease detection unit 203 sets, from the region where the pixel value is monotonically decreasing, a region including pixels having the same sign as the sign of the pixel value of the vertex on the basis of the sign of the pixel value of the vertex, The thin line image is detected as a candidate for an area composed of projected pixels.
[0292]
For example, the monotonous increase / decrease detection unit 203 compares the sign of the pixel value of each pixel with the sign of the pixel value of the upper pixel and the sign of the pixel value of the lower pixel, and determines the pixel whose sign of the pixel value changes. As a result of the detection, an area composed of pixels having the pixel value of the same sign as the vertex is detected from the area where the pixel value monotonously decreases.
[0293]
As described above, the monotonous increase / decrease detection unit 203 detects an area including pixels arranged in the up-down direction, in which the pixel value monotonously decreases with respect to the vertex, and having the pixel value of the same sign as the vertex.
[0294]
FIG. 47 is a diagram illustrating a process of detecting a vertex and detecting a monotonously increasing / decreasing region, which detects a region of a pixel on which a thin line image is projected, from a pixel value with respect to a position in the spatial direction Y.
[0295]
47 to 49, P indicates a vertex. In the description of the data continuity detecting unit 101 whose configuration is shown in FIG. 41, P indicates a peak.
[0296]
The vertex detection unit 202 compares the pixel value of each pixel with the pixel value of a pixel adjacent thereto in the spatial direction Y, and determines a pixel having a pixel value larger than the pixel value of two pixels adjacent in the spatial direction Y. , The vertex P is detected.
[0297]
The region including the vertex P and the pixels on both sides in the spatial direction Y of the vertex P is a monotonically decreasing region in which the pixel values of the pixels on both sides in the spatial direction Y monotonously decrease with respect to the pixel value of the vertex P. In FIG. 47, the arrow indicated by A and the arrow indicated by B indicate monotonically decreasing regions existing on both sides of the vertex P.
[0298]
The monotone increase / decrease detection unit 203 obtains a difference between the pixel value of each pixel and the pixel value of a pixel adjacent to the pixel in the spatial direction Y, and detects a pixel whose sign of the difference changes. The monotonous increase / decrease detection unit 203 sets the boundary between the detected pixel of which the sign of the difference changes and the pixel on the near side (vertex P side) with the boundary of the thin line area composed of the pixels on which the thin line image is projected. I do.
[0299]
In FIG. 47, the boundary of the thin line region that is the boundary between the pixel whose sign of the difference changes and the pixel on the near side (vertex P side) is indicated by C.
[0300]
Further, the monotone increase / decrease detection unit 203 compares the sign of the pixel value of each pixel with the sign of the pixel value of a pixel adjacent to the pixel in the spatial direction Y in the monotonically decreasing region, and the sign of the pixel value changes. Detect pixels. The monotonous increase / decrease detection unit 203 sets the boundary between the detected pixel whose sign of the difference changes and the pixel on the near side (vertex P side) as the boundary of the thin line region.
[0301]
In FIG. 47, the boundary of the thin line region that is the boundary between the pixel whose sign of the difference changes and the pixel on the near side (vertex P side) is indicated by D.
[0302]
As shown in FIG. 47, a thin line region F composed of pixels onto which a thin line image is projected is a region sandwiched between a thin line region boundary C and a thin line region boundary D.
[0303]
The monotone increase / decrease detection unit 203 obtains a thin line region F longer than a predetermined threshold, that is, a thin line region F including a larger number of pixels than the predetermined threshold, from the thin line region F composed of such a monotone increase / decrease region. For example, when the threshold value is 3, the monotonous increase / decrease detection unit 203 detects a thin line region F including four or more pixels.
[0304]
Further, from the thin line region F thus detected, the monotonous increase / decrease detection unit 203 calculates the pixel value of the vertex P, the pixel value of the pixel on the right side of the vertex P, and the pixel value of the pixel on the left side of the vertex P. , The pixel value of the vertex P exceeds the threshold value, the pixel value of the pixel on the right side of the vertex P is equal to or smaller than the threshold value, and the pixel value of the pixel on the left side of the vertex P is equal to or smaller than the threshold value. The thin line area F is detected, and the detected thin line area F is set as a candidate for an area composed of pixels including components of a thin line image.
[0305]
In other words, the pixel value of the vertex P is equal to or less than the threshold value, the pixel value of the pixel on the right side of the vertex P exceeds the threshold value, or the pixel value of the pixel on the left side of the vertex P exceeds the threshold value. F is determined not to include the component of the thin line image, and is removed from the candidate of the region including the pixel including the component of the thin line image.
[0306]
That is, as shown in FIG. 48, the monotonous increase / decrease detection unit 203 compares the pixel value of the vertex P with the threshold value, and sets the pixel adjacent to the vertex P in the spatial direction X (the direction indicated by the dotted line AA ′). Is compared with the threshold value, and a thin line region F to which the vertex P belongs, in which the pixel value of the vertex P exceeds the threshold value and the pixel value of a pixel adjacent in the spatial direction X is equal to or smaller than the threshold value, is detected.
[0307]
FIG. 49 is a diagram illustrating pixel values of pixels arranged in the spatial direction X indicated by a dotted line AA ′ in FIG. The pixel value of the vertex P is equal to the threshold ThS, The pixel value of a pixel adjacent to the vertex P in the spatial direction X is the threshold value ThSThe following thin line region F to which the vertex P belongs includes a thin line component.
[0308]
Note that the monotonous increase / decrease detection unit 203 compares the difference between the pixel value of the vertex P and the pixel value of the background with a threshold with respect to the pixel value of the background, and determines the pixel adjacent to the vertex P in the spatial direction X. Is compared with a threshold value, and the difference between the pixel value of the vertex P and the pixel value of the background exceeds the threshold value, and the pixel value of the pixel adjacent in the spatial direction X and the pixel of the background are compared. The thin line region F to which the vertex P belongs, whose difference from the value is equal to or smaller than the threshold value, may be detected.
[0309]
The monotone increase / decrease detection unit 203 is an area composed of pixels in which the pixel value monotonously decreases and the sign of the pixel value is the same as the vertex P with respect to the vertex P, and the vertex P exceeds the threshold, and the Monotonic increase / decrease area information indicating that the pixel value of the right pixel is equal to or less than the threshold value and the pixel value of the left pixel of the vertex P is equal to or less than the threshold value is supplied to the continuity detection unit 204.
[0310]
In the case of detecting a region which is arranged in a line in the vertical direction of the screen and which is formed by projecting a thin line image, the pixels belonging to the region indicated by the monotonous increase / decrease region information are arranged in the vertical direction, Image includes pixels projected. That is, the area indicated by the monotone increase / decrease area information is pixels arranged in a line in the vertical direction of the screen and includes an area formed by projecting a thin line image.
[0311]
As described above, the vertex detection unit 202 and the monotone increase / decrease detection unit 203 use the property that the change in the pixel value in the spatial direction Y is similar to a Gaussian distribution in the pixel on which the image of the thin line is projected, and A steady area consisting of pixels onto which the image has been projected is detected.
[0312]
The continuity detection unit 204 is a region including pixels that are horizontally adjacent to each other, that is, a region including pixels that are horizontally adjacent to each other, that is, a region including the pixels that are vertically arranged and indicated by the monotone increase / decrease region information supplied from the monotone increase / decrease detection unit 203 A region having the change in pixel value and overlapping in the vertical direction is detected as a continuous region, and vertex information and data continuity information indicating the detected continuous region are output. The data continuity information includes monotonically increasing / decreasing area information, information indicating connection of areas, and the like.
[0313]
In the pixels on which the fine lines are projected, the arc shapes are arranged at regular intervals so as to be adjacent to each other. Therefore, the detected continuous region includes the pixels on which the fine lines are projected.
[0314]
Since the detected continuous area includes pixels on which fine lines are projected and pixels arranged at regular intervals so that arc shapes are adjacent to each other, the detected continuous area is regarded as a steady area, and the continuity detection unit is used. 204 outputs data continuity information indicating the detected continuous area.
[0315]
That is, the continuity detecting unit 204 determines that the arc shapes in the data 3 obtained by imaging the thin line, which are generated from the continuity of the image of the thin line in the real world 1 and are continuous in the length direction, are adjacent to each other. Utilizing the stationarity arranged at regular intervals, the area candidates detected by the vertex detection unit 202 and the monotone increase / decrease detection unit 203 are further narrowed down.
[0316]
FIG. 50 is a diagram illustrating a process of detecting the continuity of the monotone increase / decrease region.
[0317]
As shown in FIG. 50, the continuity detecting unit 204 determines whether a thin line region F composed of pixels arranged in one column in the vertical direction of the screen includes pixels adjacent in the horizontal direction, and between the two monotone increasing / decreasing regions. It is assumed that there is no continuity between the two thin line regions F when no horizontally adjacent pixels are included. For example, a thin line region F composed of pixels arranged in one row in the vertical direction of the screen-1Is a thin line region F composed of pixels arranged in a line in the vertical direction of the screen.0When the pixel including the pixel adjacent to the pixel in the horizontal direction is included, the thin line region F0It is said that it is continuous. Fine line area F composed of pixels arranged in a line in the vertical direction of the screen0Is a thin line region F composed of pixels arranged in a line in the vertical direction of the screen.1When the pixel including the pixel adjacent to the pixel in the horizontal direction is included, the thin line region F1It is said that it is continuous.
[0318]
In this manner, the vertex detection unit 202 to the continuity detection unit 204 detect pixels that are arranged in a line in the vertical direction of the screen and that are formed by projecting a thin line image.
[0319]
As described above, the vertex detection unit 202 to the continuity detection unit 204 detect pixels that are arranged in a line in the vertical direction of the screen, and detect an area formed by projecting a thin line image. Pixels arranged in a line in the left-right direction, and an area formed by projecting a thin line image is detected.
[0320]
Note that the order of processing does not limit the present invention, and it goes without saying that the processing may be executed in parallel.
[0321]
That is, the vertex detecting unit 202 compares the pixel value of the pixel located on the left side of the screen and the pixel value of the pixel located on the right side of the screen with respect to the pixels arranged in one row in the horizontal direction of the screen, and A pixel having a large pixel value is detected as a vertex, and vertex information indicating the position of the detected vertex is supplied to the monotonous increase / decrease detection unit 203. The vertex detection unit 202 detects one or more vertices from one image, for example, one frame image.
[0322]
For example, the vertex detection unit 202 selects a pixel of interest from pixels that have not yet been set as the pixel of interest from the image of one frame, and compares the pixel value of the pixel of interest with the pixel value of the pixel to the left of the pixel of interest. Comparing the pixel value of the pixel of interest with the pixel value of the pixel on the right side of the pixel of interest, having a pixel value greater than the pixel value of the pixel on the left and a pixel value greater than the pixel value of the pixel on the right A pixel is detected, and the detected target pixel is set as the vertex. The vertex detection unit 202 supplies vertex information indicating the detected vertex to the monotonous increase / decrease detection unit 203.
[0323]
The vertex detection unit 202 may not detect a vertex in some cases.
[0324]
The monotonous increase / decrease detection unit 203 detects and detects a candidate for an area that is pixels arranged in a line in the left-right direction with respect to the vertex detected by the vertex detection unit 202 and is composed of pixels onto which a thin line image is projected. Along with the information, monotonic increase / decrease area information indicating the detected area is supplied to the continuity detection unit 204.
[0325]
More specifically, the monotonous increase / decrease detection unit 203 sets a region including a pixel having a monotonically decreasing pixel value as a candidate for a region including a pixel onto which a thin line image is projected with reference to the pixel value at the vertex. To detect.
[0326]
For example, the monotonous increase / decrease detection unit 203 calculates the difference between the pixel value of each pixel and the pixel value of the pixel on the left side, and the difference between the pixel value of the pixel on the right side and the pixel value of each pixel in a row lateral to the vertex. Ask. Then, the monotone increase / decrease detection unit 203 detects an area where the pixel value monotonously decreases by detecting a pixel whose sign of the difference changes.
[0327]
Further, the monotonous increase / decrease detection unit 203 sets, from the region where the pixel value is monotonically decreasing, a region including pixels having the same sign as the sign of the pixel value of the vertex on the basis of the sign of the pixel value of the vertex, The thin line image is detected as a candidate for an area composed of projected pixels.
[0328]
For example, the monotonous increase / decrease detection unit 203 compares the sign of the pixel value of each pixel with the sign of the pixel value of the left pixel or the sign of the pixel value of the right pixel, and detects a pixel whose sign of the pixel value changes. By doing so, an area consisting of pixels having the pixel value of the same sign as the vertex is detected from the area where the pixel value monotonously decreases.
[0329]
As described above, the monotonous increase / decrease detecting unit 203 detects an area composed of pixels arranged in the left-right direction, the pixel value of which is monotonously reduced with respect to the vertex, and having the pixel value of the same sign as the vertex.
[0330]
The monotone increase / decrease detection unit 203 obtains a thin line region longer than a predetermined threshold, that is, a thin line region including a larger number of pixels than the threshold, from the thin line region including such a monotone increase / decrease region.
[0331]
Further, from among the fine line regions detected in this way, the monotonous increase / decrease detection unit 203 sets the pixel value of the vertex, the pixel value of the pixel above the vertex, and the pixel value of the pixel below the vertex as threshold values, respectively. Compared with, the pixel value of the vertex exceeds the threshold, the pixel value of the pixel above the vertex is less than or equal to the threshold, and the thin line region to which the vertex whose pixel value of the pixel below the vertex is equal to or less than the threshold is detected, The detected thin line area is set as a candidate for an area including pixels including components of the thin line image.
[0332]
In other words, the thin line region to which the vertex whose pixel value is less than or equal to the threshold value, the pixel value of the pixel above the vertex exceeds the threshold value, or the pixel value of the pixel below the vertex which exceeds the threshold value belongs to the thin line region. Is determined not to include the component of the image of the thin line, and is removed from the candidate of the region including the pixel including the component of the image of the thin line.
[0333]
Note that the monotonous increase / decrease detection unit 203 compares the difference between the pixel value of the vertex and the pixel value of the background with a threshold based on the pixel value of the background, and determines the pixel value of the pixel vertically adjacent to the vertex. The difference between the pixel value of the vertex and the background pixel value exceeds the threshold value, and the difference between the pixel value of the vertically adjacent pixel and the background pixel value is compared with the threshold value. The detected thin line region that is equal to or less than the threshold value may be set as a candidate for the region including pixels including components of the image of the thin line.
[0334]
The monotonous increase / decrease detection unit 203 is an area composed of pixels whose pixel values monotonously decrease and the sign of the pixel value is the same as the vertex, with the vertex exceeding the threshold value, and Monotonic increase / decrease area information indicating that the pixel value is equal to or less than the threshold value and the pixel value of the pixel on the left side of the vertex is equal to or less than the threshold value is supplied to the continuity detection unit 204.
[0335]
When detecting an area that is a pixel arranged in a line in the horizontal direction of the screen and formed by projecting a thin line image, pixels belonging to the area indicated by the monotonous increase / decrease area information are arranged in the horizontal direction, Image includes pixels projected. In other words, the region indicated by the monotone increase / decrease region information is a line of pixels arranged in the horizontal direction of the screen, and includes a region formed by projecting a thin line image.
[0336]
The continuity detection unit 204 is a region including pixels that are vertically adjacent to each other, that is, a region including pixels that are vertically aligned, as indicated by the monotone increase / decrease region information supplied from the monotone increase / decrease detection unit 203. An area having the change in pixel value and overlapping in the horizontal direction is detected as a continuous area, and vertex information and data continuity information indicating the detected continuous area are output. The data continuity information includes information indicating the connection between the areas.
[0337]
In the pixels on which the fine lines are projected, the arc shapes are arranged at regular intervals so as to be adjacent to each other. Therefore, the detected continuous region includes the pixels on which the fine lines are projected.
[0338]
Since the detected continuous area includes pixels on which fine lines are projected and pixels arranged at regular intervals so that arc shapes are adjacent to each other, the detected continuous area is regarded as a steady area, and the continuity detection unit is used. 204 outputs data continuity information indicating the detected continuous area.
[0339]
That is, the continuity detecting unit 204 determines that the arc shapes in the data 3 obtained by imaging the thin line, which are generated from the continuity of the image of the thin line in the real world 1 and are continuous in the length direction, are adjacent to each other. Utilizing the stationarity arranged at regular intervals, the area candidates detected by the vertex detection unit 202 and the monotone increase / decrease detection unit 203 are further narrowed down.
[0340]
FIG. 51 is a diagram illustrating an example of an image in which a steady component is extracted by approximation on a plane. FIG. 52 is a diagram illustrating a result of detecting a vertex from the image illustrated in FIG. 51 and detecting a monotonically decreasing region. In FIG. 52, the part shown in white is the detected area.
[0341]
FIG. 53 is a diagram illustrating a region where continuity is detected by detecting continuity of adjacent regions from the image illustrated in FIG. 52. In FIG. 53, a portion shown in white is a region where continuity is detected. It can be seen from the continuity detection that the region is further specified.
[0342]
FIG. 54 is a diagram showing the pixel values of the region shown in FIG. 53, that is, the pixel values of the region where continuity is detected.
[0343]
As described above, the data continuity detecting unit 101 can detect the continuity included in the data 3 that is the input image. That is, the data continuity detecting unit 101 can detect the continuity of the data included in the data 3 which is generated by projecting the image of the real world 1 which is a thin line onto the data 3. The data continuity detecting unit 101 detects, from the data 3, an area composed of pixels on which an image of the real world 1 as a thin line is projected.
[0344]
FIG. 55 is a diagram illustrating an example of another process of detecting an area having continuity, on which a thin line image is projected, in the continuity detecting unit 101.
[0345]
As shown in FIG. 55, the continuity detecting unit 101 calculates, for each pixel, the absolute value of the difference between the pixel value and the adjacent pixel. The calculated absolute value of the difference is arranged so as to correspond to the pixel. For example, as shown in FIG. 55, when pixels having pixel values of P0, P1, and P2 are arranged, the continuity detecting unit 101 calculates the difference d0 = P0-P1 and the difference d1 = P1-P2. . Further, the continuity detecting unit 101 calculates the absolute values of the difference d0 and the difference d1.
[0346]
When the non-stationary components included in the pixel values P0, P1, and P2 are the same, only the value corresponding to the thin line component is set as the difference d0 and the difference d1.
[0347]
Therefore, the continuity detecting unit 101 determines, when the values of the adjacent differences are the same among the absolute values of the differences arranged corresponding to the pixels, the pixels (two of the absolute values) corresponding to the absolute values of the two differences. It is determined that a thin line component is included in the pixel between the absolute values of the difference.
[0348]
The continuity detecting unit 101 can also detect a thin line by such a simple method.
[0349]
FIG. 56 is a flowchart for explaining the processing of the continuity detection.
[0350]
In step S201, the non-stationary component extraction unit 201 extracts a non-stationary component, which is a portion other than the portion where the fine line is projected, from the input image. The non-stationary component extracting unit 201 supplies the non-stationary component information indicating the extracted non-stationary component to the vertex detecting unit 202 and the monotone increase / decrease detecting unit 203 together with the input image. Details of the process of extracting the unsteady component will be described later.
[0351]
In step S202, the vertex detection unit 202 removes the non-stationary component from the input image based on the non-stationary component information supplied from the non-stationary component extraction unit 201, and leaves only pixels including the stationary component in the input image. Further, in step S202, the vertex detection unit 202 detects a vertex.
[0352]
That is, when executing the processing based on the vertical direction of the screen, the vertex detection unit 202 compares the pixel value of each pixel with the pixel values of the upper and lower pixels for the pixel including the stationary component. The vertex is detected by detecting a pixel having a pixel value larger than the pixel value of the upper pixel and the pixel value of the lower pixel. Also, in step S202, when executing the processing based on the horizontal direction of the screen, the vertex detection unit 202 determines the pixel value of each pixel and the pixel values of the right and left pixels for the pixel including the stationary component. In comparison, a vertex is detected by detecting a pixel having a pixel value larger than the pixel value of the right pixel and the pixel value of the left pixel.
[0353]
The vertex detection unit 202 supplies vertex information indicating the detected vertex to the monotonous increase / decrease detection unit 203.
[0354]
In step S203, the monotonous increase / decrease detection unit 203 removes the non-stationary component from the input image based on the non-stationary component information supplied from the non-stationary component extraction unit 201, and leaves only pixels including the steady component in the input image. . Further, in step S203, the monotonous increase / decrease detection unit 203 detects a monotonous increase / decrease with respect to the vertex based on the vertex information indicating the position of the vertex supplied from the vertex detection unit 202, thereby obtaining a pixel having data continuity. Is detected.
[0355]
When executing the process based on the vertical direction of the screen, the monotonous increase / decrease detection unit 203 determines one column in the vertical direction based on the pixel value of the vertex and the pixel value of the pixel in the vertical column. , A region consisting of pixels having data continuity is detected by detecting monotonous increase / decrease of pixels projected with one fine line image. That is, in step S203, when performing the processing based on the vertical direction of the screen, the monotonous increase / decrease detection unit 203 determines, for the vertices and the pixels that are vertically arranged in one row, the pixel value of each pixel and Alternatively, a difference between the pixel value of the lower pixel and the pixel value of the lower pixel is obtained, and a pixel whose sign of the difference changes is detected. In addition, the monotone increase / decrease detection unit 203 compares the sign of the pixel value of each pixel with the sign of the pixel value of the pixel above or below the vertex and the pixels arranged in one line vertically with respect to the vertex. Then, a pixel whose sign of the pixel value changes is detected. Further, the monotonous increase / decrease detection unit 203 compares the pixel value of the vertex and the pixel values of the right and left pixels of the vertex with a threshold, and the pixel value of the vertex exceeds the threshold, and the pixel values of the right and left pixels are An area composed of pixels that are equal to or smaller than the threshold is detected.
[0356]
The monotonous increase / decrease detection unit 203 supplies the monotone increase / decrease region information indicating the monotone increase / decrease region to the continuity detection unit 204, using the region thus detected as a monotone increase / decrease region.
[0357]
In addition, when executing the processing based on the horizontal direction of the screen, the monotonous increase / decrease detection unit 203 arranges the pixels horizontally based on the pixel values of the vertices and the pixel values of the pixels arranged in one row horizontally with respect to the vertices. By detecting a monotonous increase / decrease of pixels in one column and projected with one thin line image, an area composed of pixels having data continuity is detected. That is, in step S203, when executing the processing based on the horizontal direction of the screen, the monotonous increase / decrease detection unit 203 determines, for the vertices and the pixels arranged in one row horizontally with respect to the vertices, the pixel value of each pixel and the left Alternatively, a difference between the pixel value of the right pixel and the pixel value of the right pixel is obtained, and a pixel whose sign of the difference changes is detected. Further, the monotone increase / decrease detecting unit 203 compares the sign of the pixel value of each pixel with the sign of the pixel value of the pixel on the left or right side of the pixel with respect to the vertex and the pixels arranged in one row horizontally with respect to the vertex. , The pixel whose sign of the pixel value changes is detected. Further, the monotonous increase / decrease detection unit 203 compares the pixel value of the vertex and the pixel values of the pixels above and below the vertex with a threshold value, and the pixel value of the vertex exceeds the threshold value, and the pixel values of the pixel above and below the vertex. An area composed of pixels whose values are equal to or smaller than a threshold is detected.
[0358]
The monotonous increase / decrease detection unit 203 supplies the monotone increase / decrease region information indicating the monotone increase / decrease region to the continuity detection unit 204, using the region thus detected as a monotone increase / decrease region.
[0359]
In step S204, the monotonous increase / decrease detection unit 203 determines whether the processing for all pixels has been completed. For example, the non-stationary component extraction unit 201 detects vertices for all pixels of one screen (for example, a frame or a field) of the input image, and determines whether a monotonous increase / decrease region has been detected.
[0360]
If it is determined in step S204 that the processing of all the pixels has not been completed, that is, it is determined that there is still a pixel that has not been subjected to the processing of the detection of the vertex and the detection of the monotonous increase / decrease area, the process returns to step S202, and the processing returns to step S202. A pixel to be processed is selected from the pixels not subjected to the detection and the detection of the monotonous increase / decrease area, and the processing of the vertex detection and the detection of the monotonous increase / decrease area is repeated.
[0361]
If it is determined in step S204 that the processing of all the pixels has been completed, that is, it is determined that the vertices and the monotone increasing / decreasing area have been detected for all the pixels, the process proceeds to step S205, and the continuity detecting unit 204 executes the monotonic increasing / decreasing area information. , The continuity of the detected area is detected. For example, when the continuity detecting unit 204 includes pixels that are horizontally adjacent to each other in a monotonically increasing / decreasing area that is indicated by the monotonically increasing / decreasing area information and is composed of pixels arranged in one column in the vertical direction of the screen, It is assumed that there is continuity between the regions, and when no horizontally adjacent pixels are included, there is no continuity between the two monotone increasing / decreasing regions. For example, when the continuity detecting unit 204 includes pixels that are vertically adjacent to each other in a monotone increasing / decreasing area that is indicated by monotonous increasing / decreasing area information and is arranged in one row in the horizontal direction of the screen, It is assumed that there is continuity between the regions, and when there is no vertically adjacent pixel, there is no continuity between the two monotone increasing / decreasing regions.
[0362]
The continuity detecting unit 204 sets the detected continuous area as a steady area having data continuity, and outputs data continuity information indicating the position of the vertex and the steady area. The data continuity information includes information indicating the connection between the areas. The data continuity information output from the continuity detection unit 204 indicates a thin line region that is a steady region and includes pixels onto which a thin line image of the real world 1 is projected.
[0363]
In step S206, the continuity direction detection unit 205 determines whether the processing for all pixels has been completed. That is, the continuity direction detection unit 205 determines whether or not the continuity of the area has been detected for all pixels of a predetermined frame of the input image.
[0364]
If it is determined in step S206 that the processing of all the pixels has not been completed, that is, it is determined that there is still a pixel that has not been subjected to the processing for detecting the continuity of the region, the process returns to step S205 and the continuity of the region is determined. The pixel to be processed is selected from the pixels not to be subjected to the detection processing, and the processing for detecting the continuity of the area is repeated.
[0365]
If it is determined in step S206 that the processing of all pixels has been completed, that is, it is determined that the continuity of the area has been detected for all the pixels, the processing ends.
[0366]
Thus, the continuity contained in the data 3 as the input image is detected. That is, the continuity of the data included in the data 3 which is generated by projecting the image of the real world 1 as a thin line onto the data 3 is detected, and the image of the real world 1 as the thin line is projected from the data 3. An area having data continuity, which is composed of the pixels, is detected.
[0367]
The data continuity detecting unit 101 having the configuration shown in FIG. 41 can detect the continuity of the data in the time direction based on the region having the continuity of the data detected from the data 3 frame.
[0368]
For example, as illustrated in FIG. 57, the continuity detecting unit 204 determines the region having the continuity of the detected data in the frame #n, the region having the continuity of the detected data in the frame # n−1, Also, in frame # n + 1, the continuity of the data in the time direction is detected by connecting the ends of the regions based on the detected continuity region of the data.
[0369]
The frame # n-1 is a frame temporally before the frame #n, and the frame # n + 1 is a frame temporally after the frame #n. That is, frame # n-1, frame #n, and frame # n + 1 are displayed in the order of frame # n-1, frame #n, and frame # n + 1.
[0370]
More specifically, in FIG. 57, G is an area having continuity of detected data in frame #n, an area having continuity of detected data in frame # n-1, and frame # n-1. At n + 1, a motion vector obtained by connecting one end of each of the regions having the stationarity of the detected data is shown, and G ′ represents the other end of each of the regions having the stationarity of the detected data. This shows a motion vector obtained by linking. The motion vector G and the motion vector G 'are an example of the continuity of data in the time direction.
[0371]
Further, the data continuity detecting unit 101 having the configuration shown in FIG. 41 can output information indicating the length of the data continuity region as data continuity information.
[0372]
FIG. 58 is a block diagram showing a configuration of a non-stationary component extraction unit 201 that approximates a non-stationary component, which is a part of image data having no data continuity, with a plane and extracts the non-stationary component.
[0373]
The non-stationary component extraction unit 201 having the configuration illustrated in FIG. 58 extracts a block including a predetermined number of pixels from an input image, and performs block extraction so that an error between the block and a value indicated by a plane is smaller than a predetermined threshold. Is approximated by a plane to extract a non-stationary component.
[0374]
The input image is supplied to the block extracting unit 221 and output as it is.
[0375]
The block extracting unit 221 extracts a block including a predetermined number of pixels from the input image. For example, the block extracting unit 221 extracts a block including 7 × 7 pixels and supplies the block to the plane approximating unit 222. For example, the block extracting unit 221 moves the pixel serving as the center of the extracted block in the raster scan order, and sequentially extracts the block from the input image.
[0376]
The plane approximation unit 222 approximates the pixel values of the pixels included in the block with a predetermined plane. For example, the plane approximation unit 222 approximates the pixel values of the pixels included in the block on the plane represented by Expression (24).
[0377]
z = ax + by + c (24)
[0378]
In Expression (24), x indicates the position of the pixel on the screen in one direction (spatial direction X), and y indicates the position of the pixel on the screen in one other direction (spatial direction Y). z indicates an approximate value indicated by a plane. a shows the inclination of the plane in the spatial direction X, and b shows the inclination of the plane in the spatial direction Y. In Expression (24), c indicates a plane offset (intercept).
[0379]
For example, the plane approximating unit 222 approximates the pixel values of the pixels included in the block on the plane represented by Expression (24) by calculating the slope a, the slope b, and the offset c by the regression processing. The plane approximating unit 222 approximates the pixel values of the pixels included in the block on the plane represented by the equation (24) by calculating the slope a, the slope b, and the offset c by the regression processing involving rejection. .
[0380]
For example, the plane approximation unit 222 obtains a plane represented by Expression (24) that minimizes the error with respect to the pixel value of the pixel of the block by the least squares method, and thereby, Approximate pixel values.
[0381]
Although the plane approximating unit 222 has been described as approximating the block by the plane represented by the equation (24), the function is not limited to the plane represented by the equation (24) but has a higher degree of freedom, for example, The block may be approximated by a plane represented by an n-order polynomial.
[0382]
The repetition determination unit 223 calculates an error between an approximate value indicated by a plane approximating the pixel value of the block and the pixel value of the corresponding pixel of the block. Equation (25) is an equation indicating an error ei that is a difference between an approximate value indicated by a plane approximating the pixel value of the block and the pixel value zi of the corresponding pixel of the block.
[0383]
[Equation 19]
Figure 2004246526
Figure 2004246526
[0384]
In Expression (25), z hat (a character in which z is indicated by ^ is referred to as z hat. Hereinafter, similarly described in this specification) is an approximation indicated by a plane approximating the pixel value of a block. A represents the inclination in the spatial direction X of the plane approximating the pixel value of the block, and b represents the inclination in the spatial direction Y of the plane approximating the pixel value of the block. In Equation (25), c hat indicates an offset (intercept) of a plane approximating the pixel value of the block.
[0385]
The repetition determination unit 223 rejects the pixel having the largest error ei between the approximate value and the pixel value of the corresponding pixel of the block, which is represented by Expression (25). In this way, the pixel on which the fine line is projected, that is, the pixel having the stationarity, is rejected. The repetition determination unit 223 supplies rejection information indicating the rejected pixel to the plane approximation unit 222.
[0386]
Further, the repetition determination unit 223 calculates a standard error, and when the standard error is equal to or larger than a predetermined threshold value for approximation end determination, and when half or more of the pixels of the block are not rejected, The determination unit 223 causes the plane approximation unit 222 to repeat the plane approximation process on the pixels included in the block, excluding the rejected pixels.
[0387]
Since the pixels having the stationarity are rejected, the plane approximates the non-stationary component by approximating the pixels excluding the rejected pixels with a plane.
[0388]
The repetition determination unit 223 ends the plane approximation when the standard error is less than the threshold value for determining the end of approximation, or when half or more of the pixels of the block are rejected.
[0389]
For a block of 5 × 5 pixels, the standard error esIs calculated by, for example, Expression (26).
[0390]
(Equation 20)
Figure 2004246526
Figure 2004246526
Here, n is the number of pixels.
[0391]
The repetition determination unit 223 may calculate the sum of the squares of the errors of all the pixels included in the block, and execute the following processing.
[0392]
Here, when a block shifted by one pixel in the raster scan direction is approximated by a plane, as shown in FIG. 59, a pixel having continuity, that is, a pixel including a thin line component, indicated by a black circle in the figure, is a plurality of times. Will be rejected.
[0393]
When the approximation by the plane is finished, the repetition determination unit 223 outputs information indicating the plane on which the pixel value of the block is approximated (the inclination and intercept of the plane in Expression (24)) as the non-stationary component information.
[0394]
Note that the repetition determination unit 223 compares the number of rejections for each pixel with a predetermined threshold, and determines that a pixel whose number of rejections is equal to or greater than the threshold is a pixel including a steady component, and includes a steady component. Information indicating a pixel may be output as steady component information. In this case, the vertex detection unit 202 to the continuity direction detection unit 205 execute the respective processes on the pixels including the stationary component indicated by the stationary component information.
[0395]
With reference to FIG. 60 to FIG. 67, an example of the result of the unsteady component extraction processing will be described.
[0396]
FIG. 60 is a diagram illustrating an example of an input image in which an average value of pixel values of 2 × 2 pixels of an original image is generated as a pixel value from an image including a thin line.
[0397]
FIG. 61 is a diagram showing an image in which a standard error obtained as a result of approximating the image shown in FIG. 60 by a plane without rejection is used as a pixel value. In the example shown in FIG. 61, a block composed of 5 × 5 pixels for one pixel of interest is approximated by a plane. In FIG. 61, a white pixel is a pixel having a larger pixel value, that is, a pixel having a larger standard error, and a black pixel is a pixel having a smaller pixel value, that is, a pixel having a smaller standard error.
[0398]
From FIG. 61, it can be confirmed that when a standard error obtained as a result of approximation on a plane without rejection is used as a pixel value, a large and large value is obtained around an unsteady part.
[0399]
In the examples shown in FIGS. 62 to 67, a block composed of 7 × 7 pixels for one pixel of interest is approximated by a plane. When a block composed of 7 × 7 pixels is approximated by a plane, one pixel is repeatedly included in 49 blocks. Therefore, pixels including a stationary component are rejected at most 49 times. .
[0400]
FIG. 62 is an image in which, when the image shown in FIG. 60 is rejected and approximated by a plane, the standard error obtained is a pixel value.
[0401]
In FIG. 62, a white pixel is a pixel having a larger pixel value, that is, a pixel having a larger standard error, and a black pixel is a pixel having a smaller pixel value, that is, a pixel having a smaller standard error. It can be seen that the standard error is smaller as a whole when rejected than when not rejected.
[0402]
FIG. 63 is a diagram showing an image in which, when the image shown in FIG. 60 is rejected and approximated by a plane, the number of rejections is set as a pixel value. In FIG. 63, a white pixel is a pixel having a larger pixel value, that is, a pixel having a larger number of rejections, and a black pixel is a pixel having a smaller pixel value, that is, a pixel having a smaller number of rejections.
[0403]
From FIG. 63, it can be seen that the pixels on which the fine line image is projected are rejected more. It is also possible to generate an image that masks a non-stationary part of the input image using an image in which the number of rejections is a pixel value.
[0404]
FIG. 64 is a diagram illustrating an image in which the inclination in the spatial direction X of the plane approximating the pixel value of the block is set as the pixel value. FIG. 65 is a diagram illustrating an image in which the inclination in the spatial direction Y of the plane approximating the pixel value of the block is set as the pixel value.
[0405]
FIG. 66 is a diagram illustrating an image including approximate values indicated by a plane approximating the pixel values of the block. It can be seen from the image shown in FIG. 66 that the thin line has disappeared.
[0406]
FIG. 67 shows an image shown in FIG. 60 in which an average value of a block of 2 × 2 pixels of the original image is generated as a pixel value of a pixel, and an image shown in FIG. FIG. 6 is a diagram showing an image composed of a difference from the above. Since the non-stationary component is removed from the pixel values of the image in FIG. 67, the pixel values include only the values on which the fine line images are projected. As can be seen from FIG. 67, it can be confirmed that in the image composed of the difference between the original pixel value and the approximate value indicated by the approximate plane, the steady component of the original image has been successfully extracted.
[0407]
The number of rejections, the inclination in the spatial direction X of the plane approximating the pixel value of the pixel of the block, the inclination in the spatial direction Y of the plane approximating the pixel value of the pixel of the block, and the plane approximating the pixel value of the pixel of the block The indicated approximate value and error ei can also be used as a feature amount of the input image.
[0408]
FIG. 68 is a flowchart corresponding to step S201 and illustrating a process of extracting a non-stationary component by the non-stationary component extracting unit 201 having the configuration shown in FIG.
[0409]
In step S221, the block extraction unit 221 extracts a block including a predetermined number of pixels from the input pixels, and supplies the extracted block to the plane approximation unit 222. For example, the block extracting unit 221 selects one pixel among the pixels that have not been selected from the input pixels, and extracts a block including 7 × 7 pixels centered on the selected pixel. For example, the block extracting unit 221 can select pixels in a raster scan order.
[0410]
In step S222, the plane approximating unit 222 approximates the extracted block with a plane. The plane approximation unit 222 approximates the pixel values of the pixels of the extracted block by a plane, for example, by regression processing. For example, the plane approximation unit 222 approximates the pixel values of the pixels of the extracted block, excluding the rejected pixels, by a plane using a regression process. In step S223, the repetition determination unit 223 performs a repetition determination. For example, the standard error is calculated from the pixel values of the pixels of the block and the approximate value of the approximate plane, and the number of rejected pixels is counted, thereby repeatedly executing the determination.
[0411]
In step S224, the repetition determination unit 223 determines whether or not the standard error is equal to or greater than a threshold. When it is determined that the standard error is equal to or greater than the threshold, the process proceeds to step S225.
[0412]
In step S224, the repetition determination unit 223 determines whether or not more than half of the pixels of the block have been rejected and whether or not the standard error is equal to or greater than a threshold. If it is determined that half or more of the pixels have not been rejected and the standard error is equal to or greater than the threshold, the process may proceed to step S225.
[0413]
In step S225, the repetition determination unit 223 calculates, for each pixel of the block, an error between the pixel value of the pixel and the approximate value of the approximate plane, rejects the pixel with the largest error, and notifies the plane approximation unit 222. . The procedure returns to step S222, and the process of approximation by a plane and the process of repetition determination are repeated for the pixels of the block excluding the rejected pixels.
[0414]
In step S225, when a block shifted by one pixel in the raster scan direction is extracted by the process of step S221, as shown in FIG. 59, pixels including a thin line component (shown by black circles in the figure) are removed a plurality of times. Will be rejected.
[0415]
If it is determined in step S224 that the standard error is not equal to or larger than the threshold, the block is approximated by a plane, and the process proceeds to step S226.
[0416]
In step S224, the repetition determination unit 223 determines whether or not more than half of the pixels of the block have been rejected and whether or not the standard error is equal to or greater than a threshold. If more than half of the pixels have been rejected or if it is determined that the standard error is not greater than or equal to the threshold, the process may proceed to step S225.
[0417]
In step S226, the repetition determination unit 223 outputs the slope and intercept of the plane approximating the pixel values of the pixels of the block as non-stationary component information.
[0418]
In step S227, the block extraction unit 221 determines whether or not processing has been completed for all pixels of one screen of the input image. If it is determined that there is a pixel that is not yet a processing target, step S221 is performed. Then, the block is extracted from the pixels that have not been processed yet, and the above-described processing is repeated.
[0419]
If it is determined in step S227 that the processing has been completed for all pixels of one screen of the input image, the processing ends.
[0420]
As described above, the non-stationary component extracting unit 201 having the configuration illustrated in FIG. 58 can extract the non-stationary component from the input image. Since the non-stationary component extraction unit 201 extracts the non-stationary component of the input image, the vertex detection unit 202 and the monotone increase / decrease detection unit 203 determine the difference between the input image and the non-stationary component extracted by the non-stationary component extraction unit 201. , The processing can be executed for the difference including the steady component.
[0421]
The standard error when rejected, the standard error when not rejected, the number of rejected pixels, the inclination of the plane in the spatial direction X (a hat in equation (24)), which are calculated in the approximation process using the plane, The inclination of the plane in the spatial direction Y (b hat in equation (24)), the level when replaced by the plane (c hat in equation (24)), and the difference between the pixel value of the input image and the approximate value indicated by the plane Can be used as a feature value.
[0422]
FIG. 69 is a flowchart illustrating a process of extracting a stationary component by the non-stationary component extraction unit 201 illustrated in FIG. 58 instead of the process of extracting the unsteady component corresponding to step S201. The processing in steps S241 to S245 is the same as the processing in steps S221 to S225, and a description thereof will be omitted.
[0423]
In step S246, the repetition determination unit 223 outputs the difference between the approximate value indicated by the plane and the pixel value of the input image as a steady component of the input image. That is, the repetition determination unit 223 outputs a difference between the approximate value based on the plane and the pixel value that is the true value.
[0424]
Note that the repetition determination unit 223 may output, as a steady component of the input image, a pixel value of a pixel whose difference between the approximate value indicated by the plane and the pixel value of the input image is equal to or greater than a predetermined threshold. .
[0425]
The process in step S247 is the same as the process in step S227, and a description thereof will not be repeated.
[0426]
Since the plane approximates the non-stationary component, the non-stationary component extraction unit 201 subtracts the approximate value indicated by the plane that approximates the pixel value from the pixel value of each pixel of the input image, thereby obtaining Unsteady components can be removed. In this case, the vertex detection unit 202 to the continuity detection unit 204 can process only the steady component of the input image, that is, the value obtained by projecting the thin line image, and the vertex detection unit 202 to the continuity detection unit The processing at 204 becomes easier.
[0427]
FIG. 70 is a flowchart for explaining another process of extracting a steady component by the unsteady component extracting unit 201 shown in FIG. 58 instead of the process of extracting the unsteady component corresponding to step S201. The processing of steps S261 to S265 is the same as the processing of steps S221 to S225, and a description thereof will be omitted.
[0428]
In step S266, the repetition determination unit 223 stores the number of rejections for each pixel, returns to step S262, and repeats the processing.
[0429]
If it is determined in step S264 that the standard error is not equal to or larger than the threshold, the block is approximated by a plane, and the process proceeds to step S267, and the repetition determination unit 223 ends the process for all pixels of one screen of the input image. If it is determined that there is a pixel that has not been processed yet, the process returns to step S261 to extract a block for the pixel that has not been processed yet and repeat the above-described processing. .
[0430]
If it is determined in step S267 that the process has been completed for all pixels of one screen of the input image, the process proceeds to step S268, and the repetition determination unit 223 selects one pixel from the pixels that have not been selected, For the selected pixel, it is determined whether the number of rejections is equal to or greater than a threshold. For example, in step S268, the repetition determination unit 223 determines whether the number of rejections for the selected pixel is equal to or greater than a threshold value stored in advance.
[0431]
If it is determined in step S268 that the number of rejections for the selected pixel is equal to or greater than the threshold value, the selected pixel includes a stationary component, and the process proceeds to step S269, where the repetition determination unit 223 The pixel value of the pixel (the pixel value in the input image) is output as a steady component of the input image, and the process proceeds to step S270.
[0432]
If it is determined in step S268 that the number of rejections for the selected pixel is not greater than or equal to the threshold, the selected pixel does not include a stationary component, and thus the process of step S269 is skipped, and the procedure proceeds to step S270. Proceed to. In other words, no pixel value is output for a pixel for which it is determined that the number of rejections is not greater than or equal to the threshold.
[0433]
Note that the repetition determination unit 223 may output a pixel value in which 0 is set for a pixel for which it is determined that the number of rejections is not greater than or equal to the threshold value.
[0434]
In step S270, the repetition determination unit 223 determines whether the process of determining whether the number of rejections is equal to or greater than the threshold has been completed for all pixels of one screen of the input image, and performs processing for all pixels. If not, the process returns to step S268 to select one pixel from the pixels not yet processed, and returns to step S268. repeat.
[0435]
If it is determined in step S270 that the processing has been completed for all the pixels of one screen of the input image, the processing ends.
[0436]
As described above, the non-stationary component extraction unit 201 can output the pixel value of the pixel including the stationary component among the pixels of the input image as the stationary component information. That is, the non-stationary component extraction unit 201 can output the pixel value of the pixel including the component of the thin line image among the pixels of the input image.
[0437]
FIG. 71 is a flowchart for explaining still another process of extracting a steady component by the unsteady component extracting unit 201 shown in FIG. 58 instead of the process of extracting the unsteady component corresponding to step S201. The processing in steps S281 to S288 is the same as the processing in steps S261 to S268, and a description thereof will be omitted.
[0438]
In step S289, the repetition determination unit 223 outputs a difference between the approximate value indicated by the plane and the pixel value of the selected pixel as a stationary component of the input image. That is, the repetition determination unit 223 outputs an image obtained by removing the non-stationary component from the input image as the stationarity information.
[0439]
The process in step S290 is the same as the process in step S270, and a description thereof will not be repeated.
[0440]
As described above, the non-stationary component extraction unit 201 can output an image obtained by removing the non-stationary component from the input image as the stationarity information.
[0441]
As described above, the real-world optical signal is projected, and a part of the continuity of the real-world optical signal is lost. The optical signal is estimated by detecting the stationarity of the data from the discontinuity that has been detected, and estimating the stationarity of the optical signal in the real world based on the stationarity of the detected data. When the image data is converted into the second image data, it is possible to obtain a more accurate and more accurate processing result with respect to a real world event.
[0442]
FIG. 72 is a block diagram showing another configuration of the data continuity detecting unit 101.
[0443]
The data continuity detecting unit 101 having the configuration shown in FIG. 72 detects a change in a pixel value with respect to the spatial direction of the input image, that is, an activity in the spatial direction of the input image, for the pixel of interest, which is the pixel of interest. In accordance with the performed activity, a plurality of pixel sets each including a predetermined number of pixels in one column in the vertical direction or one column in the horizontal direction are extracted and extracted at each angle with respect to the target pixel and the reference axis. The correlation of the set of pixels is detected, and the continuity angle of the data with respect to the reference axis in the input image is detected based on the correlation.
[0444]
The data continuity angle refers to an angle formed between the reference axis and a direction of a predetermined dimension, which data 3 has, in which certain characteristics repeatedly appear. The constant feature repeatedly appears when, for example, a value changes with respect to a change in position in the data 3, that is, when the cross-sectional shapes are the same.
[0445]
The reference axis may be, for example, an axis indicating the spatial direction X (horizontal direction of the screen) or an axis indicating the spatial direction Y (vertical direction of the screen).
[0446]
The input image is supplied to the activity detection unit 401 and the data selection unit 402.
[0447]
The activity detection unit 401 detects a change in the pixel value of the input image in the spatial direction, that is, the activity in the spatial direction, and supplies activity information indicating the detection result to the data selection unit 402 and the steady direction derivation unit 404.
[0448]
For example, the activity detection unit 401 detects a change in the pixel value in the horizontal direction of the screen and a change in the pixel value in the vertical direction of the screen, and detects the detected change in the pixel value in the horizontal direction and the detected change in the pixel value in the vertical direction. Is compared with the change in the pixel value in the vertical direction, the change in the pixel value in the horizontal direction is larger, or the change in the pixel value in the vertical direction is larger than the change in the pixel value in the horizontal direction. Detect if bigger.
[0449]
The activity detecting unit 401 indicates that the change in the pixel value in the horizontal direction is larger than the change in the pixel value in the vertical direction, which is the result of the detection, or indicates that the change in the pixel value in the horizontal direction is larger. The activity information indicating that the change in the pixel value in the vertical direction is large is supplied to the data selection unit 402 and the steady direction derivation unit 404.
[0450]
When the change in the pixel value in the horizontal direction is larger than the change in the pixel value in the vertical direction, for example, as shown in FIG. 73, one row of pixels in the vertical direction has an arc shape (kamaboko shape) or a claw shape. Is formed, and the arc shape or the claw shape is repeatedly formed in a direction closer to the vertical. That is, when the change in the pixel value in the horizontal direction is large compared to the change in the pixel value in the vertical direction, assuming that the reference axis is the axis indicating the spatial direction X, the steady state of the data in the input image with respect to the reference axis is assumed. The sex angle is any value between 45 degrees and 90 degrees.
[0451]
If the change in the pixel value in the vertical direction is larger than the change in the pixel value in the horizontal direction, for example, an arc shape or a nail shape is formed in one row of pixels in the horizontal direction, and the arc shape or the nail shape is in the horizontal direction. Are repeatedly formed in a direction closer to That is, when the change in the pixel value in the vertical direction is larger than the change in the pixel value in the horizontal direction, if the reference axis is the axis indicating the spatial direction X, the steady state of the data with respect to the reference axis in the input image is assumed. The sex angle is any value between 0 and 45 degrees.
[0452]
For example, the activity detection unit 401 extracts, from the input image, a block including nine 3 × 3 pixels centered on the pixel of interest illustrated in FIG. The activity detection unit 401 calculates the sum of the differences between the pixel values of vertically adjacent pixels and the sum of the differences of the pixel values of horizontally adjacent pixels. Sum h of the difference between pixel values of horizontally adjacent pixelsdiffIs obtained by Expression (27).
[0453]
hdiff= Σ (Pi + 1, j-Pi, j) ・ ・ ・ (27)
[0454]
Similarly, the sum v of the pixel value differences of vertically adjacent pixelsdiffIs obtained by Expression (28).
[0455]
vdiff= Σ (Pi, j + 1-Pi, j) (28)
[0456]
In Expressions (27) and (28), P indicates a pixel value, i indicates a horizontal position of the pixel, and j indicates a vertical position of the pixel.
[0457]
The activity detection unit 401 calculates the sum h of the calculated difference between the pixel values of the horizontally adjacent pixels.diffAnd the sum v of the difference between the pixel values of the vertically adjacent pixelsdiffMay be compared to determine the range of the continuity angle of the data with respect to the reference axis in the input image. That is, in this case, the activity detection unit 401 determines whether the shape indicated by the change in the pixel value with respect to the position in the spatial direction is repeatedly formed in the horizontal direction or the vertical direction.
[0458]
For example, the change in the pixel value in the horizontal direction with respect to the arc formed on one row of pixels horizontally is larger than the change in the pixel value in the vertical direction, and the change in the arc value formed on one row of pixels horizontally is large. The change in the pixel value in the vertical direction is larger than the change in the pixel value in the horizontal direction, and the direction of the data continuity, that is, the predetermined characteristic of the input image which is the data 3 Can be said to be smaller than the change in the direction orthogonal to the data continuity. In other words, the difference in the direction orthogonal to the direction of data continuity (hereinafter also referred to as the non-stationary direction) is larger than the difference in the direction of data continuity.
[0459]
For example, as shown in FIG. 75, the activity detecting unit 401 determines the sum h of the calculated pixel value differences of the horizontally adjacent pixels.diffAnd the sum v of the difference between the pixel values of the vertically adjacent pixelsdiffAnd the sum h of the difference between the pixel values of the horizontally adjacent pixelsdiffIs large, it is determined that the continuity angle of the data with respect to the reference axis is any value between 45 degrees and 135 degrees, and the sum v of the pixel values of the vertically adjacent pixels is determined.diffIs large, it is determined that the continuity angle of the data with respect to the reference axis is any value from 0 to 45 degrees or any value from 135 to 180 degrees.
[0460]
For example, the activity detecting unit 401 supplies the activity information indicating the result of the determination to the data selecting unit 402 and the steady direction deriving unit 404.
[0461]
Note that the activity detection unit 401 can detect an activity by extracting a block of an arbitrary size such as a block of 5 × 5 25 pixels or a block of 7 × 7 49 pixels. .
[0462]
The data selection unit 402 sequentially selects a pixel of interest from the pixels of the input image, and, based on the activity information supplied from the activity detection unit 401, one column in the vertical direction for each angle with respect to the pixel of interest and the reference axis. Alternatively, a plurality of pixel sets each including a predetermined number of pixels in one row in the horizontal direction are extracted.
[0463]
For example, when the activity information indicates that the change in the pixel value in the horizontal direction is larger than the change in the pixel value in the vertical direction, the data continuity angle is any one of 45 degrees to 135 degrees. Value, the data selection unit 402 sets a set of pixels consisting of a predetermined number of pixels in one column in the vertical direction for each predetermined angle in a range of 45 degrees to 135 degrees with respect to the target pixel and the reference axis. Extract multiple items.
[0464]
When the activity information indicates that the change in the pixel value in the vertical direction is larger than the change in the pixel value in the horizontal direction, the data continuity angle is 0 to 45 degrees or 135 to 180 degrees. The data selection unit 402 selects one row in the horizontal direction for each predetermined angle in the range of 0 to 45 degrees or 135 to 180 degrees with respect to the target pixel and the reference axis. A plurality of sets of pixels consisting of a number of pixels are extracted.
[0465]
Further, for example, when the activity information indicates that the angle of the data continuity is any value of 45 degrees to 135 degrees, the data selection unit 402 sets the 45 degrees based on the target pixel and the reference axis. For each predetermined angle in the range of degrees to 135 degrees, a plurality of pixel sets each including a predetermined number of pixels in one column in the vertical direction are extracted.
[0466]
When the activity information indicates that the continuity angle of the data is any value of 0 to 45 degrees or 135 to 180 degrees, the data selection unit 402 sets the reference pixel and the reference axis as the reference. For each predetermined angle in the range of 0 ° to 45 ° or 135 ° to 180 °, a plurality of pixel sets consisting of a predetermined number of pixels in one row in the horizontal direction are extracted.
[0467]
The data selection unit 402 supplies a plurality of sets of the extracted pixels to the error estimation unit 403.
[0468]
The error estimating unit 403 detects a correlation between a set of pixels for each of a plurality of sets of extracted pixels.
[0469]
For example, the error estimating unit 403 calculates the correlation between the pixel values of the pixels at the corresponding positions in the set of pixels for a plurality of sets of pixels each including a predetermined number of pixels in one column in the vertical direction corresponding to one angle. To detect. The error estimating unit 403 detects the correlation between the pixel values of the pixels at the corresponding positions in the set, for a plurality of sets of pixels consisting of a predetermined number of pixels in one row in the horizontal direction corresponding to one angle.
[0470]
The error estimating unit 403 supplies correlation information indicating the detected correlation to the stationary direction deriving unit 404. The error estimating unit 403 calculates, as a value indicating the correlation, the absolute value of the difference between the pixel value of the pixel of the set including the target pixel and the pixel value of the pixel at the corresponding position in the other set, supplied from the data selecting unit 402 , And supplies the sum of the absolute values of the differences to the stationary direction deriving unit 404 as correlation information.
[0471]
Based on the correlation information supplied from the error estimating unit 403, the stationary direction deriving unit 404 determines the continuity of data based on the reference axis in the input image corresponding to the continuity of the missing optical signal of the real world 1. And outputs data continuity information indicating the angle. For example, based on the correlation information supplied from the error estimating unit 403, the stationary direction deriving unit 404 detects an angle with respect to a set of pixels having the strongest correlation as an angle of data continuity, and Data continuity information indicating an angle with respect to a strong pixel set is output.
[0472]
In the following description, it is assumed that the angle of data continuity in the range of 0 to 90 degrees (the so-called first quadrant) is appropriately detected.
[0473]
FIG. 76 is a block diagram showing a more detailed configuration of data continuity detecting section 101 shown in FIG.
[0474]
The data selection unit 402 includes pixel selection units 411-1 to 411-L. Error estimation section 403 includes estimation error calculation sections 412-1 to 412-L. The stationary direction deriving unit 404 includes a minimum error angle selecting unit 413.
[0475]
First, the processing of the pixel selection units 411-1 to 411-L when the data continuity angle indicated by the activity information is any value of 45 degrees to 135 degrees will be described.
[0476]
The pixel selection units 411-1 to 411-L set straight lines having different predetermined angles that pass through the pixel of interest, with the axis indicating the spatial direction X as a reference axis. The pixel selection units 411-1 to 411-L are pixels belonging to one vertical pixel column to which the target pixel belongs, and a predetermined number of pixels above the target pixel and a pixel below the target pixel. A predetermined number of pixels on the side and the pixel of interest are selected as a set of pixels.
[0477]
For example, as illustrated in FIG. 77, the pixel selection units 411-1 to 411-L may include nine pixels centered on the pixel of interest from pixels belonging to one vertical pixel column to which the pixel of interest belongs. Is selected as a set of pixels.
[0478]
In FIG. 77, one square (one square) in a grid shape indicates one pixel. In FIG. 77, a circle shown at the center indicates a target pixel.
[0479]
The pixel selection units 411-1 to 411-L are pixels belonging to one vertical pixel column to which the pixel of interest belongs and one vertical pixel column to the left, and are respectively set. The pixel closest to the straight line is selected. In FIG. 77, the lower left circle of the target pixel indicates an example of the selected pixel. The pixel selection units 411-1 to 411-L are pixels belonging to one vertical pixel column to the left and one vertical pixel column to which the target pixel belongs. A predetermined number of pixels above the selected pixel, a predetermined number of pixels below the selected pixel, and the selected pixel are selected as a set of pixels.
[0480]
For example, as shown in FIG. 77, the pixel selection units 411-1 to 411-L are arranged in one vertical column of pixels to which the pixel of interest belongs and one vertical column of pixels on the left side. Nine pixels are selected as a set of pixels from the belonging pixels, centering on the pixel closest to the straight line.
[0481]
The pixel selection units 411-1 to 411-L are pixels belonging to the second vertically one pixel column to the left of the vertically one pixel column to which the pixel of interest belongs, respectively. The pixel at the position closest to the straight line set in is selected. In FIG. 77, the leftmost circle shows an example of the selected pixel. The pixel selection units 411-1 to 411-L are pixels belonging to the second vertically one pixel column to the left of the vertically one pixel column to which the pixel of interest belongs. , A predetermined number of pixels above the selected pixel, a predetermined number of pixels below the selected pixel, and the selected pixel are selected as a set of pixels.
[0482]
For example, as illustrated in FIG. 77, the pixel selection units 411-1 to 411-L include a second vertically one pixel on the left side of a vertically one pixel column to which the pixel of interest belongs. , Nine pixels are selected as a set of pixels centering on the pixel closest to the straight line.
[0483]
The pixel selection units 411-1 to 411-L are pixels belonging to one vertical pixel column to which the pixel of interest belongs, and one vertical pixel column to the right. The pixel closest to the straight line is selected. In FIG. 77, a circle on the upper right side of the pixel of interest indicates an example of the selected pixel. The pixel selection units 411-1 to 411-L are pixels belonging to one vertical column of pixels to which the target pixel belongs and one vertical column of pixels to the right. A predetermined number of pixels above the selected pixel, a predetermined number of pixels below the selected pixel, and the selected pixel are selected as a set of pixels.
[0484]
For example, as shown in FIG. 77, the pixel selection units 411-1 to 411-L are configured to display one vertical pixel column to which the pixel of interest belongs and one vertical pixel column to the right. Nine pixels are selected as a set of pixels from the belonging pixels, centering on the pixel closest to the straight line.
[0485]
The pixel selection units 411-1 to 411-L are pixels belonging to a second vertically one pixel column to the right of a vertically one pixel column to which the pixel of interest belongs, respectively. The pixel closest to the straight line set in is selected. In FIG. 77, the rightmost circle shows an example of the pixel thus selected. The pixel selection units 411-1 to 411-L are pixels belonging to the second vertically one pixel column on the right side of the vertically one pixel column to which the pixel of interest belongs. , A predetermined number of pixels above the selected pixel, a predetermined number of pixels below the selected pixel, and the selected pixel as a set of pixels.
[0486]
For example, as illustrated in FIG. 77, the pixel selection units 411-1 to 411-L are configured to include a second vertical pixel on the right side of a vertical one pixel column to which the pixel of interest belongs. , Nine pixels are selected as a set of pixels centering on the pixel closest to the straight line.
[0487]
Thus, each of the pixel selection units 411-1 to 411-L selects five sets of pixels.
[0488]
The pixel selection units 411-1 to 411-L select a set of pixels at different angles (straight lines set to). For example, the pixel selection unit 411-1 selects a set of pixels for 45 degrees, the pixel selection unit 411-2 selects a set of pixels for 47.5 degrees, and the pixel selection unit 411-3. Selects a set of pixels for 50 degrees. The pixel selection units 411-1 to 411-L select a set of pixels at an angle of 2.5 degrees from 52.5 degrees to 135 degrees.
[0489]
Note that the number of pixel sets can be an arbitrary number, such as three or seven, and does not limit the present invention. Further, the number of pixels selected as one set can be an arbitrary number such as five or thirteen, and does not limit the present invention.
[0490]
Note that the pixel selection units 411-1 to 411-L can select a set of pixels from a predetermined range of pixels in the vertical direction. For example, the pixel selection units 411-1 to 411-L select a set of pixels from 121 pixels in the vertical direction (60 pixels upward and 60 pixels downward with respect to the pixel of interest). I do. In this case, the data continuity detecting unit 101 can detect an angle of data continuity up to 88.09 degrees with respect to the axis indicating the spatial direction X.
[0490]
The pixel selection unit 411-1 supplies the selected pixel pair to the estimation error calculation unit 412-1, and the pixel selection unit 411-2 supplies the selected pixel pair to the estimation error calculation unit 412-2. Similarly, each of the pixel selection units 411-3 to 411-L supplies the selected pixel set to each of the estimation error calculation units 412-3 to 412-L.
[0492]
The estimation error calculation unit 412-1 to the estimation error calculation unit 412-L calculates a pixel value of a pixel at a corresponding position in a plurality of sets supplied from any of the pixel selection units 411-1 to 411-L. Detect the correlation of For example, the estimation error calculation units 412-1 to 412-L include the target pixel supplied from any of the pixel selection units 411-1 to 411-L as a value indicating the correlation. The sum of the absolute value of the difference between the pixel value of the pixel of the set and the pixel value of the pixel at the corresponding position in another set is calculated.
[0493]
More specifically, the estimation error calculator 412-1 to the estimation error calculator 412-L include a set including a target pixel supplied from any of the pixel selection units 411-1 to 411-L. Based on the pixel value of the pixel and the pixel value of a set of pixels belonging to one vertical column on the left side of the pixel of interest, calculate the difference between the pixel values of the uppermost pixel, As in the case of calculating the pixel value difference of the second pixel, the absolute value of the pixel value difference is calculated in order from the upper pixel, and further, the sum of the calculated absolute values of the differences is calculated. The estimation error calculation unit 412-1 to the estimation error calculation unit 412-L include a pixel value of a set of pixels including the pixel of interest supplied from any of the pixel selection units 411-1 to 411-L, Calculating the absolute value of the difference between the pixel values in order from the pixel above, based on the pixel values of a set of pixels belonging to the second vertical column of pixels to the left of the pixel of interest; The sum of the absolute values of the obtained differences is calculated.
[0494]
Then, the estimation error calculation units 412-1 to 412-L calculate the pixel values of the set of pixels including the target pixel supplied from any of the pixel selection units 411-1 to 411-L. And the pixel value of the pixel of the uppermost pixel is calculated based on the pixel value of a set of pixels belonging to one vertical column of pixels to the right of the target pixel, and the second pixel from the top is calculated. , The absolute value of the pixel value difference is calculated in order from the upper pixel, and the sum of the calculated absolute values of the differences is calculated. The estimation error calculation unit 412-1 to the estimation error calculation unit 412-L include a pixel value of a set of pixels including the pixel of interest supplied from any of the pixel selection units 411-1 to 411-L, The absolute value of the difference between the pixel values is calculated in order from the upper pixel based on the pixel value of a set of pixels belonging to the second vertical column of pixels to the right of the target pixel, and calculated. The sum of the absolute values of the obtained differences is calculated.
[0495]
The estimation error calculation units 412-1 to 412-L add up all the sums of the absolute values of the pixel value differences calculated in this way, and calculate the sum of the absolute values of the pixel value differences. .
[0496]
The estimation error calculation units 412-1 to 412-L supply information indicating the detected correlation to the minimum error angle selection unit 413. For example, the estimation error calculation units 412-1 to 412-L supply the sum of the absolute values of the calculated pixel value differences to the minimum error angle selection unit 413.
[0497]
Note that the estimation error calculation units 412-1 to 412-L are not limited to the sum of the absolute values of the pixel value differences, but may be the sum of the squares of the pixel value differences or a phase relationship based on the pixel values. Another value such as a number can be calculated as the correlation value.
[0498]
The minimum error angle selection unit 413 generates a missing image of the optical signal of the real world 1 based on the correlation detected by the estimation error calculation units 412-1 to 412-L for different angles. An angle of continuity of data corresponding to the continuity in the input image with respect to the reference axis is detected. That is, the minimum error angle selection unit 413 selects and selects the strongest correlation based on the correlations detected by the estimation error calculation units 412-1 to 412-L for different angles from each other. By setting the angle at which the correlation is detected as the continuity angle of the data with respect to the reference axis, the continuity angle of the data with respect to the reference axis in the input image is detected.
[0499]
For example, the minimum error angle selection unit 413 selects the minimum total sum of the absolute values of the pixel value differences supplied from the estimation error calculation units 412-1 to 412-L. The minimum error angle selection unit 413 determines, for the selected set of pixels for which the sum has been calculated, the pixels belonging to the second column of pixels vertically to the left, and With respect to the position of the closest pixel and the position of the pixel closest to the straight line that belongs to the second vertical column of pixels to the right with respect to the pixel of interest.
[0500]
As shown in FIG. 77, the minimum error angle selection unit 413 calculates the vertical distance S between the position of the reference pixel and the position of the target pixel. As shown in FIG. 78, the minimum error angle selection unit 413 determines, from Expression (29), the spatial direction as the reference axis in the input image as the image data corresponding to the continuity of the missing optical signal of the real world 1. An angle θ of continuity of the data with respect to the axis indicating X is detected.
[0501]
θ = tan-1(S / 2) (29)
[0502]
Next, the pixel selection units 411-1 to 411-L when the data continuity angle indicated by the activity information is any one of 0 to 45 degrees and 135 to 180 degrees. The processing will be described.
[0503]
The pixel selection units 411-1 to 411-L set a straight line having a predetermined angle passing through the pixel of interest, using the axis indicating the spatial direction X as a reference axis, and forming one horizontal row of pixels to which the pixel of interest belongs. , A predetermined number of pixels above the target pixel, a predetermined number of pixels below the target pixel, and the target pixel are selected as a set of pixels.
[0504]
The pixel selection units 411-1 to 411-L are pixels belonging to one horizontal row of pixels to which the target pixel belongs and one horizontal row of pixels to the upper side. The pixel closest to the straight line is selected. The pixel selection units 411-1 to 411-L are pixels belonging to one horizontal row of pixels to which the pixel of interest belongs and one vertical row of pixels. A predetermined number of pixels on the left side of the selected pixel, a predetermined number of pixels on the right side of the selected pixel, and the selected pixel are selected as a set of pixels.
[0505]
The pixel selection units 411-1 to 411-L are pixels belonging to the second horizontal row of pixels to which the target pixel belongs and the second horizontal row of pixels to which the pixel of interest belongs. The pixel closest to the straight line set in is selected. The pixel selection units 411-1 to 411-L are pixels that belong to the second horizontal pixel column of the first horizontal pixel column to which the target pixel belongs. , A predetermined number of pixels to the left of the selected pixel, a predetermined number of pixels to the right of the selected pixel, and the selected pixel are selected as a set of pixels.
[0506]
The pixel selection units 411-1 to 411-L are pixels belonging to one horizontal row of pixels to which the target pixel belongs and one horizontal row of pixels to the lower side. The pixel closest to the straight line is selected. The pixel selection units 411-1 to 411-L are pixels belonging to one horizontal row of pixels to which the target pixel belongs and one horizontal row of pixels to the lower side. A predetermined number of pixels on the left side of the selected pixel, a predetermined number of pixels on the right side of the selected pixel, and the selected pixel are selected as a set of pixels.
[0507]
The pixel selection units 411-1 to 411-L are pixels belonging to the second horizontal row of pixels to which the pixel of interest belongs, and the second horizontal row of pixels to the lower side. The pixel closest to the set straight line is selected. The pixel selection units 411-1 to 411-L are pixels belonging to a second row of pixels of the first row of pixels to which the pixel of interest belongs, and a second row of pixels below. Then, a predetermined number of pixels on the left side of the selected pixel, a predetermined number of pixels on the right side of the selected pixel, and the selected pixel are selected as a set of pixels.
[0508]
Thus, each of the pixel selection units 411-1 to 411-L selects five sets of pixels.
[0509]
The pixel selection units 411-1 to 411-L select a set of pixels at different angles. For example, the pixel selection unit 411-1 selects a pixel set for 0 degrees, the pixel selection unit 411-2 selects a pixel set for 2.5 degrees, and the pixel selection unit 411-3. Selects a set of pixels for 5 degrees. The pixel selection units 411-1 to 411-L select a set of pixels at angles of 2.5 degrees from 7.5 degrees to 45 degrees and from 135 degrees to 180 degrees.
[0510]
The pixel selection unit 411-1 supplies the selected pixel pair to the estimation error calculation unit 412-1, and the pixel selection unit 411-2 supplies the selected pixel pair to the estimation error calculation unit 412-2. Similarly, each of the pixel selection units 411-3 to 411-L supplies the selected pixel set to each of the estimation error calculation units 412-3 to 412-L.
[0511]
The estimation error calculation unit 412-1 to the estimation error calculation unit 412-L calculates a pixel value of a pixel at a corresponding position in a plurality of sets supplied from any of the pixel selection units 411-1 to 411-L. Detect the correlation of The estimation error calculation units 412-1 to 412-L supply information indicating the detected correlation to the minimum error angle selection unit 413.
[0512]
The minimum error angle selection unit 413, based on the correlation detected by the estimation error calculation units 412-1 to 412-L, corresponds to the stationarity of the image that is the optical signal of the real world 1 that has been lost. An angle of data continuity in the input image with respect to the reference axis is detected.
[0513]
Next, processing for detecting data continuity by the data continuity detecting unit 101 shown in FIG. 72 and corresponding to the processing in step S101 will be described with reference to the flowchart in FIG.
[0514]
In step S401, the activity detection unit 401 and the data selection unit 402 select a pixel of interest, which is a pixel of interest, from the input image. The activity detection unit 401 and the data selection unit 402 select the same target pixel. For example, the activity detection unit 401 and the data selection unit 402 select a pixel of interest from the input image in raster scan order.
[0515]
In step S402, the activity detection unit 401 detects an activity for the pixel of interest. For example, the activity detection unit 401 determines an activity based on a difference between pixel values of pixels arranged in a vertical direction and a difference between pixel values of pixels arranged in a horizontal direction in a block including a predetermined number of pixels centered on a target pixel. To detect.
[0516]
The activity detection unit 401 detects the activity in the spatial direction with respect to the pixel of interest, and supplies activity information indicating the detection result to the data selection unit 402 and the steady direction derivation unit 404.
[0517]
In step S403, the data selection unit 402 selects a predetermined number of pixels centered on the pixel of interest as a pixel set from a column of pixels including the pixel of interest. For example, the data selection unit 402 is a pixel belonging to one vertical or horizontal pixel column to which the target pixel belongs, and a predetermined number of pixels above or to the left of the target pixel, and below or to the right of the target pixel. Are selected as a set of pixels.
[0518]
In step S404, the data selection unit 402 replaces a predetermined number of pixels with a predetermined number of pixels from a predetermined number of pixel columns for each predetermined range of angles based on the activity detected in the process of step S402. Is selected as a set. For example, the data selection unit 402 sets a straight line that has an angle in a predetermined range and passes through the pixel of interest with the axis indicating the spatial direction X as a reference axis, and sets a straight line in the horizontal or vertical direction with respect to the pixel of interest. A pixel that is a row or two columns apart and that is closest to the straight line is selected, a predetermined number of pixels above or to the left of the selected pixel, and a predetermined number of pixels below or to the right of the selected pixel. The pixels, as well as the selected pixels closest to the line, are selected as a set of pixels. The data selection unit 402 selects a set of pixels for each angle.
[0519]
The data selection unit 402 supplies the selected pixel set to the error estimation unit 403.
[0520]
In step S405, the error estimating unit 403 calculates a correlation between a set of pixels centered on the target pixel and a set of pixels selected for each angle. For example, the error estimating unit 403 calculates, for each angle, the sum of the absolute value of the difference between the pixel value of the pixel of the group including the target pixel and the pixel value of the pixel at the corresponding position in the other group.
[0521]
The continuity angle of the data may be detected based on the mutual correlation of the set of pixels selected for each angle.
[0522]
The error estimating unit 403 supplies information indicating the calculated correlation to the stationary direction deriving unit 404.
[0523]
In step S406, the stationary direction deriving unit 404, based on the correlation calculated in the process of step S405, corresponds to the continuity of the optical signal of the real world 1 that is missing from the position of the pixel set having the strongest correlation. An angle of continuity of data with respect to a reference axis in an input image which is image data is detected. For example, the stationary direction deriving unit 404 selects the smallest sum among the sums of the absolute values of the pixel value differences, and calculates the data continuity angle θ from the position of the set of pixels for which the selected sum was calculated. Is detected.
[0524]
The stationary direction deriving unit 404 outputs data continuity information indicating an angle of continuity of the detected data.
[0525]
In step S407, the data selection unit 402 determines whether or not processing of all pixels has been completed. If it is determined that processing of all pixels has not been completed, the process returns to step S401, and the data selection unit 402 still determines that the pixel of interest has been processed. The target pixel is selected from the unselected pixels, and the above-described processing is repeated.
[0526]
If it is determined in step S407 that the processing for all pixels has been completed, the processing ends.
[0527]
As described above, the data continuity detection unit 101 can detect the continuity angle of the data with respect to the reference axis in the image data corresponding to the continuity of the missing optical signal of the real world 1.
[0528]
Note that the data detection unit 101 having the configuration illustrated in FIG. 72 detects the activity in the spatial direction of the input image with respect to the pixel of interest, which is the pixel of interest, of the frame of interest, which is the frame of interest. Depending on the activity, the pixel of interest and the angle with respect to the reference axis in the spatial direction, and for each motion vector, one column or one column in the vertical direction from the frame of interest and the frame temporally before or after the frame of interest. A plurality of pixel sets each consisting of a predetermined number of pixels in a row are extracted in the horizontal direction, a correlation between the extracted pixel sets is detected, and data in a time direction and a spatial direction in an input image are detected based on the correlation. May be detected.
[0529]
For example, as illustrated in FIG. 80, the data selection unit 402 may determine a frame #n that is a frame of interest for each pixel of interest and an angle with respect to a reference axis in the spatial direction and a motion vector in accordance with the detected activity. , Frame # n−1, and frame # n + 1, a plurality of pixel sets each including a predetermined number of pixels in one column in the vertical direction or one column in the horizontal direction are extracted.
[0530]
The frame # n-1 is a frame temporally before the frame #n, and the frame # n + 1 is a frame temporally after the frame #n. That is, frame # n-1, frame #n, and frame # n + 1 are displayed in the order of frame # n-1, frame #n, and frame # n + 1.
[0531]
The error estimating unit 403 detects the correlation of the set of pixels for each of one angle and one motion vector for a plurality of sets of extracted pixels. The stationary direction deriving unit 404 detects the continuity angle of the data in the time direction and the spatial direction in the input image corresponding to the continuity of the missing optical signal of the real world 1 based on the correlation of the set of pixels. , And outputs data continuity information indicating the angle.
[0532]
FIG. 81 is a block diagram showing another more detailed configuration of data continuity detecting section 101 shown in FIG. Parts similar to those shown in FIG. 76 are denoted by the same reference numerals, and description thereof will be omitted.
[0533]
The data selection unit 402 includes pixel selection units 421-1 to 421-L. Error estimation section 403 includes estimation error calculation sections 422-1 to 422-L.
[0534]
In the data continuity detecting unit 101 shown in FIG. 81, a set of pixels, which is composed of a number of pixels with respect to an angle range, is extracted, and a correlation between the extracted pixel sets is extracted. Is detected, and the continuity angle of the data with respect to the reference axis in the input image is detected based on the detected correlation.
[0535]
First, the processing of the pixel selection units 421-1 to 421-L when the data continuity angle indicated by the activity information is any value of 45 degrees to 135 degrees will be described.
[0536]
As shown on the left side of FIG. 82, in the data continuity detection unit 101 shown in FIG. 76, a set of pixels including a fixed number of pixels is extracted regardless of the angle of the set straight line. In the data continuity detecting unit 101 shown in FIG. 81, as shown on the right side of FIG. 82, a set of pixels including a number of pixels corresponding to the range of the angle of the set straight line is extracted. In the data continuity detecting unit 101 shown in FIG. 81, a set of pixels is extracted by the number corresponding to the set range of the angle of the straight line.
[0537]
The pixel selection units 421-1 to 421-L set straight lines having predetermined angles different from each other and passing through the pixel of interest, with the axis indicating the spatial direction X as a reference axis in the range of 45 to 135 degrees. I do.
[0538]
The pixel selection units 421-1 to 421-L are pixels belonging to one vertical column of pixels to which the pixel of interest belongs, and have a number corresponding to the range of the angle of the straight line set for each of the pixels. The pixel above the pixel of interest, the pixel below the pixel of interest, and the pixel of interest are selected as a set of pixels.
[0539]
The pixel selection units 421-1 to 421-L are located at a predetermined distance in the horizontal direction with respect to the pixel, with respect to the one vertical column of the pixel to which the pixel of interest belongs. A pixel belonging to one pixel column, the pixel closest to the set straight line is selected, and the selected pixel is vertically shifted from one row of pixels to the selected straight line. The number of pixels above the selected pixel, the number of pixels below the selected pixel, and the number of selected pixels corresponding to the angle range are selected as a set of pixels.
[0540]
That is, the pixel selection units 421-1 to 421-L select a number of pixels according to the set range of the angle of the straight line as a set of pixels. The pixel selection units 421-1 to 421-L select a number of pixel sets according to the set angle range of the straight line.
[0541]
For example, when an image of a thin line located at an angle of approximately 45 degrees with respect to the spatial direction X and having the same width as the width of the detection region of the detection element is captured by the sensor 2, the image of the thin line is shifted in the spatial direction Y. Data 3 is projected so that an arc shape is formed in three pixels arranged in one line. On the other hand, when the image of the thin line, which is located substantially perpendicular to the spatial direction X and has the same width as the width of the detection region of the detection element, is captured by the sensor 2, the image of the thin line is The data 3 is projected so that an arc shape is formed in a large number of pixels arranged in one line.
[0542]
Assuming that the same number of pixels are included in the set of pixels, if the thin line is located at an angle of approximately 45 degrees with respect to the spatial direction X, the number of pixels on which the image of the thin line is projected is reduced in the set of pixels. , The resolution is reduced. Conversely, when the thin line is located almost perpendicular to the spatial direction X, processing is performed on some of the pixels on which the image of the thin line is projected in the set of pixels, May decrease.
[0543]
Therefore, the pixel selection units 421-1 to 421-L determine that the straight line to be set is closer to the spatial direction X by an angle of 45 degrees so that the pixels on which the thin line images are projected are substantially equal. If the number of pixels included in each set of pixels is reduced and the number of sets of pixels is increased, and the straight line to be set is closer to being perpendicular to the spatial direction X, the number of pixels included in each set of pixels is reduced. Pixels and pixel sets are selected such that the number is increased and the number of pixel sets is reduced.
[0544]
For example, as illustrated in FIG. 83 and FIG. 84, the pixel selection units 421-1 to 421-L determine that the angle of the set straight line is in a range of 45 degrees or more and less than 63.4 degrees (see FIG. In FIG. 84, when the pixel is in the range indicated by A), five pixels centered on the pixel of interest are selected as a set of pixels from one vertical column of pixels, and On the other hand, five pixels are selected as a set of pixels from pixels belonging to one vertical pixel column on the left and right sides within a distance of five pixels in the horizontal direction.
[0545]
That is, the pixel selection units 421-1 to 421-L each include five pixels from the input image when the angle of the set straight line is in the range of 45 degrees or more and less than 63.4 degrees. A set of 11 pixels is selected. In this case, the pixel selected as the pixel closest to the set straight line is located at a position vertically away from the target pixel by 5 to 9 pixels.
[0546]
In FIG. 84, the number of columns indicates the number of columns of pixels to which a pixel is selected as a pixel set on the left or right side of the target pixel. In FIG. 84, the number of pixels in one column indicates the number of pixels that are selected as a set of pixels from a column of one pixel vertically or a column on the left or right side of the pixel of interest with respect to the pixel of interest. . In FIG. 84, the pixel selection range indicates the vertical position of the selected pixel as the pixel closest to the set straight line with respect to the target pixel.
[0547]
As shown in FIG. 85, for example, when the angle of the set straight line is 45 degrees, the pixel selection unit 421-1 shifts the pixel of interest from the column of one pixel vertically to the pixel of interest. Are selected as a set of pixels, and a pixel belonging to one vertical column of pixels on the left and right sides within a distance of 5 pixels in the horizontal direction with respect to the pixel of interest, In each case, five pixels are selected as a set of pixels. That is, the pixel selection unit 421-1 selects a set of 11 pixels, each including 5 pixels, from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the target pixel is located five pixels away from the target pixel in the vertical direction. .
[0548]
Note that in FIGS. 85 to 92, a square represented by a dotted line (one square separated by a dotted line) represents one pixel, and a square represented by a solid line represents a set of pixels. In FIGS. 85 to 92, the coordinates of the pixel of interest in the spatial direction X are set to 0, and the coordinates of the pixel of interest in the spatial direction Y are set to 0.
[0549]
In FIGS. 85 to 92, the hatched squares indicate the target pixel or the pixel closest to the set straight line. In FIG. 85 to FIG. 92, squares represented by thick lines indicate a set of pixels selected with the target pixel as the center.
[0550]
As shown in FIG. 86, for example, when the angle of the set straight line is 60.9 degrees, the pixel selection unit 421-2 shifts the pixel of interest from one vertical column of pixels to the target pixel. Five pixels centered on the target pixel are selected as a set of pixels, and pixels belonging to one vertical column of pixels on the left and right sides within a distance of 5 pixels or less from the target pixel in the horizontal direction. , Each of the five pixels is selected as a set of pixels. That is, the pixel selection unit 421-2 selects a set of 11 pixels each including 5 pixels from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the target pixel is located nine pixels away from the target pixel in the vertical direction. .
[0551]
For example, as shown in FIGS. 83 and 84, the pixel selection units 421-1 to 421-L determine that the angle of the set straight line is in a range of 63.4 degrees or more and less than 71.6 degrees (see FIG. 83 and in FIG. 84), seven pixels centered on the pixel of interest are selected as a set of pixels from a single vertical column of pixels with respect to the pixel of interest. Seven pixels are selected as a set of pixels from pixels belonging to one vertical pixel column on the left and right sides within a distance of four pixels in the horizontal direction.
[0552]
That is, when the angle of the set straight line is in the range of not less than 63.4 degrees and less than 71.6 degrees, the pixel selection units 421-1 to 421-L each determine seven pixels from the input image. , A set of nine pixels is selected. In this case, the vertical position of the pixel closest to the set straight line is 8 to 11 pixels with respect to the target pixel.
[0553]
As shown in FIG. 87, for example, when the angle of the set straight line is 63.4 degrees, the pixel selection unit 421-3 shifts the pixel of interest from one pixel column vertically to the pixel of interest. Seven pixels centered on the target pixel are selected as a set of pixels, and pixels belonging to one vertical pixel row on the left and right sides within a distance of four pixels or less from the target pixel in the horizontal direction. , Each of the seven pixels is selected as a set of pixels. That is, the pixel selection unit 421-3 selects a set of nine pixels, each including seven pixels, from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the target pixel is located eight pixels away from the target pixel in the vertical direction. .
[0554]
Further, as shown in FIG. 88, for example, when the angle of the set straight line is 70.0 degrees, the pixel selection unit 421-4 determines that the pixel of interest From the above, seven pixels centering on the target pixel are selected as a set of pixels, and one vertical pixel column on the left and right sides within a distance of 4 pixels or less with respect to the target pixel. Each of the seven pixels is selected as a set of pixels from the belonging pixels. That is, the pixel selection unit 421-4 selects a set of nine pixels, each including seven pixels, from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the pixel of interest is 11 pixels away from the pixel of interest in the vertical direction. .
[0555]
For example, as shown in FIG. 83 and FIG. 84, the pixel selection units 421-1 to 421-L determine that the angle of the set straight line is in a range from 71.6 degrees to less than 76.0 degrees (see FIG. 83 and in FIG. 84), nine pixels centered on the target pixel are selected as a set of pixels from one vertical column of pixels with respect to the target pixel. Nine pixels are selected as a set of pixels from pixels belonging to one vertical pixel column on the left and right sides within a distance of three pixels in the horizontal direction with respect to the pixels.
[0556]
That is, when the angle of the set straight line is in the range of not less than 71.6 degrees and less than 76.0 degrees, the pixel selection units 421-1 to 421-L determine whether the input image has nine pixels from the input image. , A set of seven pixels is selected. In this case, the vertical position of the pixel closest to the set straight line is 9 to 11 pixels with respect to the target pixel.
[0557]
As illustrated in FIG. 89, for example, when the angle of the set straight line is 71.6 degrees, the pixel selection unit 421-5 shifts the pixel of interest from the column of one vertical pixel to the pixel of interest. Nine pixels centering on the target pixel are selected as a set of pixels, and pixels belonging to one vertical pixel column on the left and right sides within a distance of three pixels in the horizontal direction with respect to the target pixel , Each of which selects nine pixels as a set of pixels. That is, the pixel selection unit 421-5 selects a set of seven pixels, each including nine pixels, from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the target pixel is located nine pixels away from the target pixel in the vertical direction. .
[0558]
Further, as shown in FIG. 90, for example, when the angle of the set straight line is 74.7 degrees, the pixel selection unit 421-6 determines that the pixel of interest is one column of pixels vertically. From the above, nine pixels centering on the target pixel are selected as a set of pixels, and one pixel column on the left and right sides within a horizontal distance of three pixels or less from the target pixel. Nine pixels are selected as a set of pixels from the belonging pixels. That is, the pixel selection unit 421-6 selects a set of seven pixels, each including nine pixels, from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the pixel of interest is 11 pixels away from the pixel of interest in the vertical direction. .
[0559]
For example, as shown in FIG. 83 and FIG. 84, the pixel selection units 421-1 to 421-L determine that the angle of the set straight line is in the range of 76.0 degrees or more and 87.7 degrees or less (see FIG. 83 and the range indicated by D in FIG. 84), 11 pixels centered on the target pixel are selected as a set of pixels from one vertical column of pixels with respect to the target pixel. Eleven pixels are selected as a set of pixels from pixels belonging to one vertical pixel column on the left and right sides within a distance of less than two pixels in the horizontal direction. That is, when the angle of the set straight line is in the range of not less than 76.0 degrees and not more than 87.7 degrees, the pixel selection units 421-1 to 421-L determine whether or not each of the pixels is 11 pixels from the input image. , A set of five pixels is selected. In this case, the vertical position of the pixel closest to the set straight line is 8 to 50 pixels with respect to the target pixel.
[0560]
As illustrated in FIG. 91, for example, when the angle of the set straight line is 76.0 degrees, the pixel selection unit 421-7 shifts the pixel of interest from one pixel column vertically to the target pixel. The 11 pixels centered on the pixel of interest are selected as a set of pixels, and the pixels belonging to one vertical column on the left and right sides that are within 2 pixels horizontally from the pixel of interest. , Each of which selects 11 pixels as a set of pixels. That is, the pixel selection unit 421-7 selects a set of five pixels each including 11 pixels from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the target pixel is located eight pixels away from the target pixel in the vertical direction. .
[0561]
Also, as shown in FIG. 92, for example, when the angle of the set straight line is 87.7 degrees, the pixel selection unit 421-8 determines that the pixel of interest From the above, 11 pixels centered on the target pixel are selected as a set of pixels, and one vertical column of pixels on the left and right sides within a horizontal distance of 2 pixels or less from the target pixel. Eleven pixels are selected as a set of pixels from the belonging pixels. That is, the pixel selection unit 421-8 selects a set of five pixels each including eleven pixels from the input image. In this case, among the pixels selected as the pixels closest to the set straight line, the pixel farthest from the target pixel is located 50 pixels away from the target pixel in the vertical direction. .
[0562]
As described above, each of the pixel selection units 421-1 to 421-L selects a predetermined number of pixel sets corresponding to the angle range, each including a predetermined number of pixels corresponding to the angle range. I do.
[0563]
The pixel selection unit 421-1 supplies the selected pixel pair to the estimation error calculation unit 422-1, and the pixel selection unit 421-2 supplies the selected pixel pair to the estimation error calculation unit 422-2. Similarly, each of the pixel selection units 421-3 to 421-L supplies the selected set of pixels to each of the estimation error calculation units 422-3 to 422-L.
[0564]
The estimation error calculation units 422-1 to 422-L calculate the pixel values of the pixels at the corresponding positions in the plurality of sets supplied from any of the pixel selection units 421-1 to 421-L. Detect the correlation of For example, the estimation error calculation unit 422-1 to the estimation error calculation unit 422-L are configured to output the pixels of the pixel set including the pixel of interest supplied from any of the pixel selection units 421-1 to 421-L. Calculate the sum of the absolute value of the difference between the pixel value and the pixel value of the pixel at the corresponding position in the other pixel set, and calculate the number of pixels included in the pixel set other than the pixel set including the target pixel. Divide the sum. The calculated sum is divided by the number of pixels included in a group other than the group including the pixel of interest because the number of pixels selected according to the angle of the set straight line differs, so that the value indicating the correlation is calculated. In order to normalize.
[0565]
The estimation error calculation units 422-1 to 422-L supply the information indicating the detected correlation to the minimum error angle selection unit 413. For example, the estimation error calculation units 422-1 to 422-L supply the sum of the absolute values of the normalized pixel value differences to the minimum error angle selection unit 413.
[0566]
Next, the pixel selection units 421-1 to 421-L when the data continuity angle indicated by the activity information is any one of 0 to 45 degrees and 135 to 180 degrees. The processing will be described.
[0567]
The pixel selection units 421-1 to 421-L are different from each other in a predetermined range different from each other and passing through the pixel of interest using an axis indicating the spatial direction X in a range of 0 to 45 degrees or 135 to 180 degrees. Set a straight line at an angle of.
[0568]
The pixel selection units 421-1 to 421-L are pixels belonging to one horizontal row of pixels to which the pixel of interest belongs, and the number of pixels of interest corresponding to the range of the angle of the set straight line And the pixel on the right side of the target pixel and the target pixel are selected as a set of pixels.
[0569]
The pixel selection unit 421-1 to the pixel selection unit 421-L are located at a predetermined distance in the vertical direction based on the pixel with respect to one horizontal row of pixels to which the pixel of interest belongs. A pixel belonging to one horizontal row of pixels and located closest to the set straight line is selected, and the angle of the set straight line is determined from one horizontal row of pixels with respect to the selected pixel. The pixels on the left side of the selected pixel, the pixels on the right side of the selected pixel, and the selected pixels are selected as a set of pixels according to the range.
[0570]
That is, the pixel selection units 421-1 to 421-L select a number of pixels according to the set range of the angle of the straight line as a set of pixels. The pixel selection units 421-1 to 421-L select a number of pixel sets according to the set angle range of the straight line.
[0571]
The pixel selection unit 421-1 supplies the selected pixel pair to the estimation error calculation unit 422-1, and the pixel selection unit 421-2 supplies the selected pixel pair to the estimation error calculation unit 422-2. Similarly, each of the pixel selection units 421-3 to 421-L supplies the selected set of pixels to each of the estimation error calculation units 422-3 to 422-L.
[0572]
The estimation error calculation units 422-1 to 422-L calculate the pixel values of the pixels at the corresponding positions in the plurality of sets supplied from any of the pixel selection units 421-1 to 421-L. Detect the correlation of
[0573]
The estimation error calculation units 422-1 to 422-L supply the information indicating the detected correlation to the minimum error angle selection unit 413.
[0574]
Next, processing for detecting data continuity by the data continuity detecting unit 101 shown in FIG. 81 and corresponding to the processing in step S101 will be described with reference to the flowchart in FIG.
[0575]
The processing in steps S421 and S422 is the same as the processing in steps S401 and S402, and a description thereof will be omitted.
[0576]
In step S423, the data selection unit 402 determines, for each of a predetermined range of angles with respect to the activity detected in the process of step S422, from the row of pixels including the target pixel to the range of angles centered on the target pixel. A predetermined number of pixels are selected as a set of pixels. For example, the data selection unit 402 determines the number of pixels of interest that are pixels belonging to one vertical or horizontal pixel row to which the pixel of interest belongs and that are determined by the angle range with respect to the angle of the straight line to be set. The upper or left pixel, the lower or right pixel of interest, and the interest pixel are selected as a set of pixels.
[0577]
In step S424, the data selection unit 402 determines, for each of a predetermined range of angles based on the activity detected in the process of step S422, a column of a predetermined number of pixels for the angle range, Are selected as a set of pixels. For example, the data selection unit 402 sets a straight line that has an angle in a predetermined range and passes through the pixel of interest with the axis indicating the spatial direction X as a reference axis, and horizontally or vertically with respect to the pixel of interest. A pixel which is a predetermined distance away from the range of the angle of the straight line to be set and which is closest to the straight line is selected, and the number of pixels above or to the left of the selected pixel with respect to the range of the straight line angle to be set is A pixel and a number of pixels below or to the right of the selected pixel for the range of the angle of the straight line to be set, and a pixel closest to the selected line are selected as a pixel set. The data selection unit 402 selects a set of pixels for each angle.
[0578]
The data selection unit 402 supplies the selected pixel set to the error estimation unit 403.
[0579]
In step S425, the error estimating unit 403 calculates a correlation between a set of pixels centered on the target pixel and a set of pixels selected for each angle. For example, the error estimating unit 403 calculates the sum of the absolute value of the difference between the pixel value of the pixel of the group including the target pixel and the pixel value of the pixel at the corresponding position in the other group, and calculates the sum of the pixels belonging to the other group. The correlation is calculated by dividing the sum of the absolute values of the pixel value differences by a number.
[0580]
The continuity angle of the data may be detected based on the mutual correlation of the set of pixels selected for each angle.
[0581]
The error estimating unit 403 supplies information indicating the calculated correlation to the stationary direction deriving unit 404.
[0582]
The processing of steps S426 and S427 is the same as the processing of steps S406 and S407, and a description thereof will be omitted.
[0583]
As described above, the data continuity detecting unit 101 can more accurately and more accurately determine the continuity angle of the data with respect to the reference axis in the image data corresponding to the continuity of the missing optical signal of the real world 1. Detection can be performed with high accuracy. The data continuity detection unit 101 having the configuration shown in FIG. 81 can evaluate the correlation of more pixels to which a thin line image is projected, particularly when the data continuity angle is around 45 degrees. Therefore, the continuity angle of the data can be detected with higher accuracy.
[0584]
Note that the data continuity detecting unit 101 having the configuration shown in FIG. 81 also detects an activity in the spatial direction of the input image with respect to a target pixel which is a target pixel of a target frame which is a target frame. Depending on the detected activity, the angle of interest relative to the reference axis in the pixel of interest and the spatial direction, and for each motion vector, the vertical direction from each of the frame of interest and the frame temporally before or after the frame of interest A set of pixels consisting of a predetermined number of pixels in one row or one row in the horizontal direction and defined in a spatial angle range is extracted and extracted in a number determined in a spatial angle range. The correlation of the set of pixels may be detected, and the continuity angle of the data in the temporal direction and the spatial direction in the input image may be detected based on the correlation.
[0585]
FIG. 94 is a block diagram showing still another configuration of the data continuity detecting unit 101.
[0586]
In the data continuity detecting unit 101 shown in FIG. 94, for a target pixel which is a target pixel, a block including a predetermined number of pixels and centered on the target pixel and a peripheral part of the target pixel are respectively included. A plurality of blocks each including a predetermined number of pixels are extracted, a correlation between a block around the pixel of interest and peripheral blocks is detected, and based on the correlation, data of an input image based on a reference axis is determined. An angle of stationarity is detected.
[0587]
The data selection unit 441 sequentially selects a pixel of interest from the pixels of the input image, and a block including a predetermined number of pixels around the pixel of interest and a block including a predetermined number of pixels around the pixel of interest. , And supplies the extracted block to the error estimating unit 442.
[0588]
For example, the data selection unit 441 may select a block of 5 × 5 pixels centered on the pixel of interest, and a range of 5 × 5 pixels from the periphery of the pixel of interest for each predetermined angle range based on the pixel of interest and the reference axis. The following two blocks are extracted.
[0589]
The error estimating unit 442 detects the correlation between the block around the pixel of interest and the blocks around the pixel of interest, supplied from the data selecting unit 441, and derives correlation information indicating the detected correlation from the stationary direction deriving unit. 443.
[0590]
For example, for each angle range, the error estimating unit 442 calculates, for each block of 5 × 5 pixels centered on the pixel of interest, and two blocks of 5 × 5 pixels corresponding to one angle range, The correlation between pixel values is detected.
[0591]
Based on the correlation information supplied from the error estimating unit 442, the continuity direction deriving unit 443 corresponds to the continuity of the optical signal of the real world 1 that is missing from the position of the block having the strongest correlation around the pixel of interest. In this case, the continuity angle of the data with respect to the reference axis in the input image is detected, and data continuity information indicating the angle is output. For example, based on the correlation information supplied from the error estimating unit 442, the stationary direction deriving unit 443 includes 5 × 5 pixels having the strongest correlation with a block including 5 × 5 pixels centered on the target pixel. An angle range for the two blocks is detected as an angle of data continuity, and data continuity information indicating the detected angle is output.
[0592]
FIG. 95 is a block diagram showing a more detailed configuration of data continuity detecting section 101 shown in FIG.
[0593]
The data selection unit 441 includes pixel selection units 461-1 to 461-L. Error estimation section 442 includes estimation error calculation sections 462-1 to 462-L. The stationary direction deriving unit 443 includes a minimum error angle selecting unit 463.
[0594]
For example, the data selection unit 441 includes pixel selection units 461-1 to 461-8. For example, the error estimating unit 442 includes an estimated error calculating unit 462-1 to an estimated error calculating unit 462-8.
[0595]
Each of the pixel selection units 461-1 to 461-L corresponds to a block including a predetermined number of pixels around the pixel of interest and a range of a predetermined angle with respect to the pixel of interest and the reference axis. Then, two blocks each including a predetermined number of pixels are extracted.
[0596]
FIG. 96 is a diagram illustrating an example of a 5 × 5 pixel block extracted by the pixel selection units 461-1 to 461-L. The center position in FIG. 96 indicates the position of the pixel of interest.
[0597]
Note that a block of 5 × 5 pixels is an example, and the number of pixels included in the block does not limit the present invention.
[0598]
For example, the pixel selection unit 461-1 extracts a block of 5 × 5 pixels centered on the pixel of interest, and corresponds to a range of 0 to 18.4 degrees and a range of 161.6 to 180.0 degrees. 96. A 5 × 5 pixel block (indicated by A in FIG. 96) centering on a pixel at a position shifted by 5 pixels to the right with respect to the pixel of interest is extracted, and 5 pixels to the left of the pixel of interest are extracted. A block of 5 × 5 pixels (indicated by A ′ in FIG. 96) centering on the pixel at the moved position is extracted. The pixel selection unit 461-1 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-1.
[0599]
The pixel selection unit 461-2 extracts a block of 5 × 5 pixels centered on the pixel of interest, and 10 pixels to the right with respect to the pixel of interest corresponding to the range of 18.4 degrees to 33.7 degrees. A pixel is moved, and a block of 5 × 5 pixels (indicated by B in FIG. 96) is extracted around a pixel at a position shifted by 5 pixels to the upper side. A block of 5 × 5 pixels (indicated by B ′ in FIG. 96) centering on the pixel at the position shifted by 5 pixels downward is extracted. The pixel selection unit 461-2 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-2.
[0600]
The pixel selection unit 461-3 extracts a block of 5 × 5 pixels centered on the pixel of interest, and 5 pixels to the right of the pixel of interest corresponding to the range from 33.7 degrees to 56.3 degrees. 96. Pixels are moved and a block of 5 × 5 pixels (indicated by C in FIG. 96) centering on a pixel at a position moved 5 pixels to the upper side is extracted, and 5 pixels are moved to the left side with respect to the target pixel, A block of 5 × 5 pixels (indicated by C ′ in FIG. 96) with the pixel at the position shifted by 5 pixels downward is extracted. The pixel selection unit 461-3 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-3.
[0601]
The pixel selection unit 461-4 extracts a block of 5 × 5 pixels centered on the pixel of interest, and 5 pixels to the right of the pixel of interest corresponding to the range of 56.3 to 71.6 degrees. 96. Pixels are moved and a block of 5 × 5 pixels (indicated by D in FIG. 96) is extracted, centered on the pixel at the position moved 10 pixels to the upper side, and moved 5 pixels to the left with respect to the pixel of interest. A block of 5 × 5 pixels (indicated by D ′ in FIG. 96) centering on the pixel at the position shifted 10 pixels downward is extracted. The pixel selection unit 461-4 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-4.
[0602]
The pixel selection unit 461-5 extracts a block of 5 × 5 pixels centered on the pixel of interest, and extracts 5 pixels upward from the pixel of interest corresponding to the range of 71.6 to 108.4 degrees. A block of 5 × 5 pixels (indicated by E in FIG. 96) centering on the pixel at the position shifted by the pixel is extracted. A 5 × 5 pixel block (indicated by E ′ in FIG. 96) is extracted. The pixel selection unit 461-5 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-5.
[0603]
The pixel selection unit 461-6 extracts a block of 5 × 5 pixels centered on the pixel of interest, and extracts 5 blocks on the left side of the pixel of interest corresponding to the range of 108.4 ° to 123.7 °. The pixel is moved, and a block of 5 × 5 pixels (indicated by F in FIG. 96) centering on the pixel at the position shifted by 10 pixels to the upper side is extracted, and 5 pixels are moved to the right with respect to the target pixel, A block of 5 × 5 pixels (indicated by F ′ in FIG. 96) centering on the pixel at the position shifted 10 pixels downward is extracted. The pixel selection unit 461-6 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-6.
[0604]
The pixel selecting unit 461-7 extracts a block of 5 × 5 pixels centered on the pixel of interest, and extracts 5 pixels on the left side of the pixel of interest corresponding to the range of 123.7 degrees to 146.3 degrees. The pixel is moved, and a block of 5 × 5 pixels (indicated by G in FIG. 96) centering on the pixel at the position shifted by 5 pixels to the upper side is extracted, and 5 pixels are shifted to the right with respect to the target pixel, A block of 5 × 5 pixels (indicated by G ′ in FIG. 96) centering on the pixel at the position shifted 5 pixels downward is extracted. The pixel selection unit 461-7 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-7.
[0605]
The pixel selecting unit 461-8 extracts a block of 5 × 5 pixels centered on the pixel of interest, and extracts 10 blocks on the left side of the pixel of interest corresponding to the range of 146.3 degrees to 161.6 degrees. The pixel is moved, and a block of 5 × 5 pixels (indicated by H in FIG. 96) centering on the pixel at the position shifted by 5 pixels to the upper side is extracted, and 10 pixels are moved to the right with respect to the target pixel, A block of 5 × 5 pixels (indicated by H ′ in FIG. 96) centering on the pixel at the position shifted by 5 pixels downward is extracted. The pixel selection unit 461-8 supplies the extracted three blocks of 5 × 5 pixels to the estimation error calculation unit 462-8.
[0606]
Hereinafter, a block including a predetermined number of pixels around the target pixel is referred to as a target block.
[0607]
Hereinafter, a block composed of a predetermined number of pixels corresponding to a range of a predetermined angle with respect to the target pixel and the reference axis is referred to as a reference block.
[0608]
As described above, the pixel selection units 461-1 to 461-8 extract, for example, a target block and a reference block from a range of 25 × 25 pixels around the target pixel.
[0609]
The estimation error calculation units 462-1 to 462-L detect the correlation between the target block and the two reference blocks supplied from the pixel selection units 461-1 to 461-L. The correlation information indicating the detected correlation is supplied to the minimum error angle selection unit 463.
[0610]
For example, the estimation error calculation unit 462-1 corresponds to a block of interest including 5 × 5 pixels centered on the pixel of interest, and ranges of 0 ° to 18.4 ° and 161.6 ° to 180.0 °. With respect to a reference block of 5 × 5 pixels centered on a pixel at a position shifted by 5 pixels to the right with respect to the pixel of interest extracted as described above, the pixel value of the pixel included in the block of interest and the reference block The absolute value of the difference between the included pixel and the pixel value is calculated.
[0611]
In this case, as shown in FIG. 97, the estimation error calculation unit 462-1 determines the absolute value of the difference between the pixel values based on the position where the center pixel of the target block and the center pixel of the reference block overlap. In order to use the pixel value of the target pixel in the calculation, the position of the target block with respect to the reference block is selected from two pixels on the left side and two pixels on the right side, and two pixels on the upper side and two pixels on the lower side. Is calculated, the absolute value of the difference between the pixel values of the pixels at the overlapping position when the pixel is moved is calculated. That is, the absolute value of the difference between the pixel values of the pixels at the corresponding positions in the 25 types of positions of the target block and the reference block is calculated. In other words, when the absolute value of the difference between the pixel values is calculated, the range of the relatively moved target block and the reference block is 9 × 9 pixels.
[0612]
In FIG. 97, squares indicate pixels, A indicates a reference block, and B indicates a target block. In FIG. 97, a bold line indicates a target pixel. That is, FIG. 97 is a diagram illustrating an example in which the target block moves two pixels to the right and one pixel to the upper side with respect to the reference block.
[0613]
Further, the estimation error calculation unit 462-1 corresponds to a target block composed of 5 × 5 pixels centered on the target pixel and ranges from 0 ° to 18.4 ° and 161.6 ° to 180.0 °. With respect to a reference block of 5 × 5 pixels centered on a pixel at a position shifted by 5 pixels to the left with respect to the target pixel extracted by the above, the pixel value of the pixel included in the target block and the reference block The absolute value of the difference between the included pixel and the pixel value is calculated.
[0614]
Then, the estimation error calculation unit 462-1 obtains the sum of the calculated absolute values of the differences, and supplies the sum of the absolute values of the differences to the minimum error angle selection unit 463 as correlation information indicating the correlation.
[0615]
The estimation error calculation unit 462-2 calculates a target block composed of 5 × 5 pixels and two reference blocks of 5 × 5 pixels extracted corresponding to a range of 18.4 degrees to 33.7 degrees. The absolute value of the difference between the pixel values is calculated, and the sum of the absolute values of the calculated differences is calculated. The estimated error calculator 462-1 supplies the sum of the absolute values of the calculated differences to the minimum error angle selector 463 as correlation information indicating the correlation.
[0616]
Similarly, each of the estimation error calculation units 462-3 to 462-8 includes a 5 × 5 pixel attention block and a 5 × 5 pixel extraction block corresponding to a predetermined angle range. The absolute value of the difference between the pixel values of the two reference blocks is calculated, and the sum of the absolute values of the calculated differences is calculated. Each of the estimation error calculation units 462-3 to 462-8 supplies the sum of the calculated absolute values of the differences to the minimum error angle selection unit 463 as correlation information indicating the correlation.
[0617]
The minimum error angle selection unit 463 indicates the strongest correlation among the sums of the absolute values of the pixel value differences as the correlation information supplied from the estimation error calculation units 462-1 to 462-8. From the position of the reference block where the minimum value is obtained, an angle with respect to the two reference blocks is detected as an angle of data continuity, and data continuity information indicating the detected angle is output.
[0618]
Here, the relationship between the position of the reference block and the range of the data continuity angle will be described.
[0619]
When an approximation function f (x) approximating a signal in the real world is approximated by an n-dimensional one-dimensional polynomial, the approximation function f (x) can be expressed by Expression (30).
[0620]
(Equation 21)
Figure 2004246526
Figure 2004246526
[0621]
When the waveform of the signal of the real world 1 approximated by the approximation function f (x) has a constant inclination (angle) with respect to the spatial direction Y, it can be obtained by setting x in Expression (30) to x + γy. In the equation (31), an approximation function (x, y) approximating the signal of the real world 1 is expressed.
[0622]
(Equation 22)
Figure 2004246526
Figure 2004246526
[0623]
γ indicates a ratio of a change in the position in the spatial direction X to a change in the position in the spatial direction Y. Hereinafter, γ is also referred to as a shift amount.
[0624]
FIG. 98 shows the case where the distance in the spatial direction X between the position of the target pixel and the straight line having the angle θ is 0, that is, the position of the pixel around the target pixel and the angle when the straight line passes through the target pixel. FIG. 6 is a diagram illustrating a distance in a spatial direction X from a straight line having θ. Here, the position of the pixel is the position of the center of the pixel. The distance between the position and the straight line is indicated by a negative value when the position is on the left side of the straight line, and is indicated by a positive value when the position is on the right side of the straight line.
[0625]
For example, the distance in the spatial direction X between the position of the pixel adjacent to the right side of the target pixel, that is, the position where the coordinate x in the spatial direction X increases by 1, and the straight line having the angle θ is 1, and The distance in the spatial direction X between the position of the adjacent pixel, that is, the position at which the coordinate x in the spatial direction X decreases by 1 and the straight line having the angle θ is −1. The distance in the spatial direction X between the position of the pixel adjacent to the upper side of the target pixel, that is, the position where the coordinate y in the spatial direction Y increases by 1 and the straight line having the angle θ is −γ. The distance in the space direction X between the position of the adjacent pixel, that is, the position where the coordinate y in the space direction Y decreases by 1 and the straight line having the angle θ is γ.
[0626]
When the angle θ is more than 45 degrees and less than 90 degrees, and the shift amount γ is more than 0 and less than 1, there is a relational expression of γ = 1 / tan θ between the shift amount γ and the angle θ. Holds. FIG. 99 is a diagram showing the relationship between the shift amount γ and the angle θ.
[0627]
Here, attention is paid to a change in the distance in the spatial direction X between the position of the pixel around the target pixel and a straight line passing through the target pixel and having an angle θ with respect to the change in the shift amount γ.
[0628]
FIG. 100 is a diagram illustrating a distance in the spatial direction X between a position of a pixel around the target pixel and a straight line passing through the target pixel and having an angle θ with respect to the shift amount γ. In FIG. 100, the one-dot chain line rising to the right indicates the distance in the spatial direction X between the position of the pixel adjacent to the lower side of the target pixel and the straight line with respect to the shift amount γ, and the one-dot chain line falling to the left indicates the shift amount γ. , The distance in the spatial direction X between the position of the pixel adjacent above the pixel of interest and the straight line.
[0629]
In FIG. 100, the two-dot chain line that rises to the right indicates the distance in the spatial direction X between the position of the pixel located one pixel to the left and two pixels below the target pixel in the spatial direction X with respect to the shift amount γ. The two-dot chain line indicates the distance in the spatial direction X between the position of the pixel located two pixels above and one pixel to the right of the target pixel and the straight line with respect to the shift amount γ.
[0630]
In FIG. 100, the three-dot chain line rising to the right indicates the distance in the spatial direction X between the position of the pixel located one pixel below and one pixel left from the target pixel and the straight line with respect to the shift amount γ, The three-dot chain line indicates the distance in the spatial direction X between the straight line and the position of the pixel located one pixel above and one pixel to the right of the target pixel with respect to the shift amount γ.
[0631]
From FIG. 100, it can be seen that the pixel having the smallest distance with respect to the shift amount γ.
[0632]
That is, when the shift amount γ is 0 to 1/3, the distance from the pixel adjacent above the target pixel and the pixel adjacent below the target pixel to the straight line is the minimum. That is, when the angle θ is 71.6 degrees to 90 degrees, the distance from the pixel adjacent above the target pixel and the pixel adjacent below the target pixel to the straight line is the minimum.
[0633]
When the shift amount γ is 3 to /, the pixel located two pixels above and one pixel to the right of the target pixel, and two pixels below and one pixel left of the target pixel Is the shortest distance from the pixel located at. That is, when the angle θ is 56.3 degrees to 71.6 degrees, the pixel located two pixels above the pixel of interest and one pixel to the right, and two pixels below the pixel of interest, The distance from the pixel located one pixel to the left to the straight line is minimum.
[0634]
When the shift amount γ is / to 1, the pixel located one pixel above and one pixel to the right of the target pixel, and one pixel below and one pixel left of the target pixel Is the shortest distance from the pixel located at. That is, when the angle θ is 45 degrees to 56.3 degrees, the pixel located one pixel above and one pixel to the right of the target pixel, and one pixel lower and one pixel below the target pixel The distance from the pixel located on the left side to the straight line is minimum.
[0635]
The relationship between a pixel and a straight line in which the angle θ ranges from 0 to 45 degrees can be similarly considered.
[0636]
98, the distance in the spatial direction X between the reference block and the straight line can be considered.
[0637]
FIG. 101 shows a reference block that passes through the pixel of interest and has a minimum distance from a straight line having an angle θ with respect to the axis in the spatial direction X.
[0638]
A to H and A 'to H' in FIG. 101 indicate reference blocks A to H and A 'to H' in FIG.
[0639]
That is, a straight line passing through the pixel of interest and having any angle θ of 0 to 18.4 degrees and 161.6 to 180.0 degrees with respect to the axis in the spatial direction X, and A to H and A Among the distances in the spatial direction X from each of the reference blocks' to H ', the distance between the straight line and the reference blocks A and A' is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of A and A 'is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of A and A'. Therefore, it can be said that the continuity angles of the data are in the range of 0 to 18.4 degrees and 161.6 to 180.0 degrees.
[0640]
A straight line passing through the pixel of interest and having an angle θ of 18.4 degrees to 33.7 degrees with respect to the axis in the spatial direction X, and reference blocks A to H and A ′ to H ′ Among the distances in the spatial direction X, the distance between the straight line and the reference blocks B and B ′ is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of B and B 'is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of B and B'. Therefore, it can be said that the continuity angle of the data is in the range of 18.4 degrees to 33.7 degrees.
[0641]
A straight line passing through the pixel of interest and having an angle θ of 33.7 degrees to 56.3 degrees with reference to the axis in the spatial direction X, and reference blocks A to H and A ′ to H ′ Among the distances in the spatial direction X, the distance between the straight line and the reference blocks C and C ′ is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of C and C ′ is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of C and C ′. Therefore, it can be said that the continuity angle of the data is in the range of 33.7 degrees to 56.3 degrees.
[0642]
A straight line passing through the target pixel and having an angle θ of 56.3 degrees to 71.6 degrees with reference to the axis in the spatial direction X, and reference blocks A to H and A ′ to H ′ Among the distances in the spatial direction X, the distance between the straight line and the reference blocks D and D ′ is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of D and D 'is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of D and D'. Therefore, it can be said that the data continuity angle ranges from 56.3 degrees to 71.6 degrees.
[0643]
A straight line passing through the pixel of interest and having an angle θ of any of 71.6 degrees to 108.4 degrees with reference to the axis in the spatial direction X, and reference blocks A to H and A ′ to H ′ Among the distances in the spatial direction X, the distance between the straight line and the reference blocks E and E ′ is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of E and E 'is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of E and E'. Therefore, it can be said that the continuity angle of the data is in the range of 71.6 degrees to 108.4 degrees.
[0644]
A straight line passing through the pixel of interest and having an angle θ of 108.4 degrees to 123.7 degrees with reference to the axis in the spatial direction X, and reference blocks A to H and A ′ to H ′ Among the distances in the spatial direction X, the distance between the straight line and the reference blocks F and F ′ is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of F and F ′ is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of F and F ′. Therefore, it can be said that the data continuity angle is in the range of 108.4 degrees to 123.7 degrees.
[0645]
A straight line passing through the pixel of interest and having an angle θ of 123.7 degrees to 146.3 degrees with respect to the axis in the spatial direction X, and reference blocks A to H and A ′ to H ′ Among the distances in the spatial direction X, the distance between the straight line and the reference blocks G and G ′ is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of G and G ′ is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of G and G ′. Therefore, it can be said that the continuity angle of the data is in the range of 123.7 degrees to 146.3 degrees.
[0646]
A straight line passing through the pixel of interest and having an angle θ of 146.3 degrees to 161.6 degrees with respect to the axis in the spatial direction X, and reference blocks A to H and A ′ to H ′ Among the distances in the spatial direction X, the distance between the straight line and the reference blocks H and H ′ is the smallest. Therefore, when considered conversely, when the correlation between the block of interest and the reference blocks of H and H 'is the strongest, certain features repeatedly appear in the direction connecting the block of interest and the reference blocks of H and H'. Therefore, it can be said that the data continuity angle is in the range of 146.3 degrees to 161.6 degrees.
[0647]
Thus, the data continuity detecting unit 101 can detect the continuity angle of the data based on the correlation between the target block and the reference block.
[0648]
Note that the data continuity detecting unit 101 shown in FIG. 94 may output the range of the data continuity angle as data continuity information. The value may be output as data continuity information. For example, the median of the range of the data continuity angle can be used as the representative value.
[0649]
Further, the data continuity detecting unit 101 having the configuration shown in FIG. 94 uses the correlation of the reference blocks around the reference block having the strongest correlation to reduce the range of the continuity angle of the detected data to 1 /. That is, the angle resolution of the stationarity of the detected data can be doubled.
[0650]
For example, when the correlation between the block of interest and the reference blocks of E and E ′ is the strongest, the minimum error angle selection unit 463 determines the correlation of the reference block of D and D ′ with respect to the block of interest as shown in FIG. And the correlation between the reference block of F and F ′ with respect to the target block. If the correlation between the reference block of D and D ′ with respect to the target block is stronger than the correlation of the reference blocks of F and F ′ with respect to the target block, the minimum error angle selection unit 463 sets the data stationary angle. , A range of 71.6 degrees to 90 degrees is set. In this case, the minimum error angle selection unit 463 may set the angle of the data continuity to 81 degrees as a representative value.
[0651]
If the correlation between the reference block of F and F ′ with respect to the block of interest is stronger than the correlation of the reference blocks of D and D ′ with respect to the block of interest, the minimum error angle selection unit 463 sets the angle of continuity of the data. , A range from 90 degrees to 108.4 degrees is set. In this case, the minimum error angle selection unit 463 may set 99 degrees as a representative value for the data continuity angle.
[0652]
The minimum error angle selection unit 463 can reduce the continuity angle range of the data to be detected to 1 / for other angle ranges by the same processing.
[0653]
The method described with reference to FIG. 102 is also referred to as a simple 16 direction detection method.
[0654]
As described above, the data continuity detecting unit 101 having the configuration shown in FIG. 94 can detect the data continuity angle having a narrower range by a simple process.
[0655]
Next, processing for detecting data continuity by the data continuity detecting unit 101 shown in FIG. 94 and corresponding to the processing in step S101 will be described with reference to the flowchart in FIG.
[0656]
In step S441, the data selection unit 441 selects a target pixel that is a target pixel from the input image. For example, the data selection unit 441 selects a pixel of interest from the input image in raster scan order.
[0657]
In step S442, the data selection unit 441 selects a target block including a predetermined number of pixels centered on the target pixel. For example, the data selection unit 441 selects a target block including 5 × 5 pixels centered on the target pixel.
[0658]
In step S443, the data selection unit 441 selects a reference block including a predetermined number of pixels at a predetermined position around the target pixel. For example, the data selection unit 441 includes 5 × 5 pixels centered on a pixel at a predetermined position based on the size of the block of interest, for each range of a predetermined angle based on the pixel of interest and the reference axis. Select a reference block.
[0659]
The data selection unit 441 supplies the block of interest and the reference block to the error estimation unit 442.
[0660]
In step S444, the error estimating unit 442 calculates a correlation between the target block and a reference block corresponding to the angle range for each predetermined angle range based on the target pixel and the reference axis. The error estimating unit 442 supplies the correlation information indicating the calculated correlation to the stationary direction deriving unit 443.
[0661]
In step S445, the stationary direction deriving unit 443 determines, from the position of the reference block having the strongest correlation with the target block, the reference in the input image corresponding to the stationary state of the image that is the optical signal of the real world 1 that has been lost. The angle of data continuity with respect to the axis is detected.
[0662]
The stationary direction deriving unit 443 outputs data continuity information indicating an angle of continuity of the detected data.
[0663]
In step S446, the data selection unit 441 determines whether or not processing of all pixels has been completed. If it is determined that processing of all pixels has not been completed, the process returns to step S441, and the data selection unit 441 still determines that the pixel of interest has not been processed. The target pixel is selected from the unselected pixels, and the above-described processing is repeated.
[0664]
If it is determined in step S446 that the processing for all pixels has been completed, the processing ends.
[0665]
As described above, the data continuity detecting unit 101 whose configuration is shown in FIG. 94 can perform, with simpler processing, the data based on the reference axis in the image data corresponding to the continuity of the missing optical signal of the real world 1. Can be detected. Further, the data continuity detecting unit 101 having the configuration shown in FIG. 94 can detect the continuity angle of the data using the pixel values of the pixels in a relatively narrow range in the input image. Even if the input image contains noise or the like, it is possible to more accurately detect the data continuity angle.
[0666]
It should be noted that the data detection unit 101 having the configuration shown in FIG. 94 determines a target pixel, which is a target pixel, of a target frame, which is a target frame, by a predetermined number of pixels from the target frame. A block centered on a pixel and a plurality of blocks each including a predetermined number of pixels around the pixel of interest are extracted, and a predetermined number of blocks are extracted from a frame temporally before or after the frame of interest. A block around the pixel at the position corresponding to the pixel of interest, and a plurality of blocks each consisting of a predetermined number of pixels around the pixel at the position corresponding to the pixel of interest. Detects the correlation between the block centered on the pixel and the surrounding blocks spatially or temporally, and based on the correlation, calculates the data in the time direction and the spatial direction in the input image. The angle of the normal resistance may be detected.
[0667]
For example, as illustrated in FIG. 104, the data selection unit 441 sequentially selects a target pixel from a frame #n that is a target frame, and a block including a predetermined number of pixels centered on the target pixel from the frame #n. , And a plurality of blocks of a predetermined number of pixels around the pixel of interest. In addition, the data selection unit 441 generates a block including a predetermined number of pixels from each of the frames # n−1 and # n + 1, centered on the pixel at the position corresponding to the position of the target pixel, and A plurality of blocks consisting of a predetermined number of pixels around the pixel at the position corresponding to the position are extracted. The data selector 441 supplies the extracted block to the error estimator 442.
[0668]
The error estimating unit 442 detects the correlation between the block centered on the pixel of interest and the blocks spatially or temporally supplied from the data selecting unit 441, and constantly calculates correlation information indicating the detected correlation. It is supplied to the direction deriving unit 443. Based on the correlation information supplied from the error estimating unit 442, the continuity direction deriving unit 443 determines the stationary state of the optical signal of the real world 1 that is missing from the position of the spatially or temporally neighboring block having the strongest correlation. It detects the continuity angle of the data in the time direction and the spatial direction in the input image corresponding to the gender, and outputs data continuity information indicating the angle.
[0669]
Further, the data continuity detecting unit 101 can execute a process of detecting data continuity based on the component signal of the input image.
[0670]
FIG. 105 is a block diagram illustrating a configuration of the data continuity detection unit 101 that executes a process of detecting data continuity based on a component signal of an input image.
[0671]
Each of the data continuity detection units 481-1 to 481-3 has the same configuration as the above-described or data continuity detection unit 101, and performs processing on each of the component signals of the input image as described above. Or execute the processing described later.
[0672]
The data continuity detecting unit 481-1 detects data continuity based on the first component signal of the input image, and determines information indicating the continuity of the data detected from the first component signal. To supply. For example, the data continuity detection unit 481-1 detects data continuity based on the luminance signal of the input image, and supplies information indicating the continuity of the data detected from the luminance signal to the determination unit 482.
[0673]
The data continuity detecting unit 481-2 detects data continuity based on the second component signal of the input image, and determines information indicating the continuity of the detected data from the second component signal. To supply. For example, the data continuity detecting unit 481-2 detects data continuity based on the I signal which is a color difference signal of the input image, and determines information indicating the continuity of the data detected from the I signal. To supply.
[0674]
The data continuity detecting unit 481-3 detects data continuity based on the third component signal of the input image, and determines information indicating the continuity of the detected data from the third component signal. To supply. For example, the data continuity detection unit 481-2 detects data continuity based on the Q signal that is a color difference signal of the input image, and determines information indicating the continuity of the data detected from the Q signal. To supply.
[0675]
The deciding unit 482 determines the continuity of the final data in the input image based on the information indicating the continuity of the data detected from each component signal, supplied from the data continuity detecting units 481-1 to 481-3. And outputs data continuity information indicating the continuity of the detected data.
[0676]
For example, the determination unit 482 determines the maximum data continuity among the data continuity detected from each component signal supplied from the data continuity detection units 481-1 to 481-3, as the final data. Stationary. Further, for example, the determining unit 482 determines the minimum data continuity among the continuity of the data detected from each component signal supplied from the data continuity detecting units 481-1 to 481-3. Assume data continuity.
[0677]
Further, for example, the determining unit 482 sets the average value of the continuity of the data detected from each component signal supplied from the data continuity detecting units 481-1 to 481-3 as the final continuity of the data. . The determining unit 482 uses the median (median value) of the continuity of the data detected from each component signal supplied from the data continuity detecting units 481-1 to 481-3 as the final continuity of the data. It may be.
[0678]
Further, for example, based on the signal input from the outside, the determination unit 482 may determine the continuity of the data detected from each component signal supplied from the data continuity detection units 481-1 to 481-3. The continuity of data specified by a signal input from the outside is defined as the continuity of final data. The determining unit 482 determines the predetermined data continuity from among the continuity of the data detected from each component signal supplied from the data continuity detecting units 481-1 to 481-3. You may make it sex.
[0679]
The determining unit 482 determines the final steady state of the data based on the error supplied from the data continuity detecting units 481-1 to 481-3 and obtained in the process of detecting the continuity of the data of each component signal. Sex may be determined. The error obtained in the process of detecting data continuity will be described later.
[0680]
FIG. 106 is a diagram illustrating another configuration of the data continuity detecting unit 101 that executes a process of detecting data continuity based on a component signal of an input image.
[0681]
The component processing unit 491 generates one signal based on the component signal of the input image and supplies the signal to the data continuity detection unit 492. For example, the component processing unit 491 generates a signal composed of the sum of the component signal values by adding the value of each component signal of the input image to the pixel at the same position on the screen.
[0682]
For example, the component processing unit 491 generates a signal including the average value of the pixel values of the component signals by averaging the pixel values of the component signals of the input image for the pixels at the same position on the screen.
[0683]
The data continuity detection unit 492 detects data continuity in the input image based on the signal supplied from the component processing unit 491, and outputs data continuity information indicating the continuity of the detected data.
[0684]
The data continuity detection unit 492 has a configuration similar to that of the data continuity detection unit 101 described above or described below, and executes the processing described above or described below on the signal supplied from the component processing unit 491. I do.
[0685]
As described above, the data continuity detecting unit 101 detects the continuity of the data of the input image based on the component signal, so that the data continuity can be detected more accurately even if the input image includes noise or the like. Sex can be detected. For example, the data continuity detecting unit 101 detects the continuity of the data of the input image based on the component signal, so that the data continuity angle (slope), the mixture ratio, or the data continuity can be more accurately determined. Region having the property can be detected.
[0686]
The component signal is not limited to the luminance signal and the color difference signal, and may be another type of component signal such as an RGB signal or a YUV signal.
[0687]
As described above, the real-world optical signal is projected, and the continuity of the data corresponding to the continuity of the missing real-world optical signal of the image data in which part of the continuity of the real-world optical signal is missing If the optical signal is estimated by detecting an angle with respect to the reference axis and estimating the continuity of the missing real-world optical signal based on the detected angle, for a real-world event, More accurate and more accurate processing results can be obtained.
[0688]
In addition, a predetermined number of pixels are provided for each pixel of interest and the angle with respect to the reference axis of the image data in which the real-world optical signal is projected and image data in which a part of the continuity of the real-world optical signal is missing. A plurality of sets are extracted, a plurality of sets are extracted, and a pixel value of a pixel at a corresponding position in the plurality of sets, which is extracted for each angle, is detected, and based on the detected correlation, missing pixels are detected. Detects an angle of data continuity with respect to the reference axis in the image data corresponding to the continuity of the real-world optical signal obtained based on the angle of data continuity with respect to the reference axis in the detected image data. When the optical signal is estimated by estimating the stationarity of the missing real-world optical signal, a more accurate and more accurate processing result can be obtained for the real-world event. Become like
[0689]
FIG. 107 is a block diagram showing still another configuration of the data continuity detecting unit 101.
[0690]
In the data continuity detecting unit 101 shown in FIG. 107, an optical signal of the real world is projected, and a target pixel which is an attention pixel of image data in which a part of the continuity of the optical signal of the real world is missing. A corresponding region is selected, and a frequency based on the correlation value is set for a pixel whose correlation value between the pixel value of the pixel of interest and the pixel value of a pixel belonging to the selected region is equal to or greater than a threshold value. By detecting the frequency of the pixel to which the pixel belongs, and detecting the regression line based on the detected frequency, the continuity of the image data corresponding to the continuity of the missing real-world optical signal is detected.
[0691]
The frame memory 501 stores an input image on a frame basis and supplies the stored pixel values of the pixels constituting the frame to the pixel acquisition unit 502. The frame memory 501 stores the current frame of the input image on one page, and obtains the pixel value of the pixel of the previous (past) frame from the current frame stored on another page. By switching the page at the time of switching the frame of the input image to the pixel obtaining unit 502, the pixel value of the pixel of the frame of the input image which is a moving image can be supplied to the pixel obtaining unit 502.
[0692]
The pixel acquisition unit 502 selects a target pixel, which is a target pixel, based on the pixel value of the pixel supplied from the frame memory 501, and includes a predetermined number of pixels corresponding to the selected target pixel. Select an area. For example, the pixel acquisition unit 502 selects a region including 5 × 5 pixels centered on the pixel of interest.
[0693]
The size of the region selected by the pixel acquisition unit 502 does not limit the present invention.
[0694]
The pixel acquisition unit 502 acquires the pixel values of the pixels in the selected area, and supplies the pixel values of the pixels in the selected area to the frequency detection unit 503.
[0696]
Based on the pixel values of the pixels in the selected region supplied from the pixel acquisition unit 502, the frequency detection unit 503 calculates the correlation value between the pixel value of the pixel of interest and the pixel values of the pixels belonging to the selected region. By setting a frequency based on the correlation value for a pixel that is equal to or larger than the threshold, the frequency of the pixel belonging to the region is detected. Details of the process of setting the frequency based on the correlation value in the frequency detection unit 503 will be described later.
[0696]
The frequency detection unit 503 supplies the detected frequency to the regression line calculation unit 504.
[0697]
The regression line calculation unit 504 calculates a regression line based on the frequency supplied from the frequency detection unit 503. For example, the regression line calculation unit 504 calculates a regression line based on the frequency supplied from the frequency detection unit 503. In addition, for example, the regression line calculation unit 504 calculates a regression line that is a predetermined curve based on the frequency supplied from the frequency detection unit 503. The regression line calculation unit 504 supplies the calculated regression line and calculation result parameters indicating the result of the calculation to the angle calculation unit 505. The calculation result indicated by the calculation parameter includes a fluctuation and a covariation described later.
[0698]
The angle calculation unit 505 is based on the regression line, indicated by the calculation result parameter supplied from the regression line calculation unit 504, and based on the regression line, corresponds to the continuity of the missing real-world optical signal, and is the input image data as image data. Is detected. For example, based on the regression line indicated by the operation result parameter supplied from the regression line operation unit 504, the angle calculation unit 505 determines a reference in the input image corresponding to the stationarity of the missing optical signal of the real world 1. The angle of data continuity with respect to the axis is detected. The angle calculation unit 505 outputs data continuity information indicating the continuity angle of data in the force image with reference to the reference axis.
[0699]
With reference to FIGS. 108 to 110, the continuity angle of data in the input image with reference to the reference axis will be described.
[0700]
In FIG. 108, a circle indicates one pixel, and a double circle indicates a target pixel. The circle color indicates an outline of the pixel value of the pixel, and the lighter color indicates a larger pixel value. For example, black indicates a pixel value of 30 and white indicates a pixel value of 120.
[0701]
When a person views the image including the pixels illustrated in FIG. 108, the person who views the image can recognize that the straight line extends obliquely to the upper right.
[0702]
The data continuity detecting unit 101 having the configuration shown in FIG. 107 detects that a straight line extends in a diagonally upper right direction when an input image including the pixels shown in FIG. 108 is input.
[0703]
FIG. 109 is a diagram showing the pixel values of the pixels shown in FIG. 108 by numerical values. A circle indicates one pixel, and a numerical value in the circle indicates a pixel value.
[0704]
For example, the pixel value of the pixel of interest is 120, the pixel value of the pixel above the pixel of interest is 100, and the pixel value of the pixel below the pixel of interest is 100. The pixel value of the pixel on the left side of the target pixel is 80, and the pixel value of the pixel on the right side of the target pixel is 80. Similarly, the pixel value of the lower left pixel of the target pixel is 100, and the pixel value of the upper right pixel of the target pixel is 100. The pixel value of the upper left pixel of the target pixel is 30, and the pixel value of the lower right pixel of the target pixel is 30.
[0705]
The data continuity detecting unit 101 having the configuration shown in FIG. 107 draws a regression line A on the input image shown in FIG. 109 as shown in FIG.
[0706]
FIG. 111 is a diagram illustrating a relationship between a change in pixel value and a regression line A with respect to a position of a pixel in the spatial direction in an input image. The pixel value of the pixel in the region having the data continuity changes, for example, in a mountain range as shown in FIG.
[0707]
The data continuity detecting unit 101 having the configuration shown in FIG. 107 draws a regression line A by the least square method using the pixel values of the pixels in the region having data continuity as weights. The regression line A obtained by the data continuity detection unit 101 expresses the continuity of data around the pixel of interest.
[0708]
As shown in FIG. 112, an angle θ between the regression line A and, for example, an axis indicating the spatial direction X, which is a reference axis, is determined as shown in FIG. Is detected by
[0709]
Next, a specific calculation method of the regression line in the data continuity detection unit 101 having the configuration shown in FIG. 107 will be described.
[0710]
The frequency detection unit 503 calculates, for example, the pixel values of pixels in a region consisting of 9 pixels in the spatial direction X, 5 pixels in the spatial direction Y, and a total of 45 pixels around the pixel of interest, supplied from the pixel acquisition unit 502. , The frequency corresponding to the coordinates of the pixels belonging to the area.
[0711]
For example, the frequency detection unit 503 calculates the frequency by the calculation represented by Expression (32), and thereby obtains the coordinates (xi, Yj) Frequency Li, jIs detected.
[0712]
(Equation 23)
Figure 2004246526
Figure 2004246526
[0713]
In equation (32), P0,0Indicates the pixel value of the target pixel, and Pi, jIs the coordinates (xi, Yj3) shows the pixel value of the pixel. Th indicates a threshold value.
[0714]
i indicates the order of pixels in the spatial direction X in the region, and 1 ≦ i ≦ k. j indicates the order of pixels in the spatial direction Y in the region, and 1 ≦ j ≦ l.
[0715]
k indicates the number of pixels in the space direction X in the region, and l indicates the number of pixels in the space direction Y in the region. For example, when the region is composed of 9 pixels in the spatial direction X and 5 pixels in the spatial direction Y, a total of 45 pixels, K is 9 and 1 is 5.
[0716]
FIG. 113 is a diagram illustrating an example of an area acquired by the pixel acquisition unit 502. In FIG. 113, a dotted square indicates one pixel.
[0717]
For example, as shown in FIG. 113, the region is composed of 9 pixels centered on the pixel of interest in the spatial direction X and 5 pixels centered on the pixel of interest in the spatial direction Y, and the coordinates (x, When y) is (0,0), the coordinates (x, y) of the upper left pixel of the area are (-4,2), and the coordinates (x, y) of the upper right pixel of the area are (x, y). 4,2), the coordinates (x, y) of the lower left pixel of the area are (-4, -2), and the coordinates (x, y) of the lower right pixel of the area are (4,- 2).
[0718]
The pixel order i in the spatial direction X of the pixel on the left side of the region is 1, and the pixel order i in the spatial direction X of the pixel on the right side of the region is 9. The pixel order j in the spatial direction Y of the pixels on the lower side of the region is 1, and the pixel order j in the spatial direction Y of the pixels on the upper side of the region is 5.
[0719]
That is, the coordinates (x5, Y3) Is (0,0), the coordinates (x1, Y5) Is (-4, 2), and the coordinates (x9, Y5) Is (4, 2), and the coordinates (x1, Y1) Is (-4, -2), and the coordinates (x9, Y1) Is (4, -2).
[0720]
Since the frequency detection unit 503 calculates the absolute value of the difference between the pixel value of the pixel of interest and the pixel value of the pixel belonging to the area as the correlation value in Expression (32), the image of the thin line of the real world 1 is projected. Input image, in which an image of the real world 1 of a monochromatic object having a linear edge and having a color different from the background is projected, in addition to the region having data continuity in the input image. In the region having the continuity of the binary edge data, the frequency indicating the characteristic of the spatial change of the pixel value can be detected.
[0721]
The frequency detection unit 503 may detect the frequency based on another correlation value such as a correlation coefficient, instead of the absolute value of the difference between the pixel value and the pixel value.
[0722]
Further, in the equation (32), the reason why the exponential function is applied is to make the frequency greatly different from the difference in pixel value, and another function may be applied.
[0723]
The threshold value Th can be an arbitrary value. For example, the threshold Th can be set to 30.
[0724]
As described above, the frequency detection unit 503 sets the frequency based on the correlation value to the pixel whose correlation value with the pixel value of the pixel belonging to the selected region is equal to or larger than the threshold value, and thereby calculates the frequency of the pixel belonging to the region. To detect.
[0725]
Further, for example, the frequency detection unit 503 calculates the frequency by the calculation represented by the equation (33), and thereby obtains the coordinates (xi, Yj) Frequency Li, jIs detected.
[0726]
[Equation 24]
Figure 2004246526
Figure 2004246526
[0727]
Coordinates (xi, Yj) Is Li, j(1 ≦ i ≦ k, 1 ≦ j ≦ l), the coordinate xiAt the frequency L in the spatial direction Yi, jSum ofiIs represented by equation (34), and the coordinate yjAt the frequency L in the spatial direction Xi, jSum hjIs represented by equation (35).
[0728]
(Equation 25)
Figure 2004246526
Figure 2004246526
[0729]
(Equation 26)
Figure 2004246526
Figure 2004246526
[0730]
The sum of frequencies u is represented by equation (36).
[0731]
[Equation 27]
Figure 2004246526
Figure 2004246526
[0732]
In the example shown in FIG. 113, the frequency L of the coordinates of the pixel of interest5,3Is 3, the frequency L of the coordinates of the pixel above the pixel of interest5,4Is 1, and the frequency L of the coordinates of the pixel on the upper right side of the pixel of interest is6,4Is 4, the frequency L of the coordinates of the pixel two pixels above and one pixel to the right of the pixel of interest6,5Is 2, the frequency L of the coordinates of the pixel two pixels above and two pixels to the right of the pixel of interest7,5Is 3. Also, the frequency L of the coordinates of the pixel below the target pixel5,2Is 2, the frequency L of the coordinates of the pixel on the left side of the pixel of interest4,3Is 1, and the frequency L of the coordinates of the lower left pixel of the pixel of interest is4,2Is 3, the frequency L of the coordinates of the pixel one pixel below and two pixels to the left of the pixel of interest3,2Is 2, the frequency L of the coordinates of the pixel located two pixels below and two pixels to the left of the pixel of interest3,1Is 4. The frequency of the coordinates of the other pixels in the region shown in FIG. 113 is 0, and the description of the frequency of 0 in FIG. 113 is omitted.
[0733]
In the area shown in FIG. 113, the sum q of the frequencies in the spatial direction Y1Is 0 since the frequencies L where i is 1 are all 0, and q2Is 0 because all the frequencies L where i is 2 are 0. q3Is the frequency L3,2Is 2 and the frequency L3,1Is 4, so it is 6. Similarly, q4Is 4 and q5Is 6, and q6Is 6, and q7Is 3 and q8Is 0 and q9Is 0.
[0734]
In the region shown in FIG. 113, the sum h of the frequencies in the spatial direction X1Is the frequency L3,1Is 4, so it is 4. h2Is the frequency L3,2Is 2 and the frequency L4,2Is 3 and the frequency L5,2Is 2, so it is 7. Similarly, h3Is 4 and h4Is 5 and h5Is 5.
[0735]
In the area shown in FIG. 113, the sum of frequencies u is 25.
[0736]
Frequency L in spatial direction Yi, jSum ofiAnd the coordinate xiSum T obtained by adding the result of multiplicationxIs represented by equation (37).
[0737]
[Equation 28]
Figure 2004246526
Figure 2004246526
[0738]
Frequency L in spatial direction Xi, jSum hjAnd the coordinate yjSum T obtained by adding the result of multiplicationyIs represented by equation (37).
[0739]
(Equation 29)
Figure 2004246526
Figure 2004246526
[0740]
For example, in the region shown in FIG.1Is 0 and x1Is -4, so q1x1Is 0 and q2Is 0 and x2Is -3, so q2x2Is 0. Similarly, q3Is 6, and x3Is -2, so q3x3Is -12 and q4Is 4 and x4Is -1, so q4x4Is -4 and q5Is 6, and x5Is 0, so q5x5Is 0. Similarly, q6Is 6, and x6Is 1, so q6x6Is 6, and q7Is 3 and x7Is 2, so q7x7Is 6, and q8Is 0 and x8Is 3, so q8x8Is 0 and q9Is 0 and x9Is 4, so q9x9Is 0. Therefore, q1x1Or q9x9T which is the sum ofxIs -4.
[0741]
For example, in the region shown in FIG.1Is 4 and y1Is -2, so h1y1Is -8 and h2Is 7 and y2Is -1, so h2y2Is -7. Similarly, h3Is 4 and y3Is 0, so h3y3Is 0 and h4Is 5 and y4Is 1 so h4y4Is 5 and h5Is 5 and y5Is 2 so h5y5Is 10. Therefore, h1y1To h5y5T which is the sum ofyIs 0.
[0742]
Also, QiIs defined as follows.
[0734]
[Equation 30]
Figure 2004246526
Figure 2004246526
[0744]
Variation S of xxIs represented by equation (40).
[0745]
[Equation 31]
Figure 2004246526
Figure 2004246526
[0746]
fluctuation S of yyIs represented by equation (41).
[0747]
(Equation 32)
Figure 2004246526
Figure 2004246526
[0748]
Covariance SxyIs represented by equation (42).
[0749]
[Equation 33]
Figure 2004246526
Figure 2004246526
[0750]
Consider obtaining a first-order regression line shown in Expression (43).
[0751]
y = ax + b (43)
[0752]
The slope a and the intercept b can be obtained by the least square method as follows.
[0753]
[Equation 34]
Figure 2004246526
Figure 2004246526
[0754]
(Equation 35)
Figure 2004246526
Figure 2004246526
[0755]
However, a necessary condition for obtaining a correct regression line is a frequency Li, jIs distributed in a Gaussian distribution with respect to the regression line. Conversely, the frequency detection unit 503 calculates the frequency Li, jIs a Gaussian distribution, the pixel value of the pixel in the region is represented by a frequency Li, jNeed to be converted to
[0756]
The regression line calculation unit 504 calculates the regression line by executing the calculation represented by Expressions (44) and (45).
[0757]
The angle calculation unit 505 converts the slope a of the regression line into an angle θ with respect to the axis in the spatial direction X, which is the reference axis, by the calculation shown in Expression (46).
[0758]
θ = tan-1(A) ... (46)
[0759]
When the regression line calculation unit 504 calculates a regression line that is a predetermined curve, the angle calculation unit 505 obtains the angle θ of the regression line at the position of the pixel of interest with respect to the reference axis.
[0760]
Here, in order to detect the continuity of data for each pixel, the intercept b is unnecessary. Therefore, it is considered to obtain a first-order regression line shown in Expression (47).
[0761]
y = ax (47)
[0762]
In this case, the regression line calculation unit 504 can obtain the slope a by the equation (48) by the least square method.
[0763]
[Equation 36]
Figure 2004246526
Figure 2004246526
[0764]
With reference to the flowchart of FIG. 114, a description will be given of a process of detecting data continuity by the data continuity detecting unit 101 shown in FIG. 107 and corresponding to the process of step S101.
[0765]
In step S501, the pixel acquisition unit 502 selects a pixel of interest from pixels that have not yet been set as a pixel of interest. For example, the pixel acquisition unit 502 selects a pixel of interest in a raster scan order. In step S502, the pixel acquisition unit 502 acquires the pixel values of the pixels included in the region centered on the target pixel, and supplies the acquired pixel values of the pixels to the frequency detection unit 503. For example, the pixel acquisition unit 502 selects a region including 9 × 5 pixels around the target pixel, and acquires the pixel values of the pixels included in the region.
[0766]
In step S503, the frequency detection unit 503 detects a frequency by converting a pixel value of a pixel included in the region into a frequency. For example, the frequency detection unit 503 converts the pixel value into the frequency L by the calculation shown in Expression (32).i, jConvert to In this case, the frequency Li, jIs a Gaussian distribution, the pixel value of the pixel in the region is the frequency Li, jIs converted to The frequency detection unit 503 supplies the converted frequency to the regression line calculation unit 504.
[0767]
In step S504, the regression line calculation unit 504 obtains a regression line based on the frequency supplied from the frequency detection unit 503. For example, the regression line calculation unit 504 obtains a regression line based on the frequency supplied from the frequency detection unit 503. More specifically, the regression line calculation unit 504 calculates the regression line by executing the calculation represented by Expressions (44) and (45). The regression line calculation unit 504 supplies a calculation result parameter indicating a regression line, which is the calculated result, to the angle calculation unit 505.
[0768]
In step S505, the angle calculation unit 505 detects the continuity of the image data corresponding to the continuity of the missing real-world optical signal by calculating the angle of the regression line with respect to the reference axis. For example, the angle calculation unit 505 converts the slope a of the regression line into an angle θ with respect to the axis in the spatial direction X, which is the reference axis, by the calculation shown in Expression (46). The angle calculation unit 505 outputs data continuity information indicating the angle of the regression line with respect to the reference axis.
[0769]
Note that the angle calculation unit 505 may output data continuity information indicating the inclination a.
[0770]
In step S506, the pixel acquisition unit 502 determines whether or not processing of all pixels has been completed. If it is determined that processing of all pixels has not been completed, the process returns to step S501, and the process returns to step S501. The target pixel is selected from the unselected pixels, and the above-described processing is repeated.
[0771]
If it is determined in step S506 that the processing of all pixels has been completed, the processing ends.
[0772]
As described above, the data continuity detecting unit 101 having the configuration illustrated in FIG. 107 determines the continuity angle of the data with respect to the reference axis in the image data corresponding to the continuity of the missing optical signal of the real world 1. Can be detected.
[0773]
In particular, the data continuity detection unit 101 having the configuration shown in FIG. 107 can obtain an angle equal to or smaller than a pixel based on the pixel value of a pixel in a relatively narrow area.
[0774]
As described above, the real-world optical signal is projected, and a region corresponding to the target pixel, which is the target pixel of the image data in which part of the continuity of the real-world optical signal is missing, is selected. By setting the frequency based on the correlation value to the pixel whose correlation value between the pixel value of the pixel and the pixel value of the pixel belonging to the selected region is equal to or larger than the threshold, the frequency of the pixel belonging to the region is detected and detected. By detecting the regression line based on the frequency, the stationarity of the image data corresponding to the stationarity of the missing optical signal in the real world is detected, and based on the stationarity of the data of the detected image data. If the optical signal is estimated by estimating the stationarity of the missing real-world optical signal, a more accurate and more accurate processing result can be obtained for the real-world event. Become like
[0775]
Note that the data continuity detecting unit 101 having the configuration shown in FIG. 107 converts the pixel values of the pixels belonging to a predetermined region into frequencies for the frame of interest to which the pixel of interest belongs and the frames temporally before and after the frame of interest. If the regression plane is determined based on the frequency, the continuity angle of the data in the time direction can be detected together with the continuity angle of the data in the spatial direction.
[0776]
FIG. 115 is a block diagram showing still another configuration of data continuity detecting section 101.
[0777]
In the data continuity detecting unit 101 shown in FIG. 115, a real-world optical signal is projected, and a target pixel which is a pixel of interest of image data in which a part of the continuity of the real-world optical signal is missing. A corresponding region is selected, and a frequency based on the correlation value is set for a pixel whose correlation value between the pixel value of the pixel of interest and the pixel value of a pixel belonging to the selected region is equal to or greater than a threshold value. The frequency of the pixel to which it belongs is detected, and by detecting a regression line based on the detected frequency, an area having data continuity in the image data corresponding to the continuity of the missing real-world optical signal is detected. .
[0778]
The frame memory 601 stores an input image in frame units, and supplies the stored pixel values of the pixels constituting the frame to the pixel acquisition unit 602. The frame memory 601 stores the current frame of the input image on one page, and obtains the pixel value of the pixel of the previous (past) frame from the current frame stored on another page. The pixel value of the pixel of the frame of the input image which is a moving image can be supplied to the pixel acquisition unit 602 by switching the page at the time of switching the frame of the input image to the pixel acquisition unit 602.
[0779]
The pixel acquisition unit 602 selects a target pixel, which is a target pixel, based on the pixel value of the pixel supplied from the frame memory 601 and includes a predetermined number of pixels corresponding to the selected target pixel. Select an area. For example, the pixel acquisition unit 602 selects a region including 5 × 5 pixels centered on the target pixel.
[0780]
The size of the region selected by the pixel acquisition unit 602 does not limit the present invention.
[0781]
The pixel acquisition unit 602 acquires the pixel values of the pixels in the selected area, and supplies the pixel values of the pixels in the selected area to the frequency detection unit 603.
[0782]
The frequency detection unit 603 calculates the correlation value between the pixel value of the pixel of interest and the pixel value of the pixel belonging to the selected area based on the pixel value of the pixel in the selected area supplied from the pixel acquisition unit 602. By setting a frequency based on the correlation value for a pixel that is equal to or larger than the threshold, the frequency of the pixel belonging to the region is detected. Details of the process of setting the frequency based on the correlation value in the frequency detection unit 603 will be described later.
[0783]
The frequency detection unit 603 supplies the detected frequency to the regression line calculation unit 604.
[0784]
The regression line calculation unit 604 calculates a regression line based on the frequency supplied from the frequency detection unit 603. For example, the regression line calculation unit 604 calculates a regression line based on the frequency supplied from the frequency detection unit 603. In addition, for example, the regression line calculation unit 604 calculates a regression line that is a predetermined curve based on the frequency supplied from the frequency detection unit 603. The regression line calculation unit 604 supplies the calculated regression line and calculation result parameters indicating the result of the calculation to the region calculation unit 605. The calculation result indicated by the calculation parameter includes a fluctuation and a covariation described later.
[0785]
The region calculation unit 605 performs data processing on the input image, which is image data, corresponding to the stationarity of the missing real-world optical signal based on the regression line, which is indicated by the calculation result parameter supplied from the regression line calculation unit 604. Is detected.
[0786]
FIG. 116 is a diagram illustrating a relationship between a change in pixel value and a regression line A with respect to a position of a pixel in the spatial direction in an input image. The pixel value of the pixel in the region having the data continuity changes, for example, in a mountain range as shown in FIG.
[0787]
The data continuity detecting unit 101 having the configuration shown in FIG. 115 draws the regression line A by the least squares method using the pixel values of the pixels in the region having data continuity as weights. The regression line A obtained by the data continuity detection unit 101 expresses the continuity of data around the pixel of interest.
[0788]
Drawing a regression line means approximation based on a Gaussian function. As illustrated in FIG. 117, the data continuity detecting unit 101 having the configuration illustrated in FIG. 115 obtains the approximate width of the area in the data 3 where the thin line image is projected, for example, by calculating the standard deviation. Can be. Further, for example, the data continuity detecting unit 101 whose configuration is shown in FIG. 115 can know the approximate width of the area in the data 3 where the fine line image is projected, based on the correlation coefficient.
[0789]
Next, a specific calculation method of the regression line in the data continuity detection unit 101 having the configuration shown in FIG. 115 will be described.
[0790]
The frequency detection unit 603 calculates, for example, the pixel values of pixels in a region consisting of 9 pixels in the spatial direction X, 5 pixels in the spatial direction Y, and a total of 45 pixels around the pixel of interest, supplied from the pixel acquisition unit 602. , The frequency corresponding to the coordinates of the pixels belonging to the area is detected.
[0791]
For example, the frequency detecting unit 603 calculates the frequency by the calculation represented by Expression (49), and thereby obtains the coordinates (xi, Yj) Frequency Li, jIs detected.
[0792]
(37)
Figure 2004246526
Figure 2004246526
[0793]
In equation (49), P0,0Indicates the pixel value of the target pixel, and Pi, jIs the coordinates (xi, Yj3) shows the pixel value of the pixel. Th indicates a threshold value.
[0794]
i indicates the order of pixels in the spatial direction X in the region, and 1 ≦ i ≦ k. j indicates the order of pixels in the spatial direction Y in the region, and 1 ≦ j ≦ l.
[0795]
k indicates the number of pixels in the space direction X in the region, and l indicates the number of pixels in the space direction Y in the region. For example, when the region is composed of 9 pixels in the spatial direction X and 5 pixels in the spatial direction Y, a total of 45 pixels, K is 9 and 1 is 5.
[0796]
FIG. 118 is a diagram illustrating an example of an area acquired by the pixel acquisition unit 602. In FIG. 118, a dotted square indicates one pixel.
[0797]
For example, as shown in FIG. 118, the region is composed of 9 pixels centered on the pixel of interest in the spatial direction X and 5 pixels centered on the pixel of interest in the spatial direction Y, and the coordinates (x, When y) is (0,0), the coordinates (x, y) of the upper left pixel of the region are (-4,2), and the coordinates (x, y) of the upper right pixel of the region are (x, y). 4,2), the coordinates (x, y) of the lower left pixel of the area are (-4, -2), and the coordinates (x, y) of the lower right pixel of the area are (4,- 2).
[0798]
The pixel order i in the spatial direction X of the pixel on the left side of the region is 1, and the pixel order i in the spatial direction X of the pixel on the right side of the region is 9. The pixel order j in the spatial direction Y of the pixels on the lower side of the region is 1, and the pixel order j in the spatial direction Y of the pixels on the upper side of the region is 5.
[0799]
That is, the coordinates (x5, Y3) Is (0,0), the coordinates (x1, Y5) Is (-4, 2), and the coordinates (x9, Y5) Is (4, 2), and the coordinates (x1, Y1) Is (-4, -2), and the coordinates (x9, Y1) Is (4, -2).
[0800]
Since the frequency detection unit 603 calculates the absolute value of the difference between the pixel value of the pixel of interest and the pixel value of the pixel belonging to the region as the correlation value in Expression (49), the image of the thin line of the real world 1 is projected. Input image, in which an image of the real world 1 of a monochromatic object having a linear edge and having a color different from the background is projected, in addition to the region having data continuity in the input image. In this case, the frequency indicating the characteristic of the spatial change of the pixel value can be detected in the area having the continuity of the binary edge data.
[0801]
Note that the frequency detection unit 603 may detect the frequency based not only on the absolute value of the difference between the pixel value and the pixel value, but also on another correlation value such as a correlation coefficient.
[0802]
In addition, the reason why the exponential function is applied in the equation (49) is to make a large difference in frequency with respect to the difference in pixel value, and another function may be applied.
[0803]
The threshold value Th can be an arbitrary value. For example, the threshold Th can be set to 30.
[0804]
As described above, the frequency detecting unit 603 sets the frequency based on the correlation value to the pixel whose correlation value with the pixel value of the pixel belonging to the selected region is equal to or larger than the threshold value, and thereby calculates the frequency of the pixel belonging to the region. To detect.
[0805]
Further, for example, the frequency detection unit 603 calculates the frequency by the calculation represented by the equation (50), and thereby obtains the coordinates (xi, Yj) Frequency Li, jIs detected.
[0806]
[Equation 38]
Figure 2004246526
Figure 2004246526
[0807]
Coordinates (xi, Yj) Is Li, j(1 ≦ i ≦ k, 1 ≦ j ≦ l), the coordinate xiAt the frequency L in the spatial direction Yi, jSum ofiIs represented by equation (51), and the coordinate yjAt the frequency L in the spatial direction Xi, jSum hjIs represented by equation (52).
[0808]
[Equation 39]
Figure 2004246526
Figure 2004246526
[0809]
(Equation 40)
Figure 2004246526
Figure 2004246526
[0810]
The sum u of frequencies is represented by equation (53).
[0811]
(Equation 41)
Figure 2004246526
Figure 2004246526
[0812]
In the example shown in FIG. 118, the frequency L of the coordinates of the pixel of interest5,3Is 3, the frequency L of the coordinates of the pixel above the pixel of interest5,4Is 1, and the frequency L of the coordinates of the pixel on the upper right side of the pixel of interest is6,4Is 4, the frequency L of the coordinates of the pixel two pixels above and one pixel to the right of the pixel of interest6,5Is 2, the frequency L of the coordinates of the pixel two pixels above and two pixels to the right of the pixel of interest7,5Is 3. Also, the frequency L of the coordinates of the pixel below the target pixel5,2Is 2, the frequency L of the coordinates of the pixel on the left side of the pixel of interest4,3Is 1, and the frequency L of the coordinates of the lower left pixel of the pixel of interest is4,2Is 3, the frequency L of the coordinates of the pixel one pixel below and two pixels to the left of the pixel of interest3,2Is 2, the frequency L of the coordinates of the pixel located two pixels below and two pixels to the left of the pixel of interest3,1Is 4. The frequency of the coordinates of the other pixels in the region shown in FIG. 118 is 0, and the description of the frequency of 0 in FIG. 118 is omitted.
[0813]
In the region shown in FIG. 118, the sum q of the frequencies in the spatial direction Y1Is 0 since the frequencies L where i is 1 are all 0, and q2Is 0 because all the frequencies L where i is 2 are 0. q3Is the frequency L3,2Is 2 and the frequency L3,1Is 4, so it is 6. Similarly, q4Is 4 and q5Is 6, and q6Is 6, and q7Is 3 and q8Is 0 and q9Is 0.
[0814]
In the region shown in FIG. 118, the sum h of the frequencies in the spatial direction X1Is the frequency L3,1Is 4, so it is 4. h2Is the frequency L3,2Is 2 and the frequency L4,2Is 3 and the frequency L5,2Is 2, so it is 7. Similarly, h3Is 4 and h4Is 5 and h5Is 5.
[0815]
In the region shown in FIG. 118, the sum u of frequencies is 25.
[0816]
Frequency L in spatial direction Yi, jSum ofiAnd the coordinate xiSum T obtained by adding the result of multiplicationxIs represented by equation (54).
[0817]
(Equation 42)
Figure 2004246526
Figure 2004246526
[0818]
Frequency L in spatial direction Xi, jSum hjAnd the coordinate yjSum T obtained by adding the result of multiplicationyIs represented by equation (55).
[0819]
[Equation 43]
Figure 2004246526
Figure 2004246526
[0820]
For example, in the region shown in FIG.1Is 0 and x1Is -4, so q1x1Is 0 and q2Is 0 and x2Is -3, so q2x2Is 0. Similarly, q3Is 6, and x3Is -2, so q3x3Is -12 and q4Is 4 and x4Is -1, so q4x4Is -4 and q5Is 6, and x5Is 0, so q5x5Is 0. Similarly, q6Is 6, and x6Is 1, so q6x6Is 6, and q7Is 3 and x7Is 2, so q7x7Is 6, and q8Is 0 and x8Is 3, so q8x8Is 0 and q9Is 0 and x9Is 4, so q9x9Is 0. Therefore, q1x1Or q9x9T which is the sum ofxIs -4.
[0821]
For example, in the area shown in FIG.1Is 4 and y1Is -2, so h1y1Is -8 and h2Is 7 and y2Is -1, so h2y2Is -7. Similarly, h3Is 4 and y3Is 0, so h3y3Is 0 and h4Is 5 and y4Is 1 so h4y4Is 5 and h5Is 5 and y5Is 2 so h5y5Is 10. Therefore, h1y1To h5y5T which is the sum ofyIs 0.
[0822]
Also, QiIs defined as follows.
[0823]
[Equation 44]
Figure 2004246526
Figure 2004246526
[0824]
Variation S of xxIs represented by equation (57).
[0825]
[Equation 45]
Figure 2004246526
Figure 2004246526
[0826]
fluctuation S of yyIs represented by equation (58).
[0827]
[Equation 46]
Figure 2004246526
Figure 2004246526
[0828]
Covariance SxyIs represented by equation (59).
[0829]
[Equation 47]
Figure 2004246526
Figure 2004246526
[0830]
Consider obtaining a first-order regression line shown in Expression (60).
[0831]
y = ax + b (60)
[0832]
The slope a and the intercept b can be obtained by the least square method as follows.
[0832]
[Equation 48]
Figure 2004246526
Figure 2004246526
[0834]
[Equation 49]
Figure 2004246526
Figure 2004246526
[0835]
However, a necessary condition for obtaining a correct regression line is a frequency Li, jIs distributed in a Gaussian distribution with respect to the regression line. Conversely, the frequency detection unit 603 calculates the frequency Li, jIs a Gaussian distribution, the pixel value of the pixel in the region is represented by a frequency Li, jNeed to be converted to
[0836]
The regression line calculation unit 604 obtains a regression line by executing the calculation represented by Expressions (61) and (62).
[0837]
In order to detect the continuity of data for each pixel, the intercept b is unnecessary. Therefore, it is considered to obtain a first-order regression line shown in Expression (63).
[0838]
y = ax (63)
[0839]
In this case, the regression line calculation unit 604 can obtain the slope a by the equation (64) by the least square method.
[0840]
[Equation 50]
Figure 2004246526
Figure 2004246526
[0841]
In the first method for specifying a region having data continuity, the estimation error of the regression line shown in Expression (60) is used.
[0842]
fluctuation S of yy ・ xIs obtained by an operation represented by Expression (65).
[0843]
(Equation 51)
Figure 2004246526
Figure 2004246526
[0844]
The variance of the estimation error is obtained by the calculation represented by Expression (66) using the fluctuation.
[0845]
(Equation 52)
Figure 2004246526
Figure 2004246526
[0846]
Therefore, the standard deviation is derived by the following equation.
[0847]
(Equation 53)
Figure 2004246526
Figure 2004246526
[0848]
However, since the standard deviation is an amount corresponding to the width of the thin line when targeting the area where the image of the thin line is projected, it is generally determined that the large standard deviation is not an area having a steady state of the data. It is not possible. However, for example, the classification adaptation process fails because the thin line width is narrow even in the region where the data is stationary, so that the area where the classification adaptation process is likely to fail is standardized. Information indicating an area detected using the deviation can be used.
[0849]
The area calculation unit 605 calculates the standard deviation by the calculation represented by the equation (67), and calculates the area having the data continuity in the input image based on the standard deviation. For example, the area calculation unit 605 obtains a distance by multiplying the standard deviation by a predetermined coefficient, and sets an area within the obtained distance from the regression line as an area having data continuity. For example, the area calculation unit 605 calculates an area having a distance within a standard deviation from the regression line around the regression line as an area having data continuity.
[0850]
In the second technique, frequency correlation is used to detect a region having a steady state of data.
[0851]
Correlation coefficient rxyIs the variation S of xx, Y variation Sy, And covariation SxyCan be obtained by the calculation represented by the equation (68).
[0852]
(Equation 54)
Figure 2004246526
Figure 2004246526
[0853]
Since the correlation has a positive correlation and a negative correlation, the area calculation unit 605 calculates the correlation coefficient rxyOf the correlation coefficient rxyThe closer the absolute value of is to 1, the stronger the correlation is determined. More specifically, the area calculation unit 605 calculates the threshold value and the correlation coefficient rxyAnd the correlation coefficient rxyAre detected as areas having data continuity.
[0854]
With reference to the flowchart of FIG. 119, a description will be given of a process of detecting data continuity by the data continuity detecting unit 101 shown in FIG. 115, which corresponds to the process of step S101.
[0855]
In step S601, the pixel acquisition unit 602 selects a target pixel from pixels that have not been set as the target pixel yet. For example, the pixel acquisition unit 602 selects a pixel of interest in a raster scan order. In step S <b> 602, the pixel acquisition unit 602 acquires the pixel values of the pixels included in the region centered on the target pixel, and supplies the acquired pixel values to the frequency detection unit 603. For example, the pixel acquisition unit 602 selects a region including 9 × 5 pixels around the target pixel, and acquires the pixel values of the pixels included in the region.
[0856]
In step S603, the frequency detection unit 603 detects a frequency by converting a pixel value of a pixel included in the region into a frequency. For example, the frequency detection unit 603 calculates the pixel value as a frequency L by an operation represented by Expression (49).i, jConvert to In this case, the frequency Li, jAre distributed in a Gaussian distribution so that the pixel values of the pixels in the region are frequency Li, jIs converted to The frequency detection unit 603 supplies the converted frequency to the regression line calculation unit 604.
[0857]
In step S604, the regression line calculation unit 604 obtains a regression line based on the frequency supplied from the frequency detection unit 503. For example, the regression line calculation unit 604 obtains a regression line based on the frequency supplied from the frequency detection unit 603. More specifically, the regression line calculation unit 604 obtains a regression line by executing the calculation represented by Expressions (61) and (62). The regression line calculation unit 604 supplies a calculation result parameter indicating the calculated regression line to the region calculation unit 605.
[0858]
In step S605, the area calculation unit 605 calculates a standard deviation of the regression line. For example, the region calculation unit 605 calculates the standard deviation with respect to the regression line by the calculation shown in Expression (67).
[0859]
In step S606, the region calculation unit 605 specifies a region having data continuity in the input image from the standard deviation. For example, the area calculation unit 605 obtains a distance by multiplying the standard deviation by a predetermined coefficient, and specifies, from the regression line, an area within the obtained distance as an area having data continuity.
[0860]
The area calculation unit 605 outputs data continuity information indicating an area having data continuity.
[0861]
In step S607, the pixel acquisition unit 602 determines whether or not processing of all pixels has been completed. If it is determined that processing of all pixels has not been completed, the process returns to step S601, and the process returns to step S601. The target pixel is selected from the unselected pixels, and the above-described processing is repeated.
[0862]
If it is determined in step S607 that the processing of all pixels has been completed, the processing ends.
[0863]
With reference to the flowchart of FIG. 120, another process of detecting data continuity by the data continuity detecting unit 101 shown in FIG. 115 and corresponding to the process of step S101 will be described. The processing of steps S621 to S624 is the same as the processing of steps S601 to S604, and a description thereof will be omitted.
[0864]
In step S625, the area calculation unit 605 calculates a correlation coefficient for the regression line. For example, the region calculation unit 605 calculates a correlation coefficient with respect to the regression line by the calculation represented by Expression (68).
[0865]
In step S626, the area calculation unit 605 specifies an area having data continuity in the input image from the correlation coefficient. For example, the region calculation unit 605 compares a threshold value stored in advance with the absolute value of the correlation coefficient, and specifies a region where the absolute value of the correlation coefficient is equal to or greater than the threshold value as a region having data continuity. .
[0866]
The area calculation unit 605 outputs data continuity information indicating an area having data continuity.
[0867]
The process in step S627 is the same as the process in step S607, and a description thereof will not be repeated.
[0868]
As described above, the data continuity detecting unit 101 having the configuration illustrated in FIG. 115 can detect an area having data continuity in image data corresponding to the continuity of the missing optical signal of the real world 1. .
[0869]
As described above, the real-world optical signal is projected, and a region corresponding to the target pixel, which is the target pixel of the image data in which part of the continuity of the real-world optical signal is missing, is selected. By setting the frequency based on the correlation value to the pixel whose correlation value between the pixel value of the pixel and the pixel value of the pixel belonging to the selected region is equal to or larger than the threshold, the frequency of the pixel belonging to the region is detected and detected. By detecting the regression line based on the frequency, an area having data continuity in the image data corresponding to the continuity of the missing real-world optical signal is detected, and the data continuity of the detected image data is detected. If the optical signal is estimated by estimating the stationarity of the missing real-world optical signal based on the gender, a more accurate and more accurate processing result is obtained for the real-world event I can do it To become.
[0870]
FIG. 121 shows the configuration of another embodiment of the data continuity detecting unit 101.
[0871]
The data continuity detecting unit 101 in FIG. 121 includes a data selecting unit 701, a data adding unit 702, and a steady direction deriving unit 703.
[0873]
The data selection unit 701 selects each pixel of the input image as a target pixel, selects pixel value data of a pixel corresponding to each target pixel, and outputs the selected pixel value data to the data adding unit 702.
[0873]
The data addition unit 702 performs an addition operation using the least squares method based on the data input from the data selection unit 701, and outputs the result of the addition operation to the steady direction deriving unit 703. The addition operation performed by the data addition unit 702 is an operation in a summation term used in an operation of the least squares method described later, and the operation result is a characteristic of image data for detecting a stationary angle. It can be said that there is.
[0874]
The stationary direction deriving unit 703 calculates a stationary direction, that is, an angle (eg, a thin line or an inclination of a binary edge, etc.) from a reference axis having data continuity based on the addition operation result input from the data adding unit 702. Or direction) and outputs this as data continuity information.
[0875]
Next, an outline of an operation of detecting continuity (direction or angle) in the data continuity detecting unit 101 will be described with reference to FIG. In FIGS. 122 and 123, parts corresponding to those in FIGS. 6 and 7 are denoted by the same reference numerals, and the description thereof will be omitted below as appropriate.
[0876]
As shown in FIG. 122, a signal (for example, an image) of the real world 1 is transmitted from an optical system 141 (for example, a lens or an LPF (Low Pass Filter) or the like) to a sensor 2 (for example, a CCD (Charge Coupled)). Device or a CMOS (Complementary Metal-Oxide Semiconductor) or the like. The sensor 2 is composed of, for example, an element having an integration characteristic such as a CCD or a CMOS. With such a configuration, an image obtained from the data 3 output from the sensor 2 is different from the image of the real world 1 (a difference from the image of the real world 1 occurs).
[0877]
Therefore, as shown in FIG. 123, the data continuity detecting unit 101 approximately describes the real world 1 using an approximation formula using a model 705, and extracts data continuity from the approximation formula. The model 705 is represented by, for example, N variables. More precisely, the model 705 approximates (describes) the real world 1 signal.
[0878]
The data continuity detecting unit 101 extracts M data 706 from the data 3 in order to predict the model 705. As a result, the model 705 is constrained by the stationarity of the data.
[0877]
In other words, the model 705, when acquired by the sensor 2, causes the data 3 to show data continuity of data, and indicates an event of the real world 1 having continuity (a characteristic constant in a direction of a predetermined dimension). (Signal)).
[0880]
Here, if the number M of the data 706 is equal to or larger than the number N of the variables of the model 705, the model 705 represented by the N variables can be predicted from the M data 706.
[0881]
Further, the data continuity detecting unit 101 predicts a model 705 that approximates (describes) (the signal of) the real world 1 to thereby detect data continuity included in a signal that is information of the real world 1 by, for example, a thin line. Or the direction of the binary edge (inclination or the angle between the axis and a predetermined direction), and outputs the data as data continuity information.
[0882]
Next, the data continuity detecting unit 101 that outputs the direction (angle) of a thin line from an input image as data continuity information will be described with reference to FIG.
[0883]
The data selection unit 701 includes a horizontal / vertical determination unit 711 and a data acquisition unit 712. The horizontal / vertical determination unit 711 determines whether the angle of the thin line of the input image with respect to the horizontal direction is a thin line close to the horizontal direction or a thin line close to the vertical direction, based on the difference between the pixel value of the target pixel and the peripheral pixels. , And outputs the determination result to the data acquisition unit 712 and the data addition unit 702, respectively.
[0884]
More specifically, for example, another method may be used in the sense of this method. For example, a simple 16 azimuth detection technique may be used here. As shown in FIG. 125, the horizontal / vertical determination unit 711 determines the difference between the pixels in the horizontal direction (the difference in pixel value between pixels) between the pixel of interest and the pixel adjacent to the pixel of interest. Activity (hdiff) and the difference (vdiff) between the sum of the differences (activity) between the pixels in the vertical direction are calculated, and the sum of the differences between the pixel of interest and the pixels adjacent in the vertical direction is large, or , It is determined whether the sum of the differences between horizontally adjacent pixels is large. Here, in FIG. 125, each square indicates a pixel, and the central pixel in the figure is the pixel of interest. The difference between the pixels indicated by the dotted arrows in the figure is the difference between the pixels in the horizontal direction, and the sum thereof is indicated by hdiff. Further, a difference between pixels indicated by solid arrows in the drawing is a difference between pixels in the vertical direction, and the sum thereof is indicated by vdiff.
[0885]
Based on the difference sum hdiff of the pixel values between the pixels in the horizontal direction and the sum vdiff of the pixel values between the pixels in the vertical direction thus obtained, the horizontal / vertical determination unit 711 determines (hdiff-vdiff) by: If it is positive, the change (activity) of the pixel value between the pixels in the horizontal direction is larger than that in the vertical direction. Therefore, as shown in FIG. 126, the angle with respect to the horizontal direction is θ (0 degrees ≦ θ ≦ 180 degrees). ), It is determined that the pixel belongs to a thin line having an angle close to the vertical direction, that is, 45 degrees <θ ≦ 135 degrees. Conversely, if the pixel value is negative, the pixel value between pixels in the vertical direction is determined. Is large, so that it is determined that the pixel belongs to a thin line having an angle close to the horizontal direction, that is, 0 degrees ≦ θ <45 degrees or 135 degrees <θ ≦ 180 degrees. (Direction (angle) where the thin line continues Are all pixels that represent a thin line, so the change (activity) between the pixels should be small).
[0886]
The horizontal / vertical determination unit 711 includes a counter (not shown) for identifying each pixel of the input image, and is used as needed.
[0887]
In FIG. 125, the sum of the differences between the pixel values in the vertical direction and the horizontal direction in the range of 3 × 3 pixels around the pixel of interest is compared to determine whether the thin line is close to the vertical direction or Although the example of determining whether the pixel is close to the horizontal direction has been described, the direction of the fine line may be determined using a similar method using a larger number of pixels. The determination may be made based on a pixel or a block having a larger number of pixels such as 7 pixels × 7 pixels.
[0888]
The data acquisition unit 712 is based on the thin line direction determination result input from the horizontal / vertical determination unit 711, and is a block unit composed of a plurality of pixels arranged in the horizontal direction corresponding to the pixel of interest or a plurality of pixels arranged in the vertical direction. The pixel value is read (acquired) in block units of the pixel of the pixel, and between the pixels adjacent in the direction of the determination result of the horizontal / vertical direction determination unit 711 between a plurality of pixels corresponding to the read (acquired) target pixel. And data of the maximum value and the minimum value of the pixel values from the pixels included in the block having the predetermined number of pixels, together with the difference data of. In the following, a block of a plurality of pixels acquired by the data acquisition unit 712 corresponding to the pixel of interest is referred to as an acquisition block (an acquisition block is, for example, a plurality of pixels (each (Indicated by a square), when a pixel indicated by a black-line square is taken as a pixel of interest, there are a total of 15 pixels including three pixels above and below and one pixel on the left and right).
[0889]
The difference adding unit 721 of the data adding unit 702 detects the difference data input from the data selecting unit 701, and detects the difference data in the horizontal or vertical direction input from the horizontal / vertical determining unit 711 of the data selecting unit 701. Based on the determination result, an addition process required for a solution of the least squares method described later is executed, and the addition result is output to the steady direction deriving unit 703. More specifically, the difference data of the pixel value between the pixel i and the pixel (i + 1) adjacent to each other in the determination direction by the horizontal / vertical determination unit 711 among the plurality of pixels is set to yi, and the acquisition block corresponding to the target pixel is set. Is composed of n pixels, the difference adding unit 721 calculates (y1) for each horizontal or vertical direction.2+ (Y2)2+ (Y3)2The calculation is performed by adding +... To the stationary direction deriving unit 703.
[0890]
The MaxMin acquisition unit 722 includes a block set for each pixel included in the acquisition block corresponding to the target pixel input from the data selection unit 701 (hereinafter, referred to as a dynamic range block (the dynamic range block is described later with reference to FIG. 139). For example, among the pixels of the acquisition block indicated by, the pixel pix12 is a dynamic range block B1 that is surrounded by a solid black line, and is a total of seven pixels, such as three pixels above and below the pixel pix12)) When the maximum value and the minimum value of the pixel value of the included pixel are obtained, the dynamic range Dri (the maximum value and the minimum value of the pixel value of the pixel included in the dynamic range block corresponding to the i-th pixel in the obtained block) are obtained from the difference. The difference is calculated (detected) and output to the difference adding unit 723.
[0891]
The difference addition unit 723 detects the dynamic range Dri input from the MaxMin acquisition unit 722 and the difference data input from the data selection unit 701, and based on the detected dynamic range Dri and the difference data, determines the data selection unit 701. , And adds the value obtained by multiplying the dynamic range Dri and the difference data yi for each horizontal or vertical direction input from the horizontal / vertical determination unit 711, and outputs the calculation result to the stationary direction derivation unit 703. That is, the calculation result output by the difference adding unit 723 is y1 × Dr1 + y2 × Dr2 + y3 × Dr3 +... In each of the horizontal and vertical directions.
[0892]
The steady direction calculating unit 731 of the steady direction deriving unit 703 calculates the angle (direction) of the thin line based on the horizontal or vertical addition result obtained from the data addition unit 702. , And outputs the calculated angle as continuity information.
[0893]
Here, a method of calculating the direction of the thin line (the inclination or angle of the thin line) will be described.
[0894]
When a portion surrounded by a white line in the input image as shown in FIG. 127A is enlarged, a thin line (white line ascending in the figure and obliquely in the figure) is actually displayed as shown in FIG. 127B. ing. That is, in the real world, as shown in FIG. 127C, the image has two types of levels, that is, the level of the thin line (the shaded area with a low density in FIG. 127C) and the background level, and the other levels are the boundaries. It does not exist. On the other hand, as shown in FIG. 127B, an image captured by the sensor 2, that is, an image captured in pixel units, is obtained by integrating pixels whose background level and fine line level are spatially mixed due to the integration effect. Thus, an image is obtained in which blocks composed of a plurality of pixels arranged in the vertical direction are repeatedly arranged in the thin line direction so that the ratio (mixing ratio) changes in a fixed pattern. In FIG. 127B, each square cell indicates one pixel of the CCD, and the length of each side is d_CCD. The squares are the minimum pixel values corresponding to the background level in the grid-filled area, and the pixel values in the other hatched areas are lower as the density of the diagonal lines decreases. (The white square without oblique lines has the maximum pixel value).
[0895]
As shown in FIG. 128A, when a thin line exists on the background of the real world, as shown in FIG. 128B, the image of the real world is the level on the horizontal axis and the image of the portion corresponding to the level on the vertical axis. The upper area indicates the relationship between the area corresponding to the background in the image and the area corresponding to the thin line in the image.
[0896]
Similarly, in the image picked up by the sensor 2, as shown in FIG. 129A, among the pixels of the background level, the pixels in which the background level and the thin line level arranged vertically are mixed have a predetermined mixing ratio. 129B becomes an image in which blocks arranged in the vertical direction while being changed in the pattern described above are repeatedly arranged in the direction in which the thin line exists, and as shown in FIG. 129B, a region at the background level (background region) Then, there is a spatial mixed region composed of pixels which are obtained as a result of spatially mixing the background and the fine line, which take an intermediate level between the levels of the fine lines. Here, the vertical axis in FIG. 129B is the number of pixels, but the area of one pixel is (d_CCD)2129B, it can be said that the relationship between the pixel value level and the number of pixels in FIG. 129B is the same as the relationship between the pixel value level and the area distribution.
[0897]
As a result, the same result is obtained as shown in FIG. 130B even in a portion (image of 31 pixels × 31 pixels) surrounded by a white line in the actual image of FIG. 130A. That is, in the background portion shown in FIG. 130A (the portion that looks black in FIG. 130A), as shown in FIG. 130B, many pixels having low pixel value levels (pixel values near 20) are distributed. The portions where these changes are small form an image of the background region. On the other hand, the portion where the pixel value level is not low in FIG. 130B, that is, the pixels in which the pixel value level is distributed in the vicinity of 40 to 160 is a pixel belonging to the spatial mixing area forming a thin line image. Although the number of pixels for each pixel value is small, it is distributed over a wide range of pixel values.
[0898]
By the way, the respective levels of the background and the thin line in the image of the real world change as shown in FIG. 131B, for example, when viewed in the arrow direction (Y coordinate direction) shown in FIG. 131A. That is, in the background area from the starting point of the arrow to the thin line, the background level becomes a relatively low level, and in the thin line area, the level becomes a high level thin line. A low background level. As a result, a pulse-like waveform having a high level only in the thin line region is obtained.
[0899]
On the other hand, of the images captured by the sensor 2, the pixels on the spatial direction X = X1 in FIG. 132A corresponding to the directions of the arrows in FIG. 131A (the pixels indicated by black circles in FIG. 132A) ) And the spatial direction Y of the pixel are as shown in FIG. 132B. In FIG. 132A, a thin line on the image of the real world is shown between two white lines rising to the right.
[0900]
That is, as shown in FIG. 132B, since the pixel corresponding to the center pixel in FIG. 132A has the highest pixel value, the position of each pixel in the spatial direction Y is Becomes higher as approaching the pixel, and gradually decreases after passing through the center position. As a result, a mountain-shaped waveform is formed as shown in FIG. 132B. Further, the change in the pixel value of each pixel corresponding to the spatial direction X = X0, X2 in FIG. 132A has the same outer shape, although the peak position in the spatial direction Y is shifted according to the inclination of the fine line.
[0901]
For example, in the case of an image actually captured by the sensor 2 as shown in FIG. 133A, similar results are obtained as shown in FIG. 133B. That is, FIG. 133B shows that the pixel values near the thin line in the range surrounded by the white line in the image of FIG. 133A correspond to the spatial direction Y for each predetermined spatial direction X (X = 561, 562, 563 in the figure). 3 shows the change in the pixel value. As described above, also in the image captured by the actual sensor 2, when X = 561, Y = around 730, when X = 562, Y = around 705, and when X = 563, Y = around 685. , And have peak-shaped waveforms each having a peak.
[0902]
As described above, the waveform indicating the level change near the thin line of the image in the real world is a pulse-like waveform, whereas the waveform indicating the change in the pixel value of the image captured by the sensor 2 is a mountain-shaped waveform. It becomes.
[0903]
In other words, in other words, the level of the image in the real world should have a waveform as shown in FIG. 131B, but is captured by the sensor 2, so that the captured image becomes as shown in FIG. 132B. It can be said that the change is distorted and changes to a waveform different from the image of the real world (real world information is missing).
[0904]
Therefore, in order to acquire the stationarity information of the image of the real world from the image captured by the sensor 2, a model for approximately describing the real world from the data of the image acquired by the sensor 2 (see FIG. 123) (Corresponding to the model 705). For example, in the case of a thin line, a real world image is set as shown in FIG. That is, the level of the background portion on the left side in the drawing is B1, the level of the background portion on the right side of the drawing is B2, the level of the thin line portion is L, the mixing ratio of the thin line is α, the width of the thin line is W, and the thin line is in the horizontal direction. The parameters are set by setting the angle to θ, modeling is performed, a function that approximately represents the real world is set, an approximate function that approximately represents the real world is obtained by obtaining each parameter, and a thin line is obtained from the approximate function. (Inclination or angle with respect to the reference axis).
[0905]
At this time, since the left and right portions of the background area can be approximated as being the same, they are unified as B (= B1 = B2) as shown in FIG. 135. It is assumed that the width of the thin line is one pixel or more. When the sensor 2 captures an image of the real world set in this way, the captured image is captured as shown in FIG. 136A. In FIG. 136A, a thin line on the image of the real world is shown between two white lines rising to the right.
[0906]
That is, the pixel existing at the position on the thin line in the real world has the level closest to the level of the thin line, and the pixel value decreases as the distance from the thin line in the vertical direction (the direction of the space direction Y) decreases, and the pixel contacts the thin line region. The pixel value of a pixel existing at a position where there is no occurrence, that is, the pixel of the background area has a pixel value of the background level. At this time, the pixel value of a pixel existing at a position straddling the thin line region and the background region is a pixel value obtained by mixing the pixel value B of the background level and the pixel value L of the thin line level with a mixture ratio α.
[0907]
As described above, when each pixel of the captured image is set as a target pixel, the data acquisition unit 712 extracts a pixel of an acquisition block corresponding to the target pixel, and for each pixel configuring the extracted acquisition block, A dynamic range block is extracted, and a pixel having a maximum pixel value and a pixel having a minimum pixel value among the pixels constituting the dynamic range block are extracted. That is, as shown in FIG. 136A, a pixel of a dynamic range block corresponding to a predetermined pixel in the acquisition block (pixel pix4 in which a square is described by a solid black line in one cell in the figure) (for example, in the figure, 136), the real-world image corresponding to each of the pixels pix1 to pix7 is extracted as shown in FIG. 136B.
[0908]
That is, as shown in FIG. 136B, in the pixel pix1, a portion occupying approximately 1 / of the left portion is a background region, and a portion occupying approximately / of the right portion is a thin line region. Substantially the entire area of the pixel pix2 is a thin line area. In the pixel pix3, a portion occupying approximately 7/8 of the left portion is a thin line region, and a portion occupying the right 1/8 area is a thin line region. In the pixel pix4, a portion occupying approximately / of the left portion is a thin line region, and a portion occupying approximately 3 of the right portion is a background region. In the pixel pix5, a portion occupying approximately 1/3 of the area on the left side is a thin line region, and a portion occupying approximately 2/3 of the area on the right side is a background region. In the pixel pix6, a portion occupying approximately 1 / of the left portion is a thin line region, and a portion occupying approximately / of the right portion is a background region. Further, the pixel pix7 is entirely a background area.
[0909]
As a result, the pixel values of the pixels pix1 to pix7 of the dynamic range block shown in FIG. 136 are obtained by mixing the pixel value obtained by mixing the background level and the thin line level with a mixing ratio corresponding to the ratio of the area of the thin line region to the background region. Become. That is, the mixing ratio of the background level and the foreground level is about 1: 7 for the pixel pix1, about 0: 1 for the pixel pix2, about 1: 7 for the pixel pix3, about 1: 2 for the pixel pix4, and about 2: 2 for the pixel pix5. 1, the pixel pix6 is approximately 7: 1, and the pixel pix7 is approximately 1: 0.
[0910]
Accordingly, the pixel values of the pixels pix1 to pix7 of the extracted dynamic range block are the highest in the pixel pix2, followed by the pixels pix1, 3 and the pixels pix4, 5, 6, 7 in the descending order of the pixel value. Become. Therefore, in the case shown in FIG. 136B, the maximum value is the pixel value of the pixel pix2, and the minimum value is the pixel value of the pixel pix7.
[0911]
In addition, as shown in FIG. 137A, the direction of the thin line is a direction in which the pixels having the maximum pixel value are continuous, and the direction in which the pixel having the maximum value is arranged is the direction of the thin line. .
[0912]
Here, the gradient G indicating the direction of the thin linefl137 is the ratio of the change in the spatial direction Y (change in distance) to the unit distance in the spatial direction X, so in the case shown in FIG. The distance in the spatial direction Y is the gradient GflBecomes
[0913]
As shown in FIG. 137B, the change of the pixel value in each of the spatial directions X0 to X2 in the spatial direction Y is a mountain-shaped waveform repeated at a predetermined interval for each spatial direction X. As described above, in the image captured by the sensor 2, the thin line is a direction in which the pixels having the maximum value are continuous, and therefore the interval S in the spatial direction Y at which the maximum value in each spatial direction X is obtained is represented by the inclination of the thin line. GflBecomes That is, as shown in FIG. 137C, the amount of change in the vertical direction with respect to the distance of one pixel in the horizontal direction is the gradient G.flBecomes Therefore, the slope G of this thin linefl(Corresponding to the angle when the horizontal direction is the reference axis) is expressed by the following formula (θ) when the angle of the thin line with the horizontal direction as the reference axis corresponding to the inclination is expressed as θ, as shown in FIG. 137C. The relationship shown in (69) is established.
[0914]
θ = Tan-1(Gfl) (= Tan-1(S)) ... (69)
[0915]
In addition, a model as shown in FIG. 135 is set, and the relationship between the pixels in the spatial direction Y and the pixel value is changed such that a mountain-shaped waveform shown in FIG. 137B is a complete triangular waveform (rising or falling). 138 changes linearly, an isosceles triangular waveform), as shown in FIG. 138, the pixel value of each pixel existing on the spatial direction Y in the spatial direction X of the predetermined target pixel Is the maximum value of Max = L (here, the pixel value corresponding to the level of the thin line in the real world), and the minimum value is Min = B (here, the pixel value corresponding to the level of the background of the real world). The relationship represented by the following equation (70) holds.
[0916]
LB = Gfl× d_y (70)
[0917]
Here, d_y indicates a difference in pixel value between pixels in the spatial direction Y.
[0918]
That is, the spatial gradient GflIs larger, the thin line approaches a more vertical one, so the mountain-shaped waveform becomes an isosceles triangular waveform with a larger base, and conversely, the smaller the slope S, the smaller isosceles triangular waveform with a smaller base . As a result, the slope GflIs larger, the difference d_y in pixel value between pixels in the spatial direction Y is smaller, and as the slope S is smaller, the difference d_y in pixel value between pixels in the spatial direction Y is larger.
[0919]
Therefore, the gradient G that satisfies the relationship of the above equation (70)fl, The angle θ of the fine line with respect to the reference axis can be obtained. Equation (70) gives the slope GflIs a function of one variable, and the difference (vertical direction) d_y of the pixel value between neighboring pixels and the difference (LB) between the maximum value and the minimum value of the target pixel are 1 Although it can be obtained by using a set, as described above, since the approximation formula based on the assumption that the change in the pixel value in the spatial direction Y is a complete triangular waveform is used, A dynamic range block is extracted for each pixel of the extracted block, and a dynamic range Dr is obtained from the maximum value and the minimum value, and a difference d_y of a pixel value between pixels in the spatial direction Y of each pixel of the extracted block is calculated. And statistically obtained by the least squares method.
[0920]
Here, in describing the statistical processing by the least squares method, first, details of the extraction block and the dynamic range block will be described.
[0921]
For example, as shown in FIG. 139, the extraction block includes three pixels in the spatial direction Y and three pixels in the spatial direction X of the pixel of interest (the square pixel drawn by a black solid line in the figure). A total of 15 pixels for one pixel on the left and right may be used. In this case, the difference d_y between the pixels of each pixel of the extraction block is, for example, the difference corresponding to the pixel pix11 is indicated by d_y11. When the spatial direction X = X0, the pixels pix11 and pix12, pix12 are used. Pix13, pix13 and pix14, pix15 and pix16, and pixel value differences d_y11 to d_y16 between pixels pix16 and pix17. At this time, also in the spatial direction X = X1, X2, a difference in pixel value between pixels is obtained in a similar manner. As a result, in this case, there are 18 pixel value differences d_y between the pixels.
[0922]
Further, for each pixel of the extracted block, the pixel of the dynamic range block is determined to be in the vertical direction in this case based on the determination result of the horizontal / vertical determination unit 711 for the pixel pix11. As shown in FIG. 139, assuming that there are seven pixels in the range of the dynamic range block B1 for three pixels in the vertical direction (spatial direction Y) including the pixel pix11, this dynamic range block B1 The maximum value and the minimum value of the pixel value of the pixel are determined, and the dynamic range obtained from the maximum value and the minimum value is defined as a dynamic range Dr11. Similarly, for the pixel pix12 of the extraction block, the dynamic range Dr12 is similarly obtained from the seven pixels of the dynamic range block B2 in FIG. 139. Thus, based on the combination of the 18 pixel differences d_yi in the extracted block and the corresponding dynamic range Dri, the slope G is statistically calculated using the least squares method.flIs required.
[0923]
Next, the solution of the least square method of one variable will be described. Here, it is assumed that the determination result of the horizontal / vertical determination unit 711 is the vertical direction.
[0924]
The one-variable least-squares method solves, for example, the gradient G of a straight line composed of the predicted value Dri_c, which minimizes the distance to all measured values indicated by black points in FIG.flIs what you want. Therefore, the slope S is obtained from the relationship represented by the above equation (70) by the following method.
[0925]
That is, when the difference between the maximum value and the minimum value is the dynamic range Dr, the above equation (70) is described as shown in the following equation (71).
[0926]
Dr = Gfl× d_y ... (71)
[0927]
The dynamic range Dri_c is obtained by substituting the difference d_yi between the pixels of the extraction block into the above equation (71). Therefore, the relationship of the following equation (72) is satisfied for each pixel.
[0928]
Dri_c = Gfl× d_yi ... (72)
[0929]
Here, the difference d_yi is a difference in pixel value between pixels in the spatial direction Y of each pixel i (for example, the difference in pixel value between pixels adjacent to the pixel i in the upward or downward direction). Dri_c is the difference, and the dynamic range obtained when Expression (70) holds for pixel i.
[0930]
As described above, the least squares method here is a method of calculating the difference between the dynamic range Dri_c of the pixel i of the extracted block and the dynamic range Dri_r obtained by the method described with reference to FIG. The gradient G when the sum of squares Q is minimum in all pixels in the imageflIt is a method of seeking. Therefore, the sum of squares of difference Q is obtained by the following equation (73).
[0931]
[Equation 55]
Figure 2004246526
Figure 2004246526
[0932]
Since the sum of squared differences Q represented by the equation (73) is a quadratic function, the variable Gfl(Slope Gfl) Is a downwardly convex curve as shown in FIG.flG that minimizesflmin is the solution of the least squares method.
[0933]
The sum of squared differences Q expressed by the equation (73)flWhen differentiated by the following equation, dQ / dG expressed by the following equation (74) is obtained.flBecomes
[0934]
[Equation 56]
Figure 2004246526
Figure 2004246526
[0935]
Expression (74) indicates that GflIs the minimum value of the sum of squared differences Q shown in FIG.flmin, the equation when equation (74) becomes 0 is expanded to obtain the gradient G in equation (75) below.flWill be required.
[0936]
[Equation 57]
Figure 2004246526
Figure 2004246526
[0937]
The above equation (75) is a so-called one variable (slope Gfl) Is the normal equation.
[0938]
In this manner, the obtained gradient GflIs substituted into the above equation (69) to obtain the gradient G of the thin line.fl, The angle θ of the thin line when the horizontal direction is used as the reference axis can be obtained.
[0939]
In the above description, an example has been described in which the target pixel is a pixel on a thin line in which the angle θ when the horizontal direction is the reference axis is in the range of 45 degrees ≦ θ <135 degrees. However, for example, when the target pixel is on a thin line close to the horizontal direction where the angle θ of the thin line with respect to the reference axis with respect to the horizontal direction is 0 ° ≦ θ <45 ° or 135 ° ≦ θ <108 ° If the pixel is a pixel, the difference in pixel value between pixels adjacent to the pixel i is the difference d_xi between pixel values between pixels adjacent in the horizontal direction. When the value or the minimum value is obtained, the pixels of the dynamic range block to be extracted are also selected from a plurality of pixels existing in the horizontal direction with respect to the pixel i. Regarding the processing in this case, since the relationship between the horizontal direction and the vertical direction in the above description is merely interchanged, the description is omitted.
[0940]
Further, an angle corresponding to the inclination of the binary edge can be obtained by a similar method.
[0941]
That is, when a portion surrounded by a white line in the input image as shown in FIG. 142A is enlarged, an edge portion in the image (in FIG. 142, a character “10” drawn below a white flag drawn on a black flag). (Hereinafter, the edge portion on the image composed of the binary levels is also referred to as a binary edge in this manner.) Is actually displayed as shown in FIG. 142B. That is, in the real world, as shown in FIG. 142C, in the image, the first level (the level of the place of the flag) and the second level (the level of the character (the shaded area with a low density in FIG. 142C)) ) Is formed, and there are no other levels. On the other hand, as shown in FIG. 142B, an image captured by the sensor 2, that is, an image captured in units of pixels, is a pixel in which the first level and the second level are spatially mixed. A block composed of a plurality of pixels arranged in the vertical direction so that the ratio (mixing ratio) changes in a constant pattern is defined by a region where the block is repeatedly arranged in the direction in which the edge is formed. The image has a portion where the pixels of the first level are arranged and a portion where the pixels of the second level are arranged.
[0942]
That is, as shown in FIG. 143A, for the spatial directions X = X0, X1, and X2, the change of the pixel value in each spatial direction Y is shown in FIG. The pixel value has a predetermined minimum value up to near the boundary of the value edge (the straight line rising to the right in FIG. 143A). However, near the boundary of the binary edge, the pixel value gradually increases. Exceeds point P in the figureEIn, the pixel value becomes a predetermined maximum value. More specifically, the change in the spatial direction X = X0 is, as shown in FIG. 143B, the point P at which the pixel value becomes the minimum value.S, The pixel value gradually increases, and a point P0 at which the pixel value reaches the maximum value is reached. On the other hand, since the change in the pixel value of each pixel corresponding to the spatial direction X = X1 has a waveform shifted in the spatial direction, the pixel value gradually decreases from the minimum value of the pixel value as shown in FIG. 143B. Is shifted in the positive direction of the spatial direction Y, and increases to the maximum pixel value via the point P1 in the figure. Further, the change of the pixel value in the spatial direction Y in the spatial direction X = X2 decreases via the point P2 in the figure further shifted in the positive direction of the spatial direction Y, and changes from the maximum value of the pixel value to the minimum value. Become.
[0943]
The same tendency is observed in a portion surrounded by a white line in an actual image. That is, in the portion (image of 31 pixels × 31 pixels) surrounded by the white line in the actual image of FIG. 144A, the background portion (the portion that looks black in FIG. 144A) is a pixel as shown in FIG. 144B. A large number of pixels having low values (pixel values near 90) are distributed, and the portions with little change form an image of the background region. On the other hand, the portion where the pixel value is not low in FIG. 144B, that is, the pixel whose pixel value is distributed in the vicinity of 100 to 200 is the distribution of the pixel belonging to the spatial mixed region of the character region and the background region. Although the number of pixels for each pixel value is small, it is distributed over a wide range of pixel values. Further, a large number of pixels in a character region having a high pixel value (a portion that looks white in FIG. 144A) are distributed near the pixel value indicated by 220.
[0944]
As a result, the change of the pixel value in the spatial direction Y with respect to the predetermined spatial direction X in the edge image shown in FIG. 145A is as shown in FIG. 145B.
[0945]
That is, FIG. 145B shows that the pixel values near the edge of the range surrounded by the white line in the image of FIG. 145A correspond to the spatial direction Y in each predetermined spatial direction X (X = 658, 659, 660 in the figure). 3 shows the change in the pixel value. As described above, also in the image captured by the actual sensor 2, at X = 658, the pixel value starts increasing near Y = 374 (distribution indicated by a black circle in the drawing), and near X = 382. The maximum pixel value is reached. Further, when X = 659, the pixel value shifts in the positive direction with respect to the spatial direction Y, and the pixel value starts increasing near Y = 378 (distribution indicated by a black triangle in the drawing), and near X = 386. The maximum pixel value is reached. Further, at X = 660, the pixel value further shifts in the positive direction with respect to the spatial direction Y, and the pixel value starts increasing near Y = 382 (distribution indicated by a black square in the figure), and X = The maximum pixel value is reached near 390.
[0946]
Therefore, in order to obtain the continuity information of the image of the real world from the image captured by the sensor 2, a model for approximately describing the real world from the data of the image obtained by the sensor 2 is set. For example, in the case of a binary edge, an image of the real world is set as shown in FIG. That is, the parameters are set such that the level of the background portion on the left side in the figure is V1, the level of the character portion on the right side in the figure is V2, the mixture ratio between pixels near the binary edge is α, and the angle of the edge to the horizontal direction is θ. Then, modeling is performed, a function that approximately represents the real world is set, a function that approximately represents the real world is obtained by obtaining each parameter, and the direction of the edge (inclination or reference) is obtained from the approximate function. Angle with respect to the axis).
[0947]
Here, since the inclination indicating the direction of the edge is a ratio of a change in the spatial direction Y (change in distance) to a unit distance in the spatial direction X, in the case shown in FIG. The distance in the spatial direction Y relative to the distance of one pixel to X is the slope.
[0948]
As shown in FIG. 147B, the change of the pixel value in each of the spatial directions X0 to X2 in the spatial direction Y is such that a similar waveform is repeated at a predetermined interval in each spatial direction X. As described above, in the image captured by the sensor 2, the edge has a similar change in pixel value (in this case, a change in pixel value in a predetermined spatial direction Y that changes from a minimum value to a maximum value). Are spatially continuous directions, so that in each spatial direction X, the interval S in the spatial direction Y at which the change of the pixel value in the spatial direction Y starts or the position at which the change ends is the edge S. Slope GfeBecomes That is, as shown in FIG. 147C, the amount of change in the vertical direction with respect to the distance of one pixel in the horizontal direction is the gradient G.feBecomes
[0949]
Incidentally, this relationship is based on the inclination G of the thin line described above with reference to FIGS.flIs the same as Therefore, the same holds true for the relational expression. That is, the relational expression in the case of the binary edge is as shown in FIG. 148, and the pixel value of the background area is V1, the pixel value of the character area is V2, and the minimum value and the maximum value are respectively. Further, the mixture ratio of the pixels near the edge is α, and the gradient of the edge is G.feThen, the relational expression to be satisfied is similar to the above-described expressions (69) to (71) (however, GflIs GfeIs replaced by.)
[0950]
Therefore, the data continuity detecting unit 101 shown in FIG. 124 can detect the angle corresponding to the inclination of the thin line and the angle corresponding to the inclination of the edge as data continuity information by the same processing. . Therefore, in the following, the slope is generally referred to as the slope of the thin line and the slope of the binary edge, and is referred to as the slope G.fCalled. Also, the gradient G in the equations (73) to (75) described above.flIs GfeAnd, as a result, the slope GfAnd replace it with
[0951]
Next, the process of detecting data continuity will be described with reference to the flowchart in FIG.
[0952]
In step S701, the horizontal / vertical determination unit 711 initializes a counter T for identifying each pixel of the input image.
[0953]
In step S702, the horizontal / vertical determination unit 711 performs a process of extracting data necessary for a subsequent process.
[0954]
Here, the process of extracting data will be described with reference to the flowchart of FIG.
[0955]
In step S711, the horizontal / vertical determination unit 711 of the data selection unit 701 determines, for each target pixel T, nine pixels adjacent in the horizontal direction, the vertical direction, and the diagonal direction, as described with reference to FIG. A sum hdiff of pixel value differences (activity) between horizontally adjacent pixels and a sum vdiff of pixel value differences (activity) between vertically adjacent pixels are calculated, and the difference (hdiff− vdiff), and when the difference (hdiff−vdiff) ≧ 0, the angle θ of the target pixel T with respect to the reference axis is 45 degrees ≦ θ <135 degrees when the horizontal direction is the reference axis. , Which is regarded as a thin line close to the vertical direction or a pixel near the binary edge, and determines the extraction block to be used to correspond to the vertical direction by the data acquisition unit. 712 and output to the data adding unit 702.
[0956]
On the other hand, when the difference (hdiff−vdiff) <0, the horizontal / vertical determination unit 711 determines, when the pixel of interest has the horizontal direction as a reference axis, a thin line with the reference axis or an angle formed by a binary edge. It is assumed that θ is 0 degrees ≦ θ <45 degrees or 135 degrees ≦ θ <180 degrees, and is regarded as a thin line close to the horizontal direction or a pixel near the edge, and the extraction block to be used is set as a horizontal line. The determination result that corresponds to the direction is output to the data acquisition unit 712 and the data addition unit 702.
[0957]
That is, the fact that the inclination of the thin line or the binary edge is close to the vertical direction means that, for example, as shown in FIG. 131A, the part where the arrow in the figure intersects the thin line increases. An extraction block with a larger number of pixels in the vertical direction is set (a vertically long extraction block is set). Similarly, even when the inclination of the thin line is close to the horizontal direction, an extraction block with a larger number of pixels in the horizontal direction is set (a horizontally long extraction block is set). By doing so, accurate calculation of the maximum value and the minimum value can be performed without increasing an unnecessary calculation amount.
[0958]
In step S712, the data acquisition unit 712 extracts the pixels of the extracted block corresponding to the horizontal or vertical determination result input from the horizontal / vertical determination unit 711 for the target pixel. That is, for example, as shown in FIG. 139, a total of 21 pixels (3 pixels in the horizontal direction) × (7 pixels in the vertical direction) are extracted and stored as an extraction block with the pixel of interest at the center.
[0959]
In step S713, the data acquisition unit 712 extracts a pixel of the dynamic range block corresponding to the direction corresponding to the determination result of the horizontal / vertical determination unit 711 for each pixel of the extracted block, and stores the extracted pixel. That is, as described above with reference to FIG. 139, for example, for the pixel pix11 of the extraction block, the determination result of the horizontal / vertical determination unit 711 is in the vertical direction in this case, so that the data acquisition unit 712 The pixel pix12 extracts the dynamic range block B2 in the same manner as the dynamic range block B1 in the vertical direction. The dynamic range blocks are similarly extracted from the other extraction blocks.
[0960]
That is, by this data extraction processing, information on the pixels necessary for the calculation of the normal equation is stored in the data acquisition unit 712 for the predetermined target pixel T (the area to be processed is selected).
[0961]
Here, the description returns to the flowchart of FIG.
[0962]
In step S703, the data adding unit 702 executes a process of adding a value required for each term of the operation of the normal equation (here, equation (74)).
[0963]
Here, the process of adding to the normal equation will be described with reference to the flowchart of FIG.
[0964]
In step S721, the difference adding unit 721 obtains a difference in pixel value between pixels of the extracted block stored in the data acquisition unit 712 according to the determination result of the horizontal / vertical determination unit 711 of the data selection unit 701. (Detected), and then squared (squared) and added. That is, when the determination result of the horizontal / vertical determination unit 711 is the vertical direction, the difference adding unit 721 obtains the difference in pixel value between pixels adjacent in the vertical direction for each pixel of the extraction block, and further squares. And add it. Similarly, when the determination result of the horizontal / vertical determination unit 711 is in the horizontal direction, the difference adding unit 721 obtains a difference in pixel value between pixels adjacent in the horizontal direction for each pixel of the extraction block. Square and add. As a result, the difference adding unit 721 generates and stores the sum of squares of the difference of the term serving as the denominator of the above equation (75).
[0965]
In step S722, the MaxMin acquisition unit 722 acquires the maximum value and the minimum value of the pixel value of the pixel included in the dynamic range block stored in the data acquisition unit 712, and in step S723, calculates the maximum value and the minimum value. The dynamic range is obtained (detected) from the difference and output to the difference adding unit 723. That is, as shown in FIG. 136B, in the case of a 7-pixel dynamic range block including pixels pix1 to pix7, the pixel value of pix2 is detected as the maximum value, and the pixel of pix7 is detected as the minimum value. The difference is determined as a dynamic range.
[0966]
In step S724, the difference adding unit 723 determines, among the pixels of the extracted block stored in the data acquisition unit 712, the pixels adjacent in the direction corresponding to the determination result of the horizontal / vertical determination unit 711 of the data selection unit 701. The difference between the pixel values is obtained (detected), and the value obtained by multiplying the dynamic range input from the MaxMin acquisition unit 722 is added. That is, the difference adding unit 721 generates and stores the sum of the terms that are the numerator of the above equation (75).
[0967]
Here, the description returns to the flowchart of FIG.
[0968]
In step S704, the difference adding unit 721 calculates a difference between pixel values of all pixels of the extracted block (a difference between pixel values between pixels adjacent in a direction corresponding to the determination result of the horizontal / vertical determination unit 711). Is determined, for example, if it is determined that the differences between all the pixels of the extracted block have not been added, the process returns to step S702, and the subsequent processes are repeated. That is, the processing of steps S702 to S704 is repeated until it is determined that the difference between the pixel values of all the pixels of the extraction block has been added.
[0969]
If it is determined in step S704 that the difference between the pixel values of all the pixels in the extracted block has been added, in step S705, the difference adding units 721 and 723 store the added values stored by themselves. The result is output to the steady direction deriving unit 703.
[0970]
In step S706, the stationary direction calculation unit 731 is adjacent to the direction determined by the horizontal / vertical determination unit 711 among the pixels of the acquisition block input from the difference addition unit 721 of the data addition unit 702. The sum of the squares of the differences between the pixel values of the pixels, the pixel value of the pixel value between the pixels adjacent to each other in the direction determined by the horizontal / vertical determination unit 711 among the pixels of the acquired block input from the difference addition unit 723 By solving the normal equation represented by the above equation (75) based on the difference and the sum of the product of the product of the obtained block and the dynamic range corresponding to each pixel of the acquired block, the pixel of interest is statistically calculated using the least square method. Calculate and output an angle (a thin line or an angle indicating the slope of a binary edge) indicating the direction of continuity, which is the data continuity information.
[0971]
In step S707, the data acquisition unit 712 determines whether or not processing has been performed on all pixels of the input image, and for example, processing has not been performed on all pixels of the input image, that is, all of the pixels of the input image have been processed. If it is determined that the information on the angle of the thin line or the binary edge has not been output for the pixel of, the counter T is incremented by 1 in step S708, and the process returns to step S702. That is, the processing of steps S702 to S708 is repeated until the pixel to be processed in the input image is changed and the processing is performed on all the pixels of the input image. The change of the pixel by the counter T may be, for example, a raster scan or the like, or may change sequentially according to other rules.
[0972]
If it is determined in step S707 that the processing has been performed on all the pixels of the input image, in step S709, the data acquisition unit 712 determines whether there is a next input image. If it is determined, the process returns to step S701, and the subsequent processes are repeated.
[0973]
If it is determined in step S709 that there is no next input image, the process ends.
[0974]
Through the above processing, the angle of the thin line or the binary edge is detected and output as the continuity information.
[0975]
As described above, the angle of the thin line or the edge of the edge obtained by the statistical processing substantially matches the angle of the thin line or the binary edge obtained by using the correlation. That is, as for the image in the range surrounded by the white line of the image as shown in FIG. 152A, the change in the inclination in the spatial direction Y on the predetermined horizontal coordinate on the fine line has a correlation as shown in FIG. 152B. The angle indicating the inclination of the thin line obtained by the used method (black circle in the figure) and the angle of the thin line obtained by statistical processing by the data continuity detecting unit 101 shown in FIG. 124 (black triangle in the figure) Are almost the same on the coordinates in the space direction Y near the thin line. In FIG. 152B, the spatial direction Y = 680 to 730 sandwiched by the solid black lines in the figure is the coordinates on the thin line.
[0976]
Similarly, for the image in the range surrounded by the white line of the image as shown in FIG. 153A, the change in the inclination in the spatial direction Y on the predetermined horizontal coordinate on the binary edge is as shown in FIG. 153B. The angle indicating the inclination of the binary edge obtained by the method using the correlation (the black circle in the figure) and the angle of the binary edge obtained by the statistical processing by the data continuity detecting unit 101 shown in FIG. (The black triangles in the figure) almost coincide with each other on the coordinates in the space direction Y near the fine line. In FIG. 153B, spatial coordinates Y = 376 (near) to 388 (near) are coordinates on the thin line.
[0977]
As a result, the data continuity detecting unit 101 shown in FIG. 124 determines the angle of a thin line or a binary edge as the continuity of data, unlike the method of using the correlation by a block of predetermined pixels. Can be calculated statistically using the information on the surroundings of the thin line or the angle indicating the inclination of the binary edge (here, the angle with the horizontal direction as the reference axis). As described above, since there is no switching according to the range of the predetermined angle, it is possible to obtain the inclination angles of all the thin lines or the binary edges by the same processing, so that the processing is simplified. It is possible to do.
[0978]
Further, in the above description, an example has been described in which the data continuity detection unit 101 outputs an angle formed by a thin line or a binary edge with a predetermined reference axis as continuity information. It is conceivable that the processing efficiency is improved by outputting the inclination as it is. In such a case, the steady direction calculating unit 731 of the steady direction deriving unit 703 of the data continuity detecting unit 101 calculates the thin line obtained by the least squares method or the gradient G of the binary edge.fMay be output as continuity information as it is.
[0979]
Further, in the above, in the equation (75), the dynamic range Dri_r has been calculated as required for each pixel of the extraction block. However, this dynamic range is obtained by setting the dynamic range block sufficiently large, that is, By setting many pixels of interest using many pixels around them, the maximum and minimum pixel values of the pixels in the image should always be selected. Therefore, the dynamic range Dri_r is not calculated for each pixel of the extracted block, but is calculated as a fixed value of the dynamic range obtained from the maximum value and the minimum value of the pixel in the extracted block or in the image data. Good.
[0980]
That is, as shown in the following equation (76), by adding only the difference between pixel values between pixels, the angle θ (inclination Gf) May be obtained. As described above, by fixing the dynamic range, the arithmetic processing can be further simplified, and the processing can be performed at high speed.
[0981]
[Equation 58]
Figure 2004246526
Figure 2004246526
[0982]
Next, with reference to FIG. 154, the data continuity detecting unit 101 that detects the mixture ratio of each pixel as the data continuity information will be described.
[0983]
In the data continuity detecting section 101 of FIG. 154, the portions corresponding to those in the case of the data continuity detecting section 101 of FIG. 124 are denoted by the same reference numerals, and the description thereof will be appropriately omitted below. I do.
[0984]
The data continuity detecting unit 101 of FIG. 154 differs from the data continuity detecting unit 101 of FIG. 124 in that the data adding unit 702 and the continuity direction deriving unit 703 are replaced with a data adding unit 751 and , A mixing ratio deriving unit 761 is provided.
[0985]
The MaxMin acquisition unit 752 of the data addition unit 751 performs the same processing as the MaxMin acquisition unit 722 in FIG. 124, but acquires the maximum value and the minimum value of the pixel value of each pixel of the dynamic range block, and The difference (dynamic range) between the value and the minimum value is obtained and output to the adding units 755 and 755, and the maximum value is output to the difference calculation unit 754.
[0986]
The adding unit 753 squares the value input from the MaxMin obtaining unit, adds the values for all the pixels of the extraction block, obtains the sum, and outputs the sum to the mixture ratio deriving unit 761.
[0987]
The difference calculation unit 754 obtains the difference between the maximum value of the corresponding dynamic range block for each pixel of the acquisition block of the data acquisition unit 712, and outputs the difference to the addition unit 755.
[0988]
The adding unit 755 calculates the difference (dynamic range) between the maximum value and the minimum value input from the MaxMin obtaining unit 752 and the pixel value of each pixel of the obtained block input from the difference calculating unit 754 for each pixel of the obtained block. Is multiplied by the difference between the maximum value of the corresponding dynamic range block and the sum, and the sum is obtained and output to the mixture ratio deriving unit 761.
[0989]
The mixture ratio calculation unit 762 of the mixture ratio derivation unit 761 statistically calculates the mixture ratio of the pixel of interest by the least square method based on the values input from the addition units 753 and 755 of the data addition unit. Is output as data continuity information.
[0990]
Next, a method for deriving the mixture ratio will be described.
[0991]
As shown in FIG. 155A, when a thin line exists on the image, the image captured by the sensor 2 is an image as shown in FIG. 155B. For this image, attention is paid to a pixel surrounded by a solid black line on the spatial direction X = X1 in FIG. 155B. The range sandwiched between the white lines in FIG. 155B indicates a position corresponding to the thin line region. The pixel value M of this pixel should be an intermediate color between the pixel value B corresponding to the level of the background area and the pixel value L corresponding to the level of the thin line area.SIs that the levels should be mixed in the area ratio of the background region and the thin line region. Therefore, this pixel value PSIs expressed by the following equation (77).
[0992]
PS= Α × B + (1−α) × L (77)
[0993]
Here, α is the mixture ratio, and more specifically, indicates the ratio of the area occupied by the background region in the pixel of interest. Therefore, it can be said that (1−α) indicates the ratio of the area occupied by the thin line region. Note that the pixels in the background area can also be considered as background object components because they can be considered as components of objects existing in the background. Also, the pixels in the thin line region are considered to be components of the foreground object with respect to the background object, and thus can be said to be the foreground object components.
[0994]
As a result, the mixture ratio α can be expressed by the following expression (78) by expanding expression (77).
[0995]
α = (PS−L) / (B−L) (78)
[0996]
Further, in this case, the pixel value is assumed to exist at a position that straddles the region of the first pixel value (pixel value B) and the region of the second pixel value (pixel value L). The pixel value L can be replaced with the maximum pixel value Max, and the pixel value B can be replaced with the minimum pixel value. Therefore, the mixture ratio α can also be expressed by the following equation (79).
[0997]
α = (PS−Max) / (Min−Max) (79)
[0998]
As a result, the mixture ratio α is determined from the difference between the dynamic range of the dynamic range block (corresponding to (Min−Max)) for the target pixel and the maximum value of the target pixel and the pixels in the dynamic range block. However, in order to further improve the accuracy, here, the mixture ratio α is statistically obtained by the least square method.
[0999]
That is, the above equation (79) is expanded to the following equation (80).
[1000]
(PS−Max) = α × (Min−Max) (80)
[1001]
This equation (80) is a one-variable least squares equation similar to the above equation (71). That is, in the equation (71), the gradient GfIs obtained, but here, the mixture ratio α is obtained. Therefore, the mixture ratio α is statistically obtained by solving the normal equation represented by the following equation (81).
[1002]
[Equation 59]
Figure 2004246526
Figure 2004246526
[1003]
Here, i identifies each pixel of the extracted block. Therefore, in equation (81), the number of pixels in the extracted block is n.
[1004]
Next, a process of detecting data continuity when the mixture ratio is set to data continuity will be described with reference to the flowchart in FIG.
[1005]
In step S731, the horizontal / vertical determination unit 711 initializes a counter U for identifying each pixel of the input image.
[1006]
In step S732, the horizontal / vertical determination unit 711 performs a process of extracting data necessary for a subsequent process. The process in step S732 is the same as the process described with reference to the flowchart in FIG. 150, and a description thereof will not be repeated.
[1007]
In step S733, the data adding unit 751 executes a process of adding a value required for each term of the operation of the normal equation (here, equation (81)).
[1008]
Here, the process of adding to the normal equation will be described with reference to the flowchart in FIG.
[1009]
In step S751, the MaxMin acquisition unit 752 acquires the maximum value and the minimum value of the pixel values of the pixels included in the dynamic range block stored in the data acquisition unit 712, and outputs the minimum value to the difference calculation unit 754. .
[1010]
In step S752, the MaxMin obtaining unit 752 obtains a dynamic range from the difference between the maximum value and the minimum value, and outputs the dynamic range to the difference adding units 753 and 755.
[1011]
In step S753, the adding unit 753 squares the dynamic range (Max−Min) input from the MaxMin obtaining unit 752, and adds it. That is, the adding unit 753 generates a value corresponding to the denominator of the above equation (81) by adding.
[1012]
In step S754, the difference calculation unit 754 obtains a difference between the maximum value of the dynamic range block input from the MaxMin acquisition unit 752 and the pixel value of the pixel currently being processed in the extraction block, and sends the difference to the addition unit 755. Output.
[1013]
In step S755, the adding unit 755 calculates the dynamic range input from the MaxMin obtaining unit 752, the pixel value of the pixel currently being processed input from the difference calculating unit 754, and the pixel of the dynamic range block. Multiply by the difference with the maximum value and add. That is, the adding unit 755 generates a value corresponding to the term of the numerator of the equation (81).
[1014]
As described above, the data adding unit 751 performs the calculation of each term of the above equation (81) by the adding process.
[1015]
Here, the description returns to the flowchart of FIG.
[1016]
In step S734, the difference adding unit 721 determines whether the addition has been completed for all the pixels of the extraction block. For example, if the addition processing has not been completed for all the pixels of the extraction block. If it is determined, the process returns to step S732, and the subsequent processes are repeated. That is, the processes of steps S732 to S734 are repeated until it is determined that the addition process has been completed for all the pixels of the extraction block.
[1017]
If it is determined in step S734 that the addition has been completed for all the pixels of the extraction block, in step S735, the addition units 753 and 755 calculate the addition results stored by themselves, as the mixture ratio deriving unit 761. Output to
[1018]
In step S736, the mixture ratio calculation unit 762 of the mixture ratio derivation unit 761 calculates the sum of the squares of the dynamic range and the pixel value of each pixel of the extraction block input from the addition units 753 and 755 of the data addition unit 751. By solving the normal equation represented by the above equation (81) based on the sum of the difference between the dynamic range and the maximum value of the dynamic range block and the dynamic range, the pixel of interest is statistically calculated using the least square method. Is calculated and output as the data continuity information.
[1019]
In step S737, the data acquisition unit 712 determines whether or not processing has been performed on all pixels of the input image. For example, processing has not been performed on all pixels of the input image, that is, all of the pixels of the input image have been processed. If it is determined that the mixture ratio has not been output for the pixel of, the counter U is incremented by one in step S738, and the process returns to step S732.
[1020]
That is, the processes of steps S732 to S738 are repeated until the pixel to be processed in the input image is changed and the mixture ratio is calculated for all the pixels of the input image. The change of the pixel by the counter U may be, for example, a raster scan or the like, or may change sequentially according to other rules.
[1021]
If it is determined in step S737 that the processing has been performed on all the pixels of the input image, in step S739, the data acquisition unit 712 determines whether there is a next input image. If it is determined, the process returns to step S731, and the subsequent processes are repeated.
[1022]
If it is determined in step S739 that there is no next input image, the process ends.
[1023]
Through the above processing, the mixture ratio of each pixel is detected and output as continuity information.
[1024]
By the above-described method, for example, for a thin line image within a white line in the image shown in FIG. 158A, a change in the mixture ratio in a predetermined spatial direction X (= 561, 562, 563) is shown in FIG. 158B. I have. As shown in FIG. 158B, the change in the mixing ratio in the spatial direction Y that is continuous in the horizontal direction is such that when the spatial direction X = 563, the mixing ratio rises around the spatial direction Y = 660 and nears Y = 685. , And decreases to Y = 710. When the spatial direction X = 562, the mixture ratio rises near the spatial direction Y = 680, reaches a peak near Y = 705, and decreases to Y = 735. Further, when the spatial direction X = 561, the mixture ratio rises near the spatial direction Y = 705, reaches a peak near Y = 725, and decreases to Y = 755.
[1025]
Thus, as shown in FIG. 158B, the change of each mixing ratio in the continuous spatial direction X is the same as the change of the pixel value changing by the mixing ratio (the change of the pixel value shown in FIG. 133B). It can be seen that the mixture ratio of the pixels near the fine line is accurately represented because they are periodically continuous.
[1026]
Similarly, for the image of the binary edge within the white line in the image shown in FIG. 159A, the change in the mixture ratio in the predetermined spatial direction X (= 658, 659, 660) is shown in FIG. 159B. ing. As shown in FIG. 159B, the change in the mixture ratio in the spatial direction Y that is continuous in the horizontal direction is such that when the spatial direction X = 660, the mixture ratio rises near the spatial direction Y = 750 and nears Y = 765. And peaks. When the spatial direction X = 659, the mixture ratio rises near the spatial direction Y = 760 and reaches a peak near Y = 775. Further, when the spatial direction X = 658, the mixture ratio rises near the spatial direction Y = 770 and peaks near Y = 785.
[1027]
Thus, as shown in FIG. 159B, the change in the mixture ratio of the binary edge is almost the same as the change similar to the change in the pixel value (the change in the pixel value shown in FIG. 145B) that changes according to the mixture ratio. It can be seen that the mixture ratio of the pixel values near the binary edge is accurately represented because they are periodically continuous.
[1028]
According to the above, the mixture ratio of each pixel can be statistically obtained as data continuity information by the least square method. Further, it is possible to directly generate the pixel value of each pixel based on the mixture ratio.
[1029]
Further, when the change in the mixture ratio has a stationarity, and when the change in the mixture ratio is approximated by a linear one, a relationship represented by the following equation (82) is established.
[1030]
α = m × y + n (82)
[1031]
Here, m indicates the slope when the mixture ratio α changes with respect to the spatial direction Y, and n corresponds to the intercept when the mixture ratio α changes linearly.
[1032]
That is, as shown in FIG. 160, the straight line indicating the mixture ratio is a straight line indicating the boundary between the pixel value B corresponding to the level of the background area and the level L corresponding to the level of the thin line. The amount of change in the mixture ratio when the unit distance has advanced for Y is the slope m.
[1033]
Therefore, the following equation (83) is derived by substituting equation (82) into equation (77).
[1034]
M = (m * y + n) * B + (1- (m * y + n)) * L (83)
[1035]
Further, when this equation (83) is expanded, the following equation (84) is derived.
[1036]
M−L = (y × B−y × L) × m + (B−L) × n (84)
[1037]
In the equation (84), m in the first term indicates a spatial gradient of the mixture ratio, and the second term indicates an intercept of the mixture ratio. Therefore, it is also possible to generate and obtain a normal equation using m and n in the above equation (84) using the least square method of two variables.
[1038]
However, the inclination m of the mixture ratio α is the inclination of the thin line or the binary edge (the inclination G described above).f) Itself, the gradient G of the thin line or the binary edge is determined in advance using the method described above.fThen, by using the slope and substituting it into equation (84), it becomes a function of one variable for the term of the intercept, and is obtained by the least square method of one variable in the same manner as described above. Is also good.
[1039]
In the above example, the data continuity detection unit 101 that detects the thin line in the spatial direction, the angle (inclination) of the binary edge, or the mixture ratio as the data continuity information has been described. May correspond to the angle in the spatial direction obtained by replacing any of the axes (space directions X, Y) with the axis in the time direction (frame direction) T. That is, the one corresponding to the angle obtained by replacing any of the axes in the space (the spatial directions X and Y) with the axis in the time direction (frame direction) T is the motion vector of the object (the direction of the motion vector). ).
[1040]
More specifically, as shown in FIG. 161A, when the object is moving upward in the space direction Y in the space direction Y as time progresses, a portion corresponding to a thin line in the diagram (a portion corresponding to FIG. 131A). In the comparison, the locus of the movement of the object appears. Accordingly, in FIG. 161A, the inclination of the thin line in the time direction T indicates the direction in which the object moves (the angle indicating the movement of the object) (equivalent to the direction of the motion vector). Therefore, in the real world, in a frame at a predetermined time indicated by an arrow in FIG. 161A, a portion that becomes the trajectory of the object becomes the (color) level of the object as shown in FIG. , A pulse-like waveform having a background level.
[1041]
Thus, when the moving object is imaged by the sensor 2, as shown in FIG. 162A, the distribution of the pixel values of each pixel of the frame from the time T1 to T3 is represented by a space as shown in FIG. 162B. A mountain-shaped waveform is formed in each of the directions Y. This relationship can be considered to be the same as the relationship in the spatial directions X and Y described with reference to FIGS. 132A and 132B. Therefore, when there is a motion in the object with respect to the frame direction T, the direction of the motion vector of the object is converted into the data continuity by the same method as the information of the inclination of the thin line or the angle (inclination) of the binary edge described above. It can also be obtained as information. In FIG. 162B, in the frame direction T (time direction T), each square is a shutter time forming one frame image.
[1042]
Similarly, as shown in FIG. 163A, when the object moves in the spatial direction Y for each frame direction T, as shown in FIG. 163B, the space on the frame corresponding to the predetermined time T1 In the direction Y, each pixel value is obtained corresponding to the movement of the object. At this time, for example, as shown in FIG. 163C, the pixel value of the pixel surrounded by the solid black line in FIG. 163B is obtained by mixing the background level and the object level in the frame direction in accordance with the motion of the object. The pixel values are mixed at the ratio β.
[1043]
This relationship is similar to the relationship described with reference to FIGS. 155A, 155B, and 155C.
[1044]
Further, as shown in FIG. 164, the level O of the object and the level B of the background can be linearly approximated by a mixture ratio β in the frame direction (time direction). This relationship is similar to the linear approximation of the mixture ratio in the spatial direction described with reference to FIG.
[1045]
Therefore, the mixing ratio β in the time (frame) direction can be obtained as the data continuity information by the same method as the mixing ratio α in the spatial direction.
[1046]
Further, either one of the frame direction and the spatial direction may be selected to determine the steadiness angle or the direction of the motion vector. Similarly, the mixture ratios α and β may be selectively determined. May be requested.
[1047]
According to the above, a real-world optical signal is projected, an area corresponding to a target pixel in image data in which a part of the continuity of the real-world optical signal is missing is selected, and a missing area in the selected area is selected. A feature for detecting an angle with respect to a reference axis of continuity of image data corresponding to continuity of an optical signal in the real world is detected, and an angle is statistically detected based on the detected feature. Since the optical signal is estimated by estimating the stationarity of the missing optical signal in the real world based on the angle with respect to the reference axis of the stationarity, the angle of stationarity (the direction of the motion vector) or ( It is possible to determine the mixing ratio (spatiotemporal).
[1048]
Next, with reference to FIG. 165, the data continuity information detection unit 101 that outputs information of an area to be processed using the data continuity information as the data continuity information will be described.
[1049]
The angle detection unit 801 detects an angle in the spatial direction of a region having stationarity in the input image, that is, a portion forming a thin line or binary edge having stationarity on the image, and detects the detected angle. Output to the real world estimation unit 802. The angle detecting section 801 is similar to the data continuity detecting section 101 in FIG.
[1050]
The real world estimation unit 802 estimates the real world based on the angle indicating the direction of the data continuity input from the angle detection unit 801 and information on the input image. That is, the real-world estimating unit 802 obtains, from the input angle and each pixel of the input image, a coefficient of an approximate function that approximately describes the intensity distribution of the optical signal in the real world, and calculates the obtained coefficient of the real world. The result is output to the error calculation unit 803 as the estimation result. The real world estimating unit 802 is the same as the real world estimating unit 102 in FIG.
[1051]
The error calculation unit 803 configures an approximate function indicating the light intensity distribution of the light in the real world, which is approximately described, based on the coefficient input from the real world estimation unit 802, and further, based on the approximate function, The intensity of light corresponding to the pixel position is integrated, a pixel value of each pixel is generated from the light intensity distribution estimated by the approximation function, and the difference between the pixel value and the actually input pixel value is used as an error by the comparison unit 804. Output.
[1052]
The comparing unit 804 compares the error input from the error calculating unit 803 for each pixel with a preset threshold value to determine whether the pixel is to be processed using the continuity information, The area is identified, and the area information in which the processing area for performing processing using the continuity information and the non-processing area are identified is output as continuity information.
[1053]
Next, with reference to the flowchart of FIG. 166, a description will be given of the processing of the continuity detection by the data continuity detecting unit 101 of FIG. 165.
[1054]
In step S801, the angle detection unit 801 acquires an input image, and in step S802, detects an angle indicating a direction of stationarity. More specifically, the angle detection unit 801 detects, for example, a thin line when the horizontal direction is used as a reference axis, or an angle indicating the direction of continuity of a binary edge, and outputs the angle to the real world estimation unit 802. I do.
[1055]
In step S803, the real-world estimating unit 802 approximates the function F (x) expressing the real world based on the information on the angle input from the angle detecting unit 801 and the information on the input image. The coefficient of the approximation function f (x) is obtained and output to the error calculation unit 803. That is, the approximation function f (x) representing the real world is represented by a one-dimensional polynomial such as the following equation (85).
[1056]
[Equation 60]
Figure 2004246526
Figure 2004246526
[1057]
Here, wi is a coefficient of a polynomial, and the real world estimating unit 802 obtains the coefficient wi and outputs it to the error calculating unit 803. Further, the inclination can be obtained from the direction of the stationarity based on the angle input from the angle detection unit 801 (Gf= Tan-1θ, Gf: Inclination, θ: angle).fBy substituting the following constraint condition, the above equation (85) can be described by a two-dimensional polynomial as shown by the following equation (86).
[1058]
[Equation 61]
Figure 2004246526
Figure 2004246526
[1059]
That is, the above equation (86) is obtained by calculating the shift width caused by the one-dimensional approximation function f (x) described in the equation (85) moving parallel to the spatial direction Y by the shift amount α (= − dy / Gf: Dy describes a two-dimensional function f (x, y) obtained by expressing it in the spatial direction Y).
[1060]
Therefore, the real world estimating unit 802 solves each coefficient wi of the above equation (86) using the input image and the information of the angle in the stationary direction, and outputs the obtained coefficient wi to the error calculating unit 803. I do.
[1061]
Here, the description returns to the flowchart of FIG.
[1062]
In step S804, the error calculation unit 803 performs re-integration for each pixel from the coefficient input from the real world estimation unit 802. That is, the error calculation unit 803 integrates the above equation (86) for each pixel from the coefficient input from the real world estimation unit 802 as shown in the following equation (87).
[1063]
(Equation 62)
Figure 2004246526
Figure 2004246526
[1064]
Where SSShows the integration result in the spatial direction shown in FIG. As shown in FIG. 167, the integration range is x in the spatial direction X.mOr xm + BAnd for the spatial direction Y, ymOr ym + AIt is. In FIG. 167, each square (square) indicates one pixel, and is 1 in both spatial directions X and Y.
[1065]
Accordingly, as shown in FIG. 168, the error calculation unit 803 determines x for the spatial direction X of the curved surface represented by the approximate function f (x, y).mOr xm + 1, And y in the spatial direction YmOr ym + 1In (A = B = 1), an integration operation represented by the following equation (88) is performed for each pixel, and each of the pixels is obtained by spatially integrating an approximation function that approximately represents the real world. Pixel value P of pixelSIs calculated.
[1066]
[Equation 63]
Figure 2004246526
Figure 2004246526
[1067]
That is, by this processing, the error calculation unit 803 functions as a kind of a pixel value generation unit, and generates a pixel value from an approximate function.
[1068]
In step S805, the error calculator 803 calculates the difference between the pixel value obtained by the integration as shown in the above equation (88) and the pixel value of the input image, and uses the difference as an error in the comparator 804. Output. That is, the error calculation unit 803 determines the integration range (x in the spatial direction X) shown in FIGS. 167 and 168 described above.mOr xm + 1, And y in the spatial direction YmOr ym + 1The difference between the pixel value of the pixel corresponding to ()) and the pixel value obtained by the integration result of the range corresponding to the pixel is obtained as an error and output to the comparison unit 804.
[1069]
In step S806, the comparison unit 804 determines whether the absolute value of the error between the pixel value obtained by the integration input from the error calculation unit 803 and the pixel value of the input image is equal to or smaller than a predetermined threshold. .
[1070]
If it is determined in step S806 that the error is equal to or less than the predetermined threshold, in step S807, the comparing unit 804 determines that the pixel value obtained by the integration is close to the pixel value of the pixel of the input image. Therefore, it is assumed that the approximation function set in calculating the pixel value of the pixel is sufficiently similar to the light intensity distribution of the optical signal in the real world, and the area of the pixel just processed is included in the stationarity information. It is recognized as a processing area in which processing based on an approximate function based on the processing area is performed. More specifically, the comparison unit 804 causes a memory (not shown) to store that the pixel just processed is a pixel in a subsequent processing area.
[1071]
On the other hand, when it is determined in step S806 that the error is not less than the predetermined threshold, in step S808, the comparison unit 804 determines that the pixel value obtained by the integration is different from the actual pixel value. Therefore, it is considered that the approximation function set in calculating the pixel value of the pixel does not sufficiently approximate the light intensity distribution of the optical signal in the real world, and the area of the pixel just processed is determined by the continuity information in the subsequent stage. Is recognized as a non-processing area where the processing by the approximation function based on is not performed. More specifically, the comparing unit 804 causes a memory (not shown) to store that the area of the currently processed pixel is a subsequent non-processing area.
[1072]
In step S809, the comparing unit 804 determines whether or not the processing has been performed on all the pixels. If it is determined that the processing has not been performed on all the pixels, the processing returns to step S802. Subsequent processing is repeated. That is, for all the pixels, the pixel values obtained by integration are compared with the input pixel values, and the processing of steps S802 to S809 is repeated until the processing of determining whether or not the pixel is a processing area is completed.
[1073]
In step S809, for all the pixels, the pixel value obtained by the reintegration is compared with the input pixel value, and when it is determined that the determination processing as to whether or not the pixel is in the processing area is completed, in step S810, The comparing unit 804 stores a processing area based on spatial direction continuity information in a subsequent process on an input image stored in a memory (not shown) and a processing area based on spatial direction continuity information. The region information in which the non-processed region not subjected to is identified is output as continuity information.
[1074]
According to the above processing, the pixel value obtained by the integration result of the range corresponding to each pixel using the approximation function f (x) calculated based on the continuity information, and the pixel value in the actual input image Is evaluated for each region (for each pixel) based on the error of the approximation function, and a region having a small error, that is, a pixel value obtained by integration based on the approximation function is calculated as follows. Only areas where pixels are likely to exist are treated as processing areas, and other areas are treated as non-processing areas, so that processing based on spatial continuity information can be performed only on areas that are likely to be necessary. Processing can be executed only, so that the processing speed can be improved, and the processing can be executed only in a certain area, so that image quality deterioration due to this processing can be suppressed. It is possible.
[1075]
Next, with reference to FIG. 169, another embodiment of the data continuity information detection unit 101 that outputs area information in which a pixel to be processed using the data continuity information is present as the data continuity information will be described. .
[1076]
The motion detection unit 821 determines a region having stationarity in the input image, that is, a motion having stationarity in the frame direction on the image (the direction of the motion vector: Vf) Is detected, and the detected motion is output to the real world estimation unit 822. The motion detecting section 821 is the same as the data continuity detecting section 101 in FIG.
[1077]
The real world estimating unit 822 estimates the real world based on the data continuity motion input from the motion detecting unit 821 and information on the input image. That is, the real world estimating unit 822 obtains an input function and an approximate function coefficient that approximately describes the intensity distribution of the real world optical signal in the frame direction (time direction) from each pixel of the input image, The obtained coefficient is output to the error calculation unit 823 as the estimation result of the real world. The real world estimating unit 822 is the same as the real world estimating unit 102 in FIG.
[1078]
The error calculation unit 823 forms an approximate function indicating the intensity distribution of the light in the frame direction described in the frame direction, which is approximately described, based on the coefficient input from the real world estimation unit 822. Integrate the light intensity corresponding to each pixel position for each frame, generate pixel values for each pixel from the light intensity distribution estimated by the approximation function, and use the difference from the actually input pixel value as an error. Output to comparison section 824.
[1079]
The comparing unit 824 compares the error input from the error calculating unit 823 for each pixel with a preset threshold value to determine the processing area where the pixel to be processed using the continuity information exists, The area is identified, and the area information in which the processing area for performing processing using the continuity information and the non-processing area are identified is output as continuity information.
[1080]
Next, with reference to the flowchart of FIG. 170, the processing of the continuity detection by the data continuity detecting unit 101 of FIG. 169 will be described.
[1081]
In step S821, the motion detection unit 801 acquires an input image, and in step S822, detects a motion indicating continuity. More specifically, for example, the motion detection unit 801 determines the motion of the moving object in the input image (the direction of the motion vector: Vf) Is detected and output to the real world estimation unit 822.
[1082]
In step S823, the real world estimation unit 822 approximately describes a function F (t) in the frame direction representing the real world based on the information on the motion input from the motion detection unit 821 and the information on the input image. Then, a coefficient of a function f (t) composed of a polynomial is calculated and output to the error calculator 823. That is, the function f (t) expressing the real world is represented by a one-dimensional polynomial such as the following equation (89).
[1083]
[Equation 64]
Figure 2004246526
Figure 2004246526
[1084]
Here, wi is a coefficient of a polynomial, and the real world estimating unit 822 obtains the coefficient wi and outputs it to the error calculating unit 823. Furthermore, the motion input from the motion detection unit 821 can determine a stationary motion (Vf= Tan-1θv, Vf: Tilt of the motion vector in the frame direction, θv: angle of the motion vector in the frame direction). By substituting the constraint condition of this tilt, the above equation (89) is expressed by the following equation (90). Can be described by a two-dimensional polynomial.
[1085]
[Equation 65]
Figure 2004246526
Figure 2004246526
[1086]
That is, the above equation (90) is obtained by calculating the shift width caused by the one-dimensional approximation function f (t) described in the equation (89) being translated in the spatial direction Y, by the shift amount αt (= − dy). / Vf: Dy describes a two-dimensional function f (t, y) obtained by expressing it in the spatial direction Y).
[1087]
Therefore, the real world estimating unit 822 solves each coefficient wi of the above equation (90) using the input image and the information of the stationary motion, and outputs the obtained coefficient wi to the error calculating unit 823. .
[1088]
Here, the description returns to the flowchart of FIG.
[1089]
In step S824, the error calculation unit 823 performs integration of each pixel in the frame direction from the coefficient input from the real world estimation unit 822. That is, the error calculator 823 integrates the above equation (90) for each pixel from the coefficient input from the real world estimator 822 as shown in the following equation (91).
[1090]
[Equation 66]
Figure 2004246526
Figure 2004246526
[1091]
Where StShows the integration result in the frame direction shown in FIG. Further, as shown in FIG. 171, the integration range is T in the frame direction T.mOr Tm + BAnd for the spatial direction Y, ymOr ym + AIt is. In FIG. 171, each square (square) indicates one pixel, and both the frame direction T and the spatial direction Y are one. Here, “1” in the frame direction T means that the shutter time for one frame is “1”.
[1092]
Therefore, as shown in FIG. 172, the error calculation unit 823 sets the T in the spatial direction T of the curved surface represented by the approximate function f (t, y).mOr Tm + 1, And y in the spatial direction YmOr ym + 1In (A = B = 1), an integration operation as shown in the following equation (92) is performed for each pixel, and the pixel value P of each pixel obtained from a function that approximately represents the real world is obtained.tIs calculated.
[1093]
[Equation 67]
Figure 2004246526
Figure 2004246526
[1094]
That is, by this processing, the error calculation unit 823 functions as a kind of pixel value generation unit, and generates a pixel value from an approximate function.
[1095]
In step S825, the error calculation unit 803 calculates a difference between the pixel value obtained by the integration as shown in the above equation (92) and the pixel value of the input image, and uses the difference as an error in the comparison unit 824. Output. That is, the error calculation unit 823 calculates the integration range (T in the spatial direction T shown in FIGS. 171 and 172 described above).mOr Tm + 1, And y in the spatial direction YmOr ym + 1The difference between the pixel value of the pixel corresponding to ()) and the pixel value obtained from the integration result of the range corresponding to the pixel is obtained as an error and output to the comparing unit 824.
[1096]
In step S826, the comparing unit 824 determines whether or not the absolute value of the error between the pixel value obtained by the integration input from the error calculating unit 823 and the pixel value of the input image is equal to or smaller than a predetermined threshold. .
[1097]
If it is determined in step S826 that the error is equal to or less than the predetermined threshold, in step S827, the comparing unit 824 determines that the pixel value obtained by the integration is close to the pixel value of the input image. It is considered that the approximation function set in calculating the pixel value of the pixel is sufficiently approximated to the light intensity distribution of the optical signal in the real world, and the area of the pixel just processed is recognized as a processing area. More specifically, the comparing unit 824 causes a memory (not shown) to store that the pixel just processed is a pixel in a subsequent processing area.
[1098]
On the other hand, when it is determined in step S826 that the error is not smaller than or equal to the predetermined threshold, in step S828, the comparing unit 824 determines that the pixel value obtained by the integration is different from the actual pixel value. Therefore, the approximation function set in calculating the pixel value of the pixel is considered to be not sufficiently approximated to the light intensity distribution in the real world, and the area of the pixel just processed is based on the continuity information in the subsequent stage. It is recognized as a non-processing area where the processing by the approximate function is not performed. More specifically, the comparing unit 824 causes a memory (not shown) to store that the area of the pixel just processed is a non-processing area thereafter.
[1099]
In step S829, the comparing unit 824 determines whether or not the process has been performed on all the pixels. If it is determined that the process has not been performed on all the pixels, the process returns to step S822. Subsequent processing is repeated. That is, for all the pixels, the pixel values obtained by integration and the input pixel values are compared, and the processing of steps S822 to S829 is repeated until the processing of determining whether or not the pixel is a processing area is completed.
[1100]
In step S829, for all the pixels, the pixel value obtained by the reintegration is compared with the input pixel value, and when it is determined that the determination processing as to whether or not the pixel is the processing area is completed, in step S830, The comparing unit 824 performs processing based on the continuity information in the frame direction on the input image, which is stored in a memory (not shown). The region information in which the non-processed region not subjected to is identified is output as continuity information.
[1101]
According to the above processing, the pixel value obtained by the integration result of the range corresponding to each pixel using the approximate function f (t) calculated based on the continuity information, and the pixel value in the actual input image And the likelihood of the approximation function expression is evaluated for each region (for each pixel) based on the error of the approximation function. Only the region where there is a certain pixel is regarded as the processing region, and the other region is regarded as the non-processing region, so that it is possible to perform processing based on the continuity information in the frame direction only for the certain region. Can be executed only, the processing speed can be improved, and the processing can be executed only in a certain area, so that the image quality deterioration due to this processing is suppressed. It becomes possible.
[1102]
By combining the configurations of the data continuity information detecting unit 101 of FIGS. 165 and 169, one of the spatio-temporal directions may be selected and the area information may be selectively output.
[1103]
According to the above, a real-world optical signal is projected by a plurality of detection elements of a sensor, each having a spatio-temporal integration effect, and a part of the continuity of the real-world optical signal is lacking, and is projected by a detection element. Detecting the continuity of data in the image data composed of a plurality of pixels having pixel values, and corresponding to the detected continuity, the pixel of each pixel corresponding to at least one-dimensional position in the spatiotemporal direction of the image data A function corresponding to a real-world optical signal is estimated by approximating a function corresponding to a real-world optical signal assuming that the value is a pixel value obtained by at least a one-dimensional direction integration effect. A difference value between a pixel value obtained by integrating at least a unit corresponding to each pixel in the one-dimensional direction and a pixel value of each pixel is detected, and a function is selectively output according to the difference value. Therefore, it is possible to set only a region where a pixel having a pixel value obtained by integration based on an approximation function is likely to be a processing region and a region other than that as a non-processing region, Only the necessary processing can be executed based on the continuity information in the frame direction, and only the necessary processing can be executed, so that the processing speed can be improved and the processing is executed only in a certain area. Therefore, it is possible to suppress image quality deterioration due to this processing.
[1104]
Next, estimation of the signal of the real world 1 will be described.
[1105]
FIG. 173 is a block diagram illustrating a configuration of the real world estimation unit 102.
[1106]
The real world estimation unit 102 having the configuration shown in FIG. 173 detects the width of the thin line in the image that is the signal of the real world 1 based on the input image and the data continuity information supplied from the continuity detection unit 101. Then, the level of the thin line (the light intensity of the signal in the real world 1) is estimated.
[1107]
The line width detecting unit 2101 detects the width of the thin line based on the data continuity information indicating the stationary region, which is a thin line region and is composed of pixels onto which the image of the thin line is projected, supplied from the continuity detecting unit 101. . The line width detecting unit 2101 supplies the signal level estimating unit 2102 with thin line width information indicating the width of the detected thin line, together with the data continuity information.
[1108]
The signal level estimating unit 2102 calculates the level of a thin line image, which is a signal of the real world 1, based on the input image, thin line width information indicating the width of the thin line supplied from the line width detecting unit 2101, and data continuity information. That is, the level of light intensity is estimated, and real world estimation information indicating the width of the thin line and the level of the image of the thin line is output.
[1109]
FIG. 174 and FIG. 175 are diagrams illustrating a process of detecting the width of a fine line in a signal of the real world 1.
[1110]
In FIGS. 174 and 175, a region surrounded by a thick line (a region formed by four squares) indicates one pixel, a region surrounded by a dotted line indicates a thin line region formed by pixels onto which a thin line image is projected, and a circle. Indicates the center of gravity of the thin line region. In FIG. 174 and FIG. 175, hatched lines indicate images of fine lines incident on the sensor 2. It can also be said that the oblique line indicates an area where the image of the thin line of the real world 1 is projected on the sensor 2.
[1111]
In FIGS. 174 and 175, S indicates the inclination calculated from the position of the center of gravity of the thin line region, and D indicates the overlap of the thin line region. Here, the slope S is the distance between the centers of gravity in pixels because the thin line areas are adjacent to each other. Further, the overlap D of the thin line regions is the number of adjacent pixels in two thin line regions.
[1112]
In FIGS. 174 and 175, W indicates the width of the thin line.
[1113]
In FIG. 174, the slope S is 2, and the overlap D is 2.
[1114]
In FIG. 175, the slope S is 3, and the overlap D is 1.
[1115]
Since the distance between the center of gravity and the center of gravity in the direction in which the thin line region is adjacent and the thin line region is adjacent is one pixel, W: D = 1: S is established, and the width W of the thin line is obtained by the overlap D / slope S. be able to.
[1116]
For example, as shown in FIG. 174, when the slope S is 2 and the overlap D is 2, 2/2 is 1, so the width W of the thin line is 1. For example, as shown in FIG. 175, when the slope S is 3 and the overlap D is 1, the width W of the thin line is 1/3.
[1117]
The line width detection unit 2101 detects the width of the thin line from the inclination calculated from the position of the center of gravity of the thin line region and the overlap of the thin line regions.
[1118]
FIG. 176 is a diagram illustrating a process of estimating a signal level of a thin line signal in a signal of the real world 1.
[1119]
In FIG. 176, a region surrounded by a thick line (a region formed by four squares) indicates one pixel, and a region surrounded by a dotted line indicates a thin line region formed by pixels onto which a thin line image is projected. In FIG. 176, E indicates the length of the thin line region in units of pixels in the thin line region, and D indicates the overlap of the thin line regions (the number of pixels adjacent to other thin line regions).
[1120]
The level of the signal of the thin line is approximated to be constant within the processing unit (the thin line area), and the level of the image other than the thin line projected on the pixel value of the pixel on which the thin line is projected is the level of the adjacent pixel. Approximate to be equal to the level for the pixel value.
[1121]
Assuming that the level of the thin line signal is C, the level of the left portion of the portion of the signal (image) projected on the thin line region where the thin line signal is projected is A, and the thin line in the diagram is Let B be the level of the part on the right side of the part where the signal is projected.
[1122]
At this time, equation (93) holds.
[1123]
Sum of pixel values in thin line region = (ED) / 2 * A + (ED) / 2 * B + D * C (93)
[1124]
Since the width of the thin line region is constant and the width of the thin line region is one pixel, the area of the thin line (the portion where the signal is projected) of the thin line region is equal to the overlap D of the thin line region. Since the width of the fine line region is one pixel, the area of the fine line region in units of pixels of the fine line region is equal to the length E of the fine line region.
[1125]
In the thin line region, the area on the left side of the thin line is (ED) / 2. In the thin line region, the area on the right side of the thin line is (ED) / 2.
[1126]
The first term on the right side of Expression (93) is a portion of a pixel value where a signal of the same level as that of a signal projected on a pixel adjacent to the left is projected, and can be expressed by Expression (94). it can.
[1127]
[Equation 68]
Figure 2004246526
Figure 2004246526
[1128]
In equation (94), AiIndicates the pixel value of the pixel adjacent to the left side.
[1129]
In equation (94), αiIndicates a ratio of an area where a signal having the same level as a signal projected to a pixel adjacent to the left side is projected to a pixel in a thin line region. That is, αiIndicates the proportion of the same pixel value as the pixel value of the pixel adjacent to the left, which is included in the pixel value of the pixel in the thin line region.
[1130]
i indicates the position of the pixel adjacent to the left side of the thin line region.
[1131]
For example, in FIG. 176, the pixel value A of the pixel adjacent to the left side of the thin line region included in the pixel value of the pixel in the thin line region0The ratio of the same pixel value as α0It is. In FIG. 176, the pixel value A of the pixel adjacent to the left side of the thin line region included in the pixel value of the pixel in the thin line region1The ratio of the same pixel value as α1It is. In FIG. 176, the pixel value A of the pixel adjacent to the left side of the thin line region included in the pixel value of the pixel in the thin line region2The ratio of the same pixel value as α2It is.
[1132]
The second term on the right side of Expression (93) is a portion of a pixel value where a signal of the same level as the level of the signal projected on the right adjacent pixel is projected, and can be expressed by Expression (95). it can.
[1133]
[Equation 69]
Figure 2004246526
Figure 2004246526
[1134]
In equation (95), BjIndicates the pixel value of the pixel adjacent to the right side.
[1135]
In equation (95), βjIndicates a ratio of an area where a signal having the same level as a signal projected to a pixel adjacent to the right side is projected to a pixel in a thin line region. That is, βjIndicates the ratio of the same pixel value as the pixel value of the pixel adjacent to the right included in the pixel value of the pixel in the thin line region.
[1136]
j indicates the position of a pixel adjacent to the right side of the thin line region.
[1137]
For example, in FIG. 176, the pixel value B of the pixel adjacent to the right side of the thin line region included in the pixel value of the pixel in the thin line region0The ratio of the same pixel value as β0It is. In FIG. 176, the pixel value B of the pixel adjacent to the right side of the thin line region included in the pixel value of the pixel in the thin line region1The ratio of the same pixel value as β1It is. In FIG. 176, the pixel value B of the pixel adjacent to the right side of the thin line region included in the pixel value of the pixel in the thin line region2The ratio of the same pixel value as β2It is.
[1138]
As described above, the signal level estimating unit 2102 calculates the pixel values of the image other than the thin line out of the pixel values included in the thin line region based on Expressions (94) and (95), and calculates Expression (93). , The pixel values of the image other than the fine line are removed from the pixel values of the fine line region, thereby obtaining the pixel value of the image of only the fine line among the pixel values included in the fine line region. Then, the signal level estimating unit 2102 obtains the signal level of the thin line from the pixel value of the image of only the thin line and the area of the thin line. More specifically, the signal level estimating unit 2102 divides the pixel value of the image of only the thin line among the pixel values included in the thin line region by the area of the thin line in the thin line region, that is, the overlap D of the thin line region. , The signal level of the thin line is calculated.
[1139]
The signal level estimating unit 2102 outputs real world estimation information indicating the width of the thin line and the level of the thin line signal in the signal of the real world 1.
[1140]
In the method of the present invention, since the waveform of the thin line is described geometrically instead of the pixel, any resolution can be used.
[1141]
Next, the process of estimating the real world corresponding to the process of step S102 will be described with reference to the flowchart in FIG.
[1142]
In step S2101, the line width detection unit 2101 detects the width of a thin line based on the data continuity information. For example, the line width detection unit 2101 estimates the width of the thin line in the signal of the real world 1 by dividing the overlap by the slope from the inclination calculated from the position of the center of gravity of the thin line region and the overlap of the thin line region. .
[1143]
In step S2102, the signal level estimating unit 2102 estimates the signal level of the thin line based on the width of the thin line and the pixel value of the pixel adjacent to the thin line region, and estimates the estimated width of the thin line and the level of the thin line signal. Is output, and the process ends. For example, the signal level estimating unit 2102 calculates a pixel value at which an image other than a thin line included in the thin line region is projected, and removes a pixel value at which an image other than the thin line is projected from the thin line region, thereby removing only the thin line. By calculating the pixel value at which the image is projected and calculating the signal level of the thin line from the pixel value at which the image of only the thin line is projected and the area of the thin line, the thin line in the signal of the real world 1 is obtained. Estimate the level of
[1144]
As described above, the real world estimating unit 102 can estimate the width and level of the thin line of the signal of the real world 1.
[1145]
As described above, the optical signal of the real world is projected, the stationarity of the data of the first image data in which a part of the stationarity of the optical signal of the real world is missing is detected, and the stationarity of the data is detected. Based on a model representing the waveform of the optical signal in the real world, the waveform of the optical signal in the real world is estimated from the continuity of the first image data, and the estimated optical signal is converted into the second image data. In this case, a more accurate and more accurate processing result can be obtained for the optical signal in the real world.
[1146]
FIG. 178 is a block diagram illustrating another configuration of the real world estimation unit 102.
[1147]
In the real world estimating unit 102 having the configuration shown in FIG. 178, the region is detected again based on the input image and the data continuity information supplied from the data continuity detecting unit 101, and based on the detected region again. The width of the thin line in the image that is the signal of the real world 1 is detected, and the light intensity (level) of the signal of the real world 1 is estimated. For example, in the real-world estimating unit 102 having the configuration shown in FIG. 178, a stationary region composed of pixels onto which a thin-line image is projected is detected again, and based on the detected region, a signal of the real world 1 is obtained. The width of the thin line in the image is detected, and the light intensity of the signal of the real world 1 is estimated.
[1148]
The data continuity information supplied from the data continuity detecting unit 101 and input to the real world estimating unit 102 whose configuration is shown in FIG. Non-stationary component information indicating non-stationary components other than the component, monotone increasing / decreasing region information indicating a monotonic increasing / decreasing region in the steady region, information indicating a steady region, and the like are included. For example, the non-stationary component information included in the data continuity information includes a slope and an intercept of a plane approximating a non-stationary component such as a background in the input image.
[1149]
The data continuity information input to the real world estimation unit 102 is supplied to the boundary detection unit 2121. The input image input to the real world estimation unit 102 is supplied to the boundary detection unit 2121 and the signal level estimation unit 2102.
[1150]
The boundary detection unit 2121 generates, from the non-stationary component information included in the data continuity information and the input image, an image including only the stationary component on which the fine line image is projected, and based on the image including only the stationary component, By calculating the distribution ratio indicating the ratio of the projection of the thin line image, which is the signal of the real world 1 projected on the pixel, and calculating the regression line indicating the boundary of the thin line region from the calculated distribution ratio, the steady state is obtained. The thin line area, which is the area, is detected again.
[1151]
FIG. 179 is a block diagram illustrating a configuration of the boundary detection unit 2121.
[1152]
The distribution ratio calculation unit 2131 generates, from the data continuity information, the non-stationary component information included in the data continuity information, and the input image, an image including only the stationary component on which the fine line image is projected. More specifically, the distribution ratio calculation unit 2131 detects an adjacent monotone increase / decrease region in the steady region from the input image based on the monotone increase / decrease region information included in the data continuity information, and detects the detected monotone increase / decrease region. By subtracting the approximate value approximated by the plane indicated by the slope and intercept included in the steady-state component information from the pixel value of the pixel belonging to the increase / decrease area, an image consisting of only the steady-state component projected on the thin line image is generated. I do.
[1153]
The distribution ratio calculation unit 2131 subtracts the approximate value approximated by the plane indicated by the slope and intercept included in the steady component information from the pixel value of the pixel of the input image, thereby projecting the thin line image. An image composed of only the stationary component may be generated.
[1154]
The distribution ratio calculation unit 2131 distributes a thin line image, which is a signal of the real world 1, to two pixels belonging to adjacent monotone increasing / decreasing regions in the stationary region based on the generated image including only the stationary component. Calculate the distribution ratio indicating the ratio. The distribution ratio calculation unit 2131 supplies the calculated distribution ratio to the regression line calculation unit 2132.
[1155]
With reference to FIGS. 180 to 182, a process of calculating the distribution ratio in the distribution ratio calculation unit 2131 will be described.
[1156]
The numerical values in the two columns on the left side of FIG. 180 are obtained by subtracting an approximate value approximated by a plane indicated by the slope and intercept included in the stationary component information from the pixel values of the input image. The pixel values of two columns of pixels are shown vertically. Two regions surrounded by a square on the left side of FIG. 180 indicate a monotone increase / decrease region 2141-1 and a monotone increase / decrease region 2141-2 which are two adjacent monotone increase / decrease regions. That is, the numerical values shown in the monotone increase / decrease area 2141-1 and the monotone increase / decrease area 2141-2 indicate the pixel values of the pixels belonging to the monotone increase / decrease area which is the continuity area detected by the data continuity detection unit 101.
[1157]
The numerical value in one column on the right side in FIG. 180 indicates a value obtained by adding the pixel values of the pixels arranged horizontally among the pixel values of the pixels in the two columns on the left side in FIG. That is, the numerical value in one column on the right side of FIG. 180 is a monotone increasing / decreasing area composed of one column of pixels vertically, and a thin line image is projected for each two horizontally adjacent pixels for two adjacent pixels. Indicates a value obtained by adding pixel values.
[1158]
For example, when each pixel is composed of pixels in one column vertically and belongs to one of the adjacent monotone increase / decrease regions 2141-1 and 2141-2, and the pixel values of the horizontally adjacent pixels are 2 and 58, , Is 60. Each pixel is composed of pixels in one column vertically, belongs to either the monotone increasing / decreasing area 2141-1 or the monotonous increasing / decreasing area 2141-2 adjacent thereto, and when the pixel values of the horizontally adjacent pixels are 1 and 65, the addition is performed. The value obtained is 66.
[1159]
Numerical values in one column on the right side of FIG. 180, that is, values obtained by adding pixel values projected from a thin line image to pixels that are composed of pixels in one column vertically and horizontally adjacent to two adjacent monotone increasing / decreasing areas. Is almost constant.
[1160]
Similarly, the value obtained by adding the pixel values of the thin line image projected to the vertically adjacent pixels of two adjacent monotone increasing / decreasing areas, which are composed of one row of pixels, is substantially constant.
[1161]
The distribution ratio calculation unit 2131 uses the property that the value obtained by adding the pixel values to which the fine line image is projected becomes substantially constant for the adjacent pixels of the two adjacent monotonous increase / decrease regions, and makes the thin line image 1 It calculates how it is distributed to the pixel values of the pixels in the column.
[1162]
As shown in FIG. 181, the distribution ratio calculation unit 2131 calculates a pixel value of a pixel belonging to two adjacent pixels, which is a monotonically increasing / decreasing area composed of one column of pixels, for each horizontally adjacent pixel. The distribution ratio is calculated for each pixel belonging to two adjacent monotone increasing / decreasing regions by dividing by the value obtained by adding the pixel values onto which the fine line image is projected. However, as a result of the calculation, 100 is set for the distribution ratio exceeding 100.
[1163]
For example, as shown in FIG. 181, when a pixel value of a horizontally adjacent pixel belonging to two adjacent ones in a monotonously increasing / decreasing region composed of one column of pixels is 2 and 58, respectively. Since the sum is 60, distribution ratios of 3.5 and 95.0 are calculated for each pixel. When the pixel values of horizontally adjacent pixels belonging to two adjacent ones belonging to two adjacent ones are 1 and 65, respectively, since the added value is 65, the added value is 65. For pixels, distribution ratios of 1.5 and 98.5 are calculated.
[1164]
In this case, when three monotone increasing / decreasing areas are adjacent to each other, the column from which the calculation is performed is determined by adding a pixel value onto which a thin line image is projected for each horizontally adjacent pixel as shown in FIG. The distribution ratio is calculated based on the value closer to the pixel value of the vertex P among the two values.
[1165]
For example, when the pixel value of the vertex P is 81 and the pixel value of the pixel belonging to the monotone increasing / decreasing area of interest is 79, the pixel value of the pixel adjacent to the left is 3 and the pixel value of the pixel adjacent to the right is When the pixel value is −1, the value obtained by adding the pixel values of the adjacent pixels on the left side is 82, and the value obtained by adding the pixel values of the adjacent pixels on the right side is 78. Is selected, and the distribution ratio is calculated based on the pixels adjacent to the left side. Similarly, when the pixel value of the vertex P is 81 and the pixel value of the pixel belonging to the monotonous increase / decrease region of interest is 75, the pixel value of the pixel adjacent to the left is 0, and the pixel adjacent to the right is Is 3, the value obtained by adding the pixel values of the pixels adjacent to the left side is 75, and the value obtained by adding the pixel values of the pixels adjacent to the right side is 78, so the pixel value 81 of the vertex P Is selected, and the distribution ratio is calculated based on the pixels adjacent to the right side.
[1166]
As described above, the distribution ratio calculation unit 2131 calculates the distribution ratio for the monotone increasing / decreasing region composed of one column of pixels vertically.
[1167]
The distribution ratio calculation unit 2131 calculates the distribution ratio for the monotonous increase / decrease region including one row of pixels in the same process.
[1168]
The regression line calculation unit 2132 calculates a regression line indicating the boundary of the monotone increase / decrease region based on the distribution ratio calculated by the distribution ratio calculation unit 2131, assuming that the boundary of the monotone increase / decrease region is a straight line. , The monotonous increase / decrease region in the steady region is detected again.
[1169]
With reference to FIG. 183 and FIG. 184, a process of calculating a regression line indicating a boundary of a monotonous increase / decrease region in the regression line calculation unit 2132 will be described.
[1170]
In FIG. 183, white circles indicate pixels located on the upper boundary of the monotone increase / decrease regions 2141-1 to 2141-5. The regression line calculation unit 2132 calculates a regression line for the upper boundary of the monotone increase / decrease regions 2141-1 to 2141-5 by the regression process. For example, the regression line calculation unit 2132 calculates the straight line A that minimizes the sum of the squares of the distances from the pixels located on the upper boundary of the monotone increase / decrease regions 2141-1 to 2141-5.
[1171]
In FIG. 183, black circles indicate pixels located at lower boundaries of the monotone increasing / decreasing regions 2141-1 to 2141-5. The regression line calculation unit 2132 calculates a regression line for the lower boundary of the monotone increase / decrease regions 2141-1 to 2141-5 by the regression process. For example, the regression line calculation unit 2132 calculates the straight line B that minimizes the sum of the squares of the distances from the pixels located on the lower boundary of the monotone increase / decrease regions 2141-1 to 2141-5.
[1172]
The regression line calculation unit 2132 detects the monotone increase / decrease region in the steady region again by determining the boundary of the monotone increase / decrease region based on the calculated regression line.
[1173]
As shown in FIG. 184, the regression line calculation unit 2132 determines the upper boundary of the monotone increase / decrease regions 2141-1 to 2141-5 based on the calculated line A. For example, the regression line calculation unit 2132 determines the upper boundary from the pixel closest to the calculated straight line A for each of the monotone increase / decrease regions 2141-1 to 2141-5. For example, the regression line calculation unit 2132 determines the upper boundary of each of the monotone increase / decrease regions 2141-1 to 2141-5 such that the pixel closest to the calculated straight line A is included in the region.
[1174]
As shown in FIG. 184, the regression line calculation unit 2132 determines the lower boundary of the monotone increase / decrease region 2141-1 to the monotone increase / decrease region 2141-5 based on the calculated straight line B. For example, the regression line calculation unit 2132 determines the lower boundary from the pixel closest to the calculated straight line B for each of the monotone increase / decrease regions 2141-1 to 2141-5. For example, the regression line calculation unit 2132 determines the upper boundary of each of the monotone increase / decrease regions 2141-1 to 2141-5 so that the pixel closest to the calculated straight line B is included in the region.
[1175]
As described above, the regression line calculation unit 2132 re-determines the region where the pixel value monotonously increases or decreases from the vertex based on the regression line that regresses the boundary of the steady region detected by the data continuity detection unit 101. To detect. That is, the regression line calculation unit 2132 determines the boundary of the monotonous increase / decrease region based on the calculated regression line, thereby again detecting the region that is the monotone increase / decrease region in the steady region, and indicates the detected region. The area information is supplied to the line width detection unit 2101.
[1176]
As described above, the boundary detection unit 2121 calculates the distribution ratio indicating the ratio of the projection of the thin line image, which is the signal of the real world 1, projected on the pixel, and calculates the monotonous increase / decrease region from the calculated distribution ratio. By calculating a regression line indicating the boundary, the monotonous increase / decrease region in the steady region is detected again. By doing so, a more accurate monotonous increase / decrease region can be detected.
[1177]
The line width detection unit 2101 shown in FIG. 178 detects the width of the thin line based on the region information indicating the region detected again, supplied from the boundary detection unit 2121, in the same process as the case shown in FIG. 173. . The line width detecting unit 2101 supplies the signal level estimating unit 2102 with thin line width information indicating the width of the detected thin line, together with the data continuity information.
[1178]
The processing of signal level estimating section 2102 shown in FIG. 178 is the same as the processing shown in FIG. 173, and a description thereof will be omitted.
[1179]
FIG. 185 is a flowchart for explaining the processing of estimating the real world by the real world estimating unit 102 having the configuration shown in FIG. 178, corresponding to the processing of step S102.
[1180]
In step S2121, the boundary detection unit 2121 performs a boundary detection process of detecting an area again based on the pixel values of the pixels belonging to the stationary area detected by the data continuity detection unit 101. The details of the boundary detection processing will be described later.
[1181]
The processing in steps S2122 and S2123 is the same as the processing in steps S2101 and S2102, and a description thereof will be omitted.
[1182]
FIG. 186 is a flowchart illustrating a process of detecting a boundary corresponding to the process of step S2121.
[1183]
In step S <b> 2131, the distribution ratio calculation unit 2131 calculates a distribution ratio indicating a rate at which a thin line image is projected, based on the data continuity information indicating a monotone increase / decrease region and the input image. For example, the distribution ratio calculation unit 2131 detects an adjacent monotone increase / decrease area in the steady area from the input image based on the monotone increase / decrease area information included in the data continuity information, and belongs to the detected monotone increase / decrease area. By subtracting an approximate value approximated by a plane indicated by the slope and intercept included in the steady component information from the pixel value of the pixel, an image consisting of only the steady component on which the thin line image is projected is generated. Then, the distribution ratio calculation unit 2131 divides the pixel value of a pixel belonging to two adjacent pixels, which is a monotone increase / decrease area including one row of pixels, by the sum of the pixel values of the adjacent pixels. The distribution ratio is calculated for each pixel belonging to two adjacent monotone increase / decrease regions.
[1184]
The distribution ratio calculation unit 2131 supplies the calculated distribution ratio to the regression line calculation unit 2132.
[1185]
In step S2132, the regression line calculation unit 2132 calculates the regression line indicating the boundary of the monotonous increase / decrease region based on the distribution ratio indicating the ratio of the projection of the thin line image, thereby re-determining the region in the steady region. To detect. For example, the regression line calculation unit 2132 calculates a regression line indicating the boundary at one end of the monotone increase / decrease region, assuming that the boundary of the monotone increase / decrease region is a straight line, and calculates the regression line indicating the boundary at the other end of the monotone increase / decrease region. By calculating the straight line, the monotonous increase / decrease region in the steady region is detected again.
[1186]
The regression line calculation unit 2132 supplies the detected region information indicating the region in the steady region to the line width detection unit 2101, and the process ends.
[1187]
As described above, the real world estimating unit 102 having the configuration shown in FIG. 178 detects again the region including the pixel on which the thin line image is projected, and based on the detected region again, the image which is the signal of the real world 1 , The width of the thin line is detected, and the light intensity (level) of the signal of the real world 1 is estimated. By doing so, it is possible to more accurately detect the width of the fine line and more accurately estimate the light intensity for the signal in the real world 1.
[1188]
As described above, the discontinuity of the pixel values of the plurality of pixels is detected and detected in the first image data in which the real-world optical signal is projected and part of the continuity of the real-world optical signal is missing. From the detected discontinuity, a stationary region having data continuity is detected, the region is detected again based on the pixel value of a pixel belonging to the detected stationary region, and the real world is detected again based on the detected region. Is estimated, a more accurate and more accurate processing result can be obtained for a real-world event.
[1189]
Next, with reference to FIG. 187, the real world estimating unit 102 that outputs the differential value of the approximation function in the spatial direction for each pixel in the region having stationarity as real world estimation information will be described.
[1190]
The reference pixel extracting unit 2201 determines whether each pixel of the input image is a processing area based on the data continuity information (stationary angle or area information) input from the data continuity detecting unit 101. Is determined, and in the case of the processing area, information on reference pixels necessary for obtaining an approximate function of the real world from the input image (positions of a plurality of pixels around the pixel of interest required for calculation, and pixel values ) And outputs it to the approximate function estimating unit 2202.
[1191]
The approximate function estimating unit 2202 estimates, based on the least squares method, an approximate function that approximately describes the real world around the pixel of interest based on the information of the reference pixel input from the reference pixel extracting unit 2201, and The function is output to the differential processing unit 2203.
[1192]
Based on the approximation function input from the approximation function estimation unit 2202, the differentiation processing unit 2203 determines the pixel of interest according to the angle of the data continuity information (eg, the angle of a thin line or a binary edge with respect to a predetermined axis: inclination). The shift amount of the position of the pixel to be generated is calculated from the differential value at the position on the approximation function corresponding to the shift amount (for each pixel corresponding to the distance along the one-dimensional direction from the line corresponding to the stationarity). (A differential value of a function that approximates the pixel value), and further adds information on the position of the target pixel, the pixel value, and the inclination of the stationarity, and outputs the information to the image generation unit 103 as real world estimation information. I do.
[1193]
Next, the processing of the real world estimation by the real world estimation unit 102 in FIG. 187 will be described with reference to the flowchart in FIG.
[1194]
In step S <b> 2201, the reference pixel extraction unit 2201 acquires the angle and the area information as the data continuity information from the data continuity detection unit 101 together with the input image.
[1195]
In step S2202, the reference pixel extraction unit 2201 sets a pixel of interest from unprocessed pixels of the input image.
[1196]
In step S2203, the reference image extraction unit 2201 determines whether or not the pixel of interest is of the processing region based on the information of the region of the data continuity information, and determines that the pixel of interest is not a pixel of the processing region. The processing proceeds to step S2210, and the fact that the target pixel is outside the processing area is notified to the differential processing unit 2203 via the approximate function estimating unit 2202, and accordingly, the differential processing unit 2203 The differential value of the corresponding pixel of interest is set to 0, and the pixel value of the pixel of interest is further added and output to the image generation unit 103 as real world estimation information, and the process proceeds to step S2211. If it is determined that the target pixel belongs to the processing area, the process proceeds to step S2204.
[1197]
In step S2204, the reference pixel extraction unit 2201 determines from the angle information included in the data continuity information whether the direction having data continuity is an angle close to the horizontal direction or an angle close to the vertical. judge. That is, when the angle θ having the data continuity is 0 degree ≦ θ <45 degrees or 135 degrees ≦ θ <180 degrees, the reference pixel extraction unit 2201 determines that the direction of the continuity of the target pixel is the horizontal direction. When the angle θ having the data continuity is 45 degrees ≦ θ <135 degrees, it is determined that the direction of the continuity of the target pixel is close to the vertical direction.
[1198]
In step S2205, the reference pixel extraction unit 2201 extracts the position information and the pixel value of the reference pixel corresponding to the determined direction from the input image, and outputs them to the approximate function estimation unit 2202. That is, since the reference pixel becomes data used when calculating an approximation function described later, it is desirable to extract the reference pixel according to the inclination. Therefore, corresponding to one of the determination directions, that is, the horizontal direction or the vertical direction, a reference pixel in a long range in the direction is extracted. More specifically, for example, as shown in FIG.fIs close to the vertical direction, it is determined that the pixel is in the vertical direction. In this case, for example, as shown in FIG. 189, the reference pixel extracting unit 2201 sets the central pixel (0, 0) in FIG. , Pixels (−1, 2), (−1, 1), (−1, 0), (−1, −1), (−1, −2), (0, 2), (0) , 1), (0, 0), (0, -1), (0, -2), (1, 2), (1, 1), (1, 0), (1, -1), ( Each pixel value of (1, -2) is extracted. In FIG. 189, it is assumed that the horizontal and vertical sizes of each pixel are 1.
[1199]
That is, the reference pixel extraction unit 2201 extracts pixels in a long range in the vertical direction so that the total of 15 pixels is 2 pixels in the vertical (up / down) direction and 1 pixel in the horizontal (left / right) direction around the target pixel. Extract as a reference pixel.
[1200]
Conversely, if it is determined that the pixel is in the horizontal direction, the pixel is long in the horizontal direction so that the total of 15 pixels is 1 pixel in the vertical (up / down) direction and 2 pixels in the horizontal (left / right) direction with respect to the target pixel. The pixels in the range are extracted as reference pixels and output to the approximate function estimating unit 2202. Of course, the number of reference pixels is not limited to 15 pixels as described above, and may be other numbers.
[1201]
In step S2206, the approximate function estimating unit 2202 estimates the approximate function f (x) by the least square method based on the information of the reference pixel input from the reference pixel extracting unit 2201, and outputs the estimated function to the differentiation processing unit 2203.
[1202]
That is, the approximation function f (x) is a polynomial represented by the following equation (96).
[1203]
[Equation 70]
Figure 2004246526
Figure 2004246526
[1204]
Thus, each coefficient W of the polynomial of equation (96)1Or Wn + 1Is obtained, an approximate function f (x) that approximates the real world is obtained. However, since more reference pixel values are required than the number of coefficients, for example, in the case where the reference pixels are as shown in FIG. 189, there are a total of 15 pixels, so that only up to 15 coefficients of the polynomial are obtained. I can't. Therefore, in this case, the polynomial is a polynomial up to the 14th order, and the coefficient W1Or WFifteen, An approximate function is estimated. In this case, an approximate function f (x) composed of a 15th-order polynomial may be set as a simultaneous equation.
[1205]
Therefore, when using the fifteen reference pixel values shown in FIG. 189, the approximate function estimating unit 2202 estimates the following equation (97) by solving using the least squares method.
[1206]
P (-1, -2) = f (-1-Cx (-2))
P (-1, -1) = f (-1-Cx (-1))
P (-1,0) = f (-1) (= f (-1-Cx (0)))
P (-1,1) = f (-1-Cx (1))
P (−1,2) = f (−1−Cx (2))
P (0, -2) = f (0-Cx (-2))
P (0, -1) = f (0-Cx (-1))
P (0,0) = f (0) (= f (0−Cx (0)))
P (0,1) = f (0-Cx (1))
P (0,2) = f (0−Cx (2))
P (1, -2) = f (1-Cx (-2))
P (1, -1) = f (1-Cx (-1))
P (1,0) = f (1) (= f (1-Cx (0)))
P (1,1) = f (1-Cx (1))
P (1,2) = f (1-Cx (2)) (97)
[1207]
The number of reference pixels may be changed according to the degree of the polynomial.
[1208]
Here, Cx (ty) is the shift amount, and the slope of the stationarity is GfWhere Cx (ty) = ty / GfIs defined by This shift amount Cx (ty) is obtained by calculating the approximate function f (x) defined on the position in the spatial direction Y = 0 by the gradient Gf, The deviation width with respect to the spatial direction X at the position of the spatial direction Y = ty, assuming that they are continuous (having a continuity). Therefore, for example, when the approximation function is defined as f (x) on the position in the spatial direction Y = 0, the approximation function f (x) has the gradient G in the spatial direction Y = ty.fShould be shifted by Cx (ty) in the spatial direction X along f (x−ty / G / f).f)).
[1209]
In step S2207, the differential processing unit 2203 obtains the shift amount at the position of the pixel to be generated based on the approximate function f (x) input from the approximate function estimation unit 2202.
[1210]
That is, when generating pixels so that the density is twice as high in the horizontal direction and the vertical direction (a total of four times the density), for example, the differential processing unit 2203 firstly increases the density twice in the vertical direction. As shown in FIG. 190, in order to divide the target pixel into two pixels Pa and Pb, the center position of the pixel of interest is obtained as a differential value at Pin (Xin, Yin). Find the shift amount. Since this shift amount is Cx (0), it is substantially zero. Note that in FIG. 190, the pixel Pin is a square with (Xin, Yin) being substantially the center of gravity, and the pixels Pa and Pb are (Xin, Yin + 0.25) and (Xin, Yin−0.25). Each rectangle is a rectangle that is long in the horizontal direction in the figure and is set to be substantially the center of gravity.
[1211]
In step S2208, the differential processing unit 2203 differentiates the approximate function f (x) to obtain a first-order differential function f (x) ′ of the approximate function, and calculates a differential value at a position corresponding to the obtained shift amount. Then, this is output to the image generation unit 103 as real world estimation information. That is, in this case, the differential processing unit 2203 obtains the differential value f (Xin) ′, and determines the position (in this case, the target pixel (Xin, Yin)), the pixel value, and the direction of the stationarity. The information is added with the inclination information and output.
[1212]
In step S2209, the differentiation processing unit 2203 determines whether enough differential values necessary to generate a pixel having the obtained density have been obtained. For example, in this case, only the differential value for obtaining the double density is obtained (only the differential value for obtaining the double density in the spatial direction Y direction is obtained). It is determined that the differential values necessary to generate a pixel having a certain density have not been obtained, and the process returns to step S2207.
[1213]
In step S2207, the differential processing unit 2203 obtains the shift amount at the position of the pixel to be generated again based on the approximate function f (x) input from the approximate function estimation unit 2202. That is, in this case, the differential processing unit 2203 obtains the differential values necessary to divide each of the pixels Pa and Pb into two. Since the positions of the pixels Pa and Pb are the positions indicated by the black circles in FIG. 190, the differential processing unit 2203 calculates the shift amount corresponding to each position. The shift amounts of the pixels Pa and Pb are Cx (0.25) and Cx (−0.25), respectively.
[1214]
In step S2208, the differentiation processing unit 2203 first-order differentiates the approximation function f (x) to obtain a differential value at a position corresponding to the shift amount corresponding to each of the pixels Pa and Pb. The information is output to the image generation unit 103 as estimation information.
[1215]
That is, when the reference pixel shown in FIG. 189 is used, the differential processing unit 2203 obtains a differential function f (x) ′ for the obtained approximate function f (x) as shown in FIG. At positions (Xin-Cx (0.25)) and (Xin-Cx (-0.25)) shifted by shift amounts Cx (0.25) and Cx (-0.25). The derivative values are obtained as f (Xin-Cx (0.25)) 'and f (Xin-Cx (-0.25))', respectively, and the position information corresponding to the derivative value is added to the obtained values. Output as estimation information. Note that the pixel value information is not added since the pixel value information is output in the first processing.
[1216]
In step S2209, the differentiation processing unit 2203 determines again whether or not enough differential values necessary to generate a pixel having the obtained density have been obtained. For example, in this case, since the differential value for obtaining the density of four times has been obtained, it is determined that only the differential value necessary to generate the pixel having the required density has been obtained, The process proceeds to step S2211.
[1217]
In step S2211, the reference pixel extraction unit 2201 determines whether or not all pixels have been processed. If it is determined that not all pixels have been processed, the process returns to step S2202. If it is determined in step S2211 that all pixels have been processed, the processing ends.
[1218]
As described above, when pixels are generated such that the input image has a density that is four times higher in the horizontal and vertical directions, the pixels use the differential value of the approximate function of the center position of the divided pixels. In addition, since division is performed by extrapolation, information on a total of three differential values is required to generate a quadruple density pixel.
[1219]
That is, as shown in FIG. 190, for one pixel, finally, four pixels P01, P02, P03, and P04 (in FIG. 190, pixels P01, P02, P03, and P04 are four pixels in the figure). (The pixels P01, P02, P03, and P04 each have a length of approximately 0.5 because each pixel has a length of 1 at each pixel Pin.) In order to generate a quadruple-density pixel, first, a double-density pixel is generated in the horizontal direction or the vertical direction (in this case, the vertical direction) (see above). In the first steps S2207 and S2208), and further divides the two divided pixels in a direction (horizontal direction in this case) perpendicular to the direction of the first division (the above-described second step S2207, S2207). S2 08 is of processing) for.
[1220]
Note that, in the above example, the differential value when calculating a quadruple density pixel has been described as an example. However, when calculating a pixel with a higher density, the processing of steps S2207 to S2209 is repeated. More differential values required for calculating the pixel value may be obtained. In the above example, an example of obtaining a double-density pixel value has been described. However, since the approximate function f (x) is a continuous function, it is necessary to obtain a necessary differential value for pixel values other than the double-density. Becomes possible.
[1221]
According to the above, using the pixel values of the pixels in the vicinity of the pixel of interest, an approximation function that approximately represents the real world is obtained, and the differential value of the position at which the generation of pixels in the spatial direction is necessary is output as real world estimation information It is possible to do.
[1222]
In the real world estimating unit 102 described with reference to FIG. 187 above, the differential value required to generate an image is output as real world estimation information. The differential value is an approximate function f at a required position. It has the same value as the slope of (x).
[1223]
Therefore, next, referring to FIG. 192, only the gradient on the approximate function f (x) necessary for pixel generation is directly calculated without obtaining the approximate function f (x), and is output as real world estimation information. The real world estimating unit 102 will be described.
[1224]
The reference pixel extracting unit 2211 determines whether each pixel of the input image is a processing region based on the data continuity information (stationarity angle or region information) input from the data continuity detecting unit 101. Is determined, and in the case of the processing area, information of reference pixels necessary for obtaining an inclination from the input image (a plurality of peripheral pixels arranged in the vertical direction including a pixel of interest required for calculation, or a pixel of interest (Including information on the positions of a plurality of peripheral pixels arranged in the horizontal direction and their respective pixel values), and outputs the extracted information to the inclination estimating unit 2212.
[1225]
The inclination estimating unit 2212 generates information on the inclination of the pixel position required for pixel generation based on the information on the reference pixel input from the reference pixel extracting unit 2211 and outputs the information to the image generating unit 103 as real world estimation information. I do. More specifically, the inclination estimating unit 2212 obtains the inclination at the position of the pixel of interest on the approximation function f (x) that approximately represents the real world using the difference information of the pixel values between the pixels. , The position information of the target pixel, the pixel value, and the information of the inclination in the direction of the stationarity are output as real world estimation information.
[1226]
Next, the processing of the real world estimation by the real world estimation unit 102 in FIG. 192 will be described with reference to the flowchart in FIG.
[1227]
In step S2221, the reference pixel extracting unit 2211 acquires the angle and the area information as the data continuity information from the data continuity detecting unit 101 together with the input image.
[1228]
In step S2222, the reference pixel extraction unit 2211 sets a target pixel from unprocessed pixels of the input image.
[1229]
In step S2223, the reference image extracting unit 2211 determines whether or not the target pixel belongs to the processing area based on the information on the area of the data continuity information, and determines that the pixel of interest is not a pixel of the processing area. Then, the process proceeds to step S2228, in which the inclination estimation unit 2212 notifies the inclination estimation unit 2212 that the target pixel is outside the processing area, and accordingly, the inclination estimation unit 2212 sets the inclination of the corresponding attention pixel to 0. Further, the pixel value of the target pixel is added to the image data and output as real world estimation information to the image generation unit 103, and the process proceeds to step S2229. If it is determined that the target pixel belongs to the processing area, the process proceeds to step S2224.
[1230]
In step S2224, the reference pixel extracting unit 2211 determines from the angle information included in the data continuity information whether the direction having data continuity is an angle close to the horizontal direction or an angle close to the vertical. judge. That is, when the angle θ having the data continuity satisfies 0 degree ≦ θ <45 degrees or 135 degrees ≦ θ <180 degrees, the reference pixel extraction unit 2211 determines that the direction of the continuity of the target pixel is the horizontal direction. When the angle θ having the data continuity is 45 degrees ≦ θ <135 degrees, it is determined that the direction of the continuity of the target pixel is close to the vertical direction.
[1231]
In step S2225, the reference pixel extracting unit 2211 extracts the position information and the pixel value of the reference pixel corresponding to the determined direction from the input image, and outputs the extracted information to the inclination estimating unit 2212. That is, since the reference pixel is data used when calculating a tilt described later, it is desirable to extract the reference pixel in accordance with the tilt indicating the direction of continuity. Therefore, corresponding to one of the determination directions, that is, the horizontal direction or the vertical direction, a reference pixel in a long range in the direction is extracted. More specifically, for example, when it is determined that the inclination is close to the vertical direction, the reference pixel extracting unit 2211 assigns the center pixel (0, 0) in FIG. 194 to the target pixel as shown in FIG. Then, the pixel values of the pixels (0, 2), (0, 1), (0, 0), (0, -1), and (0, -2) are extracted. In FIG. 194, it is assumed that the size of each pixel is 1 in each of the horizontal direction and the vertical direction.
[1232]
In other words, the reference pixel extraction unit 2211 extracts pixels in a vertically long range as reference pixels so that a total of five pixels, each of which is two pixels in the vertical (up / down) direction, around the target pixel.
[1233]
Conversely, if it is determined that the pixel is in the horizontal direction, pixels in a long range in the horizontal direction are extracted as reference pixels so that a total of five pixels, two pixels in the horizontal (left / right) direction, centering on the target pixel, Output to approximation function estimation section 2202. Of course, the number of reference pixels is not limited to five as described above, and may be another number.
[1234]
In step S2226, the gradient estimating unit 2212 compares the information of the reference pixel input from the reference pixel extracting unit 2211 with the gradient G in the stationary direction.f, The shift amount of each pixel value is calculated. That is, when the approximation function f (x) corresponding to the spatial direction Y = 0 is used as a reference, the approximation function corresponding to the spatial direction Y = −2, −1, 1, 2, as shown in FIG. Stationary slope Gf, The approximation functions are f (x−Cx (2)), f (x−Cx (1)), f (x−Cx (−1)), f ( x−Cx (−2)), and is expressed as a function shifted in the spatial direction X by each shift amount for each spatial direction Y = −2, −1, 1, 2.
[1235]
Therefore, the inclination estimating unit 2212 obtains these shift amounts Cx (−2) to Cx (2). For example, when the reference pixel is extracted as shown in FIG. 194, the shift amount is such that the reference pixel (0, 2) in the figure is Cx (2) = 2 / GfAnd the reference pixel (0, 1) is Cx (1) = 1 / GfAnd the reference pixel (0,0) has Cx (0) = 0, and the reference pixel (0, -1) has Cx (−1) = − 1 / GfAnd the reference pixel (0, −2) is Cx (−2) = − 2 / GfBecomes
[1236]
In step S2227, the gradient estimating unit 2212 calculates (estimates) the gradient on the approximate function f (x) at the position of the target pixel. For example, as shown in FIG. 194, when the direction of the continuity of the pixel of interest is at an angle close to the vertical direction, the pixel value differs greatly between pixels adjacent in the horizontal direction. Since the change between the pixels in the vertical direction is small and the changes are similar, the inclination estimating unit 2212 regards the change between the pixels in the vertical direction as a change in the spatial direction X due to the shift amount, so The inclination on the approximation function f (x) at the position of the target pixel is obtained by substituting the difference between pixels in the horizontal direction.
[1237]
That is, assuming that there is an approximate function f (x) that approximately describes the real world, the relationship between the above-described shift amount and the pixel value of each reference pixel is as shown in FIG. Here, the pixel value of each pixel in FIG. 194 is P (0,2), P (0,1), P (0,0), P (0, −1), P (0, −2) from the top. ). As a result, the pixel value P and the shift amount Cx in the vicinity of the target pixel (0, 0) are (P, Cx) = (P (0, 2), −Cx (2)), (P (0, 1), -Cx (1)), (P (0, -1)), -Cx (-1)), (P (0, -2), -Cx (-2)), (P (0,0), 0) is obtained.
[1238]
Incidentally, the pixel value P, the shift amount Cx, and the gradient Kx (gradient on the approximation function f (x)) have a relationship represented by the following expression (98).
[1239]
P = Kx × Cx (98)
[1240]
Since the above equation (98) is a function of one variable for the variable Kx, the slope estimating unit 2212 obtains the slope Kx for this variable Kx (slope) by the one-variable least square method.
[1241]
That is, the gradient estimating unit 2212 obtains the gradient of the target pixel by solving a normal equation such as the following equation (99), and obtains the pixel value of the target pixel and information on the gradient in the direction of stationarity. And outputs it to the image generation unit 103 as real world estimation information.
[1242]
[Equation 71]
Figure 2004246526
Figure 2004246526
[1243]
Here, i is a number for identifying a set of the pixel value P of the reference pixel and the shift amount C, and is 1 to m. M is the number of reference pixels including the target pixel.
[1244]
In step S2229, the reference pixel extracting unit 2211 determines whether or not all pixels have been processed. If it is determined that all pixels have not been processed, the process returns to step S2222. If it is determined in step S2229 that all pixels have been processed, the process ends.
[1245]
The inclination output as the real world estimation information by the above-described processing is used when extrapolating and calculating the pixel value finally obtained. Further, in the above example, the inclination at the time of calculating a pixel having a double density has been described as an example. However, when calculating a pixel having a higher density, more positions required for calculating a pixel value are required. May be obtained.
[1246]
For example, as shown in FIG. 190, when pixels having a density twice as high in the horizontal direction and a total of four times in the spatial direction having a density twice as high in the vertical direction are generated, as shown in FIG. The slope Kx of the approximate function f (x) corresponding to each position of Pin, Pa, and Pb in 190 may be obtained.
[1247]
In the above example, an example of obtaining a double-density pixel value has been described. However, since the approximation function f (x) is a continuous function, a necessary gradient is also required for pixel values of pixels at positions other than the double-density. Can be obtained.
[1248]
According to the above, the slope of the approximate function of the position where the pixel needs to be generated in the spatial direction can be calculated without using the pixel value of the pixel near the target pixel to find an approximate function that approximately represents the real world. It can be generated as world estimation information and further output.
[1249]
Next, with reference to FIG. 196, the real world estimating unit 102 that outputs a differential value on an approximate function in the frame direction (time direction) for each pixel in a region having stationarity as real world estimation information will be described.
[1250]
The reference pixel extracting unit 2231 converts each pixel of the input image into a processing area based on the data continuity information (stationary motion (motion vector) and area information) input from the data continuity detecting unit 101. It is determined whether or not there is, and if it is a processing area, information of reference pixels necessary for obtaining an approximate function of the real world from the input image (positions of a plurality of pixels around the pixel of interest required for calculation, and , Pixel value information) and outputs it to the approximate function estimating unit 2202.
[1251]
The approximate function estimating unit 2232 estimates an approximate function that approximately describes the real world around the pixel of interest based on the information of the reference pixel in the frame direction input from the reference pixel extracting unit 2231 based on the least square method, The estimated function is output to the differential processing unit 2233.
[1252]
The differential processing unit 2233 calculates the shift amount in the frame direction of the position of the pixel to be generated from the target pixel in accordance with the movement of the data continuity information, based on the frame direction approximation function input from the approximation function estimation unit 2232. Is calculated, and the differential value at the position on the approximate function in the frame direction according to the shift amount (the derivative of the function that approximates the pixel value of each pixel corresponding to the distance along the one-dimensional direction from the line corresponding to the stationarity) Value), and further adds information on the position of the pixel of interest, the pixel value, and the stationary motion, and outputs this to the image generation unit 103 as real world estimation information.
[1253]
Next, with reference to the flowchart in FIG. 197, the processing of the real world estimation by the real world estimation unit 102 in FIG. 196 will be described.
[1254]
In step S <b> 2241, the reference pixel extraction unit 2231 acquires the movement as the data continuity information and the information of the area from the data continuity detection unit 101 together with the input image.
[1255]
In step S2242, the reference pixel extraction unit 2231 sets a target pixel from unprocessed pixels of the input image.
[1256]
In step S2243, the reference image extracting unit 2231 determines whether the pixel of interest is of the processing region based on the information of the region of the data continuity information, and determines that the pixel of interest is not a pixel of the processing region. The processing proceeds to step S2250, and the fact that the pixel of interest is outside the processing area is notified to the differentiation processing unit 2233 via the approximate function estimation unit 2232, and in response, the differentiation processing unit 2233 The differential value of the corresponding pixel of interest is set to 0, and the pixel value of the pixel of interest is further added to the pixel value and output to the image generation unit 103 as real world estimation information, and the process proceeds to step S2251. If it is determined that the target pixel belongs to the processing area, the process proceeds to step S2244.
[1257]
In step S2244, the reference pixel extracting unit 2231 determines whether the direction having data continuity is a motion close to the spatial direction or a motion close to the frame direction, based on the motion information included in the data continuity information. Is determined. That is, as shown in FIG. 198, in a plane formed by the frame direction T and the space direction Y, if the angle indicating the direction in the time and space planes with the frame direction as the reference axis is θv, the reference pixel extraction is performed. When the angle θv having data continuity satisfies 0 degree ≦ vv <45 degrees or 135 degree ≦ vv <180 degrees, the unit 2201 determines that the continuity movement of the target pixel is in the frame direction (time direction). If the angle θ having the data continuity is determined to be 45 degrees ≦ θ <135 degrees, it is determined that the direction of the continuity of the target pixel is close to the spatial direction.
[1258]
In step S2245, the reference pixel extracting unit 2201 extracts the position information and the pixel value of the reference pixel corresponding to the determined direction from the input image, and outputs the extracted information to the approximate function estimating unit 2232. That is, since the reference pixel is data used when calculating an approximation function described later, it is desirable to extract the reference pixel according to the angle. Therefore, the reference pixels in a long range in the direction corresponding to the determination direction of the frame direction or the spatial direction are extracted. More specifically, for example, as shown in FIG.fIs close to the spatial direction, it is determined that the pixel is in the spatial direction. In this case, the reference pixel extracting unit 2231 determines, for example, as shown in FIG. 198, the central pixel (t, y) = (0) in FIG. , 0) as a target pixel, pixel (t, y) = (− 1, 2), (−1, 1), (−1, 0), (−1, −1), (−1, 1). -2), (0,2), (0,1), (0,0), (0, -1), (0, -2), (1,2), (1,1), (1 , 0), (1, −1), and (1, −2). In FIG. 198, it is assumed that the size of each pixel in the frame direction and the space direction is 1.
[1259]
That is, the reference pixel extracting unit 2231 sets the frame to be 2 pixels in the space (up and down direction in the drawing) and 1 frame in the frame (left and right directions in the drawing) each with a total of 15 pixels around the target pixel. Pixels in a range in which the spatial direction is longer than the direction are extracted as reference pixels.
[1260]
Conversely, when it is determined that the frame direction is the frame direction, a total of 15 pixels for 1 frame in the space (vertical direction in the figure) × 2 frames in the frame (left and right directions in the figure) centering on the target pixel. As described above, pixels in a long range in the frame direction are extracted as reference pixels, and output to the approximate function estimating unit 2232. Of course, the number of reference pixels is not limited to 15 pixels as described above, and may be other numbers.
[1261]
In step S2246, the approximate function estimating unit 2232 estimates the approximate function f (t) by the least square method based on the information of the reference pixel input from the reference pixel extracting unit 2231, and outputs the estimated function f (t) to the differential processing unit 2233.
[1262]
That is, the approximation function f (t) is a polynomial as shown in the following equation (100).
[1263]
[Equation 72]
Figure 2004246526
Figure 2004246526
[1264]
Thus, each coefficient W of the polynomial of equation (100)1Or Wn + 1Is obtained, an approximate function f (t) in the frame direction that approximates the real world is obtained. However, since more reference pixel values are required than the number of coefficients, for example, in the case where the reference pixels are as shown in FIG. 198, there are a total of 15 pixels. Therefore, only up to 15 coefficients of the polynomial are obtained. I can't. Therefore, in this case, the polynomial is a polynomial up to the 14th order, and the coefficient W1Or WFifteen, An approximate function is estimated. In this case, an approximate function f (x) composed of a 15th-order polynomial may be set as a simultaneous equation.
[1265]
Therefore, when using the fifteen reference pixel values shown in FIG. 198, the approximate function estimating unit 2232 estimates the following equation (101) by solving using the least squares method.
[1266]
P (-1, -2) = f (-1-Ct (-2))
P (-1, -1) = f (-1-Ct (-1))
P (-1,0) = f (-1) (= f (-1-Ct (0)))
P (-1,1) = f (-1-Ct (1))
P (−1,2) = f (−1−Ct (2))
P (0, -2) = f (0-Ct (-2))
P (0, -1) = f (0-Ct (-1))
P (0,0) = f (0) (= f (0−Ct (0)))
P (0,1) = f (0-Ct (1))
P (0,2) = f (0-Ct (2))
P (1, -2) = f (1-Ct (-2))
P (1, -1) = f (1-Ct (-1))
P (1,0) = f (1) (= f (1-Ct (0)))
P (1,1) = f (1-Ct (1))
P (1,2) = f (1-Ct (2)) (101)
[1267]
The number of reference pixels may be changed according to the degree of the polynomial.
[1268]
Here, Ct (ty) is a shift amount, which is similar to the above-mentioned Cx (ty), and the slope of the stationarity is VfWhere Ct (ty) = ty / VfIs defined by This shift amount Ct (ty) is obtained by calculating the approximate function f (t) defined on the position in the spatial direction Y = 0 by using the slope VfIndicates a shift width with respect to the frame direction T at the position of the spatial direction Y = ty, assuming that the position is continuous (has a continuity) along the frame. Therefore, for example, when the approximation function is defined as f (t) on the position of the space direction Y = 0, the approximation function f (t) is expressed in the frame direction (time direction) in the space direction Y = ty. The function should be f (t−Ct (ty)) (= f (t−ty / V) because T should be shifted by Ct (ty).f)).
[1269]
In step S2247, the differential processing unit 2233 obtains the shift amount at the position of the pixel to be generated based on the approximate function f (t) input from the approximate function estimator 2232.
[1270]
That is, when generating pixels so as to have twice the density in each of the frame direction and the spatial direction (a total of four times the density), for example, the differential processing unit 2233 first sets the density to twice the spatial direction. In order to divide the target pixel into two pixels Pat and Pbt, as shown in FIG. 199, the center position of the target pixel is obtained as a differential value at Pin (Tin, Yin). Find the shift amount. Since this shift amount is Ct (0), it is substantially zero. Note that in FIG. 199, the pixel Pin is a square with (Tin, Yin) being substantially the center of gravity, and the pixels Pat and Pbt are (Tin, Yin + 0.25) and (Tin, Yin−0.25). Each rectangle is a rectangle that is long in the horizontal direction in the figure and is set to be substantially the center of gravity. Further, the length of the target pixel Pin in the frame direction T being 1 corresponds to a shutter time for one frame.
[1271]
In step S2248, the differential processing unit 2233 differentiates the approximate function f (t) to obtain a first-order differential function f (t) ′ of the approximate function, and calculates a differential value at a position corresponding to the obtained shift amount. Then, this is output to the image generation unit 103 as real world estimation information. That is, in this case, the differential processing unit 2233 obtains the differential value f (Tin) ′, and determines the position (in this case, the target pixel (Tin, Yin)), the pixel value, and the direction of the stationarity. The motion information is added and output.
[1272]
In step S2249, the differential processing unit 2233 determines whether or not enough differential values necessary to generate a pixel having the obtained density have been obtained. For example, in this case, only the differential value for achieving the double density in the spatial direction is obtained (the differential value for obtaining the double density in the frame direction is not obtained). It is determined that the differential values necessary to generate a pixel having a certain density have not been obtained, and the process returns to step S2247.
[1273]
In step S2247, the differential processing unit 2203 obtains the shift amount at the position of the pixel to be generated again based on the approximate function f (t) input from the approximate function estimation unit 2202. That is, in this case, the differential processing unit 2203 obtains the differential values required to further divide each of the pixels Pat and Pbt into two. Since the positions of the pixels Pat and Pbt are the positions indicated by the black circles in FIG. 199, the differential processing unit 2233 obtains the shift amounts corresponding to the positions. The shift amounts of the pixels Pat and Pbt are Ct (0.25) and Ct (−0.25), respectively.
[1274]
In step S2248, the differential processing unit 2233 differentiates the approximation function f (t), obtains a differential value at a position corresponding to the shift amount corresponding to each of the pixels Pat and Pbt, and obtains the differential value at the real-world estimation information. Is output to the image generation unit 103.
[1275]
That is, when the reference pixel shown in FIG. 198 is used, the differential processing unit 2233 obtains the differential function f (t) ′ for the obtained approximate function f (t) as shown in FIG. At positions (Tin−Ct (0.25)) and (Tin−Ct (−0.25)) which are shifted by shift amounts Ct (0.25) and Ct (−0.25). The derivative values are obtained as f (Tin-Ct (0.25)) 'and f (Tin-Ct (-0.25))', respectively, and the position information corresponding to the derivative value is added, and this is calculated in the real world. Output as estimation information. Note that the pixel value information is not added since the pixel value information is output in the first processing.
[1276]
In step S2249, the differentiation processing unit 2233 determines again whether or not enough differential values necessary to generate a pixel having the obtained density have been obtained. For example, in this case, a differential value for obtaining a density twice as large (a total of four times) in each of the spatial direction Y and the frame direction T has been obtained, so that a pixel having the obtained density is generated. It is determined that only the differential values necessary for are obtained, and the process proceeds to step S2251.
[1277]
In step S2251, the reference pixel extraction unit 2231 determines whether all pixels have been processed. If it is determined that not all pixels have been processed, the process returns to step S2242. If it is determined in step S2251 that all pixels have been processed, the processing ends.
[1278]
As described above, when pixels are generated such that the density of the input image is four times higher in the frame direction (time direction) and in the spatial direction, the pixel is an approximate function of the central position of the divided pixel. Since division is performed by extrapolation using differential values, information on a total of three differential values is required to generate a quadruple-density pixel.
[1279]
In other words, as shown in FIG. 199, one pixel is finally composed of four pixels P01t, P02t, P03t, and P04t (in FIG. 199, the pixels P01t, P02t, P03t, and P04t are four pixels in the figure). (The pixels P01t, P02t, P03t, and P04t each have a length of approximately 0.5 because each pixel has a length of 1 for each pixel Pin.) In order to generate a quadruple-density pixel, first, a double-density pixel is generated in the frame direction or the spatial direction (the first steps S2247 and S2248 described above). Processing), and further divides the two divided pixels in a direction (in this case, the frame direction) perpendicular to the direction in which the two pixels were first divided (the second step S22 described above). 7, the processing of S2248) is due.
[1280]
In the above example, the differential value when calculating a quadruple-density pixel has been described as an example. However, when calculating a pixel with a higher density, the processing of steps S2247 to S2249 is repeated. More differential values required for calculating the pixel value may be obtained. In the above example, an example of obtaining a double-density pixel value has been described. However, since the approximate function f (t) is a continuous function, it is necessary to obtain a necessary differential value for pixel values other than the double-density. Becomes possible.
[1281]
According to the above, it is possible to obtain an approximation function that approximately represents the real world using the pixel values of the pixels in the vicinity of the target pixel, and output the differential value of the position where the pixel needs to be generated as real world estimation information. It becomes possible.
[1282]
In the real world estimating unit 102 described with reference to FIG. 196 above, the differential value required to generate an image is output as real world estimation information. The differential value is an approximate function f at a required position. It has the same value as the slope of (t).
[1283]
Therefore, next, referring to FIG. 201, a real-world estimating unit that directly obtains only the inclination in the frame direction on the approximate function required for pixel generation without outputting an approximate function, and outputs it as real-world estimation information. 102 will be described.
[1284]
The reference pixel extraction unit 2251 determines whether each pixel of the input image is a processing area based on the data continuity information (stationary movement and area information) input from the data continuity detection unit 101. Is determined, and in the case of the processing area, information of reference pixels necessary for obtaining an inclination from the input image (a plurality of peripheral pixels arranged in the spatial direction including the pixel of interest required for calculation, or The position of a plurality of peripheral pixels arranged in the frame direction and the information of the respective pixel values are extracted and output to the inclination estimating unit 2252.
[1285]
The inclination estimating unit 2252 generates information on the inclination of the pixel position required for pixel generation based on the information on the reference pixel input from the reference pixel extracting unit 2251 and outputs the information to the image generation unit 103 as real world estimation information. I do. More specifically, the inclination estimating unit 2252 obtains the inclination in the frame direction at the position of the target pixel on the approximation function that approximately represents the real world using the difference information of the pixel values between the pixels. The position information of the target pixel, the pixel value, and the information on the movement in the direction of continuity are output as real world estimation information.
[1286]
Next, the processing of the real world estimation by the real world estimation unit 102 in FIG. 201 will be described with reference to the flowchart in FIG.
[1287]
In step S2261, the reference pixel extraction unit 2251 acquires the movement as the data continuity information and the information of the area from the data continuity detection unit 101 together with the input image.
[1288]
In step S2262, the reference pixel extraction unit 2251 sets a target pixel from unprocessed pixels of the input image.
[1289]
In step S2263, the reference image extracting unit 2251 determines whether the pixel of interest is from the processing area based on the information on the area of the data continuity information, and determines that the pixel of interest is not a pixel in the processing area. The process then proceeds to step S2268, informing the inclination estimating unit 2252 that the pixel of interest is outside the processing area, and in response, the inclination estimating unit 2252 sets the inclination of the corresponding pixel of interest to 0. Further, the pixel value of the target pixel is added to the image data, and the resultant value is output to the image generation unit 103 as real world estimation information, and the process proceeds to step S2269. If it is determined that the target pixel belongs to the processing area, the process proceeds to step S2264.
[1290]
In step S2264, the reference pixel extracting unit 2211 determines from the motion information included in the data continuity information whether the data continuity motion is a motion close to the frame direction or a motion close to the spatial direction. judge. That is, in a plane formed by the frame direction T and the space direction Y, if the angle indicating the direction in the time and space planes with the frame direction as the reference axis is θv, the reference pixel extraction unit 2251 determines the data continuity. If the motion angle θv is 0 ° ≦ θv <45 ° or 135 ° ≦ θv <180 °, it is determined that the stationary motion of the pixel of interest is close to the frame direction, and the angle having data continuity is determined. If θv satisfies 45 degrees ≦ θv <135 degrees, it is determined that the stationary motion of the target pixel is close to the spatial direction.
[1291]
In step S2265, the reference pixel extraction unit 2251 extracts the position information and the pixel value of the reference pixel corresponding to the determined direction from the input image, and outputs the extracted information to the inclination estimation unit 2252. That is, since the reference pixel is data used when calculating a tilt described later, it is desirable to extract the reference pixel in accordance with the stationary motion. Therefore, the reference pixels in a long range in the direction corresponding to the determination direction of the frame direction or the spatial direction are extracted. More specifically, for example, when it is determined that the motion is close to the spatial direction, the reference pixel extraction unit 2251 determines, as shown in FIG. 203, the central pixel (t, y) in FIG. , 0) as a target pixel, each of pixels (t, y) = (0, 2), (0, 1), (0, 0), (0, −1), (0, −2) Is extracted. In FIG. 203, it is assumed that the size of each pixel is 1 in each of the frame direction and the spatial direction.
[1292]
That is, the reference pixel extraction unit 2251 extracts pixels in a long range in the spatial direction as reference pixels such that a total of 5 pixels, each of which is 2 pixels in the space (up and down direction in the figure), with the target pixel as the center.
[1293]
On the other hand, if it is determined that the pixel is in the frame direction, a long range of pixels in the horizontal direction is extracted as a reference pixel so that a total of 5 pixels including 2 pixels in the frame (left and right directions in the drawing) centering on the target pixel. Then, it outputs the result to the approximate function estimating unit 2252. Of course, the number of reference pixels is not limited to five as described above, and may be another number.
[1294]
In step S2266, the inclination estimating unit 2252 calculates the information of the reference pixel input from the reference pixel extracting unit 2251 and the motion V in the stationary direction.fThe shift amount of each pixel value is calculated based on the direction of. That is, when the approximate function f (t) corresponding to the spatial direction Y = 0 is used as a reference, the approximate function corresponding to the spatial direction Y = −2, −1, 1, 2, as shown in FIG. Stationary slope Vf, The approximation functions are f (t−Ct (2)), f (t−Ct (1)), f (t−Ct (−1)), f ( t-Ct (-2)), and expressed as a function shifted in the frame direction T by the amount of each shift in each of the spatial directions Y = -2, -1, 1, and 2.
[1295]
Therefore, the inclination estimating unit 2252 obtains these shift amounts Ct (−2) to Ct (2). For example, when the reference pixel is extracted as shown in FIG. 203, the shift amount is Ct (2) = 2 / V for the reference pixel (0, 2) in the figure.fAnd the reference pixel (0, 1) is Ct (1) = 1 / VfAnd the reference pixel (0,0) has Ct (0) = 0, and the reference pixel (0, -1) has Ct (−1) = − 1 / VfAnd the reference pixel (0, −2) is Ct (−2) = − 2 / VfBecomes The inclination estimating unit 2252 obtains these shift amounts Ct (−2) to Ct (2).
[1296]
In step S2267, the inclination estimating unit 2252 calculates (estimates) the inclination of the pixel of interest in the frame direction. For example, as shown in FIG. 203, when the direction of the continuity of the pixel of interest is close to the spatial direction, the pixel value between pixels adjacent in the frame direction is significantly different. Since the change between the pixels in the spatial direction is small and the changes are similar, the inclination estimating unit 2252 regards the change between the pixels in the spatial direction as a change in the frame direction T due to the shift amount, and thereby calculates the difference between the pixels in the spatial direction. The inclination at the target pixel is obtained by substituting the difference between the pixels in the frame direction.
[1297]
That is, assuming that there is a function f (t) that approximately describes the real world, the relationship between the above-mentioned shift amount and the pixel value of each reference pixel is as shown in FIG. Here, the pixel value of each pixel in FIG. 204 is P (0,2), P (0,1), P (0,0), P (0, −1), P (0, −2) from the top. ). As a result, the pixel value P and the shift amount Ct in the vicinity of the target pixel (0, 0) are (P, Ct) = (P (0, 2), −Ct (2)), (P (0, 1), −Ct (1)), (P (0, −1)), −Ct (−1)), (P (0, −2), −Ct (−2)), (P (0,0), 0) is obtained.
[1298]
By the way, the pixel value P, the shift amount Ct, and the gradient Kt (gradient on the approximation function f (t)) have a relationship represented by the following expression (102).
[1299]
P = Kt × Ct (102)
[1300]
Since the above equation (102) is a function of one variable with respect to the variable Kt, the slope estimating unit 2212 obtains the slope Kt of the variable Kt (slope) by the one-variable least square method.
[1301]
That is, the inclination estimating unit 2252 obtains the inclination of the target pixel by solving a normal equation such as the following equation (103), and obtains the pixel value of the target pixel and information on the inclination in the direction of continuity. And outputs it to the image generation unit 103 as real world estimation information.
[1302]
[Equation 73]
Figure 2004246526
Figure 2004246526
[1303]
Here, i is a number for identifying a set of the pixel value P of the reference pixel and the shift amount Ct, and is 1 to m. M is the number of reference pixels including the target pixel.
[1304]
In step S2269, the reference pixel extraction unit 2251 determines whether or not all pixels have been processed. If it is determined that all pixels have not been processed, the process returns to step S2262. If it is determined in step S2269 that all pixels have been processed, the processing ends.
[1305]
The inclination in the frame direction output as the real world estimation information by the above-described processing is used when the pixel value finally obtained is calculated by extrapolation interpolation. Further, in the above example, the inclination at the time of calculating a pixel having a double density has been described as an example. However, when calculating a pixel having a higher density, more positions required for calculating a pixel value are required. May be obtained.
[1306]
For example, as shown in FIG. 190, when generating a pixel having a density twice as high in the horizontal direction and a total of four times the density in the spatiotemporal direction having a density twice as high in the frame direction, as described above, The slope Kt of the approximate function f (t) corresponding to each position of Pin, Pat, and Pbt in FIG. 190 may be obtained.
[1307]
In the above example, an example of obtaining a double-density pixel value has been described. However, since the approximation function f (t) is a continuous function, a necessary gradient is also required for pixel values of pixels at positions other than the double-density. Can be obtained.
[1308]
Needless to say, the order of the processing for obtaining the gradient on the approximate function or the differential value with respect to the frame direction or the spatial direction does not matter. Furthermore, in the spatial direction, in the above example, the description has been made using the relationship between the spatial direction Y and the frame direction T, but the relationship between the spatial direction X and the frame direction T may be used. . Further, a slope or a differential value (in any one-dimensional direction) or a differential value may be selectively obtained from any two-dimensional relationship in the spatiotemporal direction.
[1309]
According to the above, a real-world optical signal is projected by a plurality of detection elements of a sensor, each of which has a spatio-temporal integration effect, and a part of the continuity of the real-world optical signal is lacking, and is projected by a detection element. Detects data continuity in image data consisting of a plurality of pixels having pixel values, and, corresponding to the detected continuity, corresponds to a one-dimensional position in a spatiotemporal direction with respect to a target pixel in the image data. Of the pixel values of a plurality of pixels to be estimated as a function corresponding to the optical signal of the real world, the pixel direction of the pixel in the vicinity of the pixel of interest is used to roughly represent the real world. , It is possible to generate and further output a gradient on the approximate function in the frame direction (time direction) of a position where a pixel is required to be generated as real world estimation information without obtaining the approximate function of.
[1310]
Next, another example of the embodiment of the real world estimating unit 102 (FIG. 3) will be described with reference to FIGS.
[1311]
FIG. 205 is a view for explaining the principle of the embodiment of this example.
[1312]
As shown in FIG. 205, a signal (distribution of light intensity) of the real world 1, which is an image incident on the sensor 2, is represented by a predetermined function F. Hereinafter, in the description of the embodiment of this example, a signal of the real world 1 which is an image is particularly referred to as an optical signal, and the function F is particularly referred to as an optical signal function F.
[1313]
In the embodiment of this example, when the optical signal of the real world 1 represented by the optical signal function F has a predetermined continuity, the real world estimating unit 102 outputs the input image (corresponding to the continuity) from the sensor 2. Image data including the stationarity of the data to be processed) and the data stationarity information (data stationarity information corresponding to the stationarity of the data of the input image) from the data stationarity detection unit 101, and the optical signal function F The optical signal function F is estimated by approximation with a predetermined function f. Hereinafter, in the description of the embodiment of this example, the function f is particularly referred to as an approximate function f.
[1314]
In other words, in the embodiment of this example, the real-world estimating unit 102 uses the model 161 (FIG. 7) represented by the approximation function f to generate the image (the real world 1) represented by the optical signal function F. (Optical signal) is approximated (described). Therefore, the embodiment of this example is hereinafter referred to as a function approximation method.
[1315]
Here, prior to a specific description of the function approximation method, the background that led the present applicant to invent the function approximation method will be described.
[1316]
FIG. 206 is a view for explaining the integration effect when the sensor 2 is a CCD.
[1317]
As shown in FIG. 206, a plurality of detection elements 2-1 are arranged on the plane of the sensor 2.
[1318]
In the example of FIG. 206, the direction parallel to one predetermined side of the detection element 2-1 is the X direction, which is one direction in the spatial direction, and the direction perpendicular to the X direction is the other direction in the spatial direction. It is a certain Y direction. The direction perpendicular to the XY plane is the t direction, which is the time direction.
[1319]
In the example of FIG. 206, the spatial shape of each detection element 2-1 of the sensor 2 is a square with one side length of one. The shutter time (exposure time) of the sensor 2 is set to 1.
[1320]
Further, in the example of FIG. 206, the center of one predetermined detection element 2-1 of the sensor 2 is located at the origin (the position x = 0 in the X direction and the position y in the Y direction) in the spatial direction (X direction and Y direction). = 0), and the intermediate time of the exposure time is the origin in the time direction (t direction) (position t = 0 in the t direction).
[1321]
In this case, the detection element 2-1 having its center at the origin (x = 0, y = 0) in the spatial direction is in the range of -0.5 to 0.5 in the X direction and -0.5 in the Y direction. The optical signal function F (x, y, t) is integrated in the range of 0.5 to 0.5 and in the range of -0.5 to 0.5 in the t direction, and the integrated value is output as the pixel value P. .
[1322]
That is, the pixel value P output from the detection element 2-1 having its center at the origin in the spatial direction is represented by the following equation (104).
[1323]
[Equation 74]
Figure 2004246526
Figure 2004246526
[1324]
Similarly, by setting the center of the target detection element 2-1 as the origin in the spatial direction, the other detection elements 2-1 output the pixel value P represented by Expression (104).
[1325]
FIG. 207 is a view for explaining a specific example of the integration effect of the sensor 2.
[1326]
In FIG. 207, the X direction and the Y direction represent the X direction and the Y direction of the sensor 2 (FIG. 206).
[1327]
A portion 2301 of the optical signal of the real world 1 (hereinafter, such a portion is referred to as a region) 2301 represents an example of a region having a predetermined continuity.
[1328]
Note that the area 2301 is actually a part (continuous area) of a continuous optical signal. On the other hand, in FIG. 207, the region 2301 is shown as being divided into 20 small regions (square regions). This is because the size of the region 2301 is equivalent to the size in which four detection elements (pixels) of the sensor 2 are arranged in the X direction and five in the Y direction. is there. That is, each of the 20 small regions (virtual regions) in the region 2301 corresponds to one pixel.
[1329]
A white portion in the drawing of the region 2301 indicates an optical signal corresponding to a thin line. Therefore, the region 2301 has continuity in the direction in which the thin line continues. Therefore, hereinafter, the region 2301 is referred to as a thin-line-containing real world region 2301.
[1330]
In this case, when the thin-line-containing real world region 2301 (a part of the optical signal of the real world 1) is detected by the sensor 2, the sensor 2 outputs an input image (pixel value) region 2302 (hereinafter, referred to as the pixel value) due to the integration effect. A thin line containing data area 2302) is output.
[1331]
Each pixel in the thin line containing data area 2302 is shown as an image in the figure, but is actually data representing one predetermined value. That is, due to the integration effect of the sensor 2, the thin-line-containing real world region 2301 has 20 pixels each having a predetermined one pixel value (4 pixels in the X direction and 5 pixels in the Y direction, for a total of 20 pixels). The area changes into a thin line containing data area 2302 (distorted).
[1332]
FIG. 208 is a view for explaining another specific example of the integration effect of the sensor 2 (an example different from FIG. 207).
[1333]
In FIG. 208, the X and Y directions represent the X and Y directions of the sensor 2 (FIG. 206).
[1334]
One part (region) 2303 of the optical signal of the real world 1 represents another example of the region having the predetermined stationarity (an example different from the thin-line-containing real world region 2301 in FIG. 207).
[1335]
Note that the region 2303 is a region having the same size as the fine-line-containing real world region 2301. In other words, like the thin-line-containing real world region 2301, the region 2303 is actually a part (continuous region) of the continuous optical signal of the real world 1, but in FIG. It is shown as being divided into corresponding twenty small areas (square areas).
[1336]
The region 2303 includes an edge of a first portion having a predetermined first light intensity (value) and an edge of a second portion having a predetermined second light intensity (value). Therefore, the region 2303 has continuity in the direction in which the edge continues. Therefore, hereinafter, the region 2303 is referred to as a binary edge-containing real world region 2303.
[1337]
In this case, when the binary edge-containing real world region 2303 (a part of the optical signal of the real world 1) is detected by the sensor 2, the sensor 2 outputs an input image (pixel value) region 2304 (pixel value) due to the integration effect. Hereinafter, a binary edge-containing data area 2304 is output.
[1338]
Each of the pixel values in the binary edge-containing data area 2304 is represented as an image in the drawing similarly to the fine line-containing data area 2302, but is actually data representing a predetermined value. That is, due to the integration effect of the sensor 2, the binary edge-containing real world region 2303 has a total of 20 pixels (4 pixels in the X direction and 5 pixels in the Y direction) each having one predetermined pixel value. (The number of pixels) is changed to a binary edge-containing data area 2304 (distorted).
[1339]
The conventional image processing apparatus uses the image data output from the sensor 2 such as the thin line-containing data area 2302 and the binary edge-containing data area 2304 as an origin (reference), and sets the image data as a processing target. Subsequent image processing was performed. That is, although the image data output from the sensor 2 is different (distorted) from the optical signal of the real world 1 due to the integration effect, the conventional image processing apparatus Image processing was performed with data different from the optical signal as positive.
[1340]
As a result, in the conventional image processing apparatus, it is very difficult to restore the original details from the waveform (image data) in which the details in the real world are collapsed at the stage of output from the sensor 2. Was difficult.
[1341]
Therefore, in the function approximation method, in order to solve this problem, as described above (as shown in FIG. 205), the real world estimating unit 102 uses the thin line containing data area 2302 and the binary edge containing data area 2304 as described above. The optical signal function F is estimated by approximating the optical signal function F (the optical signal of the real world 1) with the approximation function f from the image data (input image) output from the sensor 2 as described above.
[1342]
Thus, at a stage subsequent to the real world estimation unit 102 (in this case, the image generation unit 103 in FIG. 3), the image data in which the integration effect is considered, that is, the image data that can be expressed by the approximation function f is set as the origin. Processing can be performed.
[1343]
Hereinafter, three specific methods (first to third function approximation methods) among such function approximation methods will be individually described with reference to the drawings.
[1344]
First, a first function approximation method will be described with reference to FIGS. 209 to 223.
[1345]
FIG. 209 is a diagram again showing the thin-line-containing real world region 2301 shown in FIG. 207 described above.
[1346]
In FIG. 209, the X direction and the Y direction represent the X direction and the Y direction of the sensor 2 (FIG. 206).
[1347]
The first function approximation method projects, for example, an optical signal function F (x, y, t) corresponding to a thin-line-containing real world area 2301 as shown in FIG. 209 in the X direction (the direction of arrow 2311 in the figure). A method of approximating the obtained one-dimensional waveform (hereinafter, such a waveform is referred to as an X-sectional waveform F (x)) by an approximation function f (x) which is a polynomial of order n (n is an arbitrary integer). It is. Therefore, hereinafter, the first function approximation method is particularly referred to as a one-dimensional polynomial approximation method.
[1348]
In the one-dimensional polynomial approximation method, the X-section waveform F (x) to be approximated is not limited to the one corresponding to the fine-line-containing real world region 2301 in FIG. That is, as will be described later, in the one-dimensional polynomial approximation method, it is possible to approximate any X-section waveform F (x) corresponding to the optical signal of the real world 1 having steadiness. .
[1349]
Further, the direction of projection of the optical signal function F (x, y, t) is not limited to the X direction, but may be the Y direction or the t direction. That is, in the one-dimensional polynomial approximation method, a function F (y) obtained by projecting the optical signal function F (x, y, t) in the Y direction can be approximated by a predetermined approximation function f (y). Then, a function F (t) obtained by projecting the optical signal function F (x, y, t) in the t direction can be approximated by a predetermined approximation function f (t).
[1350]
More specifically, in the one-dimensional polynomial approximation method, for example, the X-section waveform F (x) is approximated by an approximation function f (x) that is an n-th order polynomial as shown in the following equation (105). Method.
[1351]
[Equation 75]
Figure 2004246526
Figure 2004246526
[1352]
That is, in the one-dimensional polynomial approximation method, the real world estimating unit 102 calculates the coefficient (feature amount) w of x ^ i in the equation (105).iIs calculated, the X-section waveform F (x) is estimated.
[1353]
This feature amount wiIs not particularly limited. For example, the following first to third methods can be used.
[1354]
That is, the first method is a method conventionally used.
[1355]
On the other hand, the second method is a method newly invented by the applicant of the present application, and is a method in which the continuity in the spatial direction is further taken into consideration with respect to the first method.
[1356]
However, as described later, the integration effect of the sensor 2 is not considered in the first method and the second method. Therefore, the feature amount w calculated by the first method or the second methodiIs substituted for the above-described equation (105), but the approximation function f (x) is an approximation function of the input image, but is not strictly an approximation function of the X-sectional waveform F (x).
[1357]
Therefore, the applicant of the present application considers the feature amount w in the second method by further considering the integration effect of the sensor 2.iInvented a third method of calculating The feature amount w calculated by the third methodiCan be said to be an approximate function of the X-section waveform F (x) in that the integration effect of the sensor 2 is taken into account.
[1358]
Thus, strictly speaking, the first method and the second method cannot be said to be the one-dimensional polynomial approximation method, and only the third method is the one-dimensional polynomial approximation method.
[1359]
In other words, as shown in FIG. 210, the second method is an embodiment of the real world estimation unit 102 of the present invention, which is different from the one-dimensional polynomial approximation method. That is, FIG. 210 is a diagram for explaining the principle of the embodiment corresponding to the second method.
[1360]
As shown in FIG. 210, in the embodiment corresponding to the second method, when the optical signal of the real world 1 represented by the optical signal function F has a predetermined stationarity, the real world estimating unit 102 , An input image from the sensor 2 (image data including stationarity of data corresponding to stationarity), and data stationarity information from the data stationarity detecting unit 101 (data stationarity corresponding to stationarity of data of the input image) Information), the input image from the sensor 2 is not approximated to the X-section waveform F (x),2Approximate by (x).
[1361]
As described above, the second method does not consider the integration effect of the sensor 2 and only approximates the input image, and thus cannot be said to be the same level of the method as the third method. However, the second method is superior to the conventional first method in that the stationarity in the spatial direction is considered.
[1362]
Hereinafter, details of each of the first method, the second method, and the third method will be individually described in that order.
[1363]
Hereinafter, when each of the approximation functions f (x) generated by the first method, the second method, and the third method is to be distinguished from those of the other methods, the approximation function f1(X), approximation function f2(X) and the approximate function f3(X).
[1364]
First, the details of the first method will be described.
[1365]
In the first method, the approximation function f expressed by the above equation (105) is used.1The following prediction equation (106) is defined assuming that (x) holds within the thin-line-containing real world region 2301 of FIG.
[1366]
[Equation 76]
Figure 2004246526
Figure 2004246526
[1368]
In Expression (106), x represents a pixel position relative to the X direction from the pixel of interest. y represents the pixel position relative to the Y direction from the pixel of interest. e represents an error. Specifically, for example, as shown in FIG. 211, the target pixel is a thin line containing data area 2302 (the thin line containing real world area 2301 (FIG. 209) is detected and output by the sensor 2). Of these, it is assumed that the pixel is the second pixel in the X direction from the left and the third pixel in the Y direction from the bottom in the drawing. Also, a coordinate system (hereinafter referred to as a target pixel coordinate system) having the center of the target pixel as the origin (0, 0) and the x-axis and the y-axis parallel to the X direction and the Y direction (FIG. 206) of the sensor 2 respectively. ) Is set. In this case, the coordinate value (x, y) of the target pixel coordinate system indicates the relative pixel position.
[1368]
In equation (106), P (x, y) represents a pixel value at a relative pixel position (x, y). Specifically, in this case, P (x, y) in the thin line containing data area 2302 is as shown in FIG.
[1369]
FIG. 212 shows a graph of the pixel value P (x, y).
[1370]
212, the vertical axis of each graph represents a pixel value, and the horizontal axis represents a relative position x in the X direction from the pixel of interest. In the figure, the dotted line in the first graph from the top indicates the input pixel value P (x, -2), the three-dot chain line in the second graph from the top indicates the input pixel value P (x, -1), , The solid line in the third graph represents the input pixel value P (x, 0), the dashed line in the fourth graph from the top represents the input pixel value P (x, 1), and the fifth from the top (first from the bottom). 2) indicate the input pixel value P (x, 2), respectively.
[1371]
For the above equation (106), the 20 input pixel values P (x, -2), P (x, -1), P (x, 0), P (x, 1) shown in FIG. , P (x, 2) (where x is an integer of any one of −1 to 2), 20 equations represented by the following equation (107) are generated. Note that ekEach (k is an integer value of any one of 1 to 20) represents an error.
[1372]
[Equation 77]
Figure 2004246526
Figure 2004246526
[1373]
Since the expression (107) is composed of 20 equations, the approximation function f1(X) characteristic amount wiIs less than 20, ie, the approximate function f1If (x) is a polynomial of degree less than 19, for example, the feature amount wiCan be calculated. A specific solution of the least squares method will be described later.
[1374]
For example, now the approximation function f1When the order of (x) is set to the fifth order, the approximate function f calculated by the least square method using the equation (107)1(X) (calculated feature amount wiApproximate function f generated by1(X)) becomes a curve shown in FIG.
[1375]
In FIG. 213, the vertical axis represents the pixel value, and the horizontal axis represents the relative position x from the pixel of interest.
[1376]
That is, each of the 20 pixel values P (x, y) constituting the thin line containing data area 2302 in FIG. 211 (input pixel values P (x, −2), P (x, −1) shown in FIG. 212). , P (x, 0), P (x, 1), and P (x, 2)), for example, are added as they are along the x axis (the relative position y in the Y direction is assumed to be constant, and When five graphs indicated by 212 are superimposed), a plurality of lines (dotted line, three-dot chain line, solid line, one-dot chain line, and two-dot chain line) parallel to the x-axis as shown in FIG. 213 are distributed.
[1377]
However, in FIG. 213, the dotted line indicates the input pixel value P (x, -2), the three-dot chain line indicates the input pixel value P (x, -1), the solid line indicates the input pixel value P (x, 0), An alternate long and short dash line indicates the input pixel value P (x, 1), and an alternate long and two short dash line indicates the input pixel value P (x, 2). In the case of the same pixel value, two or more lines actually overlap, but in FIG. 213, each line is drawn so as not to overlap so that each line can be distinguished.
[1378]
The 20 input pixel values P (x, -2), P (x, -1), P (x, 0), P (x, 1), and P (x, 2) distributed in this manner Each and the value f1A regression curve that minimizes the error of (x) (the feature amount w calculated by the least squares method)iInto the above equation (104)1(X)) is a curve (approximate function f) shown in FIG.1(X)).
[1379]
Thus, the approximation function f1(X) is a pixel value in the Y direction (a pixel value having the same relative position x in the X direction from the pixel of interest) P (x, -2), P (x, -1), P (x, 0), The average value of P (x, 1) and P (x, 2) merely represents a curve connecting in the X direction. That is, without considering the spatial continuity of the optical signal, the approximation function f1(X) has been generated.
[1380]
For example, in this case, the approximation target is the thin-line-containing real world region 2301 (FIG. 209). As shown in FIG. 214, the thin-line-containing real world region 2301 has a gradient GFHas a stationarity in the spatial direction represented by In FIG. 214, the X and Y directions represent the X and Y directions of the sensor 2 (FIG. 206).
[1381]
Therefore, the data continuity detecting unit 101 (FIG. 205) calculates the continuity gradient G in the spatial direction.FAs data continuity information corresponding to the angle θ (inclination GFSlope G corresponding tofAnd the angle θ between the X direction and the continuity direction of the data represented by
[1382]
However, in the first method, the data continuity information output from the data continuity detecting unit 101 is not used at all.
[1383]
In other words, as shown in FIG. 214, the direction of continuity in the spatial direction of the thin-line-containing real world region 2301 is substantially the angle θ. However, the first method assumes that the direction of spatial continuity of the thin-line-containing real-world region 2301 in the spatial direction is the Y direction (that is, assuming that the angle θ is 90 degrees) and the approximation function f1(X) characteristic amount wiIs a method of calculating.
[1384]
Therefore, the approximation function f1(X) is a function in which the waveform is dull and the detail is smaller than the original pixel value. In other words, although not shown, the approximate function f generated by the first method is1(X) is a waveform significantly different from the actual X-section waveform F (x).
[1385]
Therefore, the applicant of the present application has considered the first method by further considering the continuity in the spatial direction (using the angle θ).iA second method of calculating the following is invented.
[1386]
That is, the second method assumes that the direction of the stationarity of the thin-line-containing real world region 2301 is substantially the angle θ, and the approximation function f2(X) feature wiIs a method of calculating.
[1387]
Specifically, for example, a gradient G representing the stationarity of data corresponding to the stationarity in the spatial directionfIs represented by the following equation (108).
[1388]
[Equation 78]
Figure 2004246526
Figure 2004246526
[1389]
In Expression (108), dx represents a minute movement amount in the X direction as shown in FIG. 214, and dy represents a minute movement amount in the Y direction with respect to dx as shown in FIG. I have.
[1390]
In this case, the shift amount CxWhen (y) is defined as in the following equation (109), in the second method, an equation corresponding to equation (106) used in the first method is expressed as in the following equation (110). Become.
[1391]
[Expression 79]
Figure 2004246526
Figure 2004246526
[1392]
[Equation 80]
Figure 2004246526
Figure 2004246526
[1393]
That is, the expression (106) used in the first method indicates that the position x in the X direction of the center position (x, y) of the pixel is the pixel value P (x, y) of the pixel located at the same position. ) Indicates that they have the same value. In other words, Expression (106) indicates that pixels having the same pixel value continue in the Y direction (there is continuity in the Y direction).
[1394]
On the other hand, the expression (110) used in the second method is that the pixel value P (x, y) of the pixel whose center position is (x, y) is the target pixel (the center position). Is a pixel value (≒ f) of a pixel located at a position x away from the origin (0,0) in the X direction by x.2(X)), and the shift amount C from the pixel in the X directionxA pixel located at a position separated by (y) (x + C in the X direction from the pixel of interest)xThe pixel value (≒ f) of the pixel located at a position separated by (y)2(X + Cx(Y))). In other words, Expression (110) indicates that the pixels having the same pixel value have the shift amount Cx(Y) is continued in the angle θ direction (substantially stationary in the angle θ direction).
[1395]
Thus, the shift amount Cx(Y) is the continuity in the spatial direction (in this case, the gradient G in FIG. 214)F(Strictly speaking, the slope GfIs a correction amount that takes into account the stationarity of the data represented byxEquation (110) is obtained by correcting equation (106) by (y).
[1396]
In this case, 20 pixel values P (x, y) of the thin line containing data area 2302 shown in FIG. 211 (where x is an integer value of any of −1 to 2; y is −2 to 2) By substituting each of the integers 2 in the above equation (110), 20 equations represented by the following equation (111) are generated.
[1397]
(Equation 81)
Figure 2004246526
Figure 2004246526
[1398]
Equation (111) is composed of 20 equations, similarly to equation (107) described above. Therefore, in the second method as well as in the first method, the approximation function f2(X) characteristic amount wiIs less than 20, ie, the approximate function f2If (x) is a polynomial of degree less than 19, for example, the feature amount wiCan be calculated. A specific solution of the least squares method will be described later.
[1399]
For example, similar to the first method, the approximate function f2When the degree of (x) is set to the fifth order, in the second method, the characteristic amount w is set as follows.iIs calculated.
[1400]
That is, FIG. 215 shows a graph of the pixel value P (x, y) shown on the left side of Expression (111). Each of the five graphs shown in FIG. 215 is basically the same as that shown in FIG.
[1401]
As shown in FIG. 215, the maximum pixel value (the pixel value corresponding to the thin line) has a gradient GfThis follows the direction of data continuity represented by.
[1402]
Therefore, in the second method, the input pixel values P (x, -2), P (x, -1), P (x, 0), P (x, 1), P (x , 2) are added, for example, along the x-axis, as in the first method (they are assumed to be constant, and five graphs are superimposed in the state shown in FIG. 215). Instead, the state is changed to the state shown in FIG. 216 and then added.
[1403]
That is, FIG. 216 shows the input pixel values P (x, −2), P (x, −1), P (x, 0), P (x, 1), and P (x, 2) shown in FIG. Is calculated by the shift amount C expressed by the above-described equation (109).xThe state shifted by (y) is shown. In other words, FIG. 216 plots the five graphs shown in FIG. 215 with the slope G, which represents the actual direction of data continuity.FAs if the gradient GF(In the figure, the dotted straight line is replaced by a solid straight line).
[1404]
In the state of FIG. 216, each of the input pixel values P (x, -2), P (x, -1), P (x, 0), P (x, 1), and P (x, 2) is, for example, , When added along the x-axis (five graphs are superimposed in the state shown in FIG. 216), a plurality of lines parallel to the x-axis (dotted line, three-dot chain line, solid line, And a two-dot chain line).
[1405]
In FIG. 217, the vertical axis represents a pixel value, and the horizontal axis represents a relative position x from the pixel of interest. The dotted line indicates the input pixel value P (x, -2), the three-dot chain line indicates the input pixel value P (x, -1), the solid line indicates the input pixel value P (x, 0), and the one-dot chain line indicates the input pixel value. The pixel value P (x, 1) is shown, and the two-dot chain line represents the input pixel value P (x, 2). Further, in the case of the same pixel value, two or more lines actually overlap, but in FIG. 217, each line is drawn so as not to overlap so that each line can be distinguished.
[1406]
Then, each of the 20 input pixel values P (x, y) distributed in this manner (where x is any integer value from −1 to 2; y is the integer value from −2 to 2) Any integer value) and the value f2(X + Cx(Y)) a regression curve that minimizes the error (the feature amount w calculated by the least squares method)iInto the above equation (104)2(X)) is a curve f indicated by a solid line in FIG.2(X).
[1407]
Thus, the approximation function f generated by the second method2(X) indicates the average value of the input pixel values P (x, y) in the angle θ direction (ie, the direction of the continuity substantially in the spatial direction) output from the data continuity detecting unit 101 (FIG. 205) in the X direction. Represents the curve connected to.
[1408]
On the other hand, as described above, the approximate function f generated by the first method is used.1(X) merely represents a curve connecting the average value of the input pixel values P (x, y) in the Y direction (that is, a direction different from the spatial continuity) in the X direction.
[1409]
Therefore, as shown in FIG. 217, the approximation function f generated by the second method2(X) is the approximate function f generated by the first method.1The function becomes a function in which the degree of bluntness of the waveform is reduced and the degree of reduction in detail with respect to the original pixel value is reduced as compared with (x). In other words, although not shown, the approximation function f generated by the second method2(X) is an approximate function f generated by the first method.1The waveform becomes closer to the actual X-section waveform F (x) than (x).
[1410]
However, as described above, the approximation function f2(X) takes into account the continuity in the spatial direction, but is nothing but an image generated using the input image (input pixel value) as the origin (reference). That is, as shown in FIG.2(X) only approximates an input image different from the X-sectional waveform F (x), and it cannot be said that it approximates the X-sectional waveform F (x). In other words, the second method assumes that the above equation (110) holds, and the feature amount wiWhich does not take into account the relationship of the above equation (104) (the integration effect of the sensor 2 is not taken into account).
[1411]
Therefore, the applicant of the present application considers the integration function of the sensor 2 with respect to the second method so as to obtain the approximate function f.3(X) characteristic amount wiInvented a third method of calculating
[1412]
That is, the third method is a method in which the concept of a space mixing region is introduced.
[1413]
Before describing the third method, the spatial mixing region will be described with reference to FIG.
[1414]
In FIG. 218, one portion 2321 of the optical signal in the real world 1 (hereinafter, referred to as a region 2321) represents a region having the same area as one detection element (pixel) of the sensor 2.
[1415]
When the area 2321 is detected by the sensor 2, the sensor 2 outputs a value (one pixel value) 2322 obtained by integrating the area 2321 in the spatiotemporal direction (X direction, Y direction, and t direction). The pixel value 2322 is represented as an image in the figure, but is actually data representing a predetermined value.
[1416]
The area 2321 of the real world 1 is clearly divided into an optical signal (white area in the figure) corresponding to the foreground (for example, the thin line described above) and an optical signal (black area in the figure) corresponding to the background.
[1417]
On the other hand, the pixel value 2322 is a value obtained by integrating the optical signal of the real world 1 corresponding to the foreground and the optical signal of the real world 1 corresponding to the background. In other words, the pixel value 2322 is a value corresponding to a level obtained by spatially mixing the light level corresponding to the foreground and the light level corresponding to the background.
[1418]
As described above, the portion corresponding to one pixel (detection element of the sensor 2) of the optical signal of the real world 1 is not a portion where the optical signals of the same level are spatially uniformly distributed, but the foreground and the background. When each of the light signals at different levels is distributed as described above, the area is detected by the sensor 2 and as a result of the integration effect of the sensor 2, the different light levels are mixed spatially as if they were spatially mixed (spatial). (Integrated in the direction) into one pixel value. As described above, an area including pixels in which the image for the foreground (the optical signal of the real world 1) and the image for the background (the optical signal of the real world 1) are spatially integrated is referred to as a spatial mixed area. ing.
[1419]
Therefore, in the third method, the real world estimating unit 102 (FIG. 205) calculates the original area 2321 of the real world 1 (the part 2321 corresponding to one pixel of the sensor 2 in the optical signal of the real world 1). The X-section waveform F (x) representing the following equation is converted to an approximate function f which is a first-order polynomial as shown in FIG.3The X-section waveform F (x) is estimated by approximation by (x).
[1420]
That is, FIG. 219 shows an approximation function f corresponding to a pixel value 2322 (FIG. 218) that is a spatial mixed area.3(X), that is, an approximate function f approximating the X-section waveform F (x) corresponding to the solid line (FIG. 218) in the area 2331 of the real world 1313 illustrates an example of (x). In FIG. 219, the horizontal axis in the figure is the lower left end x of the pixel corresponding to the pixel value 2322.sTo lower right xe218 represents an axis parallel to the side (FIG. 218), and is set as an x-axis. The axis in the vertical direction in the figure is an axis representing a pixel value.
[1421]
In FIG. 219, the approximation function f3(X) is xsTo xeThe following equation (112) is defined assuming that the value integrated in the range (pixel width) substantially coincides with the pixel value P (x, y) output from the sensor 2 (there is only an error e).
[1422]
(Equation 82)
Figure 2004246526
Figure 2004246526
[1423]
In this case, 20 pixel values P (x, y) in the fine line containing data area 2302 shown in FIG. 214 (where x is any integer value from −1 to 2; y is −2) From any of integers 2 to 2) from the approximate function f3(X) characteristic amount wiIs calculated, the pixel value P in the equation (112) becomes the pixel value P (x, y).
[1424]
Also, as in the second method, it is necessary to consider the continuity in the spatial direction, and therefore, the starting position x of the integration range in Expression (112)sAnd end position xeAre shift amounts CxIt will also depend on (y). That is, the starting position x of the integration range of Expression (112)sAnd end position xeAre expressed as in the following equation (113).
[1425]
[Equation 83]
Figure 2004246526
Figure 2004246526
[1426]
In this case, each pixel value of the thin line containing data area 2302 shown in FIG. 214, that is, the input pixel values P (x, -2), P (x, -1), P (x, 0) shown in FIG. ), P (x, 1), and P (x, 2) (where x is an integer of any one of −1 to 2) by the above-described equation (112) (the integration range is By substituting into equation (113), 20 equations represented by the following equation (114) are generated.
[1427]
[Equation 84]
Figure 2004246526
[Equation 85]
Figure 2004246526
Figure 2004246526
[1428]
Equation (114) is composed of 20 equations, similar to equation (111) described above. Therefore, in the third method as well as in the second method, the approximate function f3(X) characteristic amount wiIs less than 20, ie, the approximate function f3If (x) is a polynomial of degree less than 19, for example, the feature amount wiCan be calculated. A specific solution of the least squares method will be described later.
[1429]
For example, the approximation function f3When the order of (x) is set to the fifth order, the approximate function f calculated by the least square method using the equation (114)3(X) (calculated feature amount wiApproximate function f generated by3(X)) becomes a curve shown by a solid line in FIG.
[1430]
In FIG. 220, the vertical axis represents the pixel value, and the horizontal axis represents the relative position x from the target pixel.
[1431]
As shown in FIG. 220, the approximate function f generated by the third method3(X) (a curve shown by a solid line in the figure) represents an approximate function f generated by the second method.2Compared with (x) (the curve shown by the dotted line in the figure), the pixel value at x = 0 becomes large, and the curve has a steep waveform. This is because the number of details is greater than that of the input pixels and is independent of the resolution of the input pixels. That is, the approximate function f3It can be said that (x) approximates the X-section waveform F (x). Therefore, although not shown, the approximation function f3(X) is the approximate function f2The waveform becomes closer to the X-section waveform F (x) than (x).
[1432]
FIG. 221 illustrates a configuration example of the real world estimating unit 102 using such a first-order polynomial approximation method.
[1433]
In FIG. 221, the real world estimating unit 102 determines, for example, the feature amount wiIs calculated by the above-described third method (least square method), and the calculated feature amount wiIs used to estimate the X-section waveform F (x) by generating the approximate function f (x) of the above equation (105).
[1434]
As shown in FIG. 221, the real world estimation unit 102 includes a condition setting unit 2331, an input image storage unit 2332, an input pixel value acquisition unit 2333, an integral component calculation unit 2334, a normal equation generation unit 2335, and an approximation function generation unit. A part 2336 is provided.
[1435]
The condition setting unit 2331 sets a pixel range (hereinafter, referred to as a tap range) used for estimating the X-sectional waveform F (x) corresponding to the target pixel, and sets the order n of the approximate function f (x). .
[1436]
The input image storage unit 2332 temporarily stores an input image (pixel value) from the sensor 2.
[1437]
The input pixel value obtaining unit 2333 obtains an area of the input image corresponding to the tap range set by the condition setting unit 2231 in the input image stored in the input image storage unit 2332, and stores it in the input pixel value table. Is supplied to the normal equation generation unit 2335. That is, the input pixel value table is a table in which each pixel value of each pixel included in the area of the input image is described. A specific example of the input pixel value table will be described later.
[1438]
By the way, here, the real world estimating unit 102 uses the aforementioned equations (112) and (113) to calculate the feature amount w of the approximate function f (x) by the least square method.iIs calculated, and the above equation (112) can be expressed as the following equation (115).
[1439]
[Equation 86]
Figure 2004246526
Figure 2004246526
[1440]
In equation (115), Si(Xs, Xe) Represents the integral component of the i-th order term. That is, the integral component Si(Xs, Xe) Is represented by the following equation (116).
[1441]
[Equation 87]
Figure 2004246526
Figure 2004246526
[1442]
The integral component calculator 2334 calculates the integral component Si(Xs, Xe) Is calculated.
[1443]
Specifically, the integral component S expressed by equation (116)i(Xs, Xe) (However, the value xsAnd the value xeIs the value represented by the above equation (112)) is the relative pixel position (x, y) and the shift amount CxIf (y) and i of the i-th term are known, calculation is possible. The relative pixel position (x, y) among them is determined by the shift amount C depending on the target pixel and the tap range.x(Y) is determined by the angle θ (from the above-described equations (107) and (109)), and the range of i is determined by the order n.
[1444]
Therefore, the integral component calculation unit 2334 determines the integral component S based on the tap range and order set by the condition setting unit 2331, and the angle θ in the data continuity information output from the data continuity detection unit 101.i(Xs, Xe) Is calculated, and the calculation result is supplied to the normal equation generating unit 2335 as an integral component table.
[1445]
The normal equation generation unit 2335 uses the input pixel value table supplied from the input pixel value acquisition unit 2333 and the integral component table supplied from the integral component operation unit 2334 to obtain the above-described equation (112), that is, the equation The feature value w on the right side of (115)iIs generated by the least square method, and is supplied to the approximate function generating unit 2336 as a normal equation table. A specific example of the normal equation will be described later.
[1446]
The approximation function generation unit 2336 solves the normal equation included in the normal equation table supplied from the normal equation generation unit 2335 by matrix release, thereby obtaining the feature amount w of the above equation (115).i(That is, the coefficient w of the approximate function f (x) which is a one-dimensional polynomiali) Are calculated and output to the image generation unit 103.
[1449]
Next, with reference to the flowchart in FIG. 222, the real world estimating process (the process in step S102 in FIG. 40) of the real world estimating unit 102 (FIG. 221) using the one-dimensional polynomial approximation method will be described.
[1448]
For example, it is assumed that an input image of one frame output from the sensor 2 and including the thin line containing data area 2302 in FIG. 207 described above is already stored in the input image storage unit 2332. Further, in the continuity detection process of step S101 (FIG. 40), the data continuity detection unit 101 performs the process on the thin-line-containing data area 2302, and already outputs the angle θ as data continuity information. Suppose
[1449]
In this case, in step S2301 of FIG. 222, the condition setting unit 2331 sets conditions (tap range and order).
[1450]
For example, it is assumed that the tap range 2351 shown in FIG. 223 has been set and the fifth order has been set.
[1451]
That is, FIG. 223 is a diagram illustrating an example of the tap range. In FIG. 223, the X direction and the Y direction represent the X direction and the Y direction of the sensor 2 (FIG. 206). The tap range 2351 represents a pixel group including a total of 20 pixels (20 squares in the figure) for 4 pixels in the X direction and 5 pixels in the Y direction.
[1452]
Further, as shown in FIG. 223, it is assumed that the target pixel is the second pixel from the left and the third pixel from the bottom of the tap range 2351 in the figure. In addition, for each pixel, the relative pixel position (x, y) from the target pixel (coordinate value of the target pixel coordinate system whose origin is the center (0, 0) of the target pixel) in FIG. It is assumed that a number 1 (1 is an integer value of any one of 0 to 19) as shown in FIG.
[1453]
Returning to FIG. 222, in step S2302, the condition setting unit 2331 sets a target pixel.
[1454]
In step S2303, the input pixel value acquisition unit 2333 acquires an input pixel value based on the condition (tap range) set by the condition setting unit 2331, and generates an input pixel value table. That is, in this case, the input pixel value acquisition unit 2333 acquires the thin line containing data area 2302 (FIG. 211), and generates a table including 20 input pixel values P (l) as the input pixel value table.
[1455]
In this case, the relationship between the input pixel value P (l) and the above-described input pixel value P (x, y) is represented by the following expression (117). However, in equation (117), the left side represents the input pixel value P (l), and the right side represents the input pixel value P (x, y).
[1456]
[Equation 88]
Figure 2004246526
Figure 2004246526
[1457]
In step S2304, the integral component calculation unit 2334 performs integration based on the conditions (tap range and order) set by the condition setting unit 2331 and the data continuity information (angle θ) supplied from the data continuity detection unit 101. The components are calculated and an integral component table is generated.
[1458]
In this case, as described above, the input pixel value is obtained as the value of the pixel number 1 such as P (l) instead of P (x, y). Integral component S of (116)i(Xs, Xe) To the integral component S shown on the left side of the following equation (118).iThe calculation is performed as a function of l such as (l).
[1458]
Si(L) = Si(Xs, Xe) (118)
[1460]
Specifically, in this case, the integral component S expressed by the following equation (119)i(L) is calculated.
[1461]
[Equation 89]
Figure 2004246526
Figure 2004246526
[1462]
In equation (119), the left side is the integral component Si(L), and the right side is the integral component Si(Xs, Xe). That is, in this case, since i is 0 to 5, 20 S0(L), 20 S1(L), 20 S2(L), 20 S3(L), 20 S4(L), 20 S5(L) 120 S in totali(L) is calculated.
[1463]
More specifically, first, the integral component calculator 2334 uses the angle θ supplied from the data continuity detector 101 to calculate the shift amount Cx(-2), Cx(-1), Cx(1), CxEach of (2) is calculated. Next, the integral component calculator 2334 calculates the calculated shift amount Cx(-2), Cx(-1), Cx(1), CxUsing (2), the 20 integral components S shown on the right side of equation (118)i(Xs, Xe) Are calculated for each of i = 0 to 5. That is, 120 integral components Si(Xs, Xe) Is calculated. Note that this integral component Si(Xs, XeIn the calculation of ()), the above equation (116) is used. Then, the integral component computing unit 2334 computes the 120 integral components S computed according to equation (119).i(Xs, Xe) With the corresponding integral component Si(L) and the converted 120 integral components SiGenerate an integral component table including (l).
[1464]
The order of the processing in step S2303 and the processing in step S2304 is not limited to the example in FIG. 222, and the processing in step S2304 may be performed first, or the processing in step S2303 and the processing in step S2304 are performed simultaneously. May be done.
[1465]
Next, in step S2305, the normal equation generation unit 2335 generates the input pixel value table generated by the input pixel value acquisition unit 2333 in the processing of step S2303 and the integration generated by the integration component calculation unit 2334 in the processing of step S2304. A normal equation table is generated based on the component table.
[1466]
Specifically, in this case, the characteristic amount w of the following equation (120) corresponding to the above equation (115) is obtained by the least square method.iIs calculated. Then, the corresponding normal equation is represented by the following equation (121).
[1467]
[Equation 90]
Figure 2004246526
Figure 2004246526
[1468]
[Equation 91]
Figure 2004246526
Figure 2004246526
[1469]
In Expression (121), L represents the maximum value of the pixel numbers 1 in the tap range. n represents the order of the approximation function f (x) which is a polynomial. Specifically, in this case, n = 5 and L = 19.
[1470]
If each of the matrices of the normal equation represented by the equation (121) is defined as in the following equations (122) to (124), the normal equation is represented as the following equation (125).
[1471]
[Equation 92]
Figure 2004246526
Figure 2004246526
[1472]
[Equation 93]
Figure 2004246526
Figure 2004246526
[1473]
[Equation 94]
Figure 2004246526
Figure 2004246526
[1474]
[Equation 95]
Figure 2004246526
Figure 2004246526
[1475]
As shown in equation (123), the matrix WMATIs a feature amount w to be obtained.iIt is. Therefore, in equation (125), the matrix S on the left sideMATAnd the matrix P on the right sideMATIs determined, the matrix W isMAT(That is, the feature amount wi) Can be calculated.
[1476]
Specifically, as shown in equation (122), the matrix SMATAre the integral components S described above.iIf (l) is known, it can be calculated. Integral component SiSince (l) is included in the integral component table supplied from the integral component calculation unit 2334, the normal equation generation unit 2335 uses the integral component table to calculate the matrix SMATCan be calculated.
[1377]
Also, as shown in equation (124), the matrix PMATAre integral components SiIf (l) and the input pixel value P (l) are known, calculation is possible. Integral component Si(L) is a matrix SMATIn addition, since the input pixel value P (l) is included in the input pixel value table supplied from the input pixel value acquisition unit 2333, the normal equation generation unit 2335 is a matrix P using an integral component table and an input pixel value table.MATCan be calculated.
[1478]
In this manner, the normal equation generation unit 2335 calculates the matrix SMATAnd matrix PMATIs calculated, and the calculation result (matrix SMATAnd matrix PMATAre output to the approximate function generating unit 2336 as a normal equation table.
[1479]
When the normal equation table is output from the normal equation generation unit 2335, in step S2306, the approximation function generation unit 2336 determines the matrix W of the above equation (125) based on the normal equation table.MATFeature w which is each component ofi(That is, the coefficient w of the approximate function f (x) which is a one-dimensional polynomiali) Is calculated.
[1480]
Specifically, the normal equation of the above equation (125) can be modified as the following equation (126).
[1481]
[Equation 96]
Figure 2004246526
Figure 2004246526
[1482]
In equation (126), the matrix W on the left sideMATIs a feature value w to be obtained.iIt is. Also, the matrix SMATAnd matrix PMATAre included in the normal equation table supplied from the normal equation generating unit 2335. Therefore, the approximate function generation unit 2336 performs the matrix operation on the right side of the equation (126) using the normal equation table, thereby obtaining the matrix WMATIs calculated, and the calculation result (feature amount wi) Is output to the image generation unit 103.
[1483]
In step S2307, the approximate function generation unit 2336 determines whether or not processing of all pixels has been completed.
[1484]
If it is determined in step S2307 that the processing of all pixels has not been completed, the process returns to step S2302, and the subsequent processing is repeated. That is, the pixels that have not yet been set as the target pixel are sequentially set as the target pixel, and the processing of steps S2302 to S2307 is repeated.
[1485]
Then, when the processing of all the pixels is completed (when it is determined in step S2307 that the processing of all the pixels is completed), the estimation processing of the real world 1 ends.
[1486]
The coefficient (feature amount) w calculated as described aboveiThe waveform of the approximation function f (x) generated by the approximation function f (x) shown in FIG.3The waveform is as shown in (x).
[1487]
As described above, in the one-dimensional polynomial approximation method, assuming that a waveform having the same shape as the one-dimensional X-sectional waveform F (x) is connected in the direction of the stationarity, the approximation function f which is a one-dimensional polynomial is obtained. The feature amount of (x) is calculated. Therefore, in the one-dimensional polynomial approximation method, it is possible to calculate the feature amount of the approximation function f (x) with a smaller amount of operation processing compared to other function approximation methods.
[1488]
In other words, in the one-dimensional polynomial approximation method, for example, the data continuity detecting unit 101 in FIG. 205 (FIG. 3) uses a plurality of detecting elements (for example, the sensor 2 in FIG. 206) each having a spatiotemporal integration effect. The optical signal of the real world 1 (for example, a part 2301 of the optical signal of the real world 1 in FIG. 207) is projected by the detection element 2-1), and the continuity of the optical signal of the real world 1 (for example, FIG. 214) Slope GFA plurality of pixels having a part of the pixel value projected by the detection element 2-1 (for example, the input pixel value P (x, y) shown in each graph of FIG. 212) in which a part of the continuity represented by is missing. The continuity of the data in the image data composed of pixels (for example, the image data (the area of the input image) 2302 in FIG. 207) (for example, the slope G in FIG. 214)f(Stationarity of data represented by).
[1489]
For example, the real-world estimating unit 102 in FIG. 205 (FIG. 3) responds to the continuity of the data detected by the data continuity detecting unit 101 in one-dimensional directions (for example, FIG. The pixel value of the pixel corresponding to the position of the arrow 231 in 209 (ie, the X direction) (for example, the input pixel value P on the left side of the above-described equation (112)) is obtained by the one-dimensional integration effect. Value (eg, as shown on the right side of equation (112), the approximate function f3Assuming that (x) is a value integrated in the X direction), the optical signal function F (specifically, the X-sectional waveform F (x)) representing the optical signal of the real world 1 is converted into a predetermined approximate function f (specific) Specifically, for example, the approximation function f in FIG.3The optical signal function F is estimated by approximating (x)).
[1490]
More specifically, for example, the real world estimating unit 102 calculates a line corresponding to the continuity of the data detected by the continuity detecting unit 101 (for example, the slope G in FIG. 216).fThe pixel value of a pixel corresponding to a distance (for example, the shift amount Cx (y) in FIG. 216) along a one-dimensional direction (for example, the X direction) from a line (dotted line) corresponding to The pixel value obtained by the effect (for example, as shown on the right side of Expression (112) in the integration range as shown in Expression (112) above, the approximation function f3Assuming that (x) is a value integrated in the X direction), the optical signal function F is estimated by approximating the optical signal function F with an approximation function f.
[1491]
Therefore, in the one-dimensional polynomial approximation method, it is possible to calculate the feature amount of the approximation function f (x) with a smaller amount of operation processing compared to other function approximation methods.
[1492]
Next, a second function approximation method will be described with reference to FIGS.
[1493]
That is, the second function approximation method is, for example, a gradient G as shown in FIG.FThe optical signal of the real world 1 having spatial continuity represented by the following formula is expressed on an XY plane (an X direction which is one spatial direction and a plane which is horizontal in a Y direction perpendicular to the X direction). A method of estimating the waveform F (x, y) by approximating the waveform F (x, y) with an approximation function f (x, y) which is a two-dimensional polynomial assuming the waveform F (x, y) It is. Therefore, hereinafter, the second function approximation method is referred to as a two-dimensional polynomial approximation method.
[1494]
In FIG. 224, the horizontal direction indicates the X direction which is one direction in the spatial direction, the upper right direction indicates the Y direction which is the other direction in the spatial direction, and the vertical direction indicates the light level in FIG. ing. GFRepresents the gradient of stationarity in the spatial direction.
[1495]
Also in the description of the two-dimensional polynomial approximation method, the sensor 2 is a CCD configured by arranging a plurality of detection elements 2-1 on the plane as shown in FIG.
[1496]
In the example of FIG. 225, a direction parallel to a predetermined side of the detection element 2-1 is defined as an X direction, which is one direction in the spatial direction, and a direction perpendicular to the X direction is defined as another direction in the spatial direction. It is a certain Y direction. The direction perpendicular to the XY plane is the t direction, which is the time direction.
[1497]
In the example of FIG. 225, the spatial shape of each detection element 2-1 of the sensor 2 is a square with one side length of one. The shutter time (exposure time) of the sensor 2 is set to 1.
[1498]
Furthermore, in the example of FIG. 225, the center of one predetermined detection element 2-1 of the sensor 2 is located at the origin (the position x = 0 in the X direction and the position y in the Y direction) in the spatial direction (X direction and Y direction). = 0), and the intermediate time of the exposure time is the origin in the time direction (t direction) (position t = 0 in the t direction).
[1499]
In this case, the detection element 2-1 having its center at the origin (x = 0, y = 0) in the spatial direction is in the range of -0.5 to 0.5 in the X direction and -0.5 in the Y direction. The optical signal function F (x, y, t) is integrated in the range of 0.5 to 0.5 and in the range of -0.5 to 0.5 in the t direction, and the integrated value is output as the pixel value P. .
[1500]
That is, the pixel value P output from the detection element 2-1 having the center at the origin in the spatial direction is represented by the following equation (127).
[1501]
[Equation 97]
Figure 2004246526
Figure 2004246526
[1502]
Similarly, the other detection elements 2-1 output the pixel value P expressed by the expression (127) by setting the center of the target detection element 2-1 as the origin in the spatial direction.
[1503]
As described above, the two-dimensional polynomial approximation method treats the optical signal of the real world 1 as, for example, a waveform F (x, y) as shown in FIG. This is a method of approximating y) to an approximate function f (x, y) which is a two-dimensional polynomial.
[1504]
Therefore, first, a method of expressing such an approximate function f (x, y) by a two-dimensional polynomial will be described.
[1505]
As described above, the optical signal in the real world 1 is represented by the optical signal function F (x, y, t) having the positions x, y, and z in the three-dimensional space and the time t as variables. A one-dimensional waveform obtained by projecting the optical signal function F (x, y, t) in the X direction at an arbitrary position y in the Y direction is referred to as an X section waveform F (x).
[1506]
Focusing on the X-section waveform F (x), if the signal in the real world 1 has stationarity in a predetermined spatial direction, the waveform having the same shape as the X-section waveform F (x) is the stationary state. It can be thought that it is linked to the direction of sex. For example, in the example of FIG. 224, a waveform having the same shape as the X-section waveform F (x) has a slope GFIn the direction of In other words, the waveform having the same shape as the X-section waveform F (x) has the slope GFIt can be said that the waveform F (x, y) is formed in a row in the direction of.
[1507]
Therefore, the waveform of the approximate function f (x, y) approximating the waveform F (x, y) is formed by a series of waveforms having the same shape as the approximate function f (x) approximating the X-section waveform F (x). Thus, the approximation function f (x, y) can be represented by a two-dimensional polynomial.
[1508]
A method of expressing the approximate function f (x, y) will be described in more detail.
[1509]
For example, the optical signal of the real world 1 as shown in FIG.FIt is assumed that an optical signal having continuity in the spatial direction represented by is detected by the sensor 2 (FIG. 225) and output as an input image (pixel value).
[1510]
Further, as shown in FIG. 226, the data continuity detecting unit 101 (FIG. 3) outputs a total of 20 pixels (4 pixels in the X direction and 5 pixels in the Y direction) of the input image. In the figure, the processing is executed for an area 2401 of the input image composed of 20 squares represented by dotted lines), and an angle θ (slope GFSlope G corresponding tofIt is assumed that an angle θ) between the direction of the continuity of the data expressed by and the X direction is output.
[1511]
In the area 2401 of the input image, the horizontal direction in the figure represents the X direction which is one direction in the spatial direction, and the vertical direction in the figure represents the Y direction which is the other direction in the spatial direction.
[1512]
In FIG. 226, the second pixel from the left and the third pixel from the bottom are taken as the target pixel, and the (x, y) coordinates are set so that the center of the target pixel is the origin (0, 0). The system has been set. Then, a straight line of the angle θ passing through the origin (0, 0) (the gradient G representing the direction of data continuity)f(Hereinafter referred to as a cross-sectional direction distance) is described as x '.
[1513]
Further, the graph on the right side in FIG. 226 is a function obtained by approximating the X-sectional waveform F (x ′), and represents an approximate function f (x ′) which is an n-th order (n is an arbitrary integer) polynomial. Represents. Of the axes in the graph on the right side, the horizontal axis in the figure represents the distance in the cross-sectional direction, and the vertical axis in the figure represents the pixel value.
[1514]
In this case, since the approximation function f (x ') shown in FIG. 226 is an n-th order polynomial, it is expressed as the following equation (128).
[1515]
[Equation 98]
Figure 2004246526
Figure 2004246526
[1516]
Further, since the angle θ is determined, the straight line of the angle θ passing through the origin (0, 0) is uniquely determined, and the position x of the straight line in the X direction at an arbitrary position y in the Y directionlIs expressed as in the following equation (129). However, in equation (129), s represents cot θ.
[1517]
xl  = S × y (129)
[1518]
That is, as shown in FIG.fThe point on the straight line corresponding to the stationarity of the data represented by the coordinate value (xl, Y).
[1519]
From Expression (129), the cross-sectional direction distance x ′ is expressed as in the following Expression (130).
[1520]
x '= xxl  = X-s x y (130)
[1521]
Therefore, the approximate function f (x, y) at an arbitrary position (x, y) in the area 2401 of the input image is expressed by the following equation (131) from the equations (128) and (130). .
[1522]
[Equation 99]
Figure 2004246526
Figure 2004246526
[1523]
In addition, in equation (131), wiRepresents a coefficient of the approximation function f (x, y). Note that the coefficient w of the approximate function f including the approximate function f (x, y)iCan be positioned as a feature amount of the approximation function f. Therefore, hereinafter, the coefficient w of the approximation function fiWith the feature w of the approximate function fiAlso called.
[1524]
In this manner, if the angle θ is known, the approximation function f (x, y) of the two-dimensional waveform can be expressed as a polynomial of Expression (131).
[1525]
Therefore, if the real world estimating unit 102 can calculate the characteristic amount wi of the equation (131), it can estimate a waveform F (x, y) as shown in FIG.
[1526]
Therefore, a method of calculating the characteristic amount wi of Expression (131) will be described below.
[1527]
That is, the approximation function f (x, y) represented by Expression (131) is integrated in the integration range (the integration range in the spatial direction) corresponding to the pixel (the detection element 2-1 of the sensor 2 (FIG. 225)). For example, the integrated value is an estimated value of the pixel value of the pixel. This is expressed by the following equation (132). In the two-dimensional polynomial approximation method, since the time direction t is regarded as a constant value, the expression (132) is an equation using the positions x and y in the spatial direction (X direction and Y method) as variables. .
[1528]
[Equation 100]
Figure 2004246526
Figure 2004246526
[1529]
In Expression (132), P (x, y) has a center position at a position (x, y) (relative position (x, y) from a pixel of interest) in an input image from the sensor 2. It represents the pixel value of a pixel. E represents an error.
[1530]
Thus, in the two-dimensional polynomial approximation method, the relationship between the input pixel value P (x, y) and the approximation function f (x, y), which is a two-dimensional polynomial, can be expressed by equation (132). Since it is possible, the real world estimating unit 102 calculates the feature amount wi by using, for example, the least squares method using the equation (132) (substituting the calculated feature amount wi into the equation (130)). To generate an approximate function f (x, y)), a two-dimensional function F (x, y) (slope GFIt is possible to estimate the waveform F (x, y) of the optical signal of the real world 1 having spatial continuity represented by (FIG. 224) and focusing on the spatial direction.
[1531]
FIG. 227 illustrates a configuration example of the real world estimation unit 102 that uses such a two-dimensional polynomial approximation method.
[1532]
As shown in FIG. 227, the real world estimation unit 102 includes a condition setting unit 2421, an input image storage unit 2422, an input pixel value acquisition unit 2423, an integral component operation unit 2424, a normal equation generation unit 2425, and an approximation function generation unit. A part 2426 is provided.
[1533]
The condition setting unit 2421 sets a pixel range (tap range) used for estimating the function F (x, y) corresponding to the target pixel, and sets the order n of the approximate function f (x, y).
[1534]
The input image storage unit 2422 temporarily stores an input image (pixel value) from the sensor 2.
[1535]
The input pixel value obtaining unit 2423 obtains an area of the input image corresponding to the tap range set by the condition setting unit 2421 from the input image stored in the input image storage unit 2422, and stores the obtained area in the input pixel value table. Is supplied to the normal equation generation unit 2425. That is, the input pixel value table is a table in which each pixel value of each pixel included in the area of the input image is described. A specific example of the input pixel value table will be described later.
[1536]
By the way, as described above, the real world estimating unit 102 using the two-dimensional polynomial approximation method solves the above equation (132) by the method of least squares, thereby obtaining the approximation function f ( x, y) feature wiIs calculated.
[1537]
The expression (132) can be expressed as the following expression (137) by using the following expression (136) obtained by using the following expressions (133) to (135).
[1538]
[Equation 101]
Figure 2004246526
Figure 2004246526
[1539]
[Equation 102]
Figure 2004246526
Figure 2004246526
[1540]
[Equation 103]
Figure 2004246526
Figure 2004246526
[1541]
[Equation 104]
Figure 2004246526
Figure 2004246526
[1542]
[Equation 105]
Figure 2004246526
Figure 2004246526
[1543]
In equation (137), Si(X-0.5, x + 0.5, y-0.5, y + 0.5) represents the integral component of the i-th term. That is, the integral component Si(X−0.5, x + 0.5, y−0.5, y + 0.5) is as shown in the following equation (138).
[1544]
[Equation 106]
Figure 2004246526
Figure 2004246526
[1545]
The integral component calculator 2424 calculates the integral component Si(X−0.5, x + 0.5, y−0.5, y + 0.5) is calculated.
[1546]
Specifically, the integral component S shown in equation (138)i(X−0.5, x + 0.5, y−0.5, y + 0.5) is obtained by knowing the relative pixel position (x, y), the variable s in the above equation (131), and the i-th term i. If so, it can be calculated. Of these, the relative pixel position (x, y) is determined by the target pixel and the tap range, the variable s is cot θ, and the range of i is determined by the angle θ, and the range of i is determined by the order n.
[1547]
Therefore, the integral component calculation unit 2424 determines the integral component S based on the tap range and order set by the condition setting unit 2421 and the angle θ in the data continuity information output from the data continuity detection unit 101.i(X−0.5, x + 0.5, y−0.5, y + 0.5) is calculated, and the calculation result is supplied to the normal equation generation unit 2425 as an integral component table.
[1548]
The normal equation generation unit 2425 uses the input pixel value table supplied from the input pixel value acquisition unit 2423 and the integral component table supplied from the integral component calculation unit 2424 to use the above-described equation (132), that is, equation (132). A normal equation for obtaining (137) by the least squares method is generated, and is output to the approximate function generating unit 2426 as a normal equation table. A specific example of the normal equation will be described later.
[1549]
The approximation function generation unit 2426 solves the normal equation included in the normal equation table supplied from the normal equation generation unit 2425 by matrix release to obtain the feature amount w of the above equation (132).i(That is, the coefficient w of the approximation function f (x, y) which is a two-dimensional polynomiali) Are calculated and output to the image generation unit 103.
[1550]
Next, the real world estimation processing (the processing in step S102 in FIG. 40) to which the two-dimensional polynomial approximation method is applied will be described with reference to the flowchart in FIG.
[1551]
For example, now the slope GFIs detected by the sensor 2 (FIG. 225) and has already been stored in the input image storage unit 2422 as an input image corresponding to one frame. And Further, the data continuity detecting unit 101 performs processing on the above-described area 2401 shown in FIG. 226 of the input image in the processing of continuity detection in step S101 (FIG. It is assumed that the angle θ has already been output as sex information.
[1552]
In this case, in step S2401, the condition setting unit 2421 sets conditions (tap range and order).
[1553]
For example, it is assumed that the tap range 2441 shown in FIG. 229 is set, and the fifth order is set.
[1554]
That is, FIG. 229 is a diagram illustrating an example of the tap range. 229, the X direction and the Y direction represent the X direction and the Y direction of the sensor 2 (FIG. 225). The tap range 2441 represents a pixel group including a total of 20 pixels (20 squares in the figure) for 4 pixels in the X direction and 5 pixels in the Y direction.
[1555]
Further, as shown in FIG. 229, it is assumed that the target pixel is set to the second pixel from the left and the third pixel from the bottom in the tap range 2441 in the drawing. FIG. 229 shows, for each pixel, the relative pixel position (x, y) from the target pixel (the coordinate value of the target pixel coordinate system whose origin is at the center (0, 0) of the target pixel). It is assumed that a number 1 (1 is an integer value of any one of 0 to 19) as shown in FIG.
[1556]
Returning to FIG. 228, in step S2402, the condition setting unit 2421 sets a target pixel.
[1557]
In step S2403, the input pixel value acquisition unit 2423 acquires an input pixel value based on the condition (tap range) set by the condition setting unit 2421, and generates an input pixel value table. That is, in this case, the input pixel value acquisition unit 2423 acquires the area 2401 (FIG. 226) of the input image, and generates a table including 20 input pixel values P (l) as the input pixel value table.
[1558]
In this case, the relationship between the input pixel value P (l) and the above-described input pixel value P (x, y) is represented by the following equation (139). However, in Expression (139), the left side represents the input pixel value P (l), and the right side represents the input pixel value P (x, y).
[1559]
[Equation 107]
Figure 2004246526
Figure 2004246526
[1560]
In step S2404, the integral component calculation unit 2424 performs integration based on the conditions (tap range and order) set by the condition setting unit 2421 and the data continuity information (angle θ) supplied from the data continuity detection unit 101. The components are calculated and an integral component table is generated.
[1561]
In this case, as described above, the input pixel value is obtained as the value of the pixel number 1 such as P (l) instead of P (x, y). The integral component S of (138)i(X−0.5, x + 0.5, y−0.5, y + 0.5) is converted to an integral component S expressed by the left side of the following equation (140).iThe calculation is performed as a function of l such as (l).
[1562]
Si(L) = Si(X−0.5, x + 0.5, y−0.5, y + 0.5) (140)
[1563]
Specifically, in this case, the integral component S represented by the following equation (141)i(L) is calculated.
[1564]
[Equation 108]
Figure 2004246526
Figure 2004246526
[1565]
In equation (141), the left side is the integral component Si(L), and the right side is the integral component Si(X-0.5, x + 0.5, y-0.5, y + 0.5). That is, in this case, since i is 0 to 5, 20 S0(L), 20 S1(L), 20 S2(L), 20 S3(L), 20 S4(L), 20 S5(L) 120 S in totali(L) is calculated.
[1566]
More specifically, first, the integral component calculation unit 2424 calculates cotθ with respect to the angle θ supplied from the data continuity detection unit 101, and uses it as a variable s. Next, the integral component computing unit 2424 uses the computed variable s to calculate the 20 integral components S shown on the right side of Expression (140).i(X−0.5, x + 0.5, y−0.5, y + 0.5) are calculated for each of i = 0 to 5. That is, 120 integral components Si(X−0.5, x + 0.5, y−0.5, y + 0.5) will be calculated. Note that this integral component SiIn the calculation of (x−0.5, x + 0.5, y−0.5, y + 0.5), the above equation (138) is used. Then, the integral component computing unit 2424 computes the 120 integral components S computed according to Expression (141).i(X−0.5, x + 0.5, y−0.5, y + 0.5) is represented by the corresponding Si(L) is converted to each of the 120 SiGenerate an integral component table including (l).
[1567]
The order of the processing in step S2403 and the processing in step S2404 is not limited to the example in FIG. 228, and the processing in step S2404 may be performed first, or the processing in step S2403 and the processing in step S2404 may be performed simultaneously. May be done.
[1568]
Next, in step S2405, the normal equation generation unit 2425 calculates the input pixel value table generated by the input pixel value acquisition unit 2423 in the processing in step S2403 and the integration generated by the integration component calculation unit 2424 in the processing in step S2404. A normal equation table is generated based on the component table.
[1569]
Specifically, in this case, the feature amount w is calculated by the least squares method using the above equation (137).i(Where, in equation (136), the integral component Si(X-0.5, x + 0.5, y-0.5, y + 0.5) uses Si (l) converted by equation (140), so the corresponding normal equation is (142).
[1570]
(Equation 109)
Figure 2004246526
Figure 2004246526
[1571]
In Expression (142), L represents the maximum value of the pixel numbers 1 in the tap range. n represents the order of the approximation function f (x) which is a polynomial. Specifically, in this case, n = 5 and L = 19.
[1572]
When the respective matrices of the normal equation represented by Expression (142) are defined as in the following Expressions (143) to (145), the normal equation is expressed as in the following Expression (146).
[1573]
[Equation 110]
Figure 2004246526
Figure 2004246526
[1574]
(Equation 111)
Figure 2004246526
Figure 2004246526
[1575]
[Equation 112]
Figure 2004246526
Figure 2004246526
[1576]
[Equation 113]
Figure 2004246526
Figure 2004246526
[1577]
As shown in equation (144), the matrix WMATIs a feature amount w to be obtained.iIt is. Therefore, in equation (146), the matrix S on the left sideMATAnd the matrix P on the right sideMATIs determined, the matrix W isMATCan be calculated.
[1578]
Specifically, as shown in Expression (143), the matrix SMATAre the integral components S described above.iThe calculation can be performed in (l). That is, the integral component SiSince (l) is included in the integral component table supplied from the integral component calculation unit 2424, the normal equation generation unit 2425 uses the integral component table to calculate the matrix SMATCan be calculated.
[1579]
Also, as shown in equation (145), the matrix PMATAre integral components Si(L) and the input pixel value P (l) can be calculated. That is, the integral component Si(L) is a matrix SMATSince the input pixel value P (l) is included in the input pixel value table supplied from the input pixel value acquisition unit 2423, the normal equation generation unit 2425 is a matrix P using an integral component table and an input pixel value table.MATCan be calculated.
[1580]
In this way, the normal equation generation unit 2425 calculates the matrix SMATAnd matrix PMATIs calculated, and the calculation result (matrix SMATAnd matrix PMATAre output to the approximation function generator 2426 as a normal equation table.
[1581]
When the normal equation table is output from the normal equation generation unit 2425, in step S2406, the approximation function generation unit 2426 determines, based on the normal equation table, the matrix W of the above equation (146).MATFeature w which is each component ofi(That is, the coefficient w of the approximation function f (x, y) which is a two-dimensional polynomiali) Is calculated.
[1582]
Specifically, the above-described normal equation of Equation (146) can be modified as in the following Equation (147).
[1583]
[Equation 114]
Figure 2004246526
Figure 2004246526
[1584]
In equation (147), the matrix W on the left sideMATIs a feature value w to be obtained.iIt is. Also, the matrix SMATAnd matrix PMATAre included in the normal equation table supplied from the normal equation generation unit 2425. Therefore, the approximation function generation unit 2426 performs the matrix operation on the right side of Expression (147) using the normal equation table, thereby obtaining the matrix WMATIs calculated, and the calculation result (feature amount wi) Is output to the image generation unit 103.
[1585]
In step S2407, the approximate function generation unit 2426 determines whether or not processing of all pixels has been completed.
[1586]
If it is determined in step S2407 that the processing for all the pixels has not been completed, the process returns to step S2402, and the subsequent processing is repeated. That is, the pixels that have not yet been set as the target pixel are sequentially set as the target pixel, and the processing of steps S2402 to S2407 is repeated.
[1587]
Then, when the processing of all the pixels is completed (when it is determined in step S2407 that the processing of all the pixels is completed), the estimation processing of the real world 1 ends.
[1588]
As described above, as a description of the two-dimensional polynomial approximation method, the coefficient (feature amount) w of the approximation function f (x, y) in the spatial direction (X direction and Y direction)iIs used, but the two-dimensional polynomial approximation method is also applicable to the spatio-temporal direction (X direction and t direction, or Y direction and t direction).
[1589]
That is, in the above-described example, the optical signal of the real world 1 has, for example, a gradient GFSince this is an example in which there is a continuity in the spatial direction represented by (FIG. 224), a two-dimensional integral in the spatial direction (X direction and Y direction) as shown in the above equation (132) is included. The formula used was used. However, the concept of two-dimensional integration can be applied not only to the spatial direction but also to the spatio-temporal direction (X direction and t direction, or Y direction and t direction).
[1590]
In other words, in the two-dimensional polynomial approximation method, the optical signal function F (x, y, t) to be estimated not only has the spatial continuity but also the spatiotemporal direction (however, the X direction and the t direction, or the Y direction). (Direction and t direction) can be approximated by a two-dimensional polynomial.
[1591]
Specifically, for example, when there is an object moving at a constant speed horizontally in the X direction, the direction of the movement of the object is represented by a slope V in the Xt plane as shown in FIG.FIs represented as In other words, the slope VFRepresents the direction of continuity in the spatiotemporal direction on the Xt plane. Therefore, the data continuity detecting unit 101 determines the angle θ (the inclination G in the XY planeFSimilarly, the slope V representing the stationarity in the spatio-temporal direction on the Xt plane.FAs the data continuity information corresponding to, the motion θ as shown in FIG.FSlope V corresponding tofIt is possible to output a motion θ) which is an angle between the direction of the continuity of the data represented by the following formula and the spatial X direction.
[1592]
Therefore, the real-world estimating unit 102 using the two-dimensional polynomial approximation method can use the motion θ instead of the above-described angle θ to calculate the coefficient of the approximation function f (x, t) in the same manner as described above. (Feature amount) wiCan be calculated. However, in this case, the formula used is not the above-described formula (132) but the following formula (148).
[1593]
[Equation 115]
Figure 2004246526
Figure 2004246526
[1594]
In equation (148), s is cot θ (where θ is a motion).
[1595]
Further, instead of the spatial direction X, the approximate function f (y, t) focused on the spatial direction Y can be handled in exactly the same manner as the above-described approximate function f (x, t).
[1596]
As described above, in the two-dimensional polynomial approximation method, for example, the data continuity detection unit 101 in FIG. 205 (FIG. 3) uses a plurality of detection elements (for example, the sensor in FIG. The optical signal of the real world 1 (FIG. 205) is projected by the second detection element 2-1), and the stationarity of the optical signal of the real world 1 (for example, the gradient G in FIG. 224).FThe continuity of the data (for example, the input image in FIG. 205) of a plurality of pixels having pixel values projected by the detection element 2-1 (for example, the input image in FIG. 205) in which a part of the continuity represented by , The gradient G in FIG.f(Stationarity of data represented by).
[1597]
Then, for example, the real-world estimating unit 102 (the configuration is FIG. 227) in FIG. 205 (FIG. 3) responds to the continuity of the data detected by the data continuity detecting unit 101, , The pixel value of a pixel corresponding to a position in at least a two-dimensional direction (for example, the spatial direction X and the spatial direction Y in FIGS. 224 and 225) (for example, the input pixel value P (X, y)) is at least a pixel value obtained by an integration effect in the two-dimensional direction (for example, as shown on the right side of equation (132), the approximate function f (x , Y) are the values integrated in the X and Y directions), and the optical signal function F (specifically, the function F (x, y) in FIG. An approximation function f that is a polynomial (for example, The approximation function f (x, y) is to approximate in) estimates the light signal function F.
[1598]
More specifically, for example, the real world estimating unit 102 calculates a line corresponding to the continuity of the data detected by the data continuity detecting unit 101 (for example, the slope G in FIG. 226).fThe pixel value of a pixel corresponding to a distance (for example, a cross-sectional direction distance x ′ in FIG. 226) along at least a two-dimensional direction from a line (arrow) corresponding to is obtained by an integration effect in at least a two-dimensional direction. Assuming that the first function is a pixel value, the first function representing the optical signal in the real world is approximated by a second function, which is a polynomial, to estimate the first function.
[1599]
As described above, since the two-dimensional polynomial approximation method considers not a one-dimensional but a two-dimensional integration effect, it is possible to more accurately estimate the optical signal of the real world 1 as compared with the one-dimensional polynomial approximation method. Becomes possible.
[1600]
Next, a third function approximation method will be described with reference to FIGS.
[1601]
That is, the third function approximation method is, for example, an optical signal of the real world 1 having stationarity in a predetermined direction of the spatio-temporal direction is represented by an optical signal function F (x, y, t). Noting that, the optical signal function F (x, y, t) is approximated by the approximation function f (x, y, t), thereby estimating the optical signal function F (x, y, t). is there. Therefore, hereinafter, the third function approximation method is referred to as a three-dimensional function approximation method.
[1602]
Also in the description of the three-dimensional function approximation method, the sensor 2 is a CCD configured by arranging a plurality of detection elements 2-1 on the plane as shown in FIG.
[1603]
In the example of FIG. 231, the direction parallel to a predetermined side of the detection element 2-1 is the X direction, which is one direction in the spatial direction, and the direction perpendicular to the X direction is the other direction in the spatial direction. It is a certain Y direction. The direction perpendicular to the XY plane is the t direction, which is the time direction.
[1604]
In the example of FIG. 231, the spatial shape of each detection element 2-1 of the sensor 2 is a square with one side length of one. The shutter time (exposure time) of the sensor 2 is set to 1.
[1605]
Further, in the example of FIG. 231, the center of one predetermined detection element 2-1 of the sensor 2 is located at the origin (the position x = 0 in the X direction and the position y in the Y direction) in the spatial direction (X direction and Y direction). = 0), and the intermediate time of the exposure time is the origin in the time direction (t direction) (position t = 0 in the t direction).
[1606]
In this case, the detection element 2-1 having its center at the origin (x = 0, y = 0) in the spatial direction is in the range of -0.5 to 0.5 in the X direction and -0.5 in the Y direction. The optical signal function F (x, y, t) is integrated in the range of 0.5 to 0.5 and in the range of -0.5 to 0.5 in the t direction, and the integrated value is output as the pixel value P. .
[1607]
That is, the pixel value P output from the detection element 2-1 having the center at the origin in the spatial direction is represented by the following equation (149).
[1608]
[Equation 116]
Figure 2004246526
Figure 2004246526
[1609]
Similarly, the other detection elements 2-1 output the pixel value P represented by the equation (149) by setting the center of the target detection element 2-1 as the origin in the spatial direction.
[1610]
By the way, as described above, in the three-dimensional function approximation method, the optical signal function F (x, y, t) is approximated to the three-dimensional approximation function f (x, y, t).
[1611]
Specifically, for example, the approximation function f (x, y, t) is a function having N variables (features), and the input pixel value P (x, y, t) corresponding to the equation (149) is set. And the approximate expression f (x, y, t). As a result, if M input pixel values P (x, y, t) larger than N have been acquired, N variables (feature amounts) can be calculated from the defined relational expression. That is, the real-world estimating unit 102 obtains M input pixel values P (x, y, t) and calculates N variables (features), thereby obtaining an optical signal function F (x, y, t). It is possible to estimate t).
[1612]
In this case, the real world estimating unit 102 restricts the continuity of the data included in the input image (input pixel value) from the sensor 2 (that is, the data continuity of the input image output from the data continuity detecting unit 101). (Using information), and extract (acquire) M input images P (x, y, t) from the entire input image. As a result, the prediction function f (x, y, t) is constrained by the stationarity of the data.
[1613]
For example, as shown in FIG. 232, the optical signal function F (x, y, t) corresponding to the input image has a gradient GFWhen the data continuity detecting unit 101 has the continuity in the spatial direction represented byFSlope G corresponding tof(Not shown) and an angle θ between the direction of continuity of the data and the X direction).
[1614]
In this case, a one-dimensional waveform obtained by projecting the optical signal function F (x, y, t) in the X direction (here, such a waveform is referred to as an X sectional waveform) is determined at any position in the Y direction. It is assumed that they have the same shape even when projected by.
[1615]
That is, it is assumed that there is a two-dimensional (spatial) waveform in which the X-sectional waveforms of the same shape are connected in the direction of stationarity (the angle θ with respect to the X direction), and such a two-dimensional waveform is represented by A three-dimensional waveform connected in the direction t is approximated by an approximation function f (x, y, t).
[1616]
In other words, in the X-sectional waveform shifted from the center of the target pixel by the position y in the Y direction, the X-sectional waveform passing through the center of the target pixel has moved in the X direction by a predetermined amount (an amount that changes according to the angle θ). (Shifted) waveform. Hereinafter, such an amount is referred to as a shift amount.
[1617]
This shift amount can be calculated as follows.
[1618]
That is, the slope Vf(For example, the slope V in FIG.FSlope V representing the direction of data continuity corresponding tof) And the angle θ are represented by the following equation (150).
[1619]
[Formula 117]
Figure 2004246526
Figure 2004246526
[1620]
In Expression (150), dx represents a minute movement amount in the X direction, and dy represents a minute movement amount in the Y direction with respect to dx.
[1621]
Therefore, the shift amount in the X direction is CxIf it is described as (y), it is expressed as the following equation (151).
[1622]
[Equation 118]
Figure 2004246526
Figure 2004246526
[1623]
Thus, the shift amount CxWhen (y) is defined, a relational expression between the input pixel value P (x, y, t) corresponding to the expression (149) and the approximate function f (x, y, t) is expressed by the following expression (152). expressed.
[1624]
[Equation 119]
Figure 2004246526
Figure 2004246526
[1625]
In Expression (152), e represents an error. tsRepresents the integration start position in the t direction, and teRepresents the integration end position in the t direction. Similarly, ysRepresents the integration start position in the Y direction.eRepresents the integration end position in the Y direction. Also, xsRepresents the integration start position in the X direction, and xeRepresents the integration end position in the X direction. However, each of the specific integration ranges is as shown by the following equation (153).
[1626]
[Equation 120]
Figure 2004246526
Figure 2004246526
[1627]
As shown in Expression (153), the integration range in the X direction for a pixel located at a distance (x, y) in the spatial direction from the pixel of interest is represented by a shift amount CxBy moving by (y), it is possible to indicate that the X-sectional waveforms of the same shape are continuous in the direction of continuity (the direction of the angle θ with respect to the X direction).
[1628]
As described above, in the three-dimensional function approximation method, the relationship between the pixel value P (x, y, t) and the three-dimensional approximation function f (x, y, t) is expressed by Expression (152) (the integration range is expressed by Expression (152)). (153)), the N feature quantities of the approximate function f (x, y, t) are calculated using the equations (152) and (153) by, for example, the least square method. By performing the calculation, the optical signal function F (x, y, t) (for example, the slope V as shown in FIG.FIt is possible to estimate an optical signal having stationarity in the spatial direction represented).
[1629]
Note that the optical signal represented by the optical signal function F (x, y, t) has, for example, a slope V as shown in FIG.FIn the case of having the spatial continuity represented by the following equation, the optical signal function F (x, y, t) may be approximated as follows.
[1630]
That is, a one-dimensional waveform obtained by projecting the optical signal function F (x, y, t) in the Y direction (hereinafter, such a waveform is referred to as a Y-section waveform) is projected at any position in the X direction. Are assumed to have the same shape.
[1631]
In other words, it is assumed that there is a two-dimensional (spatial direction) waveform in which the Y-shaped waveform having the same shape is connected in the direction of the stationarity (the angle θ with respect to the X direction). A three-dimensional waveform connected in the time direction t is approximated by an approximate function f (x, y, t).
[1632]
Therefore, in the Y-section waveform shifted by x in the X direction from the center of the pixel of interest, the Y-section waveform passing through the center of the pixel of interest has shifted in the Y direction by a predetermined shift amount (shift amount that varies according to the angle θ). It becomes a waveform.
[1633]
This shift amount can be calculated as follows.
[1634]
That is, the gradient GFIs expressed as in the above expression (150), and the shift amount in the Y direction is represented by CyWhen it is described as (x), it is expressed as the following equation (154).
[1635]
[Equation 121]
Figure 2004246526
Figure 2004246526
[1636]
Thus, the shift amount CyWhen (x) is defined, a relational expression between the input pixel value P (x, y, t) corresponding to the expression (149) and the approximate function f (x, y, t) is represented by a shift amount CxAs in the case where (y) is defined, it is expressed by the above-described equation (152).
[1637]
However, this time, each of the specific integration ranges is as shown in the following equation (155).
[1638]
[Equation 122]
Figure 2004246526
Figure 2004246526
[1639]
As shown in Expression (155) (and Expression (152) described above), the integration range in the Y direction with respect to the pixel located at (x, y) away from the target pixel is represented by a shift amount CyBy moving only by (x), it is possible to indicate that the Y-section waveforms of the same shape are connected in the direction of continuity (the direction of the angle θ with respect to the X direction).
[1640]
As described above, in the three-dimensional function approximation method, since the integration range on the right side of the above-mentioned expression (152) can be set not only to expression (153) but also to expression (155), expression (155) is used as the integration range. The optical signal function F (x, y) is calculated by using the adopted equation (152) to calculate n feature amounts of the approximate function f (x, y, t) by, for example, the least square method. , T) (slope GFThe optical signal of the real world 1 having the stationarity in the spatial direction represented by the following equation can be estimated.
[1641]
As described above, the formulas (153) and (155) representing the integration range shift the peripheral pixels in the X direction (in the case of the formula (153)) or shift in the Y direction according to the continuity direction. Or (in the case of equation (155)), essentially indicating the same.
[1642]
However, the direction of stationarity (slope GF), It is different whether the optical signal function F (x, y, t) is regarded as a group of X-section waveforms or a group of Y-section waveforms. That is, when the direction of the continuity is close to the Y direction, it is preferable to regard the optical signal function F (x, y, t) as a group of X-section waveforms. On the other hand, when the direction of the continuity is close to the X direction, it is preferable to regard the optical signal function F (x, y, t) as a group of Y section waveforms.
[1643]
Therefore, the real world estimating unit 102 prepares both Expression (153) and Expression (155) as the integration range, and appropriately sets the integration range on the right side of Expression (152) according to the direction of the stationarity. One of (153) and (155) may be selected.
[1644]
As described above, the optical signal function F (x, y, t) is stationary in the spatial direction (X direction and Y direction) (for example, the gradient G in FIG. 232).FThe three-dimensional function method in the case where the optical signal function F (x, y, t) has the optical signal function F (x, y, t) as shown in FIG. Stationaryness (slope V in the spatiotemporal direction (X direction, Y direction, and t direction))FIs also applicable.
[1645]
That is, in FIG. 233, the optical signal function corresponding to the frame with the frame number # N-1 is F (x, y, # N-1), and the optical signal function corresponding to the frame with the frame number #N is F ( x, y, #N) and the optical signal function corresponding to the frame of frame number # N + 1 is F (x, y, # N + 1).
[1646]
In FIG. 233, the horizontal direction in the figure is the X direction, which is one direction in the spatial direction, the diagonally upper right direction is the Y direction, the other direction in the spatial direction, and the vertical direction is the vertical direction. The direction is the t direction, which is the time direction.
[1647]
The frame # N-1 is a frame temporally before the frame #N, and the frame # N + 1 is a frame temporally after the frame #N. That is, frame # N-1, frame #N, and frame # N + 1 are displayed in the order of frame # N-1, frame #N, and frame # N + 1.
[1648]
In the example of FIG.F(The direction from the lower left to the upper right in the figure) is substantially constant. Therefore, in the example of FIG. 233, the optical signal function F (x, y, t) has the slope VFIt can be said that it has the continuity in the spatiotemporal direction represented by
[1649]
In this case, a function C (x, y, t) representing stationarity in the spatiotemporal direction is defined, and the defined function C (x, y, t) is used to define the above equation (152). If the integration range is defined, it is possible to calculate the N feature amounts of the approximate function f (x, y, t), as in the above-described equations (153) and (155).
[1650]
The function C (x, y, t) is not particularly limited as long as it is a function representing the direction of stationarity. However, in the following, the shift amount C, which is a function representing the above-described spatial direction continuity, is defined as a function C (x, y, t) corresponding to the linear continuity.x(Y) (Equation (151)) and shift amount Cy(X) C corresponding to (Equation (153))x(T) and CyLet (t) be defined as follows:
[1651]
That is, the gradient G representing the stationarity of the data in the spatial direction described above.fIs the slope of the continuity of the data in the spatiotemporal direction corresponding to VfThen, this slope VfWith the inclination in the X direction (hereinafter, Vfx) And a tilt in the Y direction (hereinafter VfyDivided into two), the slope VfxIs the following equation (156), and the slope VfyIs represented by the following equation (157).
[1652]
[Equation 123]
Figure 2004246526
Figure 2004246526
[1653]
[Expression 124]
Figure 2004246526
Figure 2004246526
[1654]
In this case, the function Cx(T) is the slope V represented by equation (156).fxIs used and is expressed as in the following equation (158).
[1655]
[Equation 125]
Figure 2004246526
Figure 2004246526
[1656]
Similarly, the function Cy(T) is the slope V represented by equation (157).fyIs used and is expressed as in the following equation (159).
[1657]
[Equation 126]
Figure 2004246526
Figure 2004246526
[1658]
In this way, the function C representing the continuity 2511 in the spatiotemporal direction isx(T) and function CyWhen (t) is defined, the integration range of Expression (152) is represented by the following Expression (160).
[1659]
[Equation 127]
Figure 2004246526
Figure 2004246526
[1660]
As described above, in the three-dimensional function approximation method, the relationship between the pixel value P (x, y, t) and the three-dimensional approximation function f (x, y, t) can be expressed by Expression (152). By using equation (160) as the integration range on the right side of equation (152), n + 1 feature amounts of the approximate function f (x, y, t) are calculated by, for example, the least square method or the like. , It is possible to estimate the optical signal function F (x, y, t) (the optical signal of the real world 1 that has stationarity in a predetermined spatiotemporal direction).
[1661]
FIG. 234 illustrates a configuration example of the real world estimation unit 102 that uses such a three-dimensional function approximation method.
[1662]
The approximation function f (x, y, t) (actually, the feature amount (coefficient) is calculated) calculated by the real world estimation unit 102 using the three-dimensional function approximation method is not particularly limited. In the following description, it is assumed to be a polynomial of order n (n = N-1).
[1663]
As shown in FIG. 234, the real world estimation unit 102 includes a condition setting unit 2521, an input image storage unit 2522, an input pixel value acquisition unit 2523, an integral component calculation unit 2524, a normal equation generation unit 2525, and an approximation function generation unit. A portion 2526 is provided.
[1664]
The condition setting unit 2521 includes a pixel range (tap range) used for estimating the optical signal function F (x, y, t) corresponding to the target pixel, and an order of the approximate function f (x, y, t). Set n.
[1665]
The input image storage unit 2522 temporarily stores the input image (pixel value) from the sensor 2.
[1666]
The input pixel value obtaining unit 2523 obtains an area of the input image corresponding to the tap range set by the condition setting unit 2521 in the input image stored in the input image storage unit 2522, and stores it in the input pixel value table. Is supplied to the normal equation generation unit 2525. That is, the input pixel value table is a table in which each pixel value of each pixel included in the area of the input image is described.
[1667]
By the way, as described above, the real-world estimating unit 102 using the three-dimensional function approximation method uses the above-described equation (152) (however, the integration range is equation (153), equation (156) or equation (160)) Are used to calculate N feature quantities (in this case, the following coefficients) of the approximate function f (x, y) by the least square method.
[1668]
The right side of Expression (152) can be expressed as in Expression (161) by calculating the integral.
[1669]
[Equation 128]
Figure 2004246526
Figure 2004246526
[1670]
In equation (161), wiRepresents the coefficient (feature amount) of the i-th order term.i(Xs, Xe, Ys, Ye, Ts, Te) Represents the integral component of the i-th order term. Where xsIs the start position of the integration range in the X direction, xeIs the end position of the integration range in the X direction, and y issIs the start position of the integration range in the Y direction, and y iseRepresents the end position of the integration range in the Y direction, tsIs the start position of the integration range in the t direction, and t iseRepresents the end position of the integration range in the t direction.
[1671]
The integral component calculation unit 2524 calculates the integral component Si(Xs, Xe, Ys, Ye, Ts, Te) Is calculated.
[1672]
That is, the integral component calculation unit 2524 determines the tap range and the order set by the condition setting unit 2521, and the angle or the motion of the data continuity information output from the data continuity detection unit 101 (as described above as the integration range). The angle is an angle when equation (153) or equation (156) is used, and is a motion when equation (160) is used).i(Xs, Xe, Ys, Ye, Ts, Te), And supplies the calculation result to the normal equation generation unit 2525 as an integral component table.
[1673]
The normal equation generation unit 2525 uses the input pixel value table supplied from the input pixel value acquisition unit 2523 and the integral component table supplied from the integral component calculation unit 2524 to calculate the above equation (161) using the least square method. Is generated, and is output to the approximation function generating unit 2526 as a normal equation table. An example of the normal equation will be described later.
[1674]
The approximation function generation unit 2526 solves the normal equation included in the normal equation table supplied from the normal equation generation unit 2525 by matrix release to obtain the feature amount w.i(In this case, the coefficient w of the pixel value function f (x, y), which is a three-dimensional polynomial,i) Are calculated and output to the image generation unit 103.
[1675]
Next, the estimation processing of the real world to which the three-dimensional function approximation method is applied (the processing of step S102 in FIG. 40) will be described with reference to the flowchart in FIG.
[1676]
First, in step S2501, the condition setting unit 2521 sets conditions (tap range and order).
[1677]
For example, it is assumed that a tap range including L pixels has been set. Further, it is assumed that a predetermined number 1 (1 is an integer value from 0 to L−1) is assigned to each of the pixels.
[1678]
Next, in step S2502, the condition setting unit 2521 sets a target pixel.
[1679]
In step S2503, the input pixel value acquisition unit 2523 acquires an input pixel value based on the condition (tap range) set by the condition setting unit 2521, and generates an input pixel value table. In this case, a table including L input pixel values P (x, y, t) is generated. Here, each of the L input pixel values P (x, y, t) is described as P (l) as a function of the pixel number l. That is, the input pixel value table is a table including L P (l).
[1680]
In step S2504, the integral component calculation unit 2524 determines the condition (tap range and order) set by the condition setting unit 2521 and the data continuity information (angle or motion) supplied from the data continuity detection unit 101. Compute the integral component and generate an integral component table.
[1681]
However, in this case, as described above, the input pixel value is obtained as the value of the pixel number 1 such as P (l) instead of P (x, y, t). , The integral component S of the above equation (161)i(Xs, Xe, Ys, Ye, Ts, Te) With the integral component SiThe calculation is performed as a function of l such as (l). That is, the integral component table is composed of L × i SiThis is a table including (l).
[1682]
The order of the processing in step S2503 and the processing in step S2504 is not limited to the example in FIG. 235, and the processing in step S2504 may be performed first, or the processing in step S2503 and the processing in step S2504 may be performed simultaneously. May be done.
[1683]
Next, in step S2505, the normal equation generation unit 2525 compares the input pixel value table generated by the input pixel value acquisition unit 2523 in the process of step S2503 with the integral generated by the integral component calculation unit 2524 in the process of step S2504. A normal equation table is generated based on the component table.
[1684]
Specifically, in this case, the characteristic amount w of the following equation (162) corresponding to the above equation (161) is obtained by the least square method.iIs calculated. And the corresponding normal equation is represented by the following equation (163).
[1885]
129
Figure 2004246526
Figure 2004246526
[1686]
[Equation 130]
Figure 2004246526
Figure 2004246526
[1687]
When each of the matrices of the normal equation represented by the equation (163) is defined as in the following equations (164) to (166), the normal equation is represented as the following equation (167).
[1688]
[Equation 131]
Figure 2004246526
Figure 2004246526
[1689]
(Equation 132)
Figure 2004246526
Figure 2004246526
[1690]
[Equation 133]
Figure 2004246526
Figure 2004246526
[1691]
[Equation 134]
Figure 2004246526
Figure 2004246526
[1692]
As shown in equation (165), the matrix WMATIs a feature amount w to be obtained.iIt is. Therefore, in equation (167), the matrix S on the left sideMATAnd the matrix P on the right sideMATIs determined, the matrix W isMAT(That is, the feature amount wi) Can be calculated.
[1693]
Specifically, as shown in equation (164), the matrix SMATAre the integral components S described above.iIf (l) is known, it can be calculated. Integral component SiSince (l) is included in the integral component table supplied from the integral component operation unit 2524, the normal equation generation unit 2525 uses the integral component table to calculate the matrix SMATCan be calculated.
[1694]
Also, as shown in equation (166), the matrix PMATAre integral components SiIf (l) and the input pixel value P (l) are known, calculation is possible. Integral component Si(L) is a matrix SMATSince the input pixel value P (l) is included in the input pixel value table supplied from the input pixel value acquisition unit 2523, the normal equation generation unit 2525 is a matrix P using an integral component table and an input pixel value table.MATCan be calculated.
[1695]
In this way, the normal equation generation unit 2525 calculates the matrix SMATAnd matrix PMATIs calculated, and the calculation result (matrix SMATAnd matrix PMATAre output to the approximate function generating unit 2526 as a normal equation table.
[1696]
When the normal equation table is output from the normal equation generation unit 2526, in step S2506, the approximation function generation unit 2526 uses the matrix W of the above-described equation (167) based on the normal equation table.MATFeature w which is each component ofi(That is, the coefficient w of the approximate function f (x, y, t)i) Is calculated.
[1697]
Specifically, the normal equation of Expression (167) described above can be modified as in the following Expression (168).
[1698]
[Equation 135]
Figure 2004246526
Figure 2004246526
[1699]
In equation (168), the matrix W on the left sideMATIs a feature value w to be obtained.iIt is. Also, the matrix SMATAnd matrix PMATAre included in the normal equation table supplied from the normal equation generating unit 2525. Therefore, the approximate function generation unit 2526 performs a matrix operation on the right side of Expression (168) using the normal equation table, thereby obtaining the matrix WMATIs calculated, and the calculation result (feature amount wi) Is output to the image generation unit 103.
[1700]
In step S2507, the approximate function generation unit 2526 determines whether or not processing of all pixels has been completed.
[1701]
If it is determined in step S2507 that the processing for all pixels has not been completed, the process returns to step S2502, and the subsequent processing is repeated. That is, the pixels that have not yet been set as the target pixel are sequentially set as the target pixel, and the processing of steps S2502 to S2507 is repeated.
[1702]
Then, when the processing of all the pixels is completed (when it is determined in step S5407 that the processing of all the pixels is completed), the estimation processing of the real world 1 ends.
[1703]
As described above, the three-dimensional function approximation method considers not a one-dimensional or two-dimensional but a three-dimensional integration effect in a spatio-temporal direction. As a result, it is possible to more accurately estimate the optical signal of the real world 1.
[1704]
In other words, in the three-dimensional function approximation method, for example, the real-world estimating unit 102 (configuration is, for example, FIG. 234) in FIG. 205 (FIG. 3) includes a plurality of detection elements of a sensor each having a spatiotemporal integration effect. The optical signal of the real world 1 is projected by (for example, the detection element 2-1 of the sensor 2 in FIG. 231), and the continuity of the optical signal of the real world 1 (for example, the gradient G in FIG. 232).FOr the slope V in FIG.FIn an input image composed of a plurality of pixels having pixel values projected by the detection element and lacking a part of the continuity represented by The pixel value (for example, the input pixel value P (x, y, z) on the left side of Expression (153)) of the pixel corresponding to the position in X, the spatial direction Y, and the time direction t is three-dimensional. , The pixel value obtained by the integration effect in at least one-dimensional direction (for example, as shown on the right side of the above equation (153), the approximate function f (x, y, t) is expressed in the X direction, Y direction, and t The optical signal function F (specifically, for example, the optical signal function F (x, y, t) in FIGS. 232 and 233) representing the optical signal in the real world is assumed to be a value integrated in three directions. ) Is converted to a predetermined approximation function f (specifically, for example, equation (152) By approximating the right side of the approximation function f (x, y, t)), to estimate the optical signal function F.
[1705]
Further, for example, when the data continuity detecting unit 101 of FIG. 205 (FIG. 3) detects the continuity of the data of the input image, the real world estimating unit 102 outputs the data of the data detected by the data continuity detecting unit 101. In response to the stationarity, it is assumed that the pixel value of a pixel corresponding to at least a one-dimensional position in the spatio-temporal direction of the image data is a pixel value obtained by an integration effect in at least one-dimensional direction. The optical signal function F is estimated by approximating F with the approximation function f.
[1706]
More specifically, for example, the real world estimating unit 102 calculates a distance along a direction at least one-dimensional from a line corresponding to the continuity of the data detected by the continuity detecting unit 101 (for example, the above-described equation (151) When the pixel value of the pixel corresponding to the shift amount Cx (y) is at least the pixel value obtained by the one-dimensional direction integration effect (for example, the expression (152) in the integration range shown by the above expression (153)) )), The optical signal function F is an approximate function, assuming that the approximate function f (x, y, t) is a value integrated in three dimensions in the X, Y, and t directions). The optical signal function is estimated by approximation.
[1707]
Therefore, the three-dimensional function approximation method can more accurately estimate the optical signal of the real world 1.
[1708]
Next, an example of an embodiment of the image generation unit 103 (FIG. 3) will be described with reference to FIGS.
[1709]
FIG. 236 is a diagram for explaining the principle of the embodiment of this example.
[1710]
As shown in FIG. 236, in the embodiment of this example, it is assumed that the real world estimation unit 102 uses a function approximation method. That is, assuming that a signal (distribution of light intensity) of the real world 1 which is an image incident on the sensor 2 is represented by a predetermined function F, the real world estimating unit 102 It is assumed that the function F is estimated by approximating the function F with a predetermined function f using the image (pixel value P) and the data continuity information output from the data continuity detecting unit 101. ing.
[1711]
Hereinafter, also in the description of the embodiment of this example, a signal of the real world 1 which is an image is particularly referred to as an optical signal, and the function F is particularly referred to as an optical signal function F. The function f is particularly called an approximate function f.
[1712]
Therefore, in the embodiment of this example, based on such a premise, the image generation unit 103 outputs the data continuity information output from the data continuity detection unit 101 and the data continuity information output from the real world estimation unit 102. Using the real world estimation information (in the example of FIG. 236, the feature amount of the approximation function f), the approximation function f is integrated in a predetermined spatiotemporal range, and the integrated value is output as an output pixel value M (output image). I do. In the embodiment of this example, the input pixel value is described as P and the output pixel value is described as M in order to distinguish the pixels of the input image from the pixels of the output image.
[1713]
In other words, the optical signal function F is integrated once to obtain an input pixel value P, and the optical signal function F is estimated from the input pixel value P (approximate by the approximate function f), and the estimated optical signal function F (that is, the estimated optical signal function F) , Approximation function f) is again integrated to produce an output pixel value M. Therefore, hereinafter, the integration of the approximation function f executed by the image generation unit 103 is referred to as reintegration. The embodiment of this example is called a reintegration method.
[1714]
As described later, in the reintegration method, the integration range of the approximation function f when the output pixel value M is generated is the integration range of the optical signal function F when the input pixel value P is generated (that is, In the spatial direction, the vertical width and the horizontal width of the detection element of the sensor 2 are used, and in the time direction, it is not limited to the exposure time of the sensor 2), but an arbitrary integration range is possible.
[1715]
For example, when the output pixel value M is generated, by changing the integration range in the spatial direction of the integration range of the approximation function f, the pixel pitch of the output image can be changed according to the integration range. Become. That is, it is possible to create a spatial resolution.
[1716]
Similarly, for example, when the output pixel value M is generated, the time resolution can be created by changing the integration range in the time direction of the integration range of the approximation function f.
[1717]
Hereinafter, three specific methods among such reintegration methods will be individually described with reference to the drawings.
[1718]
That is, the three specific methods are reintegration methods corresponding to the three specific methods of the function approximation method (the above three specific examples of the embodiment of the real world estimation unit 102). is there.
[1719]
Specifically, the first method is a reintegration method corresponding to the above-described one-dimensional polynomial approximation method (one method of a function approximation method). Therefore, in the first method, one-dimensional reintegration is performed, and such a reintegration method is hereinafter referred to as a one-dimensional reintegration method.
[1720]
The second method is a reintegration method corresponding to the above-described two-dimensional polynomial approximation method (one method of the function approximation method). Therefore, in the second method, two-dimensional reintegration is performed, and such a reintegration method is hereinafter referred to as a two-dimensional reintegration method.
[1721]
The third method is a reintegration method corresponding to the above-described three-dimensional function approximation method (one method of the function approximation method). Therefore, in the third method, three-dimensional reintegration is performed, and such a reintegration method is hereinafter referred to as a three-dimensional reintegration method.
[1722]
Hereinafter, details of each of the one-dimensional reintegration method, the two-dimensional reintegration method, and the three-dimensional reintegration method will be described in that order.
[1723]
First, a one-dimensional reintegration method will be described.
[1724]
In the one-dimensional reintegration method, it is assumed that the approximation function f (x) has already been generated by the one-dimensional polynomial approximation method.
[1725]
That is, the optical signal function F (x, y, t) using the three-dimensional positions x, y, and z and the time t as variables is converted into spatial directions such as an X direction, a Y direction, and a Z direction. In addition, a one-dimensional waveform projected in one predetermined direction (for example, the X direction) of the t direction, which is a time direction (also in the description of the reintegration method, a waveform projected in the X direction among such waveforms) , X section waveform F (x)) is assumed to be approximated by an approximation function f (x), which is an n-th order (n is an arbitrary integer) polynomial.
[1726]
In this case, in the one-dimensional reintegration method, the output pixel value M is calculated as in the following equation (169).
[1727]
136
Figure 2004246526
Figure 2004246526
[1728]
Note that, in equation (169), xsRepresents the integration start position, and xeRepresents the integration end position. GeRepresents a predetermined gain.
[1729]
Specifically, for example, the real-world estimating unit 102 uses the pixel 3101 (the pixel 3101 corresponding to one predetermined detection element of the sensor 2) as shown in FIG. It is assumed that an approximate function f (x) (an approximate function f (x) of the X-sectional waveform F (x)) has already been generated.
[1730]
Note that in the example of FIG. 237, the pixel value (input pixel value) of the pixel 3101 is P, and the shape of the pixel 3101 is a square with one side length of one. The direction parallel to one side of the pixel 3101 (horizontal direction in the figure) in the spatial direction is defined as the X direction, and the direction perpendicular to the X direction (vertical direction in the figure) is defined as the Y direction.
[1731]
237, a coordinate system (hereinafter, referred to as a target pixel coordinate system) in a spatial direction (X direction and Y direction) where the center of the pixel 3101 is the origin, and the pixel 3101 in the coordinate system are shown. Have been.
[1732]
Further, a graph of the approximate function f (x) at y = 0 (y is the coordinate value in the Y direction of the target pixel coordinate system shown on the lower side in the figure) is shown above FIG. . In this graph, the axis parallel to the horizontal direction in the figure is the same axis as the x-axis in the X direction of the target pixel coordinate system shown in the lower part of the figure (the origin is also the same), and is perpendicular to the figure. An axis parallel to the direction is an axis representing a pixel value.
[1733]
In this case, the following equation (170) holds between the approximation function f (x) and the pixel value P of the pixel 3101.
[1733]
137
Figure 2004246526
Figure 2004246526
[1735]
As shown in FIG. 237, the pixel 3101 has a gradient GfIt is assumed that the data has continuity of data in the spatial direction represented by Then, the data continuity detecting unit 101 (FIG. 236)fIt is assumed that an angle θ as shown in FIG. 237 has already been output as data continuity information corresponding to the continuity of data represented by.
[1736]
In this case, for example, in the one-dimensional reintegration method, as shown in FIG. 238, a range of -0.5 to 0.5 in the X direction and a range of -0.5 to 0.5 in the Y direction ( It is possible to newly create four pixels 3111 to 3114 in the range where the pixel 3101 is located in FIG. 237).
[1737]
The lower side of FIG. 238 shows the same target pixel coordinate system as that of FIG. 237, and the pixels 3111 to 3114 in the target pixel coordinate system. 238, the same graph as that of FIG. 237 (a graph of the approximate function f (x) at y = 0) is shown above FIG. 238.
[1736]
Specifically, as shown in FIG. 238, in the one-dimensional reintegration method, the calculation of the pixel value M (1) of the pixel 3111 by the following equation (171) is performed by the following equation (172). The following equation (173) calculates the pixel value M (2) of the pixel 3113, and the following equation (174) calculates the pixel value M (4) of the pixel 3114. , Each is possible.
[1739]
138
Figure 2004246526
Figure 2004246526
[1740]
139
Figure 2004246526
Figure 2004246526
[1741]
[Equation 140]
Figure 2004246526
Figure 2004246526
[1742]
[Equation 141]
Figure 2004246526
Figure 2004246526
[1743]
Note that x in Expression (171)s1, X in equation (172)s2, X in equation (173)s3, And x in equation (174)s4Represents the integration start position of the corresponding equation. In addition, x in Expression (171)e1, X in equation (172)e2, X in equation (173)e3, And x in equation (174)e4Represents the integration end position of the corresponding equation.
[1744]
The integration range on the right side of each of Expressions (171) to (174) is the pixel width (length in the X direction) of each of the pixels 3111 to 3114. That is, xe1-Xs1, Xe2-Xs2, Xe3-Xs3, Xe4-Xs4Is 0.5.
[1745]
However, in this case, a one-dimensional waveform having the same shape as the approximation function f (x) at y = 0 has a gradient G instead of the Y direction.f(Actually, the waveform having the same shape as the X-section waveform F (x) at y = 0 is the direction of the continuity). Is linked to). That is, when the pixel value f (0) at the origin (0, 0) (the center of the pixel 3101 in FIG. 237) in the target pixel coordinate system in FIG. 238 is the pixel value f1, the direction in which the pixel value f1 continues is the Y direction. Not the slope GfIs the direction of the continuity (the angle θ direction) of the data represented by
[1746]
In other words, when considering the waveform of the approximation function f (x) at the predetermined position y (where y is a numerical value other than 0) in the Y direction, the position that becomes the pixel value f1 is not the position (0, y). , From the position (0, y) in the X direction by a predetermined amount (again, such an amount is referred to as a shift amount. Further, since the shift amount is an amount dependent on the position y in the Y direction, This shift amount is Cx(To be described as (y))) (C)x(Y), y).
[1747]
Therefore, the center of the pixel value M (l) (where l is any integer from 1 to 4) to be obtained is defined as the integration range on the right side of each of the above-described equations (171) to (174). In the Y direction where the position y exists, that is, the shift amount CxIt is necessary to set the integration range in consideration of (y).
[1748]
Specifically, for example, the position y in the Y direction where the centers of the pixels 3111 and 3112 exist is not y = 0 but y = 0.25.
[1748]
Therefore, the waveform of the approximation function f (x) at y = 0.25 is obtained by shifting the waveform of the approximation function f (x) at y = 0 by a shift amount C in the X direction.xThis corresponds to a waveform shifted by (0.25).
[1750]
In other words, in the above equation (171), the pixel value M (1) with respect to the pixel 3111 is obtained by converting the approximate function f (x) at y = 0 into a predetermined integration range (start position xs1To end position xe1), The integration range is the start position xs1= End position x from -0.5e1238, that is, the range shown in FIG. 238, that is, the start position xs1= -0.5 + CxEnd position x from (0.25)e1= 0 + Cx(0.25) (shift amount Cx(The range occupied by the pixel 3111 in the X direction when the pixel 3111 is temporarily moved by (0.25)).
[1751]
Similarly, in the above equation (172), the pixel value M (2) for the pixel 3112 is obtained by converting the approximate function f (x) at y = 0 into a predetermined integration range (start position xs2To end position xe2), The integration range is the start position xs2= 0 to end position xe2238, that is, the range shown in FIG. 238, that is, the start position xs2= 0 + CxEnd position x from (0.25)e1= 0.5 + Cx(0.25) (shift amount Cx(The range occupied by the pixel 3112 in the X direction when the pixel 3112 is temporarily moved by (0.25)).
[1752]
Further, for example, the position y in the Y direction where the centers of the pixels 3113 and 3114 exist is not y = 0 but y = −0.25.
[1753]
Therefore, the waveform of the approximate function f (x) at y = −0.25 is obtained by shifting the waveform of the approximate function f (x) at y = 0 by a shift amount C in the X direction.xThis corresponds to a waveform shifted by (−0.25).
[1754]
In other words, in the above equation (173), the pixel value M (3) for the pixel 3113 is obtained by converting the approximate function f (x) at y = 0 into a predetermined integration range (start position xs3To end position xe3), The integration range is the start position xs3= End position x from -0.5e3238, that is, the range shown in FIG. 238, that is, the start position xs3= -0.5 + CxEnd position x from (-0.25)e3= 0 + Cx(−0.25) (shift amount CxThis is the range occupied by the pixel 3113 in the X direction when the pixel 3113 is temporarily moved by (−0.25).
[1755]
Similarly, in the above equation (174), the pixel value M (4) for the pixel 3114 is obtained by converting the approximate function f (x) at y = 0 into a predetermined integration range (start position xs4To end position xe4), The integration range is the start position xs4= 0 to end position xe4238, that is, the range shown in FIG. 238, that is, the start position xs4= 0 + CxEnd position x from (-0.25)e1= 0.5 + Cx(−0.25) (shift amount CxThis is the range occupied by the pixel 3114 in the X direction when the pixel 3114 is temporarily moved by (−0.25).
[1756]
Therefore, the image generation unit 102 (FIG. 236) substitutes the corresponding one of the above-described integration ranges into each of the above-described equations (171) to (174), performs the respective calculations, and calculates the calculation results. Output is performed as each of the output pixel values M (1) to M (4).
[1775]
As described above, by using the one-dimensional reintegration method, the image generation unit 102 uses the one having a higher spatial resolution than the output pixel 3101 as the pixel in the output pixel 3101 (FIG. 237) from the sensor 2 (FIG. 236). One pixel can be created: pixel 3111 through pixel 3114 (FIG. 238). Further, although not shown, as described above, the image generation unit 102 can appropriately change the integration range as well as the pixels 3111 to 3114 to generate a pixel having an arbitrary spatial resolution with respect to the output pixel 3101. Can be created without deterioration.
[1758]
FIG. 239 illustrates a configuration example of the image generation unit 103 using such a one-dimensional reintegration method.
[1759]
As shown in FIG. 239, the image generation unit 103 of this example includes a condition setting unit 3121, a feature amount storage unit 3122, an integral component calculation unit 3123, and an output pixel value calculation unit 3124.
[1760]
The condition setting unit 3121 sets the order n of the approximate function f (x) based on the real world estimation information (in the example of FIG. 239, the feature amount of the approximate function f (x)) supplied from the real world estimation unit 102. I do.
[1761]
The condition setting unit 3121 also sets an integration range when re-integrating the approximation function f (x) (when calculating an output pixel value). Note that the integration range set by the condition setting unit 3121 does not need to be the width of a pixel. For example, since the approximation function f (x) is integrated in the spatial direction (X direction), the output pixel (the image generation unit 103) corresponds to the spatial size of each pixel of the input image from the sensor 2 (FIG. 236). If the relative size (scaling of spatial resolution) of the pixel to be calculated from this is known, a specific integration range can be determined. Therefore, the condition setting unit 3121 can also set, for example, a spatial resolution magnification as the integration range.
[1762]
The feature amount storage unit 3122 temporarily stores feature amounts of the approximation function f (x) sequentially supplied from the real world estimation unit 102. Then, when all the feature amounts of the approximate function f (x) are stored, the feature amount storage unit 3122 generates a feature amount table including all the feature amounts of the approximate function f (x), and the output pixel value calculation unit 3124 Supply.
[1763]
By the way, as described above, the image generation unit 103 calculates the output pixel value M using the above equation (169), and the approximate function f (x) included on the right side of the above equation (169) is Specifically, it is expressed as in the following equation (175).
[1764]
[Equation 142]
Figure 2004246526
Figure 2004246526
[1765]
Note that in equation (175), wiRepresents the feature amount of the approximate function f (x) supplied from the real world estimation unit 102.
[1766]
Therefore, when the approximation function f (x) of Expression (175) is substituted for the approximation function f (x) on the right side of Expression (169), and the right side of Expression (169) is expanded (calculated), the output pixel The value M is expressed as in the following equation (176).
[1767]
143
Figure 2004246526
Figure 2004246526
[1768]
In equation (176), Ki(Xs, Xe) Represents the integral component of the i-th order term. That is, the integral component Ki(Xs, Xe) Is as shown in the following equation (177).
[1770]
[Equation 144]
Figure 2004246526
Figure 2004246526
[1770]
The integral component calculator 3123 calculates the integral component Ki(Xs, Xe) Is calculated.
[1771]
Specifically, as shown in Expression (177), the integral component Ki(Xs, Xe) Is the start position x of the integration ranges, And end position xe, Gain Ge, And i, if i of the term is known.
[1772]
Of these, the gain GeIs determined by the spatial resolution magnification (integration range) set by the condition setting unit 3121.
[1773]
The range of i is determined by the order n set by the condition setting unit 3121.
[1774]
Also, the starting position x of the integration ranges, And end position xeAre the center pixel position (x, y) and pixel width of the output pixel to be generated, and the shift amount C representing the direction of data continuity.x(Y). Note that (x, y) represents a relative position from the center position of the target pixel when the real world estimating unit 102 generates the approximate function f (x).
[1775]
Further, each of the center pixel position (x, y) and the pixel width of an output pixel to be generated is determined by the spatial resolution magnification (integration range) set by the condition setting unit 3121.
[1776]
Also, the shift amount Cx(Y) and the angle θ supplied from the data continuity detecting unit 101, since the following equation (178) and equation (179) hold, the shift amount Cx(Y) is determined by the angle θ.
[1777]
[Equation 145]
Figure 2004246526
Figure 2004246526
[1778]
[Equation 146]
Figure 2004246526
Figure 2004246526
[1779]
Note that in equation (178), GfRepresents an inclination indicating the direction of data continuity, and θ represents an angle (in one spatial direction) which is one of the data continuity information output from the data continuity detecting unit 101 (FIG. 236). An X direction and a gradient Gf(Angle formed with the direction of the stationarity of the data represented by). Dx represents a minute movement amount in the X direction, and dy represents a minute movement amount in the Y direction (space direction perpendicular to the X direction) with respect to dx.
[1780]
Therefore, the integral component calculation unit 3123 is based on the order and the spatial resolution magnification (integration range) set by the condition setting unit 3121 and the angle θ in the data continuity information output from the data continuity detection unit 101. Integral component Ki(Xs, Xe) Is calculated, and the calculation result is supplied to the output pixel value calculation unit 3124 as an integral component table.
[1781]
The output pixel value calculation unit 3124 calculates the right side of the above equation (176) using the feature amount table supplied from the feature amount storage unit 3122 and the integration component table supplied from the integration component calculation unit 3123. , And outputs the calculation result to the outside as an output pixel value M.
[1782]
Next, an image generation process (the process of step S103 in FIG. 40) of the image generation unit 103 (FIG. 239) using the one-dimensional reintegration method will be described with reference to the flowchart in FIG.
[1783]
For example, in the process of step S102 in FIG. 40 described above, the real-world estimating unit 102 uses the pixel 3101 as shown in FIG. ) Has already been generated.
[1784]
In addition, it is assumed that the data continuity detecting unit 101 has already output the angle θ as shown in FIG. 237 as the data continuity information in the processing of step S101 in FIG. 40 described above.
[1785]
In this case, in step S3101 in FIG. 240, the condition setting unit 3121 sets conditions (order and integration range).
[1786]
For example, suppose that the order is set to 5 and the integration range is set to a spatial quadruple density (spatial resolution magnification at which the pixel pitch width is 1/2 times in both the upper, lower, left, and right directions).
[1787]
That is, in this case, as shown in FIG. 238, a range of -0.5 to 0.5 in the X direction and a range of -0.5 to 0.5 in the Y direction (range of the pixel 3101 in FIG. 237). This means that four pixels 3111 to 3114 are newly created.
[1788]
In step S3102, the feature amount storage unit 3122 acquires the feature amount of the approximate function f (x) supplied from the real world estimation unit 102, and generates a feature amount table. In this case, the coefficient w of the approximate function f (x), which is a fifth-order polynomial,0Or w5Is supplied from the real world estimating unit 102, so that (w0, W1, W2, W3, W4, W5) Is generated.
[1789]
In step S3103, the integral component calculation unit 3123 integrates based on the conditions (order and integration range) set by the condition setting unit 3121 and the data continuity information (angle θ) supplied from the data continuity detection unit 101. The components are calculated and an integral component table is generated.
[1790]
Specifically, for example, if it is assumed that numbers (such numbers are hereinafter referred to as mode numbers) 1 to 4 are respectively assigned to the pixels 3111 to 3114 to be generated from now on, The component calculation unit 3123 calculates the integral component K of the above-described equation (177).i(Xs, Xe) With the integral component K shown on the left side of the following equation (180).iThe calculation is performed as a function of l (where l represents a mode number) such as (l).
[1791]
Ki(L) = Ki(Xs, Xe・ ・ ・ ・ ・ ・ (180)
[1792]
Specifically, in this case, the integral component K represented by the following equation (181)i(L) is calculated.
[1793]
147
Figure 2004246526
Figure 2004246526
[1794]
In equation (181), the left side is the integral component Ki(L), and the right side is the integral component Ki(Xs, Xe). That is, in this case, l is any one of 1 to 4 and i is any one of 0 to 5, so that 6 Ki(1), 6 Ki(2), 6 Ki(3), 6 Ki(4) a total of 24 Ki(L) is calculated.
[1795]
More specifically, first, the integral component calculation unit 3123 uses the angle θ supplied from the data continuity detection unit 101 to calculate the shift amount C from the above Expressions (178) and (179).x(−0.25), and Cx(0.25) is calculated.
[1796]
Next, the integral component calculation unit 3123 calculates the calculated shift amount Cx(−0.25), and CxUsing (0.25), the integral components K on the right side of each of the four equations in equation (181)i(Xs, Xe) Are calculated for i = 0 to 5, respectively. Note that this integral component Ki(Xs, Xe) Is used in the above equation (177).
[1797]
Then, the integral component calculation unit 3123 calculates the 24 integral components K calculated according to Expression (181).i(Xs, Xe) To the corresponding integral component Ki(L) and converted 24 integral components Ki(L) (ie, six Ki(1), 6 Ki(2), 6 Ki(3), and six KiGenerate an integral component table including (4)).
[1798]
The order of the processing in step S3102 and the processing in step S3103 is not limited to the example in FIG. 240, and the processing in step S3103 may be performed first, or the processing in step S3102 and the processing in step S3103 may be performed simultaneously. May be done.
[1799]
Next, in step S3104, the output pixel value calculation unit 3124 calculates the feature amount table generated by the feature amount storage unit 3122 in the process of step S3102 and the integration component generated by the integration component calculation unit 3123 in the process of step S3103. Each of the output pixel values M (1) to M (4) is calculated based on the table.
[1800]
Specifically, in this case, the output pixel value calculation unit 3124 calculates the right side of the following Expressions (182) to (185) corresponding to Expression (176) described above, thereby obtaining the pixel 3111 (mode Pixel value M (1) of pixel 1, pixel value M (2) of pixel 3112 (pixel of mode number 2), pixel value M (3) of pixel 3113 (pixel of mode number 3), and pixel 3114 Each pixel value M (4) of (the pixel of mode number 4) is calculated.
[1801]
[Equation 148]
Figure 2004246526
Figure 2004246526
[1802]
149
Figure 2004246526
Figure 2004246526
[1803]
[Equation 150]
Figure 2004246526
Figure 2004246526
[1804]
[Equation 151]
Figure 2004246526
Figure 2004246526
[1805]
In step S3105, the output pixel value calculation unit 3124 determines whether the processing for all pixels has been completed.
[1806]
If it is determined in step S3105 that the processing for all pixels has not been completed, the process returns to step S3102, and the subsequent processing is repeated. That is, the pixels that have not yet been set as the target pixel are sequentially set as the target pixel, and the processing of steps S3102 to S3104 is repeated.
[1807]
Then, when the processing on all pixels is completed (when it is determined in step S3105 that the processing on all pixels is completed), the output pixel value calculation unit 3124 outputs an image in step S3106. After that, the process of generating the image ends.
[1808]
Next, referring to FIGS. 241 to 248, an output image obtained by applying a one-dimensional reintegration method to a predetermined input image and another method (conventional class classification adaptive processing) are applied. The difference between the output images obtained as described above will be described.
[1809]
FIG. 241 is a diagram illustrating an original image of the input image, and FIG. 242 is a diagram illustrating image data corresponding to the original image of FIG. In FIG. 242, the vertical axis in the drawing indicates the pixel value, the lower right axis in the drawing indicates the X direction which is one direction in the spatial direction of the image, and the upper right axis in the drawing indicates the image value. The Y direction, which is another direction in the spatial direction, is shown. Note that each of the axes in FIGS. 244, 246, and 248 described later corresponds to the axis in FIG.
[1810]
FIG. 243 is a diagram illustrating an example of an input image. The input image illustrated in FIG. 243 is an image in which the average value of the pixel values of the pixels belonging to the 2 × 2 pixel block of the image illustrated in FIG. 241 is generated as the pixel value of one pixel. That is, the input image is an image obtained by applying spatial integration that imitates the integration characteristics of the sensor to the image shown in FIG. FIG. 244 shows image data corresponding to the input image of FIG. 243.
[1811]
The original image shown in FIG. 241 includes an image of a thin line inclined approximately 5 degrees clockwise from the vertical direction. Similarly, the input image shown in FIG. 243 includes an image of a thin line inclined approximately 5 degrees clockwise from the vertical direction.
[1812]
FIG. 245 is a diagram illustrating an image obtained by applying the conventional classification adaptive processing to the input image illustrated in FIG. 243 (hereinafter, the image illustrated in FIG. 245 is referred to as a conventional image). FIG. 246 shows image data corresponding to a conventional image.
[1813]
The class classification adaptation process includes a class classification process and an adaptation process. The class classification process classifies data into classes based on their properties, and performs an adaptation process for each class. In the adaptive processing, for example, an image of low image quality or standard image quality is converted into a high image quality image by mapping (mapping) using a predetermined tap coefficient.
[1814]
FIG. 247 is an image obtained by applying the one-dimensional reintegration method to which the present invention is applied to the input image shown in FIG. 243 (hereinafter, the image shown in FIG. 247 is referred to as an image of the present invention). FIG. FIG. 248 shows image data corresponding to the image of the present invention.
[1815]
When comparing the conventional image of FIG. 245 with the image of the present invention of FIG. 247, in the conventional image, the thin line image is different from the original image of FIG. In the image of the present invention, it can be seen that the thin line image is almost the same as the original image in FIG.
[1816]
The difference is that the conventional classification adaptive processing is a method of performing processing based on the input image of FIG. 243 as a reference (origin), whereas the one-dimensional reintegration method of the present invention reduces the continuity of fine lines. Considering this, the original image in FIG. 241 is estimated (an approximate function f (x) corresponding to the original image is generated), and the estimated original image is processed as a reference (origin) (re-integration is performed). This is because the pixel value is calculated.
[1817]
As described above, in the one-dimensional reintegration method, the approximation function f (x) which is a one-dimensional polynomial generated by the one-dimensional polynomial approximation method (the approximation function f (x )) As a reference (origin), an output image (pixel value) is generated by integrating the approximate function f (x) into an arbitrary range.
[1818]
Therefore, in the one-dimensional reintegration method, it is possible to output an image closer to the original image (the optical signal of the real world 1 before being incident on the sensor 2) as compared with other conventional methods.
[1819]
In other words, in the one-dimensional reintegration method, the data continuity detection unit 101 in FIG. 236 projects the optical signal of the real world 1 by a plurality of detection elements of the sensor 2 each having a spatiotemporal integration effect, The real-world estimator 102 detects the continuity of data in an input image composed of a plurality of pixels having pixel values projected by a detection element, which lacks part of the continuity of the optical signal of the first optical signal. According to the data continuity, the pixel value of the pixel corresponding to the position in the one-dimensional direction in the spatiotemporal direction of the input image is assumed to be the pixel value obtained by the integration effect in the one-dimensional direction. Estimating the optical signal function F by approximating the optical signal function F (specifically, the X-sectional waveform F (x)) representing the optical signal 1 with a predetermined approximation function f (x). Is assumed.
[1820]
In detail, for example, the pixel value of each pixel corresponding to the distance along the one-dimensional direction from the line corresponding to the stationarity of the detected data is the pixel value obtained by the one-dimensional direction integration effect. It is assumed that the X-section waveform F (x) is approximated by an approximation function f (x).
[1821]
Then, in the one-dimensional reintegration method, based on such a premise, for example, the image generation unit 103 in FIG. 236 (FIG. 3) uses the X-section waveform F (x) estimated by the real world estimation unit 102, That is, a pixel value M corresponding to a pixel having a desired size is generated by integrating the approximation function f (x) in a desired unit in the one-dimensional direction, and is output as an output image.
[1822]
Therefore, in the one-dimensional reintegration method, it is possible to output an image closer to the original image (the optical signal of the real world 1 before being incident on the sensor 2) as compared with other conventional methods.
[1823]
Further, in the one-dimensional reintegration method, as described above, since the integration range is arbitrary, it is possible to create a resolution (temporal resolution or spatial resolution) different from the resolution of the input image by changing the integration range. Will be possible. That is, it is possible to generate an image having a resolution of any magnification, not only an integer value, with respect to the resolution of the input image.
[1824]
Furthermore, in the one-dimensional reintegration method, it is possible to calculate an output image (pixel value) with a smaller amount of processing compared to other reintegration methods.
[1825]
Next, a two-dimensional reintegration method will be described with reference to FIGS.
[1826]
In the two-dimensional reintegration method, it is assumed that the approximate function f (x, y) has already been generated by the two-dimensional polynomial approximation method.
[1827]
That is, for example, as shown in FIG.FThe image function F (x, y, t) representing the optical signal of the real world 1 (FIG. 236) having the spatial continuity represented by the following equation is projected in the spatial direction (X direction and Y direction), that is, , XY plane is assumed to be approximated to an approximate function f (x, y) which is an n-th order (n is an arbitrary integer) polynomial.
[1828]
In FIG. 249, the horizontal direction indicates the X direction which is one direction in the spatial direction, the upper right direction indicates the Y direction which is the other direction in the spatial direction, and the vertical direction indicates the light level. . GFRepresents the gradient of stationarity in the spatial direction.
[1829]
In the example of FIG. 249, the direction of the stationarity is set in the spatial direction (X direction and Y direction), so that the projection function of the optical signal to be approximated is the function F (x, y). However, as described later, the function F (x, t) or the function F (y, t) may be approximated according to the direction of the stationarity.
[1830]
In the case of the example in FIG. 249, in the two-dimensional reintegration method, the output pixel value M is calculated as in the following expression (186).
[1831]
[Equation 152]
Figure 2004246526
Figure 2004246526
[1832]
Note that in equation (186), ysRepresents the integration start position in the Y direction.eRepresents the integration end position in the Y direction. Similarly, xsRepresents the integration start position in the X direction, and xeRepresents the integration end position in the X direction. GeRepresents a predetermined gain.
[1833]
In Expression (186), the integration range can be set arbitrarily. In the two-dimensional reintegration method, the integration range is appropriately changed to change the original pixel (the pixel of the input image from the sensor 2 (FIG. 236)). ) Can be created without deteriorating pixels having an arbitrary spatial resolution.
[1834]
FIG. 250 illustrates a configuration example of the image generation unit 103 using the two-dimensional reintegration method.
[1835]
As shown in FIG. 250, the image generation unit 103 of this example includes a condition setting unit 3201, a feature amount storage unit 3202, an integral component calculation unit 3203, and an output pixel value calculation unit 3204.
[1836]
The condition setting unit 3201 calculates the approximate function f (x, y) based on the real world estimation information (the feature amount of the approximate function f (x, y) in the example of FIG. 250) supplied from the real world estimation unit 102. Set the order n.
[1837]
The condition setting unit 3201 also sets an integration range when re-integrating the approximation function f (x, y) (when calculating output pixel values). Note that the integration range set by the condition setting unit 3201 does not need to be the vertical width or the horizontal width of the pixel. For example, since the approximation function f (x, y) is integrated in the spatial direction (the X direction and the Y direction), the output pixel (the image generation unit 103) with respect to the spatial size of each pixel of the input image from the sensor 2 If the relative size (magnification of the spatial resolution) of the pixel to be generated is known, a specific integration range can be determined. Therefore, the condition setting unit 3201 can also set, for example, a spatial resolution magnification as the integration range.
[1838]
The feature storage unit 3202 temporarily stores the feature of the approximate function f (x, y) sequentially supplied from the real world estimation unit 102. Then, when all the feature quantities of the approximation function f (x, y) are stored, the feature quantity storage unit 3202 generates a feature quantity table including all the feature quantities of the approximation function f (x, y), and outputs the output pixel value. It is supplied to the arithmetic unit 3204.
[1839]
Here, details of the approximate function f (x, y) will be described.
[1840]
For example, the gradient G as shown in FIG.FThe optical signal (optical signal represented by waveform F (x, y)) of the real world 1 (FIG. 236) having spatial continuity represented by the following equation is detected by the sensor 2 (FIG. 236) and the input image (Pixel value).
[1841]
Further, for example, as shown in FIG. 251, the data continuity detecting unit 101 (FIG. 3) outputs a total of 20 pixels of this input image for 4 pixels in the X direction and 5 pixels in the Y direction. The process is executed on an area 3221 of the input image composed of pixels (20 squares represented by dotted lines in the figure), and an angle θ (slope GFSlope G corresponding tofIt is assumed that an angle θ) between the direction of the continuity of the data expressed by and the X direction is output.
[1842]
From the viewpoint of the real world estimating unit 102, the data continuity detecting unit 101 only needs to output the angle θ at the target pixel. It is not limited to.
[1843]
In the region 3221 of the input image, the horizontal direction in the figure represents the X direction, which is one direction in the spatial direction, and the vertical direction in the figure represents the Y direction, which is the other direction in the spatial direction.
[1844]
Further, in FIG. 251, the second pixel from the left and the third pixel from the bottom are taken as the target pixel, and the (x, y) coordinates are set such that the center of the target pixel is the origin (0, 0). The system has been set. Then, a straight line of the angle θ passing through the origin (0, 0) (the gradient G representing the direction of data continuity)fX ′ is a relative distance in the X direction (hereinafter referred to as a cross-sectional direction distance) with respect to the straight line x ′.
[1845]
Further, in the graph on the right side of FIG. 251, the image function F (x, y, t) using the position x, y, and z in the three-dimensional space and the time t as variables is set at an arbitrary position in the Y direction. In y, a one-dimensional waveform projected in the X direction (hereinafter, such a waveform is referred to as an X-section waveform F (x ′)) is an approximated function, and is an n-th order (n is an arbitrary integer) ) Represents an approximate function f (x ′) which is a polynomial expression. Of the axes in the graph on the right side, the horizontal axis in the figure represents the distance in the cross-sectional direction, and the vertical axis in the figure represents the pixel value.
[1846]
In this case, since the approximation function f (x ') shown in FIG. 251 is an n-th order polynomial, it is expressed as the following equation (187).
[1847]
[Equation 153]
Figure 2004246526
Figure 2004246526
[1848]
Further, since the angle θ is determined, the straight line of the angle θ passing through the origin (0, 0) is uniquely determined, and the position x of the straight line in the X direction at an arbitrary position y in the Y directionlIs expressed as in the following equation (188). However, in equation (188), s represents cot θ.
[1849]
xl  = S × y (188)
[1850]
That is, as shown in FIG.fThe point on the straight line corresponding to the stationarity of the data represented by the coordinate value (xl, Y).
[1851]
From Expression (188), the cross-sectional direction distance x ′ is expressed as in the following Expression (189).
[1852]
x '= xxl  = X−s × y (189)
[1853]
Therefore, the approximate function f (x, y) at an arbitrary position (x, y) in the area 3221 of the input image is expressed by the following equation (190) from the equations (187) and (189). .
[1854]
[Equation 154]
Figure 2004246526
Figure 2004246526
[1855]
Note that in equation (190), wiRepresents the feature amount of the approximation function f (x, y).
[1856]
Referring back to FIG. 250, the feature amount w included in Expression (190)iIs supplied from the real world estimation unit 102 and stored in the feature amount storage unit 3202. The feature amount storage unit 3202 stores the feature amount w represented by Expression (190).iIs stored, the feature amount wiIs generated and supplied to the output pixel value calculation unit 3204.
[1857]
Further, the approximation function f (x, y) of the equation (190) is substituted for the approximation function f (x, y) on the right side of the equation (186), and the right side of the equation (186) is expanded (calculated). Then, the output pixel value M is expressed as in the following equation (191).
[1858]
[Equation 155]
Figure 2004246526
Figure 2004246526
[1859]
In equation (191), Ki(Xs, Xe, Ys, Ye) Represents the integral component of the i-th order term. That is, the integral component Ki(Xs, Xe, Ys, Ye) Is as shown in the following equation (192).
[1860]
[Equation 156]
Figure 2004246526
Figure 2004246526
[1861]
The integral component calculation unit 3203 calculates the integral component Ki(Xs, Xe, Ys, Ye) Is calculated.
[1862]
Specifically, as shown in Expressions (191) and (192), the integral component Ki(Xs, Xe, Ys, Ye) Is the start position x in the X direction of the integration range.s, And the end position x in the X directione, The start position y in the Y direction of the integration ranges, And the end position y in the Y directione, Variable s, gain Ge, And i, if i of the term is known.
[1863]
Of these, the gain GeIs determined by the spatial resolution magnification (integration range) set by the condition setting unit 3201.
[1864]
The range of i is determined by the order n set by the condition setting unit 3201.
[1865]
Since the variable s is cot θ as described above, the variable s is determined by the angle θ output from the data continuity detecting unit 101.
[1866]
Also, the start position x in the X direction of the integration ranges, And the end position x in the X directione, And the start position y in the Y direction of the integration ranges, And the end position y in the Y directioneAre determined by the center pixel position (x, y) and the pixel width of the output pixel to be generated. Note that (x, y) represents a relative position from the center position of the target pixel when the real world estimating unit 102 generates the approximate function f (x).
[1867]
Further, each of the center pixel position (x, y) and the pixel width of the output pixel to be generated is determined by the spatial resolution magnification (integration range) set by the condition setting unit 3201.
[1868]
Therefore, the integral component calculation unit 3203 determines the order and the spatial resolution magnification (integration range) set by the condition setting unit 3201 and the angle θ in the data continuity information output from the data continuity detection unit 101. Integral component Ki(Xs, Xe, Ys, Ye), And supplies the calculation result to the output pixel value calculation unit 3204 as an integral component table.
[1869]
The output pixel value calculation unit 3204 calculates the right side of the above equation (191) using the feature value table supplied from the feature value storage unit 3202 and the integration component table supplied from the integration component calculation unit 3203. , And outputs the calculation result to the outside as an output pixel value M.
[1870]
Next, an image generation process (the process of step S103 in FIG. 40) of the image generation unit 103 (FIG. 251) using the two-dimensional reintegration method will be described with reference to the flowchart in FIG.
[1871]
For example, an optical signal represented by a function F (x, y) shown in FIG. 249 is now incident on the sensor 2 and becomes an input image, and the real-world estimating unit 102 performs processing in step S102 in FIG. It is assumed that an approximate function f (x, y) that approximates the function F (x, y) has already been generated using one pixel 3231 as shown in FIG. 253 of the input image as a target pixel. .
[1872]
In FIG. 253, the pixel value (input pixel value) of the pixel 3231 is P, and the shape of the pixel 3231 is a square with one side length of one. The direction parallel to one side of the pixel 3231 in the spatial direction is defined as the X direction, and the direction perpendicular to the X direction is defined as the Y direction. Further, a coordinate system (hereinafter, referred to as a target pixel coordinate system) in a spatial direction (X direction and Y direction) where the center of the pixel 3231 is the origin is set.
[1873]
In FIG. 253, in the process of step S101 in FIG. 40 described above, the data continuity detecting unit 101 sets the gradient GfIt is assumed that the angle θ has already been output as data continuity information corresponding to the continuity of the data represented by.
[1874]
Returning to FIG. 252, in this case, in step S3201, the condition setting unit 3201 sets conditions (order and integration range).
[1875]
For example, suppose that the order is set to 5 and the integration range is set to a spatial quadruple density (spatial resolution magnification at which the pixel pitch width is 1/2 times in both the upper, lower, left, and right directions).
[1876]
That is, in this case, as shown in FIG. 254, a range of -0.5 to 0.5 in the X direction and a range of -0.5 to 0.5 in the Y direction (range of the pixel 3231 in FIG. 253). This means that four pixels 3241 to 3244 are newly created. Note that FIG. 254 also shows the same target pixel coordinate system as that of FIG. 253.
[1877]
In FIG. 254, M (1) indicates a pixel value of a pixel 3241 to be generated, M (2) indicates a pixel value of a pixel 3242 to be generated, and M (3) indicates a pixel value of the pixel 3242 to be generated. The pixel value of the pixel 3243 and M (4) respectively represent the pixel value of the pixel 3241 to be generated.
[1878]
Returning to FIG. 252, in step S3202, the feature amount storage unit 3202 acquires the feature amount of the approximate function f (x, y) supplied from the real world estimation unit 102, and generates a feature amount table. In this case, the coefficient w of the approximate function f (x), which is a fifth-order polynomial,0Or w5Is supplied from the real world estimating unit 102, so that (w0, W1, W2, W3, W4, W5) Is generated.
[1879]
In step S3203, the integral component calculation unit 3203 performs integration based on the conditions (order and integration range) set by the condition setting unit 3201 and the data continuity information (angle θ) supplied from the data continuity detection unit 101. The components are calculated and an integral component table is generated.
[1880]
Specifically, for example, assuming that pixels 1 to 4 (such numbers are hereinafter referred to as mode numbers) are respectively assigned to the pixels 3241 to 3244 to be generated, respectively. The integral component calculation unit 3203 calculates the integral component K in the above equation (191).i(Xs, Xe, Ys, Ye) With the integral component K shown on the left side of the following equation (193).iThe calculation is performed as a function of l (where l represents a mode number) such as (l).
[1881]
Ki(L) = Ki(Xs, Xe, Ys, Ye・ ・ ・ ・ ・ ・ (193)
[1882]
Specifically, in this case, the integral component K represented by the following equation (194)i(L) is calculated.
[1883]
[Equation 157]
Figure 2004246526
Figure 2004246526
[1884]
In equation (194), the left side is the integral component Ki(L), and the right side is the integral component Ki(Xs, Xe, Ys, Ye). That is, in this case, l is any one of 1 to 4 and i is any one of 0 to 5, so that 6 Ki(1), 6 Ki(2), 6 Ki(3), 6 Ki(4) a total of 24 Ki(L) is calculated.
[1885]
More specifically, first, using the angle θ supplied from the data continuity detecting unit 101, the integral component calculating unit 3203 calculates the variable s (s = cot θ) in the above equation (188).
[1886]
Next, the integral component computing unit 3203 uses the computed variable s to calculate the integral component K on the right side of each of the four expressions in Expression (194).i(Xs, Xe, Ys, Ye) Are calculated for i = 0 to 5, respectively. Note that this integral component Ki(Xs, Xe, Ys, YeIn the calculation of ()), the above-described equation (191) is used.
[1888]
Then, the integral component computing unit 3203 computes the 24 integral components K calculated according to Expression (194).i(Xs, Xe, Ys, Ye) To the corresponding integral component Ki(L) and converted 24 integral components Ki(L) (ie, six Ki(1), 6 Ki(2), 6 Ki(3), and six KiGenerate an integral component table including (4)).
[1888]
The order of the processing in step S3202 and the processing in step S3203 is not limited to the example of FIG. 252, and the processing in step S3203 may be performed first, or the processing in step S3202 and the processing in step S3203 may be performed simultaneously. May be done.
[1889]
Next, in step S3204, the output pixel value calculation unit 3204 includes the feature amount table generated by the feature amount storage unit 3202 in the process of step S3202 and the integration component generated by the integration component calculation unit 3203 in the process of step S3203. Each of the output pixel values M (1) to M (4) is calculated based on the table.
[1890]
Specifically, in this case, the output pixel value calculation unit 3204 calculates each of the right sides of the following Expressions (195) to (198) corresponding to Expression (191) described above, and thereby, FIG. , The pixel value M (1) of the pixel 3241 (the pixel of the mode number 1), the pixel value M (2) of the pixel 3242 (the pixel of the mode number 2), and the pixel value of the pixel 3243 (the pixel of the mode number 3) M (3) and the pixel value M (4) of the pixel 3244 (the pixel of mode number 4) are calculated.
[1891]
[Equation 158]
Figure 2004246526
Figure 2004246526
[1892]
[Equation 159]
Figure 2004246526
Figure 2004246526
[1893]
[Equation 160]
Figure 2004246526
Figure 2004246526
[1894]
[Equation 161]
Figure 2004246526
Figure 2004246526
[1895]
However, in this case, n in Expressions (195) to (198) is all 5.
[1896]
In step S3205, the output pixel value calculation unit 3204 determines whether the processing for all pixels has been completed.
[1897]
If it is determined in step S3205 that the processing for all pixels has not been completed, the process returns to step S3202, and the subsequent processing is repeated. That is, the pixels that are not yet set as the target pixel are sequentially set as the target pixel, and the processing of steps S3202 to S3204 is repeated.
[1898]
Then, when the processing on all the pixels is completed (when it is determined in step S3205 that the processing on all the pixels is completed), the output pixel value calculation unit 3204 outputs an image in step S3206. After that, the process of generating the image ends.
[1899]
As described above, by using the two-dimensional reintegration method, four pixels having higher spatial resolution than the input pixel 3231, that is, four pixels, in the pixel 3231 (FIG. 253) of the input image from the sensor 2 (FIG. 236), that is, , Pixel 3241 to pixel 3244 (FIG. 254). Further, although not shown, as described above, the image generation unit 103 changes the integration range as appropriate, in addition to the pixels 3241 to 3244, so that the pixel having an arbitrary spatial resolution with respect to the input pixel 3231 can be obtained. Can be created without deterioration.
[1900]
As an explanation of the two-dimensional reintegration method, an example in which the approximation function f (x, y) in the spatial direction (X direction and Y direction) is two-dimensionally integrated has been used. (X direction and t direction, or Y direction and t direction).
[1901]
That is, in the above-described example, the optical signal of the real world 1 (FIG.FSince the above is an example of the case where there is a continuity in the spatial direction represented by the following expression, an expression including a two-dimensional integration in the spatial direction (X direction and Y direction) as shown in the above-mentioned expression (186) is used. Was done. However, the concept of two-dimensional integration can be applied not only to the spatial direction but also to the spatio-temporal direction (X direction and t direction, or Y direction and t direction).
[1902]
In other words, in the two-dimensional polynomial approximation method that is a premise of the two-dimensional reintegration method, the image function F (x, y, t) representing the optical signal is not only in the spatial direction continuity but also in the spatiotemporal direction (however, , X direction and t direction, or Y direction and t direction), it is possible to approximate by a two-dimensional polynomial.
[1903]
Specifically, for example, when there is an object moving at a constant speed horizontally in the X direction, the direction of the movement of the object is represented by a slope V in the Xt plane as shown in FIG.FIs represented as In other words, the slope VFRepresents the direction of continuity in the spatiotemporal direction on the Xt plane. Therefore, the data continuity detecting unit 101 (FIG. 236) calculates the above-described angle θ (the inclination G representing the continuity in the spatial direction on the XY plane).F, The inclination V representing the stationarity in the spatiotemporal direction on the Xt plane.FAs the data continuity information corresponding to the motion θ (see FIG. 255, although not strictly shown, the slope VFSlope V corresponding tofIt is possible to output a motion θ) which is an angle between the direction of the continuity of the data represented by the following formula and the spatial X direction.
[1904]
In addition, the real-world estimating unit 102 (FIG. 236) using the two-dimensional polynomial approximation method can use an approximation function f (x, It is possible to calculate the coefficient (feature amount) wi of t). However, in this case, the formula used is not the above-described formula (190) but the following formula (199).
[1905]
[Equation 162]
Figure 2004246526
Figure 2004246526
[1906]
In equation (199), s is cot θ (where θ is a movement).
[1907]
Therefore, the image generation unit 103 (FIG. 236) using the two-dimensional reintegration method performs the operation by substituting f (x, t) of the above equation (199) into the right side of the following equation (200). This makes it possible to calculate the pixel value M.
[1908]
[Equation 163]
Figure 2004246526
Figure 2004246526
[1909]
Note that in equation (200), tsRepresents the integration start position in the t direction, and teRepresents the integration end position in the t direction. Similarly, xsRepresents the integration start position in the X direction, and xeRepresents the integration end position in the X direction. GeRepresents a predetermined gain.
[1910]
Further, instead of the spatial direction X, the approximate function f (y, t) focused on the spatial direction Y can be handled in exactly the same manner as the above-described approximate function f (x, t).
[1911]
By the way, in equation (199), it is possible to obtain data that is not integrated in the time direction, that is, data without motion blur, by assuming that the t direction is assumed to be constant, that is, by ignoring the integration in the t direction. become. In other words, this method may be regarded as one of the two-dimensional reintegration methods in that reintegration is performed with a predetermined one of the two-dimensional polynomials being constant. May be regarded as one of the one-dimensional re-integration methods in that the re-integration is performed.
[1912]
In addition, in equation (200), the integration range can be set arbitrarily. In the two-dimensional reintegration method, by changing this integration range appropriately, the original pixel (input image from sensor 2 (FIG. 236)) can be obtained. ), It is possible to create a pixel having a resolution of an arbitrary magnification without deteriorating.
[1913]
That is, in the two-dimensional reintegration method, the time resolution can be created by appropriately changing the integration range in the time direction t. Also, by appropriately changing the integration range in the spatial direction X (or the spatial direction Y), it is possible to create a spatial resolution. Further, by appropriately changing each of the integration ranges in the time direction t and the space direction X, it is possible to create both the time resolution and the space resolution.
[1914]
As described above, creation of either the temporal resolution or the spatial resolution can be performed by the one-dimensional reintegration technique, but creation of both resolutions is impossible in principle by the one-dimensional reintegration technique. It is only possible to perform reintegration in two or more dimensions. That is, it is possible to create both resolutions only by the two-dimensional reintegration method and the three-dimensional reintegration method described later.
[1915]
In addition, since the two-dimensional reintegration method considers not a one-dimensional but a two-dimensional integration effect, it is also possible to generate an image closer to the optical signal of the real world 1 (FIG. 236).
[1916]
In other words, in the two-dimensional reintegration method, for example, the data continuity detection unit 101 in FIG. 236 (FIG. 3) uses the plurality of detection elements of the sensor 2 each having a spatiotemporal integration effect to generate an optical signal of the real world 1. Are projected, and the continuity of the optical signal of the real world 1 (for example, the slope G in FIG. 249)FThe continuity of the data (for example, the gradient G in FIG. 251) in an input image composed of a plurality of pixels having pixel values projected by the detection element and lacking part of the continuity represented byf(Stationarity of data represented by).
[1917]
Then, for example, the real-world estimating unit 102 in FIG. 236 (FIG. 3) responds to the continuity of the data detected by the data continuity detecting unit 101 and outputs at least a two-dimensional direction ( For example, assuming that the pixel values of the pixels corresponding to the positions in the spatial direction X and the spatial direction Y) in FIG. 249 are the pixel values obtained by the integration effect in at least the two-dimensional direction, and represent the optical signal of the real world 1. It is assumed that the optical signal function F is estimated by approximating the optical signal function F (specifically, the function F (x, y) in FIG. 249) with an approximate function f (x, y) which is a polynomial. It has been.
[1918]
More specifically, for example, the real-world estimating unit 102 calculates a line corresponding to the continuity of the data detected by the data continuity detecting unit 101 (for example, the slope G in FIG. 251).fThe pixel value of a pixel corresponding to a distance (for example, a cross-sectional direction distance x ′ in FIG. 251) along at least a two-dimensional direction from a line (arrow) corresponding to is obtained by at least a two-dimensional direction integration effect. It is assumed that the first function representing a light signal in the real world is approximated by a second function which is a polynomial, assuming that the pixel value is a pixel value, and the first function is estimated.
[1919]
In the two-dimensional reintegration method, based on such a premise, for example, the image generation unit 103 (the configuration is shown in FIG. 250) in FIG. 236 (FIG. 3) performs the function F ( x, y), that is, the approximation function f (x, y) is integrated in at least a desired unit in the two-dimensional direction (for example, by calculating the right side of the above-described equation (186)) to obtain a desired size. A pixel value corresponding to a pixel (for example, an output image (pixel value M) in FIG. 236. Specifically, for example, a pixel 3241 to a pixel 3244 in FIG. 254) is generated.
[1920]
Therefore, in the two-dimensional reintegration method, it is possible to create not only one of the temporal resolution and the spatial resolution but also create both resolutions. Further, in the two-dimensional reintegration method, an image closer to the optical signal of the real world 1 (FIG. 236) can be generated as compared with the one-dimensional reintegration method.
[1921]
Next, a three-dimensional reintegration method will be described with reference to FIGS. 256 and 257.
[1922]
In the three-dimensional reintegration method, it is assumed that the approximate function f (x, y, t) has already been generated by the three-dimensional function approximation method.
[1923]
In this case, in the three-dimensional reintegration method, the output pixel value M is calculated as in the following equation (201).
[1924]
[Equation 164]
Figure 2004246526
Figure 2004246526
[1925]
Note that in equation (201), tsRepresents the integration start position in the t direction, and teRepresents the integration end position in the t direction. Similarly, ysRepresents the integration start position in the Y direction.eRepresents the integration end position in the Y direction. Also, xsRepresents the integration start position in the X direction, and xeRepresents the integration end position in the X direction. Furthermore, GeRepresents a predetermined gain.
[1926]
In equation (201), the integration range can be set arbitrarily. In the three-dimensional reintegration method, the integration range is appropriately changed to change the original pixel (the pixel of the input image from the sensor 2 (FIG. 236)). ) Can be created without deteriorating pixels having an arbitrary spatio-temporal resolution. That is, if the integration range in the spatial direction is reduced, the pixel pitch can be made finer. Conversely, if the integration range in the spatial direction is increased, the pixel pitch can be freely increased. If the integration range in the time direction is reduced, a time resolution can be created based on the real world waveform.
[1927]
FIG. 256 illustrates a configuration example of the image generation unit 103 using the three-dimensional reintegration method.
[1928]
As shown in FIG. 256, the image generation unit 103 of this example includes a condition setting unit 3301, a feature amount storage unit 3302, an integral component calculation unit 3303, and an output pixel value calculation unit 3304.
[1929]
The condition setting unit 3301 determines the approximate function f (x, y) based on the real world estimation information (in the example of FIG. 256, the feature amount of the approximate function f (x, y, t)) supplied from the real world estimation unit 102. , T).
[1930]
The condition setting unit 3301 also sets an integration range when re-integrating the approximate function f (x, y, t) (when calculating an output pixel value). Note that the integration range set by the condition setting unit 3301 does not need to be the pixel width (vertical width and horizontal width) or the shutter time itself. For example, a relative size (spatial resolution magnification) of an output pixel (a pixel to be generated by the image generating unit 103) with respect to a spatial size of each pixel of the input image from the sensor 2 (FIG. 236) is determined. Thus, it is possible to determine a specific integration range in the spatial direction. Similarly, if the relative time (time resolution magnification) of the output pixel value with respect to the shutter time of the sensor 2 (FIG. 236) is known, a specific integration range in the time direction can be determined. Therefore, the condition setting unit 3301 can also set, for example, a spatial resolution magnification or a time resolution magnification as the integration range.
[1931]
The feature amount storage unit 3302 temporarily stores feature amounts of the approximation function f (x, y, t) sequentially supplied from the real world estimation unit 102. Then, when all the feature quantities of the approximate function f (x, y, t) are stored, the feature quantity storage unit 3302 generates a feature quantity table including all the feature quantities of the approximate function f (x, y, t). , Output pixel value calculation unit 3304.
[1932]
By the way, when the right side of the approximation function f (x, y) on the right side of the above equation (201) is expanded (calculated), the output pixel value M is expressed as the following equation (202).
[1933]
[Equation 165]
Figure 2004246526
Figure 2004246526
[1934]
In equation (202), Ki(Xs, Xe, Ys, Ye, Ts, Te) Represents the integral component of the i-th order term. Where xsIs the start position of the integration range in the X direction, xeIs the end position of the integration range in the X direction, and y issIs the start position of the integration range in the Y direction, and y iseRepresents the end position of the integration range in the Y direction, tsIs the start position of the integration range in the t direction, and t iseRepresents the end position of the integration range in the t direction.
[1935]
The integral component calculation unit 3303 calculates the integral component Ki(Xs, Xe, Ys, Ye, Ts, Te) Is calculated.
[1936]
Specifically, the integral component calculation unit 3303 includes the order set by the condition setting unit 3301, the integration range (spatial resolution magnification and time resolution magnification), and the data continuity information output from the data continuity detection unit 101. Component K based on the angle θ or the motion θi(Xs, Xe, Ys, Ye, Ts, Te) Is calculated, and the calculation result is supplied to the output pixel value calculation unit 3304 as an integral component table.
[1937]
The output pixel value calculation unit 3304 calculates the right side of the above-described equation (202) using the feature value table supplied from the feature value storage unit 3302 and the integration component table supplied from the integration component calculation unit 3303. , And outputs the calculation result to the outside as an output pixel value M.
[1938]
Next, an image generation process (the process of step S103 in FIG. 40) of the image generation unit 103 (FIG. 256) using the three-dimensional reintegration method will be described with reference to the flowchart in FIG. 257.
[1939]
For example, in the process of step S102 in FIG. 40 described above, the real-world estimating unit 102 (FIG. 236) uses the predetermined pixel of the input image as a target pixel to generate an optical signal of the real world 1 (FIG. 236). It is assumed that an approximation function f (x, y, t) for approximating has already been generated.
[1940]
In the above-described processing of step S101 in FIG. 40, the data continuity detecting unit 101 (FIG. 236) uses the same pixel as the real world estimating unit 102 as a pixel of interest, and sets the angle θ or the motion θ as data continuity information. Suppose you have already output.
[1941]
In this case, in step S3301 of FIG. 257, the condition setting unit 3301 sets conditions (order and integration range).
[1942]
In step S3302, the feature amount storage unit 3302 stores the feature amount w of the approximation function f (x, y, t) supplied from the real world estimation unit 102.iAnd a feature amount table is generated.
[1943]
In step S3303, the integral component calculation unit 3303 applies the conditions (order and integration range) set by the condition setting unit 3301 and the data continuity information (angle θ or motion θ) supplied from the data continuity detection unit 101. An integral component is calculated based on the integral component table based on the calculated integral component.
[1944]
The order of the processing in step S3302 and the processing in step S3303 is not limited to the example of FIG. 257, and the processing in step S3303 may be performed first, or the processing in step S3302 and the processing in step S3303 may be performed simultaneously. May be done.
[1945]
Next, in step S3304, the output pixel value calculation unit 3304 calculates the feature amount table generated by the feature amount storage unit 3302 in the process of step S3302 and the integration component generated by the integration component calculation unit 3303 in the process of step S3303. Each output pixel value is calculated based on the table.
[1946]
In step S3305, the output pixel value calculation unit 3304 determines whether the processing for all pixels has been completed.
[1947]
If it is determined in step S3305 that the processing for all pixels has not been completed, the process returns to step S3302, and the subsequent processing is repeated. That is, the pixels that have not yet been set as the target pixel are sequentially set as the target pixel, and the processing of steps S3302 to S3304 is repeated.
[1948]
Then, when the processing on all pixels is completed (when it is determined in step S3305 that the processing on all pixels is completed), the output pixel value calculation unit 3304 outputs an image in step S3306. After that, the process of generating the image ends.
[1949]
As described above, in the above-described equation (201), the integral range can be set arbitrarily. Therefore, in the three-dimensional reintegration method, the original pixel (sensor 2 (FIG. 236) is changed by appropriately changing the integral range. ) Can be created without deteriorating a pixel having an arbitrary resolution with respect to the pixel of the input image from).
[1950]
That is, in the three-dimensional reintegration method, the time resolution can be created by appropriately changing the integration range in the time direction. By appropriately changing the integration range in the spatial direction, it is possible to create a spatial resolution. Further, by appropriately changing each of the integration ranges in the temporal direction and the spatial direction, it is possible to create both the temporal resolution and the spatial resolution.
[1951]
Specifically, in the three-dimensional reintegration method, since there is no approximation when dropping to two dimensions or one dimension, highly accurate processing can be performed. In addition, it is possible to process the movement in the oblique direction without being reduced two-dimensionally. Furthermore, since it is not reduced to two dimensions, machining in each dimension becomes possible. For example, in the two-dimensional reintegration method, when the space is degenerated in the spatial direction (X direction and Y direction), processing in the t direction, which is the time direction, cannot be performed. On the other hand, in the three-dimensional reintegration method, any processing in the spatiotemporal direction can be performed.
[1952]
As described above, creation of either the temporal resolution or the spatial resolution can be performed by the one-dimensional reintegration technique, but creation of both resolutions is impossible in principle by the one-dimensional reintegration technique. It is only possible to perform reintegration in two or more dimensions. That is, it is possible to create both resolutions only by the two-dimensional reintegration method and the three-dimensional reintegration method described above.
[1953]
Further, since the three-dimensional reintegration method considers a three-dimensional integration effect instead of one-dimensional or two-dimensional, it is possible to generate an image closer to the optical signal of the real world 1 (FIG. 236). .
[1954]
In other words, in the three-dimensional reintegration-similar method, for example, the real-world estimating unit 102 in FIG. 236 (FIG. 3) uses the plurality of detection elements of the sensor 2 each having a spatio-temporal integration effect to generate an optical signal of the real world 1. Of an input image composed of a plurality of pixels having pixel values projected by the detection element and lacking a part of the stationarity of the optical signal of the real world 1 in the real world 1, at least one-dimensional position in the spatio-temporal direction By assuming that the pixel value of the pixel corresponding to is a pixel value obtained by at least the one-dimensional integration effect, the optical signal function F representing the optical signal in the real world is approximated by a predetermined approximation function f. It is assumed that the signal function F is estimated.
[1955]
Further, for example, when the data continuity detecting unit 101 in FIG. 236 (FIG. 3) detects the continuity of the data of the input image, the real world estimating unit 102 outputs the data detected by the data continuity detecting unit 101. In response to the stationarity, it is assumed that the pixel value of a pixel corresponding to at least a one-dimensional position in the spatio-temporal direction of the image data is a pixel value obtained by an integration effect in at least one-dimensional direction. It is assumed that the optical signal function F is estimated by approximating F with the approximation function f.
[1956]
Specifically, for example, the real-world estimating unit 102 determines that the pixel value of the pixel corresponding to the distance along the at least one-dimensional direction from the line corresponding to the continuity of the data detected by the continuity detecting unit 101 is at least It is assumed that the optical signal function is estimated by approximating the optical signal function F with an approximation function, assuming that the pixel value is obtained by the one-dimensional integration effect.
[1957]
In the three-dimensional reintegration method, for example, the image generation unit 103 (the configuration is FIG. 256) in FIG. 236 (FIG. 3) converts the optical signal function F estimated by the real world estimation unit 102, that is, the approximate function f. Then, a pixel value corresponding to a pixel of a desired size is generated by integrating at least a desired unit in the one-dimensional direction (for example, calculating the right side of the above-described equation (201)).
[1958]
Therefore, the three-dimensional reintegration method can generate an image closer to the optical signal of the real world 1 (FIG. 236) than the conventional image generation method or the one-dimensional or two-dimensional reintegration method described above. Will be possible.
[1959]
Next, referring to FIG. 258, the real-world estimation information input from the real-world estimating unit 102 calculates the differential value of each pixel on the approximation function f (x) that approximately represents the real world, or When the information is the inclination information, the image generation unit 103 that newly generates a pixel based on the differential value or the inclination of each pixel and outputs an image will be described.
[1960]
Note that the differential value here is obtained by obtaining an approximate function f (x) that approximately represents the real world, and then obtaining a first-order differential expression f (x) ′ (approximate function) obtained from the approximate function f (x). Is in the frame direction, a value obtained at a predetermined position using a first-order differential equation f (t) ′) obtained from the approximate function f (t). Further, the slope referred to here is a value obtained by calculating the approximate function f (x) (or f (t)) without using the approximate function f (x) (or f (t)). This indicates a tilt at a predetermined position. However, since the differential value is a slope at a predetermined position of the approximate function f (x), each of the differential values is a slope at a predetermined position on the approximate function f (x) that approximately describes the real world. Therefore, regarding the differential value and the slope as the real world estimation information input from the real world estimation unit 102, the approximation function f (x) is unified in FIG. 258 and the description of the image generation unit 103 in FIG. (Or a slope on f (t)).
[1961]
The inclination obtaining unit 3401 obtains information on the inclination of each pixel, the pixel value of the corresponding pixel, and the steady-state value of the approximate function f (x) input from the real world estimating unit 102, which approximates the real world. The inclination in the gender direction is obtained and output to the extrapolation interpolation unit 3402.
[1962]
The extrapolation interpolation unit 3402 performs extrapolation based on the inclination of each pixel on the approximate function f (x) input from the inclination acquisition unit 3401, the pixel value of the corresponding pixel, and the inclination in the direction of stationarity. By interpolation, a pixel having a higher density than the input image at a predetermined magnification is generated and output as an output image.
[1963]
Next, an image generation process by the image generation unit 103 in FIG. 258 will be described with reference to the flowchart in FIG.
[1964]
In step S3401, the inclination acquiring unit 3401 receives the inclination (differential value), position, pixel value, and continuity direction of each pixel on the approximate function f (x) input from the real world estimation unit 102. The information of the inclination is obtained as real world estimation information.
[1965]
At this time, for example, when generating an image composed of pixels having a density twice (a total of four times) each in the spatial direction X and the spatial direction Y with respect to the input image, the real world estimating unit 102 generates the image shown in FIG. With respect to the pixel Pin represented by the following expression, the gradient f (Xin) ′ (the gradient at the center position of the pixel Pin) and f (Xin−Cx (−0.25)) ′ (double density in the Y direction from the pixel Pin) , F (Xin−Cx (0.25)) ′ (of pixel Pb when a pixel of double density is generated from pixel Pin in the Y direction) Tilt at the center position), the position of the pixel Pin, the pixel value, and the gradient G in the direction of continuityfIs input.
[1966]
In step S3402, the inclination acquisition unit 3401 selects information of the corresponding target pixel from the input real world estimation information, and outputs the selected information to the extrapolation interpolation unit 3402.
[1967]
In step S3403, the extrapolation interpolation unit 3402 calculates the input pixel position information and the gradient G in the direction of continuity.fThe shift amount is obtained from.
[1968]
Here, as for the shift amount Cx (ty), the gradient of the stationarity is GfWhere Cx (ty) = ty / GfIs defined by The shift amount Cx (ty) indicates a shift width of the approximate function f (x) defined on the position in the spatial direction Y = 0 with respect to the spatial direction X at the position in the spatial direction Y = ty. Therefore, for example, when the approximation function is defined as f (x) on the position in the space direction Y = 0, the approximation function f (x) is Cx ( ty), the approximate function is f (x−Cx (ty)) (= f (x−ty / Gf)).
[1969]
For example, in the case of a pixel Pin as shown in FIG. 260, one pixel in the figure (the size of one pixel in the figure is 1 in both the horizontal and vertical directions) is 2 in the vertical direction. When dividing (when generating double-density pixels in the vertical direction), the extrapolation interpolation unit 3402 obtains the shift amounts of the pixels Pa and Pb to be obtained. That is, in this case, since the pixels Pa and Pb are shifted by −0.25 and 0.25, respectively, in the spatial direction Y as viewed from the pixel Pin, the shift amounts of the pixels Pa and Pb are respectively Cx ( -0.25) and Cx (0.25). In FIG. 260, the pixel Pin is a square with (Xin, Yin) being substantially the center of gravity, and the pixels Pa and Pb are (Xin, Yin + 0.25) and (Xin, Yin−0.25). Each rectangle is a rectangle that is long in the horizontal direction in the figure and is set to be substantially the center of gravity.
[1970]
In step S3404, the extrapolation interpolation unit 3402 calculates the shift amount Cx obtained in the process of step S3403, and the slope f (x) of the pixel Pin obtained as the real world estimation information on the approximate function f (x) on the target pixel. Xin) ′ and the pixel value of the pixel Pin, and the pixel values of the pixels Pa and Pb are obtained using extrapolation by the following equations (203) and (204).
[1971]
Pa = Pin−f (Xin) ′ × Cx (−0.25) (203)
[1972]
Pb = Pin−f (Xin) ′ × Cx (0.25) (204)
[1973]
In the above equations (203) and (204), Pa, Pb, and Pin indicate the pixel values of the pixels Pa, Pb, and Pin.
[1974]
That is, as shown in FIG. 261, the amount of change in the pixel value is set by multiplying the inclination f (Xin) ′ of the target pixel Pin by the moving distance in the X direction, that is, the shift amount, and the pixel value of the target pixel Pin is set. Is set as a reference, the pixel value of a newly generated pixel is set.
[1975]
In step S3405, the extrapolation interpolation unit 3402 determines whether a pixel with a predetermined resolution has been obtained. For example, if the predetermined resolution is a pixel having twice the density in the vertical direction with respect to the pixels of the input image, the extrapolation interpolation unit 3402 determines that an image with the predetermined resolution has been obtained by the above processing. That is to say, for example, if a pixel having a density four times as large as the pixel of the input image (twice in the horizontal direction × twice in the vertical direction) is desired, the above processing is performed at a predetermined resolution. Is not obtained. Therefore, if an image having a four-fold density is the image that is desired, the extrapolation interpolation unit 3402 determines that pixels with a predetermined resolution have not been obtained, and the process returns to step S3403.
[1976]
In step S3403, the extrapolation interpolation unit 3402 attempts to generate the pixels P01, P02, P03, and P04 to be obtained (pixels having a density four times the target pixel Pin) in the second processing. The shift amount from the center position of the pixel is obtained. That is, in this case, since the pixels P01 and P02 are obtained from the pixel Pa, the shift amounts from the pixel Pa are obtained. Here, since the pixels P01 and P02 are shifted by −0.25 and 0.25, respectively, in the spatial direction X when viewed from the pixel Pa, the values themselves become the shift amounts (they are shifted in the spatial direction X). Because). Similarly, since the pixels P03 and P04 are shifted by -0.25 and 0.25, respectively, in the spatial direction X when viewed from the pixel Pb, the value itself is the shift amount. In FIG. 260, the pixels P01, P02, P03, and P04 are squares with the positions of the four crosses in the figure as the centers of gravity, and the length of each side is 1 for each pixel Pin. Therefore, each of the pixels P01, P02, P03, and P04 is approximately 0.5.
[1977]
In step S3404, the extrapolation interpolation unit 3402 calculates the amount of shift Cx obtained in the process of step S3403, and the inclination of the pixels Pa and Pb obtained as the real world estimation information at a predetermined position on the approximate function f (x). Extrapolation is performed based on f (Xin-Cx (−0.25)) ′, f (Xin−Cx (0.25)) ′ and the pixel values of pixels Pa and Pb obtained by the above-described processing. Thus, the pixel values of the pixels P01, P02, P03, and P04 are obtained by the following equations (205) to (208), and stored in a memory (not shown).
[1978]
P01 = Pa + f (Xin−Cx (−0.25)) ′ × (−0.25) (205)
[1979]
P02 = Pa + f (Xin−Cx (−0.25)) ′ × (0.25) (206)
[1980]
P03 = Pb + f (Xin−Cx (0.25)) ′ × (−0.25) (207)
[1981]
P04 = Pb + f (Xin−Cx (0.25)) ′ × (0.25) (208)
[1982]
In the above equations (205) to (208), P01 to P04 indicate respective pixel values of the pixels P01 to P04.
[1983]
In step S3405, the extrapolation / interpolation unit 3402 determines whether or not a pixel with a predetermined resolution has been obtained. In this case, a pixel having a density four times as desired has been obtained. The extrapolation unit 3402 determines that a pixel with a predetermined resolution has been obtained, and the process proceeds to step S3406.
[1984]
In step S3406, the inclination acquisition unit 3401 determines whether or not processing has been performed on all pixels. If it is determined that processing has not been performed on all pixels, the processing returns to step S3402, and Subsequent processing is repeated.
[1985]
In step S3406, when the inclination acquisition unit 3401 determines that the processing has been performed for all the pixels, in step S3407, the extrapolation interpolation unit 3402 determines whether the image including the generated pixels is stored in a memory (not illustrated). Is output.
[1986]
That is, as shown in FIG. 261, a new pixel is calculated according to the distance in the spatial direction X from the pixel of interest whose inclination has been obtained, using the inclination f (x) ′ on the approximate function f (x). Are obtained by extrapolation.
[1987]
In the above example, the inclination (differential value) when calculating a quadruple-density pixel has been described as an example. However, if information on the inclination at more positions can be obtained as real world estimation information. It is also possible to calculate pixels having a higher density in the spatial direction by the same method as described above.
[1988]
In the above example, an example of obtaining a double-density pixel value has been described. However, since the approximation function f (x) is a continuous function, a necessary gradient (differential value) is required for pixel values other than double-density. Is obtained, it becomes possible to generate an image composed of even higher density pixels.
[1989]
According to the above, based on the information of the gradient (or differential value) f (x) ′ of the approximation function f (x) that approximates the real world of each pixel of the input image in the spatial direction, supplied as the real world estimation information. Thus, it is possible to generate pixels of an image having a higher resolution than the input image.
[1990]
Next, referring to FIG. 262, real-world estimation information input from real-world estimating unit 102 determines that each pixel on function f (t) in the frame direction (time direction) that approximately represents the real world. In the case of the information on the differential value or the gradient of the image, the image generation unit 103 that newly generates a pixel based on the differential value or the gradient of each pixel and outputs an image will be described.
[1991]
The inclination acquiring unit 3411 calculates the inclination information at the position of each pixel, the pixel value of the corresponding pixel, and the information on the approximate function f (t) approximately representing the real world input from the real world estimating unit 102. , And outputs the motion to the extrapolation interpolation unit 3412.
[1992]
The extrapolation interpolation unit 3412 performs extrapolation based on the inclination of each pixel on the approximation function f (t) input from the inclination acquisition unit 3411, the pixel value of the corresponding pixel, and the stationary motion. , A pixel having a higher density than the input image at a predetermined magnification is generated and output as an output image.
[1993]
Next, an image generation process by the image generation unit 103 in FIG. 262 will be described with reference to a flowchart in FIG.
[1994]
In step S3421, the inclination acquisition unit 3411 inputs the inclination (differential value), position, pixel value, and stationary motion of each pixel on the approximate function f (t) input from the real world estimation unit 102. Obtain information as real world estimation information.
[1995]
At this time, for example, when generating an image composed of pixels having a density twice (4 times in total) each in the spatial direction and the frame direction with respect to the input image, the real world estimating unit 102 generates the image shown in FIG. F (Tin) ′ (inclination at the center position of the pixel Pin), f (Tin−Ct (−0.25)) ′ (pixel having a double density in the Y direction from the pixel Pin) Is generated, f (Tin−Ct (0.25)) ′ ′ (the center position of the pixel Pbt when a double density pixel is generated in the Y direction from the pixel Pin) , The position of the pixel Pin, the pixel value, and information on the stationary motion (motion vector).
[1996]
In step S3422, the inclination acquisition unit 3411 selects information of the corresponding target pixel from the input real world estimation information, and outputs the selected information to the extrapolation interpolation unit 3412.
[1997]
In step S3423, the extrapolation interpolation unit 3412 obtains the shift amount from the input position information of the pixel and the inclination of the continuity direction.
[1998]
Here, the shift amount Ct (ty) is expressed as follows:fWhere Ct (ty) = ty / VfIs defined by The shift amount Ct (ty) indicates a shift width of the approximate function f (t) defined on the position in the spatial direction Y = 0 with respect to the frame direction T at the position in the spatial direction Y = ty. Therefore, for example, when an approximation function is defined as f (t) on the position in the spatial direction Y = 0, the approximation function f (t) is Ct ( ty), the approximate function is f (t−Ct (ty)) (= f (t−ty / Vf)).
[1999]
For example, in the case of a pixel Pin as shown in FIG. 264, one pixel in the figure (the size of one pixel in the figure is 1 in both the frame direction and the spatial direction) is 2 in the spatial direction. When dividing (when generating double-density pixels in the spatial direction), the extrapolation interpolation unit 3412 calculates the shift amounts of the pixels Pat and Pbt to be calculated. That is, in this case, since the pixels Pat and Pbt are shifted by −0.25 and 0.25, respectively, in the spatial direction Y as viewed from the pixel Pin, the shift amounts of the pixels Pat and Pbt are respectively Ct ( −0.25) and Ct (0.25). Note that in FIG. 264, the pixel Pin is a square with (Xin, Yin) being substantially the center of gravity, and the pixels Pat and Pbt are (Xin, Yin + 0.25) and (Xin, Yin−0.25). Each rectangle is a rectangle that is long in the horizontal direction in the figure and is set to be substantially the center of gravity.
[2000]
In step S3424, the extrapolation interpolation unit 3412 calculates the shift amount calculated in step S3423 and the slope f (Tin) of the pixel Pin obtained as the real world estimation information on the approximate function f (t) on the target pixel. ) ′ And the pixel value of the pixel Pin, the pixel values of the pixels Pat and Pbt are determined by the following equations (209) and (210) by extrapolation.
[2001]
Pat = Pin−f (Tin) ′ × Ct (−0.25) (209)
[2002]
Pbt = Pin−f (Xin) ′ × Ct (0.25) (210)
[2003]
In the above equations (209) and (210), Pat, Pbt, and Pin indicate the pixel values of the pixels Pat, Pbt, and Pin.
[2004]
That is, as shown in FIG. 265, the amount of change in the pixel value is set by multiplying the inclination f (Xin) ′ of the target pixel Pin by the moving distance in the X direction, that is, the shift amount, and the pixel value of the target pixel Pin is set. Is set as a reference, the pixel value of a newly generated pixel is set.
[2005]
In step S3425, the extrapolation interpolation unit 3412 determines whether a pixel with a predetermined resolution has been obtained. For example, if the predetermined resolution is a pixel having twice the density in the spatial direction with respect to the pixels of the input image, the extrapolation interpolation unit 3402 determines that an image with the predetermined resolution has been obtained by the above processing. In other words, for example, if a pixel having a density four times as large as the pixel of the input image (twice in the frame direction × twice in the spatial direction) is desired, the above processing is performed at a predetermined resolution. Is not obtained. Therefore, if an image having a four-fold density is an image that is desired, the extrapolation interpolation unit 3412 determines that pixels with a predetermined resolution have not been obtained, and the process returns to step S3423.
[2006]
In step S3423, the extrapolation interpolation unit 3412 attempts to generate the pixels P01t, P02t, P03t, and P04t (pixels having a density four times that of the target pixel Pin) to be obtained in the second processing. The shift amount from the center position of the pixel is obtained. That is, in this case, since the pixels P01t and P02t are obtained from the pixel Pat, the shift amounts from the pixel Pat are respectively obtained. Here, since the pixels P01t and 02t are shifted by −0.25 and 0.25, respectively, in the frame direction T as viewed from the pixel Pat, the value itself becomes the shift amount (shifted in the spatial direction X). Because). Similarly, since the pixels P03t and P04t are shifted by −0.25 and 0.25 in the frame direction T as viewed from the pixel Pbt, the values themselves are the shift amounts. Note that in FIG. 264, the pixels P01t, P02t, P03t, and P04t are squares having the positions of the four crosses in the figure as the centers of gravity, and the length of each side is 1 for the pixel Pin. Therefore, each of the pixels P01t, P02t, P03t, and P04t is approximately 0.5.
[2007]
In step S3424, the extrapolation interpolation unit 3412 calculates the shift amount Ct obtained in the processing in step S3423 and the inclination of the pixels Pat and Pbt obtained as the real world estimation information at predetermined positions on the approximate function f (t). Extrapolation is performed based on f (Tin−Ct (−0.25)) ′, f (Tin−Ct (0.25)) ′ and the pixel values of the pixels Pat and Pbt obtained by the above processing. Thus, the pixel values of the pixels P01t, P02t, P03t, and P04t are obtained by the following equations (211) to (214), and stored in a memory (not shown).
[2008]
P01t = Pat + f (Tin−Ct (−0.25)) ′ × (−0.25) (211)
[2009]
P02t = Pat + f (Tin−Ct (−0.25)) ′ × (0.25) (212)
[2010]
P03t = Pbt + f (Tin−Ct (0.25)) ′ × (−0.25) (213)
[2011]
P04t = Pbt + f (Tin−Ct (0.25)) ′ × (0.25) (214)
[2012]
In the above equations (205) to (208), P01t to P04t indicate the respective pixel values of the pixels P01t to P04t.
[2013]
In step S3425, the extrapolation / interpolation unit 3412 determines whether a pixel with a predetermined resolution has been obtained. In this case, since a desired four-fold density pixel has been obtained, The interpolation unit 3412 determines that a pixel with a predetermined resolution has been obtained, and the process proceeds to step S3426.
[2014]
In step S3426, the inclination acquisition unit 3411 determines whether or not processing has been performed on all pixels. If it is determined that processing has not been performed on all pixels, the processing returns to step S3422. Subsequent processing is repeated.
[2015]
If it is determined in step S3426 that the inclination has been processed for all the pixels, in step S3427 the extrapolation interpolation unit 3412 includes the generated pixels stored in a memory (not illustrated). Output an image.
[2016]
That is, as shown in FIG. 265, using a slope f (t) ′ on the approximation function f (t), a new slope is obtained in accordance with the number of frames separated in the frame direction T from the pixel of interest whose slope is obtained. The pixel value of the pixel is determined by extrapolation.
[2017]
In the above example, the inclination (differential value) when calculating a quadruple-density pixel has been described as an example. However, if information on the inclination at more positions can be obtained as real world estimation information. It is also possible to calculate pixels having a higher density in the frame direction by the same method as described above.
[2018]
In the above example, an example of obtaining a double-density pixel value has been described. However, since the approximation function f (t) is a continuous function, a necessary gradient (differential value) is required for pixel values other than double-density. Is obtained, it becomes possible to generate an image composed of even higher density pixels.
[2019]
By the above processing, the slope (or differential value) f (t) ′ of the approximation function f (t) which approximates the real world of each pixel of the input image in the frame direction supplied as the real world estimation information is obtained. Thus, it is possible to generate pixels of an image having a higher resolution than the input image also in the frame direction.
[2020]
According to the above, a real-world optical signal is projected by a plurality of detection elements of a sensor, each having a spatio-temporal integration effect, and a part of the continuity of the real-world optical signal is lacking, and is projected by a detection element. The stationarity of the data in the image data composed of a plurality of pixels having pixel values is detected, and the pixel of interest in the image data is shifted in a one-dimensional direction in the spatio-temporal direction according to the detected stationarity. The inclination of the pixel values of a plurality of pixels at the position is estimated as a function corresponding to an optical signal in the real world, and a straight line having an inclination centered on a position shifted in a one-dimensional direction from the center position of the pixel of interest within the pixel of interest. Are generated as the pixel values of the pixels having higher resolution than the target pixel, it is possible to generate pixels having higher resolution in the spatiotemporal direction than the input image.
[2021]
Next, still another example of the embodiment of the image generation unit 103 (FIG. 3) will be described with reference to FIGS.
[2022]
FIG. 266 illustrates a configuration example of the image generation unit 103 to which the embodiment of this example is applied.
[2023]
The image generation unit 103 shown in FIG. 266 includes a class classification adaptation processing unit 3501 that executes the conventional class classification adaptation processing, and a class classification that executes correction processing for the class classification adaptation processing (details of the processing will be described later). An addition unit that adds the image output from the adaptive processing correction unit 3502 and the image output from the classification adaptive processing correction unit 3502, and outputs the added image to the outside as an output image. 3503 is provided.
[2024]
Hereinafter, the image output from the classification adaptive processing unit 3501 is referred to as a predicted image, and the image output from the classification adaptive processing correction unit 3502 is referred to as a corrected image or a difference prediction image. However, the origins of the names of the prediction image and the difference prediction image will be described later.
[2025]
In the embodiment of this example, it is assumed that the classification adaptive processing is, for example, processing for improving the spatial resolution of an input image. That is, it is assumed that the input image, which is a standard resolution image, is converted into a predicted image, which is a high resolution image.
[2026]
Hereinafter, the image of the standard resolution is appropriately referred to as an SD (Standard Definition) image. Further, pixels constituting the SD image are appropriately referred to as SD pixels.
[2027]
On the other hand, a high-resolution image is hereinafter appropriately referred to as an HD (High Definition) image. In addition, pixels constituting an HD image are appropriately referred to as HD pixels.
[2028]
Specifically, in the embodiment of this example, the classification adaptive processing is the following processing.
[2029]
That is, first, in order to find the HD pixel of the prediction image (HD image) in the target pixel (SD pixel) of the input image (SD image), the SD pixel (hereinafter, referred to as the target pixel) including the target pixel is disposed. Such SD pixels are referred to as class taps), and each of the feature amounts is obtained, and a class preliminarily classified for each of the feature amounts is specified (a class code of a class tap group is specified).
[2030]
Then, among a plurality of preset coefficient groups (each of the coefficient groups corresponds to one predetermined class code), each of the coefficients constituting the coefficient group corresponding to the specified class code is , Using the SD pixels in the vicinity thereof including the target pixel (hereinafter, such SD pixels of the input image are referred to as prediction taps. The prediction taps may be the same as the class taps). By executing the calculation, the HD pixel of the predicted image (HD image) in the target pixel (SD pixel) of the input image (SD image) is obtained.
[2031]
Therefore, in the embodiment of this example, the input image (SD image) is subjected to conventional class classification adaptive processing in the class classification adaptive processing unit 3501 to become a predicted image (HD image), and further, an addition unit 3503 In, the predicted image is corrected with the corrected image from the class classification adaptive processing correction unit 3502 (the corrected image is added) to become an output image (HD image).
[2032]
That is, from the viewpoint of continuity, the embodiment of this example can be said to be one embodiment of the image generation unit 103 in the image processing apparatus (FIG. 3) that performs processing using continuity. On the other hand, from the viewpoint of the classification adaptive processing, in order to correct the classification adaptive processing for the conventional image processing apparatus including the sensor 2 and the classification adaptive processing unit 3501, the data continuity is reduced. It can be said that this is an embodiment of an image processing apparatus to which a detection unit 101, a real world estimation unit 102, a class classification adaptive processing correction unit 3502, and an addition unit 3503 are further added.
[2033]
Therefore, hereinafter, the embodiment of this example will be referred to as a classification adaptive processing correction method with respect to the above-described reintegration method.
[2034]
The image generation unit 103 using the class classification adaptive processing correction method will be described in more detail.
[2035]
In FIG. 266, when a signal of the real world 1 (distribution of light intensity), which is an image, is incident on the sensor 2, an input image is output from the sensor 2. This input image is input to the data continuity detecting unit 101 and also to the classification adaptive processing unit 3501 of the image generating unit 103.
[2036]
The classification adaptive processing unit 3501 performs a conventional classification adaptive processing on the input image to generate a predicted image, and outputs the predicted image to the adding unit 3503.
[2037]
As described above, the classification adaptive processing unit 3501 uses the input image (image data) from the sensor 2 as a reference and also processes the input image itself. That is, although the input image from the sensor 2 is different (distorted) from the signal of the real world 1 due to the integration effect described above, the classification adaptive processing unit 3501 performs the Processing is performed with an input image different from the signal as positive.
[2038]
As a result, even if the input image (SD image) in which the details of the real world 1 have been lost at the stage of output from the sensor 2, even if the input image (SD image) is converted into an HD image by the classification adaptive processing, the original details are not completely restored. The problem that there is a case occurs.
[2039]
Therefore, in order to solve this problem, in the class classification adaptive processing correction method, the class classification adaptive processing correction unit 3502 of the image generation unit 103 does not input the image from the sensor 2 but outputs the image before entering the sensor 2. The information (real world estimation information) for estimating the original image (real world 1 signal having a predetermined stationarity) is used as a reference, and the real class estimation information is output from the classification adaptive processing unit 3501 as a processing target. A corrected image for correcting the predicted image thus generated is generated.
[2040]
This real world estimation information is generated by the data continuity detection unit 101 and the real world estimation unit 102.
[2041]
That is, the data continuity detecting unit 101 detects the continuity of the data included in the input image from the sensor 2 (the continuity of the data corresponding to the continuity of the signal of the real world 1 incident on the sensor 2). , And outputs the detection result to the real world estimation unit 102 as data continuity information.
[2042]
Although the data continuity information is an angle in the example of FIG. 266, the information is not limited to the angle, and various information described above can be used.
[2043]
The real world estimation unit 102 generates real world estimation information based on the input angle (data continuity information) and outputs the information to the class classification adaptive processing correction unit 3502 of the image generation unit 103.
[2044]
Note that the real world estimation information is a feature amount image (details thereof will be described later) in the example of FIG. 266, but is not limited to the feature amount image, and various kinds of information described above can be used.
[2045]
The classification adaptive processing correction unit 3502 generates a correction image based on the input feature amount image (real world estimation information), and outputs the correction image to the addition unit 3503.
[2046]
The addition unit 3503 adds the predicted image output from the classification adaptive processing unit 3501 and the corrected image output from the classification adaptive processing correction unit 3502, and outputs the added image (HD image) to the outside as an output image. I do.
[2047]
The output image thus output is an image closer to the signal (image) of the real world 1 than the predicted image. That is, the class classification adaptive processing correction method is a method capable of solving the above-described problem.
[2048]
Furthermore, by configuring the signal processing device (image processing device) 4 as shown in FIG. 266, it becomes possible to apply processing for one frame as a whole. That is, in a signal processing device (for example, FIG. 292 described later) that uses a combined method described later, it is necessary to generate an output image after specifying a pixel area, but the signal processing device 4 in FIG. This makes it possible to produce an effect that the region identification becomes unnecessary.
[2049]
Next, details of the classification adaptive processing unit 3501 of the image generation unit 103 will be described.
[2050]
FIG. 267 illustrates a configuration example of the classification adaptive processing unit 3501.
[2051]
In FIG. 267, the input image (SD image) input from the sensor 2 is supplied to the region extracting unit 3511 and the region extracting unit 3515, respectively. The region extracting unit 3511 extracts a class tap (an SD pixel existing at a preset position including a pixel of interest (SD pixel)) necessary for class classification from the supplied input image, and a pattern detecting unit. 3512. The pattern detection unit 3512 detects a pattern of the input image based on the input class tap.
[2052]
The class code determination unit 3513 determines a class code based on the pattern detected by the pattern detection unit 3512, and outputs the class code to the coefficient memory 3514 and the area extraction unit 3515. The coefficient memory 3514 stores a coefficient for each class code obtained in advance by learning, reads a coefficient corresponding to the class code input from the class code determination unit 3513, and outputs the coefficient to the prediction calculation unit 3516.
[2053]
Note that the coefficient learning processing of the coefficient memory 3514 will be described later with reference to the block diagram of the class classification adaptive processing learning unit in FIG.
[2054]
The coefficients stored in the coefficient memory 3514 are coefficients used when generating a predicted image (HD image), as described later. Therefore, the coefficients stored in the coefficient memory 3514 are hereinafter referred to as prediction coefficients to distinguish them from other coefficients.
[2055]
The region extraction unit 3515 performs a prediction necessary for predictively generating a predicted image (HD image) from an input image (SD image) input from the sensor 2 based on the class code input from the class code determination unit 3513. A tap (an SD pixel existing at a preset position including the pixel of interest) is extracted corresponding to the class code, and output to the prediction calculation unit 3516.
[2056]
The prediction operation unit 3516 performs a product-sum operation using the prediction tap input from the region extraction unit 3515 and the prediction coefficient input from the coefficient memory 3514, and calculates a target pixel (SD pixel) of the input image (SD image). ), An HD pixel of the predicted image (HD image) is generated and output to the adding unit 3503.
[2057]
More specifically, the coefficient memory 3514 outputs a prediction coefficient corresponding to the class code supplied from the class code determination unit 3513 to the prediction calculation unit 3516. The prediction calculation unit 3516 uses the prediction tap extracted from the pixel value at a predetermined pixel position of the input image supplied from the region extraction unit 3515 and the prediction coefficient supplied from the coefficient memory 3514, using the following equation ( 215), the HD pixel of the predicted image (HD image) is obtained (predicted and estimated).
[2058]
166
Figure 2004246526
Figure 2004246526
[2059]
In Expression (215), q ′ represents an HD pixel of the predicted image (HD image). ciEach (i is an integer value of 1 to n) represents each prediction tap (SD pixel). Also, diRepresents each of the prediction coefficients.
[2060]
As described above, since the classification adaptive processing unit 3501 predicts and estimates an HD image corresponding to the SD image (input image), the HD image output from the classification adaptive processing unit 3501 is referred to as a predicted image. Is called.
[2061]
FIG. 268 shows the prediction coefficients (d in the equation (215)) stored in the coefficient memory 3514 of the class classification adaptive processing unit 3501.i) Represents a learning device (a prediction coefficient calculation device).
[2062]
In the class classification adaptive processing correction method, a coefficient memory (a correction coefficient memory 3554 shown in FIG. 276 to be described later) of the class classification adaptive processing correction unit 3502 is provided in addition to the coefficient memory 3514. Therefore, as shown in FIG. 268, the learning device 3504 in the class classification adaptive processing method has the prediction coefficient (d in the equation (215)) stored in the coefficient memory 3514 of the class classification adaptive processing unit 3501.i) In addition to the learning unit 3521 (hereinafter, referred to as a learning unit for class classification adaptive processing 3521), as well as learning for determining the coefficients stored in the correction coefficient memory 3554 of the class classification adaptive processing correction unit 3502. A unit 3561 (hereinafter, referred to as a class classification adaptive processing correction learning unit 3561) is provided.
[2063]
Accordingly, hereinafter, the teacher image in the class classification adaptive processing learning unit 3521 is referred to as a first teacher image, whereas the teacher image in the class classification adaptive processing correction learning unit 3561 is referred to as a second teacher image. Similarly, hereinafter, the student image in the class classification adaptive processing learning unit 3521 is referred to as a first student image, whereas the student image in the class classification adaptive processing correction learning unit 3561 is referred to as a second student image.
[2064]
The class classification adaptive processing correction learning unit 3561 will be described later.
[2065]
FIG. 269 illustrates a detailed configuration example of the learning unit for class classification adaptive processing 3521.
[2066]
In FIG. 269, a predetermined image is input as a first teacher image (HD image) to each of the down-converting unit 3531 and the normal equation generating unit 3536, and the class classification adaptive processing correction learning unit 3561 (FIG. 268). Is input to
[2067]
The down-converting unit 3531 generates a first student image (SD image) having a lower resolution than the first teacher image from the input first teacher image (HD image) (down-converts the first teacher image). The converted image is referred to as a first student image), and is output to each of the region extraction unit 3532, the region extraction unit 3535, and the class classification adaptive processing correction learning unit 3561 (FIG. 268).
[2068]
As described above, since the down-converting unit 3531 is provided in the learning unit for class classification adaptive processing 3521, the first teacher image (HD image) is obtained from the input image from the sensor 2 (FIG. 266) described above. Need not be a high-resolution image. This is because if the first student image in which the first teacher image is down-converted (the resolution is reduced) is an SD image, the first teacher image for the first student image is an HD image. is there. Therefore, the first teacher image may be, for example, the input image itself from the sensor 2.
[2069]
The region extracting unit 3532 extracts a class tap (SD pixel) required for performing class classification from the supplied first student image (SD image), and outputs the class tap to the pattern detecting unit 3533. Pattern detecting section 3533 detects the input class tap pattern, and outputs the detection result to class code determining section 3534. The class code determination unit 3534 determines a class code corresponding to the input pattern, and outputs the class code to each of the region extraction unit 3535 and the normal equation generation unit 3536.
[2070]
The region extraction unit 3535 extracts a prediction tap (SD pixel) from the first student image (SD image) input from the down-conversion unit 3531 based on the class code input from the class code determination unit 3534, and It outputs to each of the equation generation part 3536 and the prediction calculation part 3558.
[2071]
Note that each of the above-described region extraction unit 3532, pattern detection unit 3533, class code determination unit 3534, and region extraction unit 3535 is the same as region extraction unit 3511, pattern detection unit 3512, and class detection unit 3501 of class classification adaptive processing unit 3501 in FIG. Each of the code determination unit 3513 and the region extraction unit 3515 has basically the same configuration and function.
[2072]
The normal equation generation unit 3536 calculates, for each class code, the prediction taps of the first student image (SD image) input from the region extraction unit 3535 for all the class codes input from the class code determination unit 3534. The normal equation is generated from the SD pixels) and the HD pixels of the first teacher image (HD image), and is supplied to the coefficient determination unit 3537. When a normal equation corresponding to a predetermined class code is supplied from the normal equation generation unit 3537, the coefficient determination unit 3537 calculates each prediction coefficient from the normal equation, and stores it in the coefficient memory 3514 in association with the class code. At the same time, and supplies it to the prediction calculation unit 3538.
[2073]
The normal equation generating unit 3536 and the coefficient determining unit 3537 will be described in more detail.
[2074]
In the above equation (215), before learning, the prediction coefficient diAre undetermined coefficients. Learning is performed by inputting HD pixels of a plurality of teacher images (HD images) for each class code. There are m HD pixels corresponding to the predetermined class code, and each of the m HD pixels is represented by qkWhen (k is an integer from 1 to m), the following equation (216) is set from equation (215).
[2075]
167
Figure 2004246526
Figure 2004246526
[2076]
That is, Expression (216) calculates the predetermined HD pixel q by calculating the right side.kCan be estimated and estimated. Note that in equation (216), ekRepresents an error. That is, the HD pixel q of the predicted image (HD image) which is the operation result on the right sidek’Is the actual HD pixel qkDoes not exactly coincide with the predetermined error ekincluding.
[2077]
Therefore, in equation (216), for example, the error ekPrediction coefficient d that minimizes the sum of squares ofiMay be obtained by learning.
[2078]
Specifically, for example, the HD pixel q is set so that m> n.kCan be collected by learning, the prediction coefficient diIs uniquely determined.
[2079]
That is, the prediction coefficient d on the right side of the equation (216)iIs obtained by the least square method, is expressed by the following equation (217).
[2080]
168
Figure 2004246526
Figure 2004246526
[2081]
Therefore, if the normal equation represented by the equation (217) is generated, the prediction coefficient d is solved by solving the normal equation.iIs uniquely determined.
[2082]
Specifically, when each of the matrices of the normal equation represented by the equation (217) is defined as in the following equations (218) to (220), the normal equation is represented by the following equation (221). expressed.
[2083]
169
Figure 2004246526
Figure 2004246526
[2084]
[Equation 170]
Figure 2004246526
Figure 2004246526
[2085]
[Equation 171]
Figure 2004246526
Figure 2004246526
[2086]
[Equation 172]
Figure 2004246526
Figure 2004246526
[2087]
As shown in equation (219), the matrix DMATIs a prediction coefficient d to be obtained.iIt is. Therefore, in equation (221), the matrix C on the left sideMATAnd the matrix Q on the right sideMATIs determined, the matrix DMAT(Ie, the prediction coefficient di) Can be calculated.
[2088]
More specifically, as shown in equation (218), matrix CMATIs a prediction tap cikCan be calculated if is known. Prediction tap cikIs extracted by the region extraction unit 3535, so that the normal equation generation unit 3536 generates the prediction tap c supplied from the region extraction unit 3535.ikMatrix C using each ofMATCan be calculated.
[2089]
Also, as shown in equation (220), the matrix QMATIs a prediction tap cikAnd HD pixel qkCan be calculated if is known. Prediction tap cikIs the matrix CMATAre the same as those contained in each of the components, and the HD pixel qkIs the prediction tap cikIs the HD pixel of the first teacher image with respect to the pixel of interest (SD pixel of the first student image) included in. Therefore, the normal equation generation unit 3536 calculates the prediction tap c supplied from the region extraction unit 3535.ikAnd the matrix Q using the first teacher imageMATCan be calculated.
[2090]
In this way, the normal equation generation unit 3536 determines, for each class code, the matrix CMATAnd matrix QMATAre calculated, and the calculation result is supplied to the coefficient determination unit 3537 in association with the class code.
[2091]
The coefficient determining unit 3537 calculates the matrix D of the above equation (221) based on the normal equation corresponding to the supplied predetermined class code.MATPrediction coefficient d which is each component ofiIs calculated.
[2092]
Specifically, the normal equation of the above equation (221) can be modified as the following equation (222).
[2093]
173
Figure 2004246526
Figure 2004246526
[2094]
In equation (222), the matrix D on the left sideMATIs the prediction coefficient d to be obtainediIt is. Also, the matrix CMATAnd matrix QMATAre supplied from the normal equation generating unit 3536. Therefore, the coefficient determination unit 3537 outputs the matrix C corresponding to the predetermined class code from the normal equation generation unit 3536.MATAnd matrix QMATIs supplied, the matrix operation on the right side of Expression (222) is performed to obtain the matrix DMATIs calculated, and the calculation result (prediction coefficient di) Is stored in the coefficient memory 3514 in association with the class code, and is supplied to the prediction calculation unit 3538.
[2095]
The prediction operation unit 3538 performs a product-sum operation using the prediction tap input from the region extraction unit 3535 and the prediction coefficient determined by the coefficient determination unit 3537, and focuses on the first student image (SD image). An HD pixel of a predicted image (an image for predicting the first teacher image) in the pixel (SD pixel) is generated, and the generated HD pixel is output to the classifying adaptive processing correction learning unit 3561 (FIG. 268) as a learning predicted image. .
[2096]
More specifically, the prediction calculation unit 3538 calculates the prediction tap extracted from the pixel value at a predetermined pixel position of the first student image supplied from the region extraction unit 3535 as ci(I is an integer from 1 to n), and the prediction coefficient supplied from the coefficient determination unit 3537 is diBy executing the product-sum operation represented by the above equation (215), the HD pixel q ′ of the learning predicted image (HD image) is obtained (the first teacher image is predicted and estimated).
[2097]
Here, with reference to FIGS. 270 to 275, the problem of the above-described conventional class classification adaptive processing (class classification adaptive processing unit 3501), that is, in FIG. Even if the input image (SD image) whose detail has been collapsed is converted into an HD image (a predicted image that predicts the signal of the real world 1) by the classification adaptive processing unit 3501, the original details are not completely restored. The problem that may occur will be described.
[2098]
FIG. 270 illustrates an example of a processing result of the classification adaptive processing unit 3501.
[2099]
In FIG. 270, the HD image 3541 is an image including a thin line image inclined approximately 5 degrees clockwise from the vertical direction in the figure. Also, the SD image 3542 generates the average value of the pixel values of the pixels (HD pixels) belonging to the block of 2 × 2 pixels (HD pixels) of the HD image 3541 as the pixel value of one pixel (SD pixel). Image. That is, the SD image 3542 is an image obtained by down-converting the HD image 3541 (reducing the resolution).
[2100]
In other words, it is assumed that the HD image 3541 is an image imitating an image (signal of the real world 1 (FIG. 266)) before being incident on the sensor 2 (FIG. 266). In this case, the SD image 3542 corresponds to an image obtained by applying integration in the spatial direction that imitates the integration characteristics of the sensor 2 to the HD image 3541. That is, the SD image 3542 is an image imitating the input image from the sensor 2.
[2101]
The SD image 3542 is input to the classification adaptive processing unit 3501 (FIG. 266), and the predicted image output from the classification adaptive processing unit 3501 is the predicted image 3543. That is, the predicted image 3543 is an HD image (an image having the same resolution as the original HD image 3541) generated by the conventional classification adaptive processing. However, the prediction coefficients (the prediction coefficients stored in the coefficient memory 3514 (FIG. 267)) used by the classification adaptive processing unit 3501 for the prediction calculation are as follows: the HD image 3541 is the first teacher image, and the SD image 3542 is the first teacher image. As the one student image, the class classification adaptive processing learning unit 3561 (FIG. 269) performs learning calculation.
[2102]
Comparing the HD image 3541, the SD image 3542, and the predicted image 3543, it can be seen that the predicted image 3543 is closer to the HD image 3541 than the SD image 3542.
[2103]
The comparison result indicates that the classification adaptation processing unit 3501 performs a conventional classification adaptation process on the SD image 3542 in which the details of the HD image 3541 have been crushed, thereby obtaining a predicted image in which the original details have been restored. 3543 can be generated.
[2104]
However, comparing the predicted image 3543 and the HD image 3541, it is hard to say that the predicted image 3543 is an image obtained by completely restoring the HD image 3541.
[2105]
In order to investigate why the predicted image 3543 cannot completely restore the HD image 3541, the applicant of the present application uses a predetermined adder 3546 to add the HD image 3541 and the inverted image of the predicted image 3543. That is, a difference image 3544 between the HD image 3541 and the prediction image 3543 (an image close to white when the difference between the pixels is large and a pixel close to black when the difference between the pixels is small) is generated.
[2106]
Similarly, the present applicant uses a predetermined adder 3547 to add the HD image 3541 and the inverted input of the SD image 3542, that is, the difference image between the HD image 3541 and the SD image 3542 (the pixel difference is large). In this case, a pixel close to white was generated, and when the difference between the pixels was small, an image was determined to be a pixel close to black.
[2107]
The applicant of the present application obtained the following investigation result by comparing the difference image 3544 and the difference image 3545 generated in this manner.
[2108]
In other words, the region where the difference between the HD image 3541 and the SD image 3542 is large (the region near the white of the difference image 3545) and the region where the difference between the HD image 3541 and the predicted image 3543 is large (the region near the white of the difference image 3544) are almost the same. Yes, it is.
[2109]
In other words, an area where the predicted image 3543 cannot completely restore the HD image 3541 is an area of the predicted image 3543 where the difference between the HD image 3541 and the SD image 3542 is large (an area close to white in the difference image 3545). Almost match.
[2110]
Therefore, the applicant of the present application has further conducted the following investigation in order to elucidate the factors of this investigation result.
[2111]
That is, the applicant of the present application first sets the specific pixel value of the HD image 3541 and the specific pixel value of the SD image 3542 in an area where the difference between the HD image 3541 and the predicted image 3543 is small (the area near the black of the difference image 3544). The pixel values and the actual waveform (signal in the real world 1) corresponding to the HD image 3541 were investigated. The investigation results are shown in FIGS. 271 and 272.
[2112]
FIG. 271 shows one example of the investigated area. In FIG. 271, the horizontal direction is the X direction, which is one direction in the spatial direction, and the vertical direction is the Y direction, which is the other direction in the spatial direction.
[2113]
That is, the applicant of the present application has investigated a region 3544-1 of the difference image 3544 shown in FIG. 271, as an example of a region having a small difference between the HD image 3541 and the predicted image 3543.
[2114]
FIG. 272 shows a specific example of the HD image 3541 corresponding to four HD pixels from the left in the figure among the six HD pixels continuous in the X direction included in the area 3544-1 shown in FIG. 3 shows a plot of a pixel value, a specific pixel value of the SD image 3542, and an actual waveform (signal of the real world 1).
[2115]
In FIG. 272, the vertical axis represents the pixel value, and the horizontal axis represents the x-axis parallel to the spatial direction X. On the x-axis, the origin is the leftmost position of the third HD pixel from the left in the figure among the six HD pixels of the difference image 3544, and a coordinate value is given based on the origin. However, the coordinate value of the x-axis is given with the pixel width of the HD pixel of the difference image 3544 being 0.5. That is, since the difference image 3544 is an HD image, the pixel width L of the HD imaget(Hereinafter, HD pixel width Lt) Is also 0.5. Accordingly, in this case, the pixel width of the SD image 3542 (hereinafter, the SD pixel width Ls) Is the HD pixel width Lt, The SD pixel width LsBecomes 1.
[2116]
In FIG. 272, the solid line indicates the pixel value of the HD image 3541, the dotted line indicates the pixel value of the SD image 3542, and the dashed line indicates the X-sectional waveform of the signal of the real world 1. However, since it is difficult to actually describe the waveform of the signal of the real world 1, the dashed line shown in FIG. 272 indicates the above-described one-dimensional polynomial approximation method (one embodiment of the real world estimation unit 102 in FIG. 266). ) Shows an approximate function f (x) in which the X-section waveform is approximated.
[2117]
Next, as in the above-described investigation of the region with a small difference, the applicant of the present application also specifies the specifics of the HD image 3541 in the region with a large difference between the HD image 3541 and the predicted image 3543 (region close to white in the difference image 3544). A typical pixel value, a specific pixel value of the SD image 3542, and an actual waveform (signal of the real world 1) corresponding to the HD image 3541 were investigated. The investigation results are shown in FIGS. 273 and 274.
[2118]
FIG. 273 shows one example of the investigated area. Note that in FIG. 273, the horizontal direction is the X direction, which is one direction in the spatial direction, and the vertical direction is the Y direction, which is the other direction in the spatial direction.
[2119]
That is, the applicant of the present application has investigated a region 3544-2 of the difference image 3544 shown in FIG. 273 as an example of a region having a large difference between the HD image 3541 and the predicted image 3543.
[2120]
FIG. 274 is a specific example of the HD image 3541 corresponding to four HD pixels from the left in the figure among the six HD pixels continuous in the X direction included in the region 3544-2 shown in FIG. FIG. 9 shows plots of a pixel value, a specific pixel value of the SD image 3542, and an actual waveform (signal of the real world 1).
[2121]
In FIG. 274, the vertical axis represents the pixel value, and the horizontal axis represents the x-axis parallel to the spatial direction X. On the x-axis, the origin is the leftmost position of the third HD pixel from the left in the figure among the six HD pixels of the difference image 3544, and a coordinate value is given based on the origin. However, the coordinate value of the x-axis is the SD pixel width LsIs assigned as 1.
[2122]
In FIG. 274, the solid line represents the pixel value of the HD image 3541, the dotted line represents the pixel value of the SD image 3542, and the dashed line represents the X-sectional waveform of the signal of the real world 1. However, the one-dot chain line shown in FIG. 274 indicates an approximate function f (x) in which the X-section waveform is approximated, similarly to the one-dot chain line shown in FIG. 272.
[2123]
By comparing FIG. 272 and FIG. 274, it can be seen from the waveform shapes of both approximation functions f (x) that each of the regions includes a thin line region.
[2124]
However, in FIG. 272, the region of the thin line exists substantially in the range of x = 0 to x = 1, whereas in FIG. 274, the region of the thin line substantially extends from x = −0.5 to x = 1. It is in the range of 0.5. That is, in FIG. 272, a thin line region is almost included in one SD pixel of the SD image 3542 existing in the range of x = 0 to x = 1. On the other hand, in FIG. 274, only one thin line region is included in one SD pixel of the SD image 3542 existing in the range of x = 0 to x = 1 (the boundary between the thin line and the background is included). Will be).
[2125]
Therefore, in the case of the state shown in FIG. 272, the difference between the pixel values (solid lines in the figure) of the two HD pixels of the HD image 3541 existing in the range of x = 0 to x = 1.0 is small. As a result, as a matter of course, the pixel value of one SD pixel of the SD image 3542 (dotted line in the figure), which is the average value of the pixel values of these two HD pixels, and the pixel value of the two HD pixels of the HD image 3541 Is small.
[2126]
In such a state (in the state shown in FIG. 272), one SD pixel of the SD image 3542 existing in the range of x = 0 to x = 1.0 is set as a target pixel, and the conventional classification adaptive processing is performed. Consider the case where two HD pixels (pixels of the predicted image 3543) are generated in the range of x = 0 to x = 1.0. In this case, as shown in FIG. 271, the HD pixels of the generated predicted image 3543 are obtained by almost accurately predicting the HD pixels of the HD image 3541. That is, as shown in FIG. 271, in the area 3544-1, since the difference between the HD pixel of the predicted image 3543 and the HD pixel of the HD image 3541 is also small, an image close to black is displayed.
[2127]
On the other hand, in the state shown in FIG. 274, the difference between the pixel values (solid lines in the figure) of the two HD pixels of the HD image 3541 existing in the range of x = 0 to x = 1.0 is large. . As a result, as a matter of course, the pixel value of one SD pixel of the SD image 3542 (dotted line in the figure), which is the average value of the pixel values of these two HD pixels, and the pixel value of the two HD pixels of the HD image 3541 Are larger than the corresponding differences in FIG.
[2128]
In such a state (in the state shown in FIG. 274), one SD pixel of the SD image 3542 existing in the range of x = 0 to x = 1.0 is set as a target pixel, and the conventional classification adaptive processing is performed. Consider the case where HD pixels (pixels of the predicted image 3543) are generated in the range of x = 0 to x = 1.0. In this case, as shown in FIG. 273, the HD pixels of the generated predicted image 3543 are not accurately predicted HD pixels of the HD image 3541. That is, as shown in FIG. 273, in the region 3544-2, the difference between the HD pixel of the predicted image 3543 and the HD pixel of the HD image 3541 is large, and an image close to white is displayed. .
[2129]
By the way, comparing each of the approximation functions f (x) (indicated by a dashed line in the figure) of the signal of the real world 1 in FIG. 272 and FIG. 274, in FIG. 272, in the range of x = 0 to x = 1 While the amount of change in the approximate function f (x) is small, it can be seen in FIG. 274 that the amount of change in the approximate function f (x) in the range from x = 0 to x = 1 is large.
[2130]
Therefore, one SD pixel of the SD image 3542 existing in the range of x = 0 to x = 1.0 shown in FIG. 272 has a small change amount of the approximation function f (x) within the SD pixel (that is, the amount of change is small). The amount of change in the signal of the real world 1 is small).
[2131]
From this point of view, if the above-mentioned investigation results are rephrased, for example, an approximate function f in an SD pixel such as an SD pixel existing in the range of x = 0 to x = 1.0 shown in FIG. When the HD pixel is generated from the SD pixel having a small change in (x) (that is, the change in the signal of the real world 1 is small) by the conventional classification adaptive processing, the generated HD pixel becomes the real world 1 The signal (in this case, a thin line image) is almost exactly predicted.
[2132]
On the other hand, one SD pixel of the SD image 3542 existing in the range of x = 0 to x = 1.0 shown in FIG. 274 has a large variation amount of the approximate function f (x) within the SD pixel. It can be said that it is an SD pixel (that is, the change amount of the signal of the real world 1 is large).
[2133]
From this point of view, if the above-described investigation results are rephrased, for example, an approximate function f in an SD pixel such as an SD pixel existing in the range of x = 0 to x = 1.0 shown in FIG. When the HD pixel is generated by the conventional classification adaptive processing from the SD pixel having a large change of (x) (that is, the change of the signal of the real world 1 is large), the generated HD pixel becomes the real world 1 It is not an accurate prediction of the signal (in this case, a thin line image).
[2134]
Summarizing the above investigation results, it is difficult to restore the detail in the pixel in the state shown in FIG. 275 by the conventional signal processing between the pixels (for example, the classification adaptive processing). It is.
[2135]
That is, FIG. 275 is a diagram for explaining the knowledge obtained as a result of the above-described investigation performed by the applicant.
[2136]
In FIG. 275, the horizontal direction in the figure represents the X direction which is one of the directions (spatial directions) in which the detection elements of the sensor 2 (FIG. 266) are arranged, and the vertical direction in the figure represents the light direction. Represents a level or pixel value. The dotted line represents the X-sectional waveform F (x) of the signal of the real world 1 (FIG. 266), which is an image, and the solid line represents the signal of the real world 1 (the image) represented by the X-sectional waveform F (x). ) Indicates the pixel value P output from the sensor 2 when the light is incident on the sensor 2. The width (length in the X direction) of one detection element of the sensor 2 is LcWhere ΔP is the width L of one detection element of the sensor 2cThat is, the pixel width L of the sensor 2cRepresents the amount of change in the X-section waveform F (x) within the square.
[2137]
By the way, since the above-described SD image 3542 (FIG. 270) imitates the input image (FIG. 266) from the sensor 2, the SD pixel width L of the SD image 3542s(FIGS. 272 and 274) show the pixel width (detection element width) L of the sensor 2.cCan be considered as
[2138]
Further, in the above-described investigation, the investigation is performed on the signal of the real world 1 (approximate function f (x)) corresponding to the thin line. However, the present invention is not limited to the thin line, and the level of the signal of the real world 1 is changed.
[2139]
Therefore, when the above-described investigation result is applied to the state shown in FIG. 275, the result is as follows.
[2140]
That is, as shown in FIG. 275, the SD pixel (the output pixel from the sensor 2) in which the change amount of the signal of the real world 1 (the change amount of the X-sectional waveform F (x)) △ P in the pixel is the target pixel If HD pixels (for example, pixels of the predicted image output from the classification adaptive processing unit 3501 in FIG. 266) are generated by the conventional classification adaptive processing, the generated HD pixels are the real world 1 (In the example of FIG. 275, the X-section waveform F (x)) is not accurately predicted.
[2141]
Specifically, in the conventional method including the classification adaptive processing, image processing between pixels of the sensor 2 is performed.
[2142]
That is, as shown in FIG. 275, in the real world 1, even if the variation ΔP of the X-sectional waveform F (x) is large in a region within one pixel, the X-sectional waveform F Only one pixel value P (a uniform value P within one pixel) in which (x) is integrated (strictly, the signal of the real world 1 is integrated in the spatiotemporal direction) is output.
[2143]
In the conventional method, the pixel value P is set as a reference, and the pixel value P is set as a processing target, and image processing is performed. In other words, in the conventional method, image processing is performed ignoring changes in the real world 1 signal (X cross-sectional waveform F (x)) in a pixel, that is, ignoring details in the pixel.
[2144]
As described above, as long as the pixel is processed as the minimum unit, even if any image processing (even in the class classification adaptive processing) is performed, it is not possible to accurately reproduce the change of the signal of the real world 1 in the pixel. Have difficulty. In particular, when the variation ΔP of the signal in the real world 1 is large, the difficulty becomes more remarkable.
[2145]
In other words, the input image (SD image) in which the details of the real world 1 have been lost at the stage of output from the sensor 2 in FIG. Even if the image is an HD image, the cause of the problem that the original details may not be completely restored is that the pixel (one pixel) is not considered without considering the amount of change ΔP of the signal of the real world 1 in the pixel. This is because the classification adaptive processing is performed using a pixel having only a pixel value) as a minimum unit.
[2146]
This problem is not limited to the classification adaptive processing, but is a problem that all conventional image processing methods have, and the cause of the problem is exactly the same.
[2147]
The problem of the conventional image processing method and the cause of the problem have been described above.
[2148]
By the way, as described above, the data continuity detecting unit 101 and the real world estimating unit 102 (FIG. 3) of the present invention use the continuity of the signal of the real world 1 to input an image from the sensor 2 (ie, , An image in which the change of the signal of the real world 1 in the pixel is ignored). That is, the real world estimating unit 102 can output real world estimation information capable of estimating the signal of the real world 1.
[2149]
Therefore, it is possible to estimate the amount of change in the signal of the real world 1 in the pixel from the real world estimation information.
[2150]
Therefore, the applicant of the present application estimates a predicted image (an image that predicts the real world 1 without considering a change in the signal of the real world 1 in a pixel) generated by the conventional classification adaptive processing. The above-described problem can be solved by performing correction using a predetermined corrected image generated based on information (an image in which an error of a predicted image caused by a change in the signal of the real world 1 in a pixel is estimated). Based on this idea, for example, a class classification adaptive processing correction method as shown in FIG. 266 was invented.
[2151]
That is, in FIG. 266, the data continuity detecting unit 101 and the real-world estimating unit 102 generate real-world estimating information, and the class classification adaptive processing correcting unit 3502 performs predetermined correction based on the generated real-world estimating information. Generate an image. Then, the adding unit 3503 corrects the predicted image output from the classification adaptive processing unit 3501 with the corrected image output from the classification adaptive processing correcting unit 3502 (specifically, adding the corrected image to the predicted image) The output image is output as an output image).
[2152]
The details of the class classification adaptive processing unit 3501 of the image generation unit 103 using the class classification adaptive processing correction method have already been described. The form of the adding unit 3503 is not particularly limited as long as it can add the predicted image and the corrected image. For example, various adders, programs, and the like that exist conventionally can be applied. It is possible.
[2153]
Therefore, the details of the remaining classification adaptive processing correction unit 3502 will be described below.
[2154]
First, the principle of the classification adaptive processing correction unit 3502 will be described.
[2155]
As described above, in FIG. 270, the HD image 3541 is regarded as the original image (signal of the real world 1) before being incident on the sensor 2 (FIG. 266), and the SD image 3542 is output from the sensor 2 Assuming that the input image is an input image, the predicted image 3543 becomes a predicted image (a predicted image obtained by predicting the original image (HD image 3541)) output from the classification adaptive processing unit 3501.
[2156]
An image obtained by subtracting the predicted image 3543 from the HD image 3541 is a difference image 3544.
[2157]
Therefore, if the classification adaptive processing correction unit 3502 can generate the difference image 3544 and output the difference image 3544 as a corrected image, the adding unit 3503 outputs the predicted image 3543 output from the classification adaptive processing unit 3501. By adding the difference image 3544 (corrected image) output from the class classification adaptive processing correction unit 3502, the HD image 3541 can be restored.
[2158]
That is, the class classification adaptive processing correction unit 3502 calculates a difference between a signal of the real world 1 (an original image before being incident on the sensor 2), which is an image, and a predicted image output from the class classification adaptive processing unit 3501. The image (however, an image having the same resolution as the prediction image output from the classification adaptive processing unit 3501) is appropriately predicted, and the predicted difference image (hereinafter, referred to as a difference prediction image. This is the name of the above-described difference prediction image) Can be output as a corrected image, the signal (original image) of the real world 1 can be almost restored.
[2159]
By the way, as described above, the degree of difference (error) between the signal of the real world 1 (the original image before being incident on the sensor 2) and the predicted image output from the classification adaptive processing unit 3501, and the input The degree of change in the signal of the real world 1 within one pixel of the image corresponds. In addition, since the real world estimating unit 102 can estimate the signal of the real world 1, naturally, the predetermined characteristic amount representing the degree of change of the signal of the real world 1 within one pixel of the input image. Can be calculated for each pixel.
[2160]
Therefore, the class classification adaptive processing correction unit 3502 can generate a difference prediction image (predict a difference image) by acquiring a feature amount for each pixel of the input image.
[2161]
Therefore, for example, the class classification adaptive processing correction unit 3502 uses the real-world estimation unit 102 to convert an image whose characteristic amount is a pixel value (hereinafter, such an image is referred to as a characteristic amount image) as real-world estimation information. Input from the world estimation unit 102.
[2162]
At this time, the resolution of the feature image is the same as the resolution of the input image from the sensor 2. The corrected image (difference predicted image) has the same resolution as the predicted image output from the classification adaptive processing unit 3501.
[2163]
Accordingly, the class classification adaptive processing correction unit 3502 predicts a difference image from a feature image using a conventional class classification adaptation process, using a feature image as an SD image and a corrected image (difference predicted image) as an HD image. If the calculation is performed, the result of the prediction calculation becomes an appropriate difference prediction image.
[2164]
The principle of the class classification adaptive processing correction unit 3502 has been described above.
[2165]
FIG. 276 illustrates a configuration example of the class classification adaptive processing correction unit 3502 that operates on the above principle.
[2166]
In FIG. 276, the feature image (SD image) input from the real world estimation unit 102 is supplied to the region extraction unit 3551 and the region extraction unit 3555, respectively. The region extracting unit 3551 extracts a class tap (an SD pixel existing at a preset position including a pixel of interest) necessary for performing class classification from the supplied feature amount image, and outputs the extracted class tap to the pattern detecting unit 3552. I do. The pattern detection unit 3552 detects the pattern of the feature image based on the input class tap.
[2167]
The class code determination unit 3553 determines a class code based on the pattern detected by the pattern detection unit 3552, and outputs it to the correction coefficient memory 3554 and the area extraction unit 3555. The correction coefficient memory 3554 stores a coefficient for each class code obtained in advance by learning, reads a coefficient corresponding to the class code input from the class code determination unit 3553, and outputs the coefficient to the correction calculation unit 3556.
[2168]
Note that the coefficient learning processing of the correction coefficient memory 3554 will be described later with reference to the block diagram of the class classification adaptive processing correction learning unit in FIG. 277.
[2169]
The coefficient stored in the correction coefficient memory 3554 is a prediction coefficient used when predicting a difference image (generating a difference prediction image that is an HD image), as described later. However, here, the coefficients stored in the coefficient memory 3514 (FIG. 267) of the classification adaptive processing unit 3501 are referred to as prediction coefficients. Therefore, hereinafter, the prediction coefficient stored in the correction coefficient memory 3554 is referred to as a correction coefficient to distinguish it from the prediction coefficient stored in the coefficient memory 3514.
[2170]
The region extraction unit 3555 predicts a difference image (HD image) from the feature image (SD image) input from the real world estimation unit 102 based on the class code input from the class code determination unit 3553 (HD A prediction tap (an SD pixel existing at a preset position including a pixel of interest) necessary for generating a difference prediction image, which is an image, is extracted corresponding to the class code and output to the correction operation unit 3556. The correction operation unit 3556 performs a product-sum operation using the prediction tap input from the region extraction unit 3555 and the correction coefficient input from the correction coefficient memory 3554, and performs a target pixel (SD image) on the feature amount image (SD image). An HD pixel of the difference prediction image (HD image) in the SD pixel) is generated.
[2171]
More specifically, the correction coefficient memory 3554 outputs a correction coefficient corresponding to the class code supplied from the class code determination unit 3553 to the correction calculation unit 3556. The correction calculation unit 3556 uses the prediction tap (SD pixel) extracted from the pixel value at a predetermined pixel position of the input image supplied from the region extraction unit 3555 and the correction coefficient supplied from the correction coefficient memory 3554. The HD pixel of the difference prediction image (HD image) is obtained by performing the product-sum operation represented by the following expression (223) (prediction and estimation of the difference image).
[2172]
[Equation 174]
Figure 2004246526
Figure 2004246526
[2173]
In Expression (223), u ′ represents an HD pixel of the difference prediction image (HD image). aiEach (i is an integer value of 1 to n) represents each prediction tap (SD pixel). Also, giRepresents each of the correction coefficients.
[2174]
Therefore, in FIG. 266, while the HD pixel q ′ of the predicted image represented by the above equation (215) is output from the classification adaptive processing unit 3501, the classification adaptive processing correction unit 3502 outputs The HD pixel u ′ of the difference prediction image represented by Expression (223) is output. Then, the addition unit 3503 outputs a pixel (hereinafter, referred to as o ′) obtained by adding the HD pixel q ′ of the prediction image and the HD pixel u ′ of the difference prediction image to the outside as the HD pixel of the output image. .
[2175]
That is, the HD pixel o 'of the output image finally output from the image generation unit 103 is represented by the following equation (224).
[2176]
[Equation 175]
Figure 2004246526
Figure 2004246526
[2177]
FIG. 277 shows a correction coefficient (g in the above-described expression (222)) stored in the correction coefficient memory 3554 of the class classification adaptive processing correction unit 3502.i), That is, a detailed configuration example of the learning unit 3561 for correcting the classification adaptive processing of the learning device 3504 of FIG. 268 described above.
[2178]
In FIG. 268, as described above, when the learning process for class classification adaptive processing 3521 ends the learning processing, the learning unit for class classification adaptive processing correction learning unit 3561 sends the first teacher image (HD Image) and a first student image (SD image), and a learning prediction, which is an image obtained by predicting a first teacher image from the first student image using a prediction coefficient obtained by learning. Outputs an image.
[2179]
Returning to FIG. 277, the first student image among these is input to the data continuity detecting unit 3572.
[2180]
On the other hand, the first teacher image and the learning prediction image are input to the adding unit 3571. However, the learning prediction image is inverted.
[2181]
The adding unit 3571 adds the input first teacher image and the inversely input learning prediction image, that is, generates a difference image between the first teacher image and the learning prediction image, and classifies the difference image. It is output to the normal equation generation unit 3578 as a teacher image in the adaptive processing correction learning unit 3561 (this teacher image is referred to as a second teacher image in order to distinguish it from the first teacher image as described above).
[2182]
Data continuity detecting section 3572 detects the continuity of the data included in the input first student image, and outputs the detection result to real world estimating section 3573 as data continuity information.
[2183]
The real world estimating unit 3573 generates a feature amount image based on the input data continuity information, and converts the generated feature amount image into a student image in the class classification adaptive processing correction learning unit 3561 (as described above, (This is referred to as a second student image in order to distinguish it from the first student image) and is output to each of the region extracting unit 3574 and the region extracting unit 3577.
[2184]
The region extracting unit 3574 extracts SD pixels (class taps) necessary for performing class classification from the supplied second student images (SD images), and outputs the SD pixels (class taps) to the pattern detecting unit 3575. Pattern detection section 3575 detects the input class tap pattern and outputs the detection result to class code determination section 3576. The class code determination unit 3576 determines a class code corresponding to the input pattern, and outputs the class code to each of the region extraction unit 3577 and the normal equation generation unit 3578.
[2185]
The region extraction unit 3577 extracts a prediction tap (SD pixel) from the second student image (SD image) input from the real world estimation unit 3573 based on the class code input from the class code determination unit 3576, Output to the normal equation generation unit 3578.
[2186]
Note that each of the above-described region extraction unit 3574, pattern detection unit 3575, class code determination unit 3576, and region extraction unit 3577 is the region extraction unit 3551, pattern detection unit 3552, and class classification adaptive processing correction unit 3502 in FIG. Each of the class code determination unit 3553 and the area extraction unit 3555 has basically the same configuration and function. Further, each of the above data continuity detecting section 3572 and real world estimating section 3573 has basically the same configuration and function as each of data continuity detecting section 101 and real world estimating section 102 in FIG. It has.
[2187]
The normal equation generation unit 3578 calculates a prediction tap of the second student image (SD image) input from the region extraction unit 3577 for each class code for all the class codes input from the class code determination unit 3576. A normal equation is generated from the SD pixels) and the HD pixels of the second teacher image (HD image) and supplied to the correction coefficient determination unit 3579. When a normal equation corresponding to a predetermined class code is supplied from the normal equation generation section 3578, the correction coefficient determination section 3579 calculates each correction coefficient from the normal equation and associates the correction coefficient with the class code in the correction coefficient memory 3554. And memorize it.
[2188]
The normal equation generation unit 3578 and the correction coefficient determination unit 3579 will be described in more detail.
[2189]
In the above equation (223), before the learning, the correction coefficient giAre undetermined coefficients. Learning is performed by inputting HD pixels of a plurality of teacher images (HD images) for each class code. There are m HD pixels corresponding to the predetermined class code, and each of the m HD pixels is represented by ukWhen (k is an integer from 1 to m), the following equation (225) is set from equation (223).
[2190]
176
Figure 2004246526
Figure 2004246526
[2191]
That is, Expression (225) indicates that a predetermined HD pixel can be predicted and estimated by calculating the right side. Note that in equation (225), ekRepresents an error. That is, the HD pixel u of the difference prediction image (HD image) which is the calculation result on the right sidek′ Is the HD pixel u of the actual difference imagekDoes not exactly coincide with the predetermined error ekincluding.
[2192]
Therefore, in equation (2225), for example, error ekCorrection coefficient a that minimizes the sum of squares ofiMay be obtained by learning.
[2193]
For example, the HD pixel u of the difference image is set so that m> n.kCan be collected by learning, the correction coefficient aiIs uniquely determined.
[2194]
That is, the correction coefficient a on the right side of the equation (225)iIs obtained by the least squares method as shown in the following equation (226).
[2195]
177
Figure 2004246526
Figure 2004246526
[2196]
If each of the matrices of the normal equation represented by the equation (226) is defined as in the following equations (227) to (229), the normal equation is represented as the following equation (230).
[2197]
178
Figure 2004246526
Figure 2004246526
[2198]
179
Figure 2004246526
Figure 2004246526
[2199]
[Equation 180]
Figure 2004246526
Figure 2004246526
[2200]
[Equation 181]
Figure 2004246526
Figure 2004246526
[2201]
As shown in equation (228), the matrix GMATIs a correction coefficient g to be obtained.iIt is. Therefore, in equation (230), the matrix A on the left sideMATAnd the matrix U on the right sideMATIs determined, the matrix G isMAT(That is, the correction coefficient gi) Can be calculated.
[2202]
Specifically, as shown in equation (227), matrix AMATIs a prediction tap aikCan be calculated if is known. Prediction tap aikIs extracted by the region extracting unit 3577, so that the normal equation generating unit 3578 outputs the prediction tap a supplied from the region extracting unit 3577.ikMatrix A using each ofMATCan be calculated.
[2203]
Also, as shown in equation (229), the matrix UMATIs a prediction tap aikAnd the HD pixel u of the difference imagekCan be calculated if is known. Prediction tap aikIs the matrix AMAT, And the HD pixel u of the difference imagekAre HD pixels of the second teacher image output from the adder 3571. Therefore, the normal equation generation unit 3578 calculates the prediction tap a supplied from the region extraction unit 3577.ikU and the second teacher image (the difference image between the first teacher image and the learning prediction image)MATCan be calculated.
[2204]
In this way, the normal equation generation unit 3578 outputs the matrix A for each class code.MATAnd matrix UMATIs calculated, and the calculation result is supplied to the correction coefficient determination unit 3579 in association with the class code.
[2205]
The correction coefficient determination unit 3579 calculates the matrix G of the above equation (230) based on the normal equation corresponding to the supplied predetermined class code.MATCorrection coefficient g which is each component ofiIs calculated.
[2206]
Specifically, the above-described normal equation of Expression (230) can be modified to the following Expression (231).
[2207]
[Equation 182]
Figure 2004246526
Figure 2004246526
[2208]
In equation (231), the matrix G on the left sideMATIs the correction coefficient g to be obtainediIt is. Also, matrix AMATAnd matrix UMATAre supplied from the normal equation generation unit 3578. Accordingly, the correction coefficient determining unit 3579 outputs the matrix A corresponding to the predetermined class code from the normal equation generating unit 3578.MATAnd matrix UMATIs supplied, the matrix operation on the right side of equation (231) is performed to obtain the matrix GMATIs calculated, and the calculation result (correction coefficient gi) Is stored in the correction coefficient memory 3554 in association with the class code.
[2209]
The details of the classification adaptive processing correction unit 3502 and the learning unit for class classification adaptive processing correction 3561 that is a learning unit associated therewith have been described above.
[2210]
The form of the feature amount image is not particularly limited as long as the class classification adaptive processing correction unit 3502 can generate a corrected image (difference predicted image) based on the image. In other words, the pixel value of each pixel of the feature amount image, that is, the feature amount is, as described above, the change amount of the signal of the real world 1 (FIG. 266) in the pixel (the pixel of the sensor 2 (FIG. 266)). There is no particular limitation as long as the degree can be represented.
[2211]
For example, it is possible to apply the in-pixel inclination as the feature amount.
[2212]
The term “in-pixel tilt” is a newly defined word. Therefore, the in-pixel tilt will be described below.
[2213]
As described above, in FIG. 266, the signal of the real world 1 which is an image is a function F (x, y, t) using the positions x, y, and z in the three-dimensional space and the time t as variables. It is represented by
[2214]
Further, for example, when the signal of the real world 1 which is an image has continuity in a predetermined spatial direction, the function F (x, y, t) is converted into the spatial X direction, the Y direction, and the spatial direction. A one-dimensional waveform projected in a predetermined one direction (for example, the X direction) of the Z directions (again, a waveform projected in the X direction among such waveforms is referred to as an X-sectional waveform F (x)). It can be considered that the waveforms having the same shape as those of FIG.
[2215]
Therefore, the real-world estimating unit 102 outputs the X-sectional waveform based on the data continuity information (eg, angle) corresponding to the continuity of the signal of the real world 1 output from the data continuity detecting unit 101, for example. F (x) can be approximated by an approximation function f (x) which is an n-th order (n is an arbitrary integer) polynomial.
[2216]
FIG. 278 shows, as an example of such an approximate function f (x), f represented by the following equation (232).4(X) (f is a fifth-order polynomial4(X)) and f expressed by the following equation (233).5(X) (f is a first-order polynomial5(X)) is plotted.
[2217]
183
Figure 2004246526
Figure 2004246526
[2218]
[Equation 184]
Figure 2004246526
Figure 2004246526
[2219]
Note that w in Expression (232)0Or w5, And w in equation (233)0’And w1′ Represents the following coefficients calculated by the real world estimation unit 102.
[2220]
In FIG. 278, the x-axis in the horizontal direction in the figure represents the relative position in the spatial direction X from the target pixel when the left end of the target pixel is the origin (x = 0). However, on the x-axis, the width L of the detection element of the sensor 2cIs set to 1. The axis in the vertical direction in the figure represents a pixel value.
[2221]
As shown in FIG. 278, the first-order approximation function f5(X) (approximate function f expressed by equation (232)5(X)) is a straight line approximation of the X-section waveform F (x) at the target pixel. Here, the slope of the approximate straight line is referred to as an in-pixel slope. That is, the in-pixel inclination is a coefficient w of x in Expression (233).1’.
[2222]
When the in-pixel inclination is steep, it indicates that the amount of change in the X-sectional waveform F (x) at the pixel of interest is large. On the other hand, when the inclination in the pixel is gentle, it indicates that the change amount of the X-sectional waveform F (x) in the target pixel is small.
[2223]
As described above, the in-pixel tilt can appropriately represent the degree of change of the signal of the real world 1 in the pixel (the pixel of the sensor 2). Therefore, the in-pixel inclination can be applied as the feature amount.
[2224]
For example, FIG. 279 shows a feature amount image actually generated using the in-pixel inclination as a feature amount.
[2225]
That is, in FIG. 279, the image on the left side in the figure represents the same image as the SD image 3542 shown in FIG. 270 described above. The image on the right side in the drawing represents a feature amount image 3591 obtained by calculating an in-pixel inclination for each of the pixels constituting the left SD image 3542 and plotting a value corresponding to the in-pixel inclination as a pixel value. I have. However, the feature amount image 3591 becomes black when there is no tilt in the pixel (when the approximate straight line is parallel to the X direction), whereas when the tilt in the pixel is right angle (when the approximate straight line is in the Y direction). (If parallel), it is generated to be white.
[2226]
The area 3542-1 of the SD image 3542 is an example of the area 3544-1 of the difference image 3544 of FIG. 271 described above (refer to FIG. (Area described as “)”. The area of the feature amount image 3591 corresponding to the area 3542-1 of the SD image 3542 is the area 3591-1.
[2227]
Also, the area 3542-2 of the SD image 3542 is the area 3544-2 of the difference image 3544 of FIG. 273 described above (refer to FIG. 274 of the area where the change amount of the signal of the real world 1 in the pixel is large). (The area described as an example). An area of the feature amount image 3591 corresponding to the area 3542-2 of the SD image 3542 is an area 3591-2.
[2228]
Comparing the area 3542-1 of the SD image 3542 with the area 3591-1 of the feature amount image 3591, the region where the amount of change in the signal of the real world 1 is small is a region close to black (pixels) in the feature amount image 3591. It can be seen that the inner slope is gentle.
[2229]
On the other hand, comparing the area 3542-2 of the SD image 3542 and the area 3591-2 of the feature amount image 3591, the region where the amount of change in the signal of the real world 1 is large is white in the feature amount image 3591. It can be seen that the area is close to the area (the area where the inclination in the pixel is steep).
[2230]
As described above, the feature amount image generated by using the value corresponding to the in-pixel inclination as a pixel can appropriately represent the degree of change of the signal of the real world 1 in each pixel.
[2231]
Next, a specific calculation method of the in-pixel inclination will be described.
[2232]
That is, if the in-pixel inclination of the target pixel is described as grad, the in-pixel inclination grad is expressed by the following equation (234).
[2233]
[Equation 185]
Figure 2004246526
Figure 2004246526
[2234]
In equation (234), PnRepresents the pixel value of the pixel of interest. PcRepresents the pixel value of the center pixel.
[2235]
Specifically, for example, as shown in FIG. 280, an area composed of 5 × 5 pixels (5 × 5 = 25 squares in the figure) in the input image from the sensor 2, and If there is an area 3601 having the data continuity (hereinafter, referred to as a steady area 3601), the pixel 3602 at the center of the steady area 3601 is set as the central pixel. Therefore, PcIs the pixel value of the central pixel 3602. Then, for example, when the pixel 3603 is set as the target pixel, PnIs the pixel value of the pixel of interest 3603.
[2236]
In addition, in equation (234), xn′ Represents the distance in the cross-sectional direction at the center point of the pixel of interest. Here, the center of the center pixel (pixel 3602 in the example of FIG. 280) is defined as the origin (0, 0) in the spatial direction, and a straight line parallel to the direction of data continuity passing through the origin (the example in FIG. 280) If a straight line 3604) is drawn, a relative distance in the X direction with respect to the straight line is referred to as a cross-sectional direction distance.
[2237]
FIG. 281 is a diagram illustrating the cross-sectional distance of each pixel in the steady area 3601 in FIG. 280. That is, in FIG. 281, the value described in each pixel (5 × 5 = 25 squares in the figure) of the steady area 3601 is the cross-sectional distance of the corresponding pixel. For example, the sectional distance x of the pixel of interest 3603n'Is -2 [beta].
[2238]
However, each pixel width is set to 1 in both the X and Y directions. The positive direction of the X direction is the right direction in the figure. Further, β represents the distance in the cross-sectional direction of the pixel 3605 that is immediately adjacent (one below in the figure) to the Y direction of the central pixel 3602. When the angle θ (the angle θ between the direction of the straight line 3604 and the X direction) as shown in FIG. 281 is output from the data continuity detecting unit 101 as data continuity information, It is possible to easily calculate using (235).
[2239]
186
Figure 2004246526
Figure 2004246526
[2240]
As described above, the inclination in the pixel is calculated by a simple calculation using the two input pixel values of the central pixel (the pixel 3602 in the example of FIG. 281) and the target pixel (the pixel 3603 in the example of FIG. 281) and the angle θ. It is possible. Therefore, if the real-world estimating unit 102 generates an image having a value corresponding to the in-pixel inclination as a pixel value as a feature image, the processing amount can be significantly reduced.
[2241]
When it is desired to obtain a more accurate in-pixel inclination, the real-world estimating unit 102 only needs to perform the least-squares method using the peripheral pixels of the target pixel. Specifically, the real world estimating unit 102 assigns a number i (i is 1 to m) to m pixels (m is an integer of 2 or more) including the pixel of interest, and Each input pixel value PiAnd distance x in the cross-section directioniIs substituted for the right side of the following equation (236) to calculate the in-pixel gradient grad at the target pixel. That is, equation (236) is an equation similar to the above equation for obtaining one variable by the least square method.
[2242]
187
Figure 2004246526
Figure 2004246526
[2243]
Next, with reference to FIG. 282, an image generation process (the process of step S103 in FIG. 40) of the image generation unit 103 (FIG. 266) using the class classification adaptive processing correction method will be described.
[2244]
In FIG. 266, when a signal of the real world 1 which is an image is incident on the sensor 2, an input image is output from the sensor 2. This input image is input to the data continuity detecting unit 101 and also to the classification adaptive processing unit 3501 of the image generating unit 103.
[2245]
Therefore, in step S3501 in FIG. 282, the classification adaptive processing unit 3501 performs a classification adaptive process on the input image (SD image) to generate a predicted image (HD image), and adds the result to the adding unit 3503. Output to
[2246]
Hereinafter, the process of step S3501 performed by the class classification adaptive processing unit 3501 is referred to as “input image class classification adaptation process”. Details of the “input image class classification adaptive processing” in this example will be described later with reference to the flowchart in FIG.
[2247]
Almost simultaneously with the processing in step S3501, the data continuity detecting unit 101 detects the continuity of the data included in the input image, and uses the detection result (in this case, the angle) as the data continuity information. (Step S101 in FIG. 40).
[2248]
The real-world estimating unit 102 generates real-world estimating information (in this case, a feature image which is an SD image) based on the input angle (data continuity information), The data is supplied to the correction unit 3502 (the processing of step S102 in FIG. 40).
[2249]
Therefore, in step S3502, the classification adaptive processing correction unit 3502 performs the classification adaptive processing on the supplied feature amount image (SD image) to generate a difference prediction image (HD image) (actual image) A prediction image is calculated for a difference image (however, an HD image) between the (real world 1 signal) and the prediction image output from the classification adaptive processing unit 3501, and the calculated difference image is output to the addition unit 3503.
[2250]
Hereinafter, the processing of step S3502 executed by the class classification adaptive processing correction unit 3502 will be referred to as “classification adaptive processing correction processing”. Details of the “correction processing of the classification adaptive processing” in this example will be described later with reference to the flowchart in FIG.
[2251]
Then, in step S3503, the adding unit 3503 corresponds to the target pixel (HD pixel) of the predicted image (HD image) generated by the classification adaptive processing unit 3501 in the process of step S3501, and corresponds to the target pixel (step S3502). The pixel (HD pixel) of the corrected image (HD image) generated by the class classification adaptive processing correction unit 3502 in the process (1) is added to generate the pixel (HD pixel) of the output image (HD image).
[2252]
In step S3504, the addition unit 3503 determines whether the processing for all pixels has been completed.
[2253]
If it is determined in step S3504 that the processing of all the pixels has not been completed, the process returns to step S3501, and the subsequent processing is repeated. That is, the pixels that have not been set as the target pixel are sequentially set as the target pixel, and the processing of steps S3501 to S3503 is repeated.
[2254]
Then, when the processing of all the pixels is completed (when it is determined in step S3504 that the processing of all the pixels is completed), the adding unit 3504 outputs the output image (HD image) to the outside in step S3505. After that, the process of generating the image ends.
[2255]
Next, with reference to the drawings, the details of “input image class classification adaptive processing (processing of step S3501)” and “correction processing of class classification adaptive processing (processing of step S3502)” in this example will be described. It will be described individually in that order.
[2256]
First, the details of the “input image class classification adaptive processing” executed by the class classification adaptive processing unit 3501 (FIG. 267) will be described with reference to the flowchart in FIG. 283.
[2257]
When the input image (SD image) is input to the classification adaptive processing unit 3501, in step S3521, each of the region extraction unit 3511 and the region extraction unit 3515 inputs the input image.
[2258]
In step S3522, the region extraction unit 3511 selects, from the input image, a pixel (SD pixel) located at each of the target pixel (SD pixel) and a preset relative position (one or more positions) from the target pixel. ) Is extracted as a class tap and supplied to the pattern detection unit 3512.
[2259]
In step S3523, the pattern detection unit 3512 detects the supplied class tap pattern and supplies the pattern tap to the class code determination unit 3513.
[2260]
In step S3524, the class code determination unit 3513 determines a class code that matches the supplied class tap pattern from among a plurality of preset class codes, and sets the class code to the coefficient memory 3514 and the region extraction unit 3515. To supply.
[2261]
In step S3525, the coefficient memory 3514 reads out a prediction coefficient (group) to be used from now on the basis of the supplied class code from a plurality of prediction coefficients (group) determined in advance by the learning process, and To supply.
[2262]
The learning process will be described later with reference to the flowchart in FIG.
[2263]
In step S3526, the region extraction unit 3515 determines the target pixel (SD pixel) and the predetermined relative position (one or more positions) from the target pixel in the input image in accordance with the supplied class code. A pixel (SD pixel) located at each of the positions set independently of the position of the class tap, but may be the same position as the position of the class tap) is extracted as a prediction tap, and prediction is performed. It is supplied to the arithmetic unit 3516.
[2264]
In step S3527, the prediction calculation unit 3516 calculates the prediction tap supplied from the region extraction unit 3515 using the prediction coefficient supplied from the coefficient memory 3514, generates a prediction image (HD image), and adds the prediction image (HD image). Output to
[2265]
Specifically, the prediction calculation unit 3516 converts each of the prediction taps supplied from the region extraction unit 3515 into ci(I is any integer from 1 to n), and each of the prediction coefficients supplied from the coefficient memory 3514 is diBy calculating the right side of the above equation (215), the HD pixel q ′ of the target pixel (SD pixel) is calculated, and the calculated value is added to the adding unit 3503 as one pixel constituting the predicted image (HD image). Output. Thus, the input image class classification adaptive processing ends.
[2266]
Next, with reference to a flowchart of FIG. 284, details of the “correction processing of the classification adaptive processing” executed by the classification adaptive processing correcting unit 3502 (FIG. 276) will be described.
[2267]
When the feature image (SD image) is input as real world estimation information from the real world estimation unit 102 to the classification adaptive processing correction unit 3502, in step S3541, each of the region extraction unit 3551 and the region extraction unit 3555 Enter the quantity image.
[2268]
In step S3542, the region extraction unit 3551 selects the pixel (SD pixel) located at the target pixel (SD pixel) and the preset relative position (one or more positions) from the target pixel in the feature amount image. Pixel) is extracted as a class tap and supplied to the pattern detection unit 3552.
[2269]
Specifically, in this example, it is assumed that a class tap (group) 3621 as shown in FIG. 285 is extracted, for example. That is, FIG. 285 illustrates an example of the class tap arrangement.
[2270]
In FIG. 285, the horizontal direction in the figure is the X direction, which is one direction in the spatial direction, and the vertical direction in the figure is the Y direction, which is the other direction in the spatial direction. The pixel of interest is pixel 3621-2.
[2271]
In this case, in the example of FIG. 285, the pixel of interest 3621-2, the pixels 3621-1 and 362-4 adjacent to the pixel of interest 3621-2 in the Y direction, and the pixel of interest 3621-2 in the X direction. , A pixel group 3621 composed of a total of five pixels 3621-1 and 3621-3 adjacent to the pixel 3621-1 is extracted as a class tap.
[2272]
Needless to say, the class tap arrangement is not limited to the example of FIG. 285 as long as the arrangement includes the target pixel 3621-2, and various arrangements are possible.
[2273]
Returning to FIG. 284, in step S3543, the pattern detecting unit 3552 detects the supplied class tap pattern and supplies the pattern tap to the class code determining unit 3553.
[2274]
Specifically, in this example, for example, the pattern detection unit 3552 determines the pixel value of each of the five class taps 3621-0 to 3621-4 shown in FIG. Each of the in-pixel gradients) detects which of a plurality of preset classes it belongs to, and outputs the detection results combined into one as a pattern.
[2275]
For example, assume that a pattern as shown in FIG. 286 has been detected. That is, FIG. 286 illustrates an example of a class tap pattern.
[2276]
In FIG. 286, the horizontal axis in the figure represents the class tap, and the vertical axis in the figure represents the tilt in the pixel. Also, due to the tilt in the pixel, the class
Assume that three classes 3631, 3632, and 3633 are set in advance.
[2277]
In this case, the pattern shown in FIG. 286 is such that class tap 3621-0 corresponds to class 3631, class tap 3621-1 corresponds to class 3631, class tap 3621-2 corresponds to class 3633, and class tap 3621-3 corresponds to class 3631. , Class tap 3621-4 represent patterns belonging to the class 3632.
[2278]
Thus, each of the five class taps 3621-0 to 3621-4 belongs to one of the three classes 3631 to 3633. Therefore, in this example, there are a total of 273 (= 3 ^ 5) patterns including the pattern shown in FIG.
[2279]
Returning to FIG. 284, in step S3544, the class code determination unit 3553 determines a class code that matches the supplied class tap pattern from a plurality of preset class codes, and The data is supplied to each of the region extracting units 3555. In this case, since there are 273 patterns, the number of class codes set in advance is 273 (or more).
[2280]
In step S3545, the correction coefficient memory 3554 reads out a correction coefficient (group) to be used from now on the basis of the supplied class code from a plurality of correction coefficients (group) determined in advance by the learning process, and 3556. Since each of the correction coefficients (group) stored in the correction coefficient memory 3554 is associated with one of the preset class codes, in this case, the number of the correction coefficients (group) is The number is the same as the number of class codes set in advance (273 or more).
[2281]
The learning process will be described later with reference to the flowchart in FIG.
[2282]
In step S3546, the region extraction unit 3555 determines the target pixel (SD pixel) and the preset relative position (one or more positions) from the target pixel in the input image corresponding to the supplied class code. , A position set independently of the position of the class tap, but may be the same position as the position of the class tap). It is supplied to the arithmetic unit 3556.
[2283]
Specifically, in this example, for example, it is assumed that a prediction tap (group) 3641 as illustrated in FIG. 287 is extracted. That is, FIG. 287 illustrates an example of the prediction tap arrangement.
[2284]
In FIG. 287, the horizontal direction in the figure is the X direction which is one direction in the spatial direction, and the vertical direction in the figure is the Y direction which is the other direction in the spatial direction. The pixel of interest is pixel 3641-1. That is, the pixel 3641-1 is a pixel corresponding to the class tap 3621-2 (FIG. 285).
[2285]
In this case, in the example of FIG. 287, a 5 × 5 pixel group (pixel group including a total of 25 pixels) 3641 centered on the target pixel 3641-1 is extracted as a prediction tap (group). .
[2286]
Of course, the prediction tap arrangement is not limited to the example of FIG. 287 as long as it includes the pixel of interest 3641-1, and various arrangements are possible.
[2287]
Returning to FIG. 284, in step S3547, the correction calculation unit 3556 calculates the prediction tap supplied from the region extraction unit 3555 using the correction coefficient supplied from the correction coefficient memory 3554, and calculates a difference prediction image (HD image). Is generated and output to the addition unit 3503 as a corrected image.
[2288]
More specifically, the correction calculation unit 3556 converts each of the prediction taps supplied from the region extraction unit 3555 to ai(I is any integer from 1 to n), and each of the correction coefficients supplied from the correction coefficient memory 3554 is giBy calculating the right side of the above equation (223), the HD pixel u ′ in the target pixel (SD pixel) is calculated, and the calculated value is added to the addition unit 3503 as one pixel constituting the corrected image (HD image). Output. Thus, the correction processing of the class classification adaptive processing ends.
[2289]
Next, referring to the flowchart of FIG. 288, the learning process of the learning device (FIG. 268), that is, the prediction coefficients used by the class classification adaptive processing unit 3501 (FIG. 267) and the class classification adaptive processing correction unit 3502 (FIG. 276) will be described below.
[2290]
In step S3561, the classification adaptive processing learning unit 3521 generates a prediction coefficient used by the classification adaptive processing unit 3501.
[2291]
That is, the class classification adaptive processing learning unit 3521 inputs a predetermined image as a first teacher image (HD image), reduces the resolution of the first teacher image, and converts the first student image (SD image). Generate.
[2292]
Then, the class classification adaptive processing learning unit 3521 generates a prediction coefficient capable of appropriately predicting the first teacher image (HD image) from the first student image (SD image) by the class classification adaptive processing. Are stored in the coefficient memory 3514 (FIG. 267) of the classification adaptive processing unit 3501.
[2293]
Hereinafter, the process of step S3561 executed by the learning unit for class classification adaptive processing 3521 is referred to as "learning process for class classification adaptive processing". The details of the “learning process for class classification adaptive processing” in this example will be described later with reference to the flowchart in FIG. 289.
[2294]
When the prediction coefficient used by the class classification adaptive processing unit 3501 is generated, in step S3562, the class classification adaptive processing correction learning unit 3561 generates a correction coefficient used by the class classification adaptive processing correction unit 3502.
[2295]
In other words, the class classification adaptive processing correction learning unit 3561 receives the first teacher image, the first student image, and the learning prediction image (by the class classification adaptive processing learning unit 3521) from the class classification adaptive processing learning unit 3521. Each of the first teacher images is predicted using the generated prediction coefficients.
[2296]
Next, the classifying adaptive processing correction learning unit 3561 generates a difference image between the first teacher image and the learning prediction image as the second teacher image, and generates the first student image as the second student image. A feature image is generated from the image.
[2297]
Then, the class classification adaptive processing correction learning unit 3561 generates a prediction coefficient capable of appropriately predicting the second teacher image (HD image) from the second student image (SD image) by the class classification adaptive processing. Then, it is stored in the correction coefficient memory 3554 of the class classification adaptive processing correction unit 3502 as a correction coefficient. Thus, the learning process ends.
[2298]
Hereinafter, the process of step S3562 executed by the learning unit for class classification adaptive processing correction 3561 is referred to as "classification adaptive processing correction learning process". Details of the “classification adaptive processing correction learning process” in this example will be described later with reference to the flowchart in FIG. 290.
[2299]
Next, referring to the drawings, details of the “classification adaptive processing learning processing (processing of step S3561)” and the “classification adaptive processing correction learning processing (processing of step S3562)” in this example will be described. Will be individually described in that order.
[2300]
First, the details of the “classification adaptive processing learning process” executed by the class classification adaptive processing learning unit 3521 (FIG. 269) will be described with reference to the flowchart in FIG. 289.
[2301]
In step S3581, each of the down-converting unit 3531 and the normal equation generating unit 3536 inputs the supplied predetermined image as a first teacher image (HD image). Note that, as described above, the first teacher image is also input to the class classification adaptive processing correction learning unit 3561.
[2302]
In step S3582, the down-converting unit 3531 generates a first student image (SD image) by down-converting (reducing the resolution) the input first teacher image, and the area extracting unit 3532 and the area extracting unit 3535 as well as output to the classifying adaptive processing correction learning unit 3561.
[2303]
In step S3583, the region extracting unit 3532 extracts a class tap from the supplied first student image and outputs the class tap to the pattern detecting unit 3533. In the process of step S3583, although the information input to the block and the information output from the block are strictly different information (hereinafter, such a difference is simply referred to as an input / output difference), This processing is basically the same as the processing in step S3522 (FIG. 283) described above.
[2304]
In step S3584, the pattern detection unit 3533 detects a pattern for determining a class code from the supplied class tap, and supplies the pattern to the class code determination unit 3534. The processing in step S3584 is basically the same as the processing in step S3523 (FIG. 283) described above, although there are differences in input and output.
[2305]
In step S3585, the class code determination unit 3534 determines a class code based on the supplied class tap pattern, and supplies the class code to each of the region extraction unit 3535 and the normal equation generation unit 3536. Note that the processing in step S3585 is basically the same as the processing in step S3524 (FIG. 283) described above, although there are differences in input and output.
[2306]
In step S3586, the region extraction unit 3535 extracts a prediction tap from the first student image corresponding to the supplied class code, and supplies the prediction tap to each of the normal equation generation unit 3536 and the prediction calculation unit 3538. Note that the processing in step S3586 is basically the same as the processing in step S3526 (FIG. 283) described above, although there are differences in input and output.
[2307]
In step S3587, the normal equation generation unit 3536 determines whether the prediction tap (SD pixel) supplied from the region extraction unit 3535 and a predetermined HD pixel among the HD pixels constituting the first teacher image (HD image) Then, the normal equation represented by the above equation (217) (that is, equation (221)) is generated and supplied to the coefficient determining section 3537 together with the class code supplied from the class code determining section 3534.
[2308]
In step S3588, the coefficient determining unit 3537 determines the prediction coefficient by solving the supplied normal equation, that is, calculates the prediction coefficient by calculating the right side of the above equation (222), and calculates the supplied class code. Is stored in the coefficient memory 3514 in association with the prediction calculation unit 3538.
[2309]
In step S3589, the prediction calculation unit 3538 calculates the prediction tap supplied from the region extraction unit 3535 using the prediction coefficient supplied from the coefficient determination unit 3537, and generates a learning prediction image (HD pixel).
[2310]
Specifically, the prediction calculation unit 3538 converts each of the prediction taps supplied from the region extraction unit 3535 into ci(I is any integer from 1 to n), and each of the prediction coefficients supplied from the coefficient determination unit 3537 is diBy calculating the right-hand side of the above equation (215), the HD pixel q ′ that has predicted the predetermined HD pixel q of the first teacher image is calculated, and the obtained HD pixel q ′ is calculated as 1 of the prediction image for learning. One pixel.
[2311]
In step S3590, it is determined whether or not processing has been performed on all pixels. If it is determined that processing has not been performed on all pixels, the processing returns to step S3583. That is, the processing of steps S3583 to S3590 is repeated until the processing of all pixels is completed.
[2312]
If it is determined in step S3590 that processing has been performed on all pixels, in step S3591, the prediction calculation unit 3538 determines the learning prediction image (consisting of each HD pixel q ′ generated for each processing in step S3589). HD image) to be output to the class classification adaptive processing correction learning unit 3561. Thus, the learning processing for the classification adaptive processing ends.
[2313]
As described above, in this example, after the processing of all the pixels is completed, the learning predicted image, which is the HD image obtained by predicting the first teacher image, is output to the classification adaptive processing correction learning unit 3561. . That is, all HD pixels (predicted pixels) are output collectively.
[2314]
However, it is not essential that all the pixels are output collectively, and may be output to the class classification adaptive processing correction learning unit 3561 each time an HD pixel (predicted pixel) is generated in the process of step S3589. Good. In this case, the process of step S3591 is omitted.
[2315]
Next, details of the “classification adaptive processing correction learning process” executed by the classification adaptive processing correction learning unit 3561 (FIG. 277) will be described with reference to the flowchart in FIG. 290.
[2316]
When the first teacher image (HD image) and the learning prediction image (HD image) are input from the class classification adaptive processing learning unit 3521, in step S3601, the addition unit 3571 uses the first teacher image to perform learning from the first teacher image. The prediction image is subtracted to generate a difference image (HD image), which is supplied to the normal equation generation unit 3578 as a second teacher image.
[2317]
Further, when the first student image (SD image) is input from the class classification adaptive processing learning unit 3521, in step S3602, the data continuity detection unit 3572 and the real world estimation unit 3573 input the first student image (SD image). A feature amount image is generated from the student image (SD image) and supplied to each of the region extracting unit 3574 and the region extracting unit 3577 as a second student image.
[2318]
That is, the data continuity detection unit 3572 detects the continuity of the data included in the first student image, and outputs the detection result (in this case, the angle) to the real world estimation unit 3573 as data continuity information. . Note that the processing of the data continuity detecting unit 3572 in step S3602 is basically the same as the processing in step S101 in FIG. 40 described above, although there are differences in input and output.
[2319]
The real world estimating unit 3573 generates real world estimation information (in this case, a feature amount image which is an SD image) based on the input angle (data continuity information), and uses the generated information as a second student image as an area. It is supplied to each of the extraction unit 3574 and the region extraction unit 3577. Note that the processing of the real world estimating unit 3573 in step S3602 is basically the same as the processing in step S102 in FIG. 40 described above, although there are differences in input and output.
[2320]
Further, the order of the processes in steps S3601 and S3602 is not limited to the example of FIG. 290. That is, the process of step S3602 may be performed first, or the processes of steps S3601 and S3602 may be performed simultaneously.
[2321]
In step S3603, the region extraction unit 3574 extracts a class tap from the supplied second student image (feature amount image) and outputs the class tap to the pattern detection unit 3575. The processing in step S3603 is basically the same as the processing in step S3542 (FIG. 284) described above, although there are differences in input and output. That is, in this case, the pixel group 3621 having the arrangement shown in FIG. 285 is extracted as a class tap.
[2322]
In step S3604, the pattern detection unit 3575 detects a pattern for determining a class code from the supplied class tap, and supplies the pattern to the class code determination unit 3576. Note that the processing in step S3604 is basically the same as the processing in step S3543 (FIG. 284) described above, although there are differences in input and output. That is, in this case, when the learning process is completed, at least 273 patterns are detected.
[2323]
In step S3605, the class code determination unit 3576 determines a class code based on the supplied class tap pattern, and supplies the class code to each of the region extraction unit 3577 and the normal equation generation unit 3578. Note that the processing in step S3605 is basically the same as the processing in step S3544 (FIG. 284) described above, although there are differences in input and output. That is, in this case, when the learning process is completed, at least 273 class codes are determined.
[2324]
In step S3606, the region extraction unit 3577 extracts a prediction tap from the second student image (feature amount image) corresponding to the supplied class code, and supplies the prediction tap to the normal equation generation unit 3578. Note that the processing in step S3606 is basically the same as the processing in step S3546 (FIG. 284) described above, although there are differences in input and output. That is, in this case, the pixel group 3641 having the arrangement shown in FIG. 287 is extracted as the prediction tap.
[2325]
In step S3607, the normal equation generation unit 3578 generates the prediction tap (SD pixel) supplied from the region extraction unit 3577 and the second teacher image (the first teacher image and the learning prediction image, which are HD images). A normal equation represented by the above-described equation (226) (that is, equation (230)) is generated from predetermined HD pixels among the HD pixels constituting the difference image, and the class supplied from the class code determination unit 3576 is generated. It is supplied to the correction coefficient determination unit 3579 together with the code.
[2326]
In step S3608, the correction coefficient determination unit 3579 determines the correction coefficient by solving the supplied normal equation, that is, calculates the correction coefficient by calculating the right side of the above equation (231), and calculates the supplied class. The correction coefficient is stored in the correction coefficient memory 3554 in association with the code.
[2327]
In step S3609, it is determined whether or not processing has been performed on all pixels. If it is determined that processing has not been performed on all pixels, the processing returns to step S3603. That is, the processing of steps S3603 to S3609 is repeated until the processing of all pixels is completed.
[2328]
Then, in step S3609, when it is determined that the processing has been performed for all the pixels, the class classification adaptive processing correction learning processing ends.
[2329]
As described above, in the class classification adaptive correction processing method, the predicted image output from the class classification adaptive processing unit 3501 is compared with the corrected image (difference predicted image) output from the class classification adaptive processing correction unit 3502 Are added and output.
[2330]
For example, when the SD image 3542, which is an image obtained by lowering the resolution of the HD image 3541 shown in FIG. 270 described above, is an input image, the prediction image 3543 shown in FIG. 291 is output from the classification adaptive processing unit 3501. Is done. Then, when the corrected image (not shown) output from the classification adaptive processing correction unit 3502 is added to the predicted image 3543 (corrected by the corrected image), the output image 3651 shown in FIG. Become.
[2331]
When comparing the output image 3651, the predicted image 3543, and the original HD image 3541 (FIG. 270), the output image 3651 is closer to the HD image 3541 than the predicted image 3543. I understand.
[2332]
As described above, in the class classification adaptive processing correction method, an image closer to the original image (the signal of the real world 1 before being incident on the sensor 2) as compared with another conventional method including the class classification adaptive processing. Can be output.
[2333]
In other words, in the class classification adaptive processing correction method, for example, the data continuity detecting unit 101 in FIG. 266 uses a plurality of detection elements of a sensor (for example, the sensor 2 in FIG. 266) each having a spatiotemporal integration effect. 266, an optical signal of the real world 1 is projected, and a part of the continuity of the optical signal of the real world is lost, and data in the input image (FIG. 266) composed of a plurality of pixels having pixel values projected by the detection element. Is detected.
[2334]
For example, the real world estimating unit 102 in FIG. 266 corresponds to the continuity of the detected data, and the real world features (for example, the optical signal function F (x) (FIG. 275) of the optical signal of the real world 1) shown in FIG. , The optical signal of the real world 1 is estimated by detecting the characteristic amounts corresponding to the pixels constituting the characteristic amount image of FIG.
[2335]
More specifically, for example, the real-world estimating unit 102 determines a distance (for example, a cross section in FIG. 280) along at least a one-dimensional direction from a line (for example, the line 3604 in FIG. 280) corresponding to the stationarity of the output data. Assuming that the pixel value of the pixel corresponding to the directional distance Xn ′) is a pixel value obtained by at least the one-dimensional integration effect, the optical signal function F (x) is converted to, for example, the approximate function f in FIG.5(X), which is a gradient in the pixel (for example, grad of Expression (234) described above, which is a gradient of the approximation function f5 (x) in a predetermined pixel (for example, pixel 3603 in FIG. 280), and Expression (233) )), The optical signal of the real world 1 is estimated by detecting the coefficient w1 ′) of x as a real world feature.
[2336]
Then, for example, the image generation unit 103 in FIG. 266 predicts and generates an output image (FIG. 266) higher in quality than the input image, based on the real world features detected by the real world estimation unit.
[2337]
More specifically, for example, in the image generation unit 103, for example, the class classification adaptive processing unit 3501 in FIG. The pixel value of the pixel of interest (for example, the pixel of the predicted image in FIG. 266 and q ′ in the above equation (224)) is predicted from the pixel values of a plurality of pixels in the above.
[2338]
On the other hand, for example, the classification adaptive processing correction unit 3502 in FIG. 266 is predicted by the classification adaptive processing unit 3501 from the feature amount image (real world estimation information) supplied from the real world estimation unit 102 in FIG. 266, for example. A correction term for correcting the pixel value of the pixel of interest of the predicted image (for example, a pixel of the corrected image (difference predicted image) in FIG. 266 and u ′ in Expression (224)) is predicted.
[2339]
Then, for example, the addition unit 3503 in FIG. 266 corrects the pixel value of the target pixel of the predicted image predicted by the classification adaptive processing unit 3501 with the correction term predicted by the classification adaptive processing unit 3501 (for example, Calculation is performed as in equation (224)).
[2340]
In the class classification adaptive processing correction method, for example, the class classification adaptive processing learning unit 3521 in FIG. 268 that determines the prediction coefficient stored in the coefficient memory 3514 in FIG. 267 by learning, and the correction coefficient memory in FIG. A learning device 3504 shown in FIG. 268 having a class classification adaptive processing correction learning unit 3561 shown in FIG. 268 for determining the correction coefficient stored in 3554 by learning is provided.
[2341]
In detail, for example, the class classification adaptive processing learning unit 3521 in FIG. 269 includes a down-converting unit 3531 that down-converts the learning image data, and a down-converting unit 3531 that uses the learning image data as the first teacher image. The learning image data that has been down-converted is used as a first student image, a coefficient determining unit 3537 that generates a prediction coefficient by learning the relationship between the first teacher image and the first student image, and region extraction. Sections 3532 to 3536 are provided.
[2342]
The class classification adaptive processing learning unit 3521 further performs learning as image data for predicting the first teacher image from the first student image using the prediction coefficient generated (determined) by the coefficient determination unit 3537, for example. A prediction calculation unit 3538 that generates a predicted image for use is provided.
[2343]
In addition, for example, the class classification adaptive processing correction learning unit 3561 of FIG. 277 detects the continuity of the data in the first student image, and forms the first student image based on the detected continuity of the data. A feature amount image (specifically, for example, the feature amount image 3591 in FIG. 279) in which a real-world feature corresponding to each pixel to be detected is detected, and a value corresponding to the detected real-world feature is set as a pixel value, Data continuity detecting section 3572 and real world estimating section 3573 generated as a second student image (for example, the second student image in FIG. 277), and image data composed of a difference between the first teacher image and the learning prediction image. An adding unit 3571 that generates the (difference image) as a second teacher image, and a correction coefficient determining unit 357 that generates a correction coefficient by learning the relationship between the second teacher image and the second student image. And the region extracting unit 3574 through the normal equation generating unit 3578 is provided.
[2344]
Therefore, in the class classification adaptive processing correction method, the output of an image closer to the original image (the signal of the real world 1 before being incident on the sensor 2) as compared with another conventional method including the class classification adaptive processing. Becomes possible.
[2345]
Note that, as described above, the class classification adaptation process differs from, for example, a simple interpolation process in that components not included in the SD image but included in the HD image are reproduced. That is, as far as looking at only the above-mentioned equations (215) and (223), it looks the same as the interpolation processing using the so-called interpolation filter. However, in the classification adaptive processing, the prediction coefficient corresponding to the coefficient of the interpolation filter is used. diOr supplemental coefficient giIs obtained by learning using teacher data and student data (the first teacher image and the first student image or the second teacher image and the second student image). Can be reproduced. For this reason, the above-described classification adaptive processing can be called processing having an image creation (resolution creation) effect.
[2346]
Further, in the above-described example, the case of improving the spatial resolution has been described as an example. However, according to the classification adaptive processing, various coefficients obtained by performing learning while changing teacher data and student data are used. Thus, for example, it is possible to perform improvement of S / N (Signal to Noise Ratio), improvement of blur, and other various processes.
[2347]
That is, for example, in order to improve the S / N and the blur by the classification adaptive processing, image data having a high S / N is used as teacher data, and an image in which the S / N of the teacher data is reduced is used. (Or a blurred image) may be used as the student data to determine the coefficient.
[2348]
As described above, the signal processing device having the configuration shown in FIG. 3 has been described as an embodiment of the present invention. However, the embodiment of the present invention is not limited to the example shown in FIG. 3 and can take various forms. . That is, the embodiment of the signal processing device 4 in FIG. 1 is not limited to the example in FIG. 3 and can take various forms.
[2349]
For example, the signal processing device having the configuration shown in FIG. 3 performs signal processing based on the stationarity of a signal of the real world 1 which is an image. For this reason, the signal processing device having the configuration shown in FIG. 3 performs more accurate signal processing on a portion of the real world 1 signal where the stationarity exists, as compared with the signal processing of other signal processing devices. As a result, it is possible to output image data closer to the signal of the real world 1.
[2350]
However, since the signal processing device having the configuration shown in FIG. 3 executes the signal processing based on the stationarity, stationarity exists in a portion of the real world 1 signal where the stationarity does not exist clearly. The signal processing cannot be executed with the same accuracy as the processing for the portion, and as a result, image data including an error is output for the signal in the real world 1.
[2351]
Therefore, it is possible to add a device (or a program or the like) for performing other signal processing that does not use stationarity to the signal processing device having the configuration of FIG. In this case, the signal processing device having the configuration shown in FIG. 3 performs signal processing on a portion of the real world 1 signal where continuity exists, and there is no clear continuity of the real world 1 signal. As for the portion, another device (or a program or the like) added executes signal processing. Hereinafter, such an embodiment is referred to as a combined method.
[2352]
Hereinafter, with reference to FIGS. 292 to 305, five specific combined methods (hereinafter, each combined method will be referred to as first to fifth combined methods) will be described.
[2353]
Note that it does not matter whether each function of the signal processing device to which each of the combined techniques is applied is realized by hardware or software. In other words, each block diagram of FIGS. 292 to 294, FIG. 298, FIG. 300, FIG. 302, and FIG. 304 described below may be considered as a hardware block diagram or a software functional block diagram.
[2354]
FIG. 292 illustrates a configuration example of a signal processing device to which the first combination method is applied.
[2355]
In the signal processing device in FIG. 292, image data which is an example of data 3 (FIG. 1) is input, and an image is generated by performing image processing described later based on the input image data (input image). The generated image (output image) is output. That is, FIG. 292 is a diagram showing a configuration of the signal processing device 4 (FIG. 1) which is an image processing device.
[2356]
The input image (image data as an example of the data 3) input to the signal processing device 4 is supplied to each of the data continuity detection unit 4101, the real world estimation unit 4102, and the image generation unit 4104.
[2357]
The data continuity detecting unit 4101 detects continuity of data from the input image and supplies data continuity information indicating the detected continuity to the real world estimating unit 4102 and the image generating unit 4103.
[2358]
As described above, the data continuity detecting unit 4101 has basically the same configuration and function as the data continuity detecting unit 101 in FIG. Therefore, the data continuity detecting unit 4101 can take the various embodiments described above.
[2359]
However, the data continuity detecting unit 4101 further generates information for specifying the region of the pixel of interest (hereinafter, referred to as region specifying information) and supplies the information to the region detecting unit 4111.
[2360]
The area specifying information is not particularly limited, and may be information newly generated after the data continuity information is generated, or may be information generated when data continuity information is generated.
[2361]
Specifically, for example, an estimation error can be used as the area specifying information. That is, for example, when the data continuity detecting unit 4101 calculates an angle as the data continuity information and calculates the angle by the least square method, an estimation error is additionally calculated by the least square method. . This estimation error can be used as region identification information.
[2362]
The real world estimating unit 4102 estimates a signal of the real world 1 (FIG. 1) based on the input image and the data continuity information supplied from the data continuity detecting unit 4101. That is, the real world estimating unit 4102 estimates an image that is a signal of the real world 1 and is incident on the sensor 2 (FIG. 1) when the input image is acquired. The real world estimating unit 4102 supplies the real world estimation information indicating the result of the estimation of the signal of the real world 1 to the image generating unit 4103.
[2363]
As described above, the real world estimating unit 4102 has basically the same configuration and function as the real world estimating unit 102 in FIG. Therefore, the real world estimating unit 4102 can take the various embodiments described above.
[2364]
The image generation unit 4103 generates and generates a signal that is closer to the signal of the real world 1 based on the real world estimation information indicating the estimated signal of the real world 1 supplied from the real world estimation unit 4102. The signal is supplied to the selector 4112. Alternatively, the image generation unit 4103 is based on the data continuity information supplied from the data continuity detection unit 4101 and the real world estimation information indicating the estimated signal of the real world 1 supplied from the real world estimation unit 4102. Then, a signal that is closer to the signal of the real world 1 is generated, and the generated signal is supplied to the selector 4112.
[2365]
That is, the image generation unit 4103 generates an image closer to the image of the real world 1 based on the real world estimation information, and supplies the image to the selector 4112. Alternatively, the image generation unit 4103 generates an image that is closer to the image of the real world 1 based on the data continuity information and the real world estimation information, and supplies the generated image to the selector 4112.
[2366]
As described above, the image generation unit 4103 has basically the same configuration and function as the image generation unit 103 in FIG. Therefore, the image generation unit 4103 can adopt the various embodiments described above.
[2367]
The image generation unit 4104 performs predetermined image processing on the input image to generate an image, and supplies the image to the selector 4112.
[2368]
Note that the image processing performed by the image generation unit 4104 is not particularly limited as long as the image processing is different from the image processing performed by the data continuity detection unit 4101, the real world estimation unit 4102, and the image generation unit 4103.
[2369]
For example, the image generation unit 4104 can perform the conventional classification adaptive processing. FIG. 293 shows a configuration example of the image generation unit 4104 that executes the class classification adaptation processing. Note that the description of FIG. 293, that is, the details of the image generation unit 4104 that executes the classification adaptive processing will be described later. Also, the classification adaptive processing will be described together with the description of FIG. 293.
[2370]
The constant region detection unit 4105 includes a region detection unit 4111 and a selector 4112.
[2371]
The region detection unit 4111 determines whether the image (pixel of interest) supplied to the selector 4112 is a stationary region or a non-stationary region based on the region identification information supplied from the data continuity detection unit 4101. Then, the detection result is supplied to the selector 4112.
[2372]
Note that the region detection process performed by the region detection unit 4111 is not particularly limited. For example, when the above-described estimation error is supplied as region identification information, the region detection unit 4111 determines whether the supplied estimation error is a predetermined value. When the pixel of interest is smaller than the threshold, the pixel of interest of the input image is detected as a stationary region, while when the supplied estimation error is equal to or greater than a predetermined threshold, the pixel of interest of the input image is detected as a non-stationary region. .
[2373]
The selector 4112 selects one of the image supplied from the image generation unit 4103 and the image supplied from the image generation unit 4104 based on the detection result supplied from the region detection unit 4111, and selects The output image is output to the outside as an output image.
[2374]
That is, when the region detection unit 4111 detects that the target pixel is a stationary region, the selector 4112 determines whether the image supplied from the image generation unit 4103 (the pixel generated by the image generation unit 4103 in the target pixel of the input image) ) Is selected as the output image.
[2375]
On the other hand, if the region detection unit 4111 detects that the target pixel is a non-stationary region, the selector 4112 determines whether the image supplied from the image generation unit 4104 (the image generation unit 4104 (Generated pixels) is selected as an output image.
[2376]
Note that the selector 4112 can output an output image in units of pixels (output for each selected pixel) according to an external output destination, or can output a processed pixel until all pixels have been processed. Is stored, and when the processing of all the pixels is completed, all the pixels can be output collectively (the entire output image is set as one unit).
[2377]
Next, with reference to FIG. 293, details of the image generation unit 4104 that executes the class classification adaptive processing, which is an example of the image processing, will be described.
[2378]
In FIG. 293, it is assumed that the classification adaptive processing executed by the image generation unit 4104 is, for example, processing for improving the spatial resolution of an input image. That is, it is assumed that the input image, which is a standard resolution image, is converted into a predicted image, which is a high resolution image.
[2379]
In the following description, a standard resolution image will be appropriately referred to as an SD (Standard Definition) image, and pixels constituting the SD image will be appropriately referred to as SD pixels.
[2380]
Also in the following description, a high-resolution image will be appropriately referred to as an HD (High Definition) image, and pixels constituting the HD image will be appropriately referred to as HD pixels.
[2381]
Specifically, the class classification adaptive processing executed by the image generation unit 4104 is as follows.
[2382]
That is, first, in order to find the HD pixel of the prediction image (HD image) in the target pixel (SD pixel) of the input image (SD image), the SD pixel (hereinafter, referred to as the following) including the target pixel is arranged. Also in the description, such an SD pixel is referred to as a class tap), and each of the feature amounts is obtained, and a class pre-classified for each of the feature amounts is specified (a class code of a class tap group is specified). Do).
[2383]
Then, among a plurality of preset coefficient groups (each of the coefficient groups corresponds to one predetermined class code), each of the coefficients constituting the coefficient group corresponding to the specified class code is , SD pixels in the vicinity including the target pixel (in the following description, such SD pixels of the input image are referred to as prediction taps. The prediction taps may be the same as the class taps) ) Is used to calculate the HD pixel of the predicted image (HD image) in the target pixel (SD pixel) of the input image (SD image).
[2384]
More specifically, in FIG. 1, when a signal (distribution of light intensity) of the real world 1, which is an image, enters the sensor 2, an input image is output from the sensor 2.
[2385]
In FIG. 293, this input image (SD image) is supplied to an area extraction unit 4121 and an area extraction unit 4125 of the image generation unit 4104, respectively. The region extraction unit 4125 extracts, from the supplied input image, a class tap (an SD pixel existing at a preset position including a pixel of interest (SD pixel)) necessary for class classification, and a pattern detection unit. 4122. The pattern detection unit 4122 detects a pattern of the input image based on the input class tap.
[2386]
The class code determining unit 4123 determines a class code based on the pattern detected by the pattern detecting unit 4122, and outputs the class code to the coefficient memory 4124 and the area extracting unit 4125. The coefficient memory 4124 stores a coefficient for each class code obtained in advance by learning, reads a coefficient corresponding to the class code input from the class code determination unit 4123, and outputs the coefficient to the prediction calculation unit 4126.
[2387]
Note that the coefficient learning process of the coefficient memory 4124 will be described later with reference to the block diagram of the learning device in FIG. 294.
[2388]
The coefficients stored in the coefficient memory 4124 are coefficients used when generating a predicted image (HD image), as described later. Therefore, the coefficients stored in the coefficient memory 4124 are hereinafter referred to as prediction coefficients.
[2389]
The region extraction unit 4125 predicts, based on the class code input from the class code determination unit 4123, a prediction necessary to predictively generate a prediction image (HD image) from the input image (SD image) input from the sensor 2. A tap (an SD pixel existing at a preset position including the target pixel) is extracted in accordance with the class code, and output to the prediction calculation unit 4126.
[2390]
The prediction operation unit 4126 performs a product-sum operation using the prediction tap input from the region extraction unit 4125 and the prediction coefficient input from the coefficient memory 4124, and calculates a target pixel (SD pixel) of the input image (SD image). ), And outputs the HD pixel of the predicted image (HD image) to the selector 4112.
[2391]
More specifically, the coefficient memory 4124 outputs a prediction coefficient corresponding to the class code supplied from the class code determination unit 4123 to the prediction calculation unit 4126. The prediction calculation unit 4126 uses the prediction tap extracted from the pixel value at a predetermined pixel position of the input image supplied from the region extraction unit 4125 and the prediction coefficient supplied from the coefficient memory 4124, using the following equation ( 237), the HD pixel of the predicted image (HD image) is obtained (predicted and estimated).
[2392]
188
Figure 2004246526
Figure 2004246526
[2393]
In Expression (237), q ′ represents an HD pixel of the predicted image (HD image). ciEach (i is an integer value of 1 to n) represents each prediction tap (SD pixel). Also, diRepresents each of the prediction coefficients.
[2394]
As described above, since the image generation unit 4104 predicts and estimates an HD image corresponding to the SD image (input image), the HD image output from the image generation unit 4104 is referred to as a predicted image.
[2395]
FIG. 294 shows the prediction coefficients (d in Expression (237)) stored in the coefficient memory 4124 of the image generation unit 4104.i) Represents a learning device (a prediction coefficient calculation device).
[2396]
In FIG. 294, a predetermined image is input as a teacher image (HD image) to each of the down-converter 4141 and the normal equation generator 4146.
[2397]
The down-conversion unit 4146 generates a student image (SD image) having a lower resolution than the teacher image from the input teacher image (HD image) (a down-converted teacher image is used as a student image), and an area extracting unit 4142 and the area extraction unit 4145.
[2398]
As described above, since the learning device 4131 is provided with the down-conversion unit 4141, the teacher image (HD image) does not need to be a higher resolution image than the input image from the sensor 2 (FIG. 1). . This is because if a teacher image in which a teacher image is down-converted (resolution is reduced) is an SD image, the teacher image for the student image is an HD image. Therefore, the teacher image may be, for example, the input image itself from the sensor 2.
[2399]
The area extraction unit 4142 extracts a class tap (SD pixel) necessary for class classification from the student image (SD image) supplied from the down-conversion unit 4141 and outputs the class tap (SD pixel) to the pattern detection unit 4143. Pattern detecting section 4143 detects the input class tap pattern, and outputs the detection result to class code determining section 4144. The class code determination unit 4144 determines a class code corresponding to the input pattern, and outputs the class code to each of the region extraction unit 4145 and the normal equation generation unit 4146.
[2400]
The region extraction unit 4145 extracts a prediction tap (SD pixel) from the student image (SD image) input from the down-conversion unit 4141 based on the class code input from the class code determination unit 4144, and generates a normal equation generation unit. 4146.
[2401]
Note that each of the above-described region extraction unit 4142, pattern detection unit 4143, class code determination unit 4144, and region extraction unit 4145 is the same as region extraction unit 4121, pattern detection unit 4122, and class code determination unit 4104 of image generation unit 4104 in FIG. Each of the unit 4123 and the area extracting unit 4125 has basically the same configuration and function.
[2402]
The normal equation generation unit 4146 calculates, for each class code, a prediction tap (SD pixel) of a student image (SD image) input from the region extraction unit 4145 for all the class codes input from the class code determination unit 4144. Then, a normal equation is generated from the HD image of the teacher image (HD image) and supplied to the coefficient determination unit 4147.
[2403]
When a normal equation corresponding to a predetermined class code is supplied from the normal equation generation section 4146, the coefficient determination section 4147 calculates each prediction coefficient from the normal equation and stores the coefficient in the coefficient memory 4124 in association with the class code. Let it.
[2404]
The normal equation generating unit 4146 and the coefficient determining unit 4147 will be described in more detail.
[2405]
In the above equation (237), before learning, the prediction coefficient diAre undetermined coefficients. Learning is performed by inputting HD pixels of a plurality of teacher images (HD images) for each class code. There are m HD pixels corresponding to the predetermined class code, and each of the m HD pixels is represented by qkWhen (k is an integer from 1 to m), the following equation (238) is set from the equation (237).
[2406]
189
Figure 2004246526
Figure 2004246526
[2407]
That is, Expression (238) calculates the predetermined HD pixel q by calculating the right side.kCan be estimated and estimated. Note that in equation (238), ekRepresents an error. That is, the HD pixel q of the predicted image (HD image) which is the operation result on the right sidek’Is the actual HD pixel qkDoes not exactly coincide with the predetermined error ekincluding.
[2408]
Therefore, in equation (238), the error ekPrediction coefficient d that minimizes the sum of squares ofiIs obtained by learning, the prediction coefficient diIs the actual HD pixel qkIt can be said that this is the most suitable coefficient for predicting.
[2409]
Therefore, for example, m (where m is an integer greater than n) HD pixels q collected by learningkAnd the optimal prediction coefficient d by the least squares methodiCan be uniquely determined.
[2410]
That is, the prediction coefficient d on the right side of the equation (238)iIs obtained by the least square method, is expressed by the following equation (239).
[2411]
[Equation 190]
Figure 2004246526
Figure 2004246526
[2412]
Therefore, if the normal equation represented by the equation (239) is generated, the prediction coefficient d is solved by solving the normal equation.iIs uniquely determined.
[2413]
Specifically, when each of the matrices of the normal equation represented by the equation (239) is defined as in the following equations (240) to (242), the normal equation is represented by the following equation (243). expressed.
[2414]
[Equation 191]
Figure 2004246526
Figure 2004246526
[2415]
[Equation 192]
Figure 2004246526
Figure 2004246526
[2416]
[Equation 193]
Figure 2004246526
Figure 2004246526
[2417]
[Equation 194]
Figure 2004246526
Figure 2004246526
[2418]
As shown in equation (241), the matrix DMATIs a prediction coefficient d to be obtained.iIt is. Therefore, in equation (243), the matrix C on the left sideMATAnd the matrix Q on the right sideMATIs determined, the matrix DMAT(Ie, the prediction coefficient di) Can be calculated.
[2419]
More specifically, as shown in equation (240), matrix CMATIs a prediction tap cikCan be calculated if is known. Prediction tap cikIs extracted by the region extraction unit 4145, so that the normal equation generation unit 4146 calculates the prediction tap c supplied from the region extraction unit 4145.ikMatrix C using each ofMATCan be calculated.
[2420]
Also, as shown in equation (242), the matrix QMATIs a prediction tap cikAnd HD pixel qkCan be calculated if is known. Prediction tap cikIs the matrix CMATAre the same as those contained in each of the components, and the HD pixel qkIs the prediction tap cikAre HD pixels of the teacher image with respect to the target pixel (SD pixel of the student image) included in. Therefore, the normal equation generation unit 4146 calculates the prediction tap c supplied from the region extraction unit 4145.ikAnd the matrix Q using the teacher imageMATCan be calculated.
[2421]
In this way, the normal equation generation unit 4146 outputs the matrix CMATAnd matrix QMATIs calculated, and the calculation result is supplied to the coefficient determination unit 4147 in association with the class code.
[2422]
The coefficient determining unit 4147 calculates the matrix D of the above equation (243) based on the normal equation corresponding to the supplied predetermined class code.MATPrediction coefficient d which is each component ofiIs calculated.
[2423]
Specifically, the normal equation of the above equation (243) can be modified as the following equation (244).
[2424]
[Equation 195]
Figure 2004246526
Figure 2004246526
[2425]
In equation (244), the matrix D on the left sideMATIs the prediction coefficient d to be obtainediIt is. Also, the matrix CMATAnd matrix QMATAre supplied from the normal equation generating unit 4146. Therefore, the coefficient determining unit 4147 obtains the matrix C corresponding to the predetermined class code from the normal equation generating unit 4146.MATAnd matrix QMATAre supplied, the matrix operation on the right side of the equation (244) is performed to obtain the matrix DMATIs calculated, and the calculation result (prediction coefficient di) Is stored in the coefficient memory 4124 in association with the class code.
[2426]
Note that, as described above, the class classification adaptation process differs from, for example, a simple interpolation process in that components not included in the SD image but included in the HD image are reproduced. That is, the adaptive processing looks the same as the interpolation processing using the so-called interpolation filter as far as only the above-mentioned equation (237) is seen, but the prediction coefficient d corresponding to the coefficient of the interpolation filter is used.iIs obtained by learning using teacher data and student data, so that the components included in the HD image can be reproduced. For this reason, the above-described classification adaptive processing can be called processing having an image creation (resolution creation) effect.
[2427]
Further, in the above-described example, the case of improving the spatial resolution has been described as an example. However, according to the classification adaptive processing, various coefficients obtained by performing learning while changing teacher data and student data are used. Thus, for example, it is possible to perform improvement of S / N (Signal to Noise Ratio), improvement of blur, and other various processes.
[2428]
That is, for example, in order to improve the S / N and the blur by the classification adaptive processing, image data having a high S / N is used as teacher data, and an image in which the S / N of the teacher data is reduced is used. (Or a blurred image) may be used as the student data to determine the coefficient.
[2429]
The configuration of the image generation unit 4104 that executes the class classification adaptive processing and the configuration of the learning device 4131 have been described above.
[2430]
Note that, as described above, the image generation unit 4104 may be configured to execute image processing other than the class classification adaptive processing. However, for the sake of simplicity, in the following description, the image generation unit 4104 The configuration is the configuration shown in FIG. 293 described above. That is, hereinafter, it is assumed that the image generation unit 4104 generates an image having higher spatial resolution than the input image by executing the classification adaptive processing, and supplies the image to the selector 4112.
[2431]
Next, the signal processing of the signal processing device (FIG. 292) to which the first combination method is applied will be described with reference to FIG.
[2432]
Here, the data continuity detecting unit 4101 determines the direction of the continuity (spatial direction) and one direction of the spatial direction at the position of interest of the signal of the signal of the real world 1 (FIG. 1) which is an image. It is assumed that an X direction (an angle between the sensor 2 (FIG. 1) and a direction parallel to a predetermined side of the detection element) is calculated by the least square method, and the calculated angle is output as data continuity information.
[2433]
It is also assumed that the data continuity detecting unit 4101 outputs an estimation error (error in the method of least squares) calculated together with the calculation of the angle as the area specifying information.
[2434]
In FIG. 1, when a signal of the real world 1 which is an image is incident on the sensor 2, an input image is output from the sensor 2.
[2435]
In FIG. 292, this input image is input to a data continuity detecting unit 4101 and a real world estimating unit 4102, and is also input to an image generating unit 4104.
[2436]
Therefore, in step S4101 in FIG. 295, the image generation unit 4104 executes the above-described class classification adaptation processing with a predetermined SD pixel of the input image (SD image) as a pixel of interest, and executes the HD pixel of the prediction image (HD image). (HD pixel in the pixel of interest) is generated and supplied to the selector 4112.
[2437]
Hereinafter, when distinguishing between the pixel output from the image generation unit 4104 and the pixel output from the image generation unit 4103, the pixel output from the image generation unit 4104 is referred to as a first pixel and The pixel output from the unit 4103 is referred to as a second pixel.
[2438]
Hereinafter, the processing executed by the image generation unit 4104 (in this case, the processing of step S4101) is referred to as “execution processing of the classification adaptive processing”. Details of the “execution process of the class classification adaptive process” in this example will be described later with reference to the flowchart in FIG.
[2439]
On the other hand, in step S4102, the data continuity detecting unit 4101 detects an angle corresponding to the direction of continuity and calculates an estimation error thereof. The detected angle is supplied to each of the real world estimation unit 4102 and the image generation unit 4103 as data continuity information. The calculated estimation error is supplied to the area detecting unit 4111 as area specifying information.
[2440]
In step S4103, the real world estimation unit 4102 estimates a signal of the real world 1 based on the angle detected by the data continuity detection unit 4101 and the input image.
[2441]
Note that, as described above, the estimation process performed by the real world estimation unit 4102 is not particularly limited, and various methods described above can be used. Here, for example, the real world estimating unit 4102 converts a function F representing the signal of the real world 1 (the function F is also referred to as an optical signal function F in the following description) into a predetermined function f (hereinafter, referred to as an optical signal function F). Also in the description, it is assumed that the signal of the real world 1 (optical signal function F) is estimated by approximating the function f with an approximate function f).
[2442]
Also, here, for example, the real world estimation unit 4102 supplies the feature amount (coefficient) of the approximation function f to the image generation unit 4103 as real world estimation information.
[2443]
In step S4104, the image generation unit 4103 assigns the first pixel (HD pixel) generated by the class classification adaptive process of the image generation unit 4104 based on the real world 1 signal estimated by the real world estimation unit 4102. A corresponding second pixel (HD pixel) is generated and supplied to the selector 4112.
[2444]
In this case, since the feature amount (coefficient) of the approximation function f is supplied from the real world estimation unit 4102, the image generation unit 4103, for example, performs the approximation function f based on the supplied feature amount of the approximation function f. Is integrated in a predetermined integration range to generate a second pixel (HD pixel).
[2445]
However, the integration range is a range in which a second pixel having the same size (the same resolution) as the first pixel (HD pixel) output from the image generation unit 4104 can be generated. That is, in the spatial direction, the integration range is the pixel width of the second pixel to be generated.
[2446]
Note that the order of the “execution process of the class classification adaptation process” in step S4101 and the series of processes in steps S4102 to S4104 are not limited to the example in FIG. 295, and the series of processes in steps S4102 to S4104 are executed first. Alternatively, the “execution process of the class classification adaptation process” in step S4101 and the series of processes in steps S4102 to S4104 may be performed simultaneously.
[2247]
In step S4105, the region detecting unit 4111 generates the fourth image generated by the image generating unit 4103 in the process of step S4104 based on the estimation error (region specifying information) calculated by the data continuity detecting unit 4101 in the process of step S4102. An area of two pixels (HD pixels) is detected.
[2448]
That is, the second pixel is an HD pixel in the SD pixel of the input image used as the target pixel by the data continuity detecting unit 4101. Accordingly, the type of the region of interest (the SD pixel of the input image) and the region of the second pixel (HD pixel) (the steady region or the unsteady region) are the same.
[2449]
The area specifying information output by the data continuity detecting unit 4101 is an estimation error when the angle at the target pixel is calculated by the least square method.
[2450]
Therefore, the area detection unit 4111 compares the estimation error for the pixel of interest (the SD pixel of the input image) supplied from the data continuity detection unit 4101 with a preset threshold value. If the value is smaller than the threshold value, the second pixel is detected as being in a stationary region. On the other hand, if the estimation error is equal to or greater than the threshold value, the second pixel is detected as being in a non-stationary region. Then, the detection result is supplied to the selector 4112.
[2451]
When the detection result of the area detection unit 4111 is supplied to the selector 4112, in step S4106, the selector 4112 determines whether the detected area is a steady area.
[2452]
If it is determined in step S4106 that the detected area is a steady area, the selector 4112 outputs the second pixel supplied from the image generation unit 4103 to the outside in step S4107 as an output image.
[2453]
On the other hand, if it is determined in step S4106 that the detected area is not a stationary area (is an unsteady area), the selector 4112 determines in step S4108 the first area supplied from the image generation unit 4104. The pixels are output to the outside as an output image.
[2454]
Thereafter, in step S4109, it is determined whether or not processing of all pixels has been completed. If it is determined that processing of all pixels has not been completed, the processing returns to step S4101. That is, the processing of steps S4101 to S4109 is repeated until the processing of all pixels is completed.
[2455]
If it is determined in step S4109 that the processing for all pixels has been completed, the processing ends.
[2456]
As described above, in the example of the flowchart in FIG. 295, every time the first pixel (HD pixel) and the second pixel (HD pixel) are generated, the first pixel or the second pixel is output as the output image. It is output in pixel units.
[2457]
However, as described above, it is not indispensable that the output is performed on a pixel-by-pixel basis, and all the pixels may be output collectively as an output image after all the pixels have been processed. In this case, in each of the processing in step S4107 and step S4108, the pixel (the first pixel or the second pixel) is not output, but is temporarily stored in the selector 4112, and after the processing in step S4109, all the pixels are output. Is added.
[2458]
Next, with reference to the flowchart in FIG. 296, details of the “execution process of the class classification adaptive process” (for example, the process of step S4101 in FIG. 295 described above) executed by the image generation unit 4104 having the configuration in FIG. 293 will be described. I do.
[2459]
When the input image (SD image) from the sensor 2 is input to the image generation unit 4104, in step S4121, each of the region extraction unit 4121 and the region extraction unit 4125 inputs the input image.
[2460]
In step S4122, the region extraction unit 4121 selects, from the input image, a pixel (SD pixel) located at each of the target pixel (SD pixel) and a preset relative position (one or more positions) from the target pixel. ) Is extracted as a class tap and supplied to the pattern detection unit 4122.
[2461]
In step S4123, the pattern detection unit 4122 detects the supplied pattern of the class tap and supplies the pattern to the class code determination unit 4123.
[2462]
In step S4124, the class code determination unit 4123 determines a class code that matches the supplied class tap pattern from among a plurality of preset class codes, and sets the class code to the coefficient memory 4124 and the area extraction unit 4125. To supply.
[2463]
In step S4125, the coefficient memory 4124 reads a prediction coefficient (group) to be used from among a plurality of prediction coefficients (groups) determined in advance by a learning process based on the supplied class code, and executes a prediction operation unit. 4126.
[2464]
The learning process will be described later with reference to the flowchart in FIG. 297.
[2465]
In step S4126, the region extraction unit 4125 determines the target pixel (SD pixel) and the preset relative position (one or more positions) from the target pixel in the input image in accordance with the supplied class code. A pixel (SD pixel) located at each of the positions set independently of the position of the class tap, but may be the same position as the position of the class tap) is extracted as a prediction tap, and prediction is performed. It is supplied to the arithmetic unit 4126.
[2466]
In step S4127, the prediction calculation unit 4126 calculates the prediction tap supplied from the region extraction unit 4125 using the prediction coefficient supplied from the coefficient memory 4124, generates a prediction image (first pixel), and generates a prediction image (first pixel). (In the example of FIG. 292, the selector 4112).
[2467]
Specifically, the prediction calculation unit 4126 converts each of the prediction taps supplied from the region extraction unit 4125 into ci(I is any integer from 1 to n), and each of the prediction coefficients supplied from the coefficient memory 4124 is diBy calculating the right side of the above equation (237), the HD pixel q ′ in the pixel of interest (SD pixel) is calculated, and is calculated as a predetermined pixel (first pixel) of the predicted image (HD image). ) And output to the outside. Thereafter, the process ends.
[2468]
Next, with reference to the flowchart of FIG. 297, a learning process (processing of generating a prediction coefficient used by the image generation unit 4104 by learning) performed by the learning device 4131 (FIG. 294) for the image generation unit 4104 will be described.
[2469]
In step S4141, each of the down-converting unit 4141 and the normal equation generating unit 4146 inputs the supplied predetermined image as a teacher image (HD image).
[2470]
In step S4142, the down-converting unit 4141 generates a student image (SD image) by down-converting (reducing the resolution) the input teacher image, and supplies it to each of the region extracting unit 4142 and the region extracting unit 4145. .
[2471]
In step S4143, the region extracting unit 4142 extracts a class tap from the supplied student image and outputs the class tap to the pattern detecting unit 4143. The processing in step S4143 is basically the same as the processing in step S4122 (FIG. 296) described above.
[2472]
In step S4144, the pattern detection unit 4143 detects a pattern for determining a class code from the supplied class tap and supplies the pattern to the class code determination unit 4144. The process in step S4144 is basically the same as the process in step S4123 (FIG. 296) described above.
[2473]
In step S4145, the class code determination unit 4144 determines a class code based on the supplied class tap pattern, and supplies the class code to each of the region extraction unit 4145 and the normal equation generation unit 4146. The processing in step S4145 is basically the same as the processing in step S4124 (FIG. 296) described above.
[2474]
In step S4146, the region extraction unit 4145 extracts a prediction tap from the student image corresponding to the supplied class code, and supplies the prediction tap to the normal equation generation unit 4146. The processing in step S4146 is basically the same as the processing in step S4126 (FIG. 296) described above.
[2475]
In step S4147, the normal equation generation unit 4146 uses the prediction tap (SD pixel) supplied from the region extraction unit 4145 and a predetermined HD pixel of the teacher image (HD image) to obtain the above equation (239) (that is, The normal equation represented by Expression (243) is generated, and the generated normal equation is associated with the class code supplied from the class code determination unit 4144 and supplied to the coefficient determination unit 4147.
[2476]
In step S4148, the coefficient determination unit 4147 determines the prediction coefficient by solving the supplied normal equation, that is, calculates the prediction coefficient by calculating the right side of the above-described equation (244), and calculates the supplied class code. In the coefficient memory 4124.
[2377]
Thereafter, in step S4149, it is determined whether or not processing has been performed on all pixels. If it is determined that processing has not been performed on all pixels, the processing returns to step S4143. That is, the processing of steps S4143 to S4149 is repeated until the processing of all pixels is completed.
[2478]
Then, in step S4149, if it is determined that the processing has been performed on all the pixels, the processing ends.
[2479]
Next, a second combined method will be described with reference to FIGS. 298 and 299.
[2480]
FIG. 298 illustrates a configuration example of a signal processing device to which the second combination technique is applied.
[2481]
In FIG. 298, the portions corresponding to the signal processing device (FIG. 292) to which the first combination method is applied are denoted by the corresponding reference numerals.
[2482]
In the configuration example of FIG. 292 (first combination method), the area specifying information is output from the data continuity detection unit 4101 and input to the area detection unit 4111. However, the configuration example of FIG. In the combined method, the area specifying information is output from the real world estimation section 4102 and input to the area detection section 4111.
[2483]
The area specifying information is not particularly limited, and may be information newly generated after the real world estimating unit 4102 estimates the signal of the real world 1 (FIG. 1), or when the signal of the real world 1 is estimated. May be information generated in association with.
[2484]
Specifically, for example, an estimation error can be used as the area specifying information.
[2485]
Here, the estimation error will be described.
[2486]
As described above, the estimation error (the area specifying information in FIG. 292) output from the data continuity detecting unit 4101 is, for example, such that the data continuity information output from the data continuity detecting unit 4101 is an angle, and When the angle is calculated by the method of least squares, it is an estimation error that is additionally calculated by the calculation of the method of least squares.
[2487]
On the other hand, the estimation error (region identification information in FIG. 298) output from the real world estimation unit 4102 is, for example, a mapping error.
[2488]
That is, since the signal of the real world 1 is estimated by the real world estimation unit 4102, it is possible to generate a pixel of an arbitrary size (calculate a pixel value) from the estimated signal of the real world 1. . Here, generating a new pixel in this way is called mapping.
[2489]
Therefore, the real world estimating unit 4102 estimates the signal of the real world 1 and then uses the estimated real world 1 signal as the target pixel of the input image (when the real world 1 is estimated, the target pixel is used as the target pixel. A new pixel at the position where the (pixel) was located is generated (mapped). That is, the real world estimating unit 4102 predicts and calculates the pixel value of the target pixel of the input image from the estimated signal of the real world 1.
[2490]
Then, the real world estimating unit 4102 calculates the difference between the pixel value of the new mapped pixel (the predicted pixel value of the target pixel of the input image) and the pixel value of the target pixel of the actual input image. This difference is referred to herein as a mapping error.
[2491]
By calculating the mapping error (estimation error) in this way, the real world estimating unit 4102 can supply the calculated mapping error (estimation error) to the region detection unit 4111 as region specifying information.
[2492]
The region detection process performed by the region detection unit 4111 is not particularly limited, as described above. For example, the real world estimation unit 4102 uses the above-described mapping error (estimation error) as the region identification information as the region identification information. In the case where the supplied mapping error is supplied to the region 4111, the region detection unit 4111 detects that the pixel of interest in the input image is a stationary region when the supplied mapping error (estimation error) is smaller than a predetermined threshold. When the error (estimated error) is equal to or greater than a predetermined threshold, the target pixel of the input image is detected as being in a non-stationary region.
[2493]
Other configurations are basically the same as those in FIG. That is, the signal processing device (FIG. 298) to which the second combined method is applied also has a data and data structure having basically the same configuration and function as the signal processing device (FIG. 292) to which the first combined method is applied. A continuity detector 4101, a real world estimator 4102, an image generator 4103, an image generator 4104, and a steady area detector 4105 (area detector 4111 and selector 4112) are provided.
[2494]
FIG. 299 is a flowchart illustrating signal processing (signal processing by the second combined technique) of the signal processing device having the configuration in FIG. 298.
[2495]
The processing of the signal of the second combined technique is similar to the processing of the signal of the first combined technique (the processing shown in the flowchart of FIG. 295). Therefore, here, the description of the processing described in the first combined technique will be omitted as appropriate, and the signal of the second combined technique different from the first combined technique will be described below with reference to the flowchart of FIG. The following description focuses on the processing of.
[2496]
Here, the data continuity detecting unit 4101 determines the angle (the continuity direction (spatial direction) and the spatial direction at the target position of the signal of the real world 1 (FIG. Is calculated by the least square method, and the calculated angle is output as data continuity information. The X direction, which is one direction of the sensor 2 (the direction parallel to a predetermined side of the detection element of the sensor 2 (FIG. 1)) is calculated. I do.
[2497]
However, as described above, in the first combined method, the data continuity detecting unit 4101 supplies the region specifying information (for example, the estimation error) to the region detecting unit 4111, whereas the second combined method. In the method, the real world estimating unit 4102 supplies area specifying information (for example, an estimation error (mapping error)) to the area detecting unit 4111.
[2498]
Therefore, in the second combined method, the process of step S4162 is executed as the process of the data continuity detecting unit 4101. This processing corresponds to the processing of step S4102 in FIG. 295 in the first combination method. That is, in step S4162, the data continuity detecting unit 4101 detects an angle corresponding to the direction of continuity based on the input image, and uses the detected angle as data continuity information and the real world estimating unit 4102 to generate an image. To each of the units 4103.
[2499]
In the second combined technique, the process of step S4163 is executed as the process of the real world estimation unit 4102. This processing corresponds to the processing of step S4103 in FIG. 295 in the first combination method. That is, in step S4163, the real world estimating unit 4102 estimates the signal of the real world 1 (FIG. 1) based on the angle detected by the data continuity detecting unit 4101 in the process of step S4162, and estimates the signal. An estimation error of the signal of the real world 1, that is, a mapping error is calculated, and the calculated error is supplied to the area detection unit 4111 as area identification information.
[2500]
The other processing is basically the same as the corresponding processing of the first combination method (corresponding processing of the processing shown in the flowchart of FIG. 295), and thus the description thereof is omitted.
[2501]
Next, a third combined method will be described with reference to FIGS.
[2502]
FIG. 300 illustrates a configuration example of a signal processing device to which the third combination technique is applied.
[2503]
In FIG. 300, portions corresponding to the signal processing device (FIG. 292) to which the first combination method is applied are denoted by the corresponding reference numerals.
[2504]
In the configuration example of FIG. 292 (first combination method), the steady-state area detection unit 4105 is provided after the image generation unit 4103 and the image generation unit 4104. However, the configuration example of FIG. In the combined use method), the corresponding steady area detection unit 4161 is provided after the data continuity detection unit 4101 and before the real world estimation unit 4102 and the image generation unit 4104.
[2505]
Due to such a difference in arrangement position, there is a slight difference between the constant region detecting unit 4105 in the first combined method and the constant region detecting unit 4161 in the third combined method. Therefore, the steady region detection unit 4161 will be described focusing on this difference.
[2506]
The steady area detecting section 4161 is provided with an area detecting section 4171 and an execution command generating section 4172. Among these, the area detecting section 4171 has basically the same configuration and function as the area detecting section 4111 (FIG. 292) of the steady area detecting section 4105. On the other hand, the function of execution command generation section 4172 is slightly different from that of selector 4112 (FIG. 292) of steady area detection section 4105.
[2507]
That is, as described above, the selector 4112 in the first combination method uses one of the image from the image generation unit 4103 and the image from the image generation unit 4104 based on the detection result of the area detection unit 4111. And outputs the selected image as an output image. As described above, the selector 4112 receives an image from the image generation unit 4103 and an image from the image generation unit 4104 in addition to the detection result of the area detection unit 4111, and outputs an output image.
[2508]
On the other hand, the execution command generation unit 4172 in the third combination method uses the detection result of the region detection unit 4171 to generate a new pixel in the target pixel of the input image (the pixel set as the target pixel by the data continuity detection unit 4101). Whether the image generation unit 4103 or the image generation unit 4104 executes the generation process is selected.
[2509]
That is, when the region detection unit 4171 supplies a detection result indicating that the pixel of interest in the input image is a stationary region to the execution command generation unit 4172, the execution command generation unit 4172 selects the image generation unit 4103 and performs real-world estimation. A command to start execution of the process (hereinafter, such a command is referred to as an execution command) is supplied to the unit 4102. Then, the real world estimation unit 4102 starts the processing, generates real world estimation information, and supplies the information to the image generation unit 4103. The image generation unit 4103 generates a new image based on the supplied real-world estimation information (and, if necessary, the data continuity information supplied from the data continuity detection unit 4101), and outputs it. Output as an image to the outside.
[2510]
On the other hand, when the region detection unit 4171 supplies a detection result indicating that the pixel of interest in the input image is a non-stationary region to the execution command generation unit 4172, the execution command generation unit 4172 selects the image generation unit 4104. , An execution command is supplied to the image generation unit 4104. Then, the image generation unit 4104 starts the processing, performs predetermined image processing (in this case, a class classification adaptive processing) on the input image, generates a new image, and uses it as an output image. Output to
[2511]
As described above, the execution command generation unit 4172 in the third combination method inputs the detection result of the area detection unit 4171 and outputs an execution command. That is, the execution command generation unit 4172 does not input or output an image.
[2512]
Note that the configuration other than the steady region detection unit 4161 is basically the same as that of FIG. 292. That is, in the signal processing device to which the second combined method is applied (the signal processing device of FIG. 300), the configuration and the function are basically the same as those of the signal processing device to which the first combined method is applied (FIG. 292). , A data continuity detecting unit 4101, a real world estimating unit 4102, an image generating unit 4103, and an image generating unit 4104.
[2513]
However, in the third combined method, each of the real world estimation unit 4102 and the image generation unit 4104 does not execute its processing unless an execution command is input from the execution command generation unit 4172.
[2514]
By the way, in the example of FIG. 300, the output unit of the image is a pixel unit. Therefore, although not shown, in order to make the output unit the whole image of one frame (to output all the pixels collectively), for example, the image synthesis unit 4103 and the image generation unit 4104 are provided with an image synthesis unit. A part may be further provided.
[2515]
This image synthesis unit adds (combines) the pixel value output from the image generation unit 4103 and the pixel value output from the image generation unit 4104, and sets the added value as the pixel value of the corresponding pixel. In this case, the one of the image generation unit 4103 and the image generation unit 4104 to which the execution command has not been supplied does not execute the process, and always supplies a predetermined constant value (for example, 0) to the image synthesis unit. .
[2516]
The image synthesizing unit repeatedly executes such processing for all the pixels, and when all the pixels have been processed, outputs all the pixels collectively (as one frame of image data) to the outside.
[2517]
Next, the signal processing of the signal processing device (FIG. 300) to which the third combination technique is applied will be described with reference to the flowchart in FIG.
[2518]
Here, as in the case of the first combination method, the data continuity detecting unit 4101 determines the angle (the direction of continuity (space direction) at the position of interest of the signal of the real world 1 (FIG. 1); An X direction which is one direction in the spatial direction (an angle between the X direction and a direction parallel to a predetermined side of the detection element of the sensor 2 (FIG. 1)) is calculated by the least square method, and the calculated angle is used as data continuity information. Suppose you want to output.
[2519]
It is also assumed that the data continuity detecting unit 4101 outputs an estimation error (error in the method of least squares) calculated together with the calculation of the angle as the area specifying information.
[2520]
In FIG. 1, when a signal of the real world 1 is incident on the sensor 2, an input image is output from the sensor 2.
[2521]
In FIG. 300, this input image is input to image generation section 4104, and also to data continuity detection section 4101 and real world estimation section 4102.
[2522]
Therefore, in step S4181 of FIG. 301, the data continuity detecting unit 4101 detects an angle corresponding to the continuity direction based on the input image and calculates an estimation error thereof. The detected angle is supplied to each of the real world estimation unit 4102 and the image generation unit 4103 as data continuity information. The calculated estimation error is supplied to the area detection unit 4171 as area specifying information.
[2523]
Note that the processing in step S4181 is basically the same as the processing in step S4102 (FIG. 295) described above.
[2524]
Further, as described above, at this point in time (unless an execution command is supplied from the execution command generation unit 4172), neither the real world estimation unit 4102 nor the image generation unit 4104 executes the processing.
[2525]
In step S4182, the region detection unit 4171 detects the target pixel of the input image (the data continuity detection unit 4101 detects the angle) based on the estimation error (the supplied region identification information) calculated by the data continuity detection unit 4101. In this case, the region of the pixel of interest is detected, and the detection result is supplied to the execution command generation unit 4172. Note that the processing in step S4182 is basically the same as the processing in step S4105 (FIG. 295) described above.
[2526]
When the detection result of the region detection unit 4171 is supplied to the execution command generation unit 4172, in step S4183, the execution command generation unit 4172 determines whether the detected region is a steady region. The processing in step S4183 is basically the same as the processing in step S4106 (FIG. 295) described above.
[2527]
If it is determined in step S4183 that the detected area is not the steady area, the execution command generation unit 4172 supplies an execution command to the image generation unit 4104. Then, in step S4184, the image generation unit 4104 executes “class classification adaptive processing execution processing” to generate the first pixel (HD pixel in the target pixel (SD pixel of the input image)), and in step S4185. , The first pixel generated by the classification adaptive processing is output to the outside as an output image.
[2528]
The processing in step S4184 is basically the same as the processing in step S4101 (FIG. 295) described above. That is, the flowchart in FIG. 296 is also a flowchart for explaining the details of the processing in step S4184.
[2529]
On the other hand, if it is determined in step S4183 that the detected area is a steady area, the execution command generation unit 4172 supplies an execution command to the real world estimation unit 4102. Then, in step S4186, the real world estimating unit 4102 estimates a signal of the real world 1 based on the angle detected by the data continuity detecting unit 4101 and the input image. The processing in step S4186 is basically the same as the processing in step S4103 (FIG. 295) described above.
[2530]
Then, in step S4187, the image generation unit 4103 uses the second signal in the detected area (that is, the target pixel (SD pixel) of the input image) based on the signal of the real world 1 estimated by the real world estimation unit 4102. (HD pixel), and outputs the second pixel as an output image in step S4188. The processing in step S4187 is basically the same as the processing in step S4104 (FIG. 295) described above.
[2531]
When the first pixel or the second pixel is output as the output image (after the processing in step S4185 or step S4188), it is determined in step S4189 whether or not the processing of all pixels has been completed. If it is determined that the process has not been completed, the process returns to step S4181. That is, the processing of steps S4181 to S4189 is repeated until the processing of all pixels is completed.
[2532]
If it is determined in step S4189 that the processing for all pixels has been completed, the processing ends.
[2533]
As described above, in the example of the flowchart in FIG. 301, every time the first pixel (HD pixel) and the second pixel (HD pixel) are generated, the first pixel or the second pixel is output as the output image. It is output in pixel units.
[2534]
However, as described above, if an image synthesizing unit (not shown) is further provided at the final stage (after the image generating unit 4103 and the image generating unit 4104) of the signal processing device having the configuration in FIG. After the processing is completed, it becomes possible to output all pixels collectively as an output image. In this case, in the processing in each of step S4185 and step S4188, the pixel (the first pixel or the second pixel) is output not to the outside but to the image synthesis unit. Then, before the process in step S4189, the image combining unit combines the pixel value of the pixel supplied from the image generating unit 4103 with the pixel value of the pixel supplied from the image generating unit 4104, and outputs the pixel of the output image. After the process of generating the image data and the process of step S4189, a process of outputting all the pixels by the image combining unit is added.
[2535]
Next, a fourth combined method will be described with reference to FIGS.
[2536]
FIG. 302 illustrates a configuration example of a signal processing device to which the fourth combination method is applied.
[2537]
In FIG. 302, portions corresponding to the signal processing device (FIG. 300) to which the third combination technique is applied are denoted by the corresponding reference numerals.
[2538]
In the configuration example of FIG. 300 (third combination method), the region specifying information is output from the data continuity detection unit 4101 and input to the region detection unit 4171. However, the configuration example of FIG. In the (method), the area specifying information is output from the real world estimation section 4102 and input to the area detection section 4171.
[2539]
Other configurations are basically the same as those in FIG. That is, the signal processing device (FIG. 302) to which the fourth combined method is applied also has a data and data structure having basically the same configuration and function as the signal processing device (FIG. 300) to which the third combined method is applied. A continuity detector 4101, a real world estimator 4102, an image generator 4103, an image generator 4104, and a steady area detector 4161 (area detector 4171 and execution command generator 4172) are provided.
[2540]
Note that, similarly to the third combination method, although not shown, in order to output all the pixels collectively, for example, an image synthesizing unit is further provided after the image generating unit 4103 and the image generating unit 4104. You can also.
[2541]
FIG. 303 is a flowchart for explaining signal processing (signal processing of the fourth combined technique) of the signal processing device having the configuration of FIG. 302.
[2542]
The signal processing of the fourth combined technique is similar to the signal processing of the third combined technique (the processing shown in the flowchart of FIG. 301). Therefore, here, the description of the processing described in the third combined technique will be omitted as appropriate, and the signal of the fourth combined technique different from the third combined technique will be described below with reference to the flowchart of FIG. The following description focuses on the processing of.
[2543]
Here, the data continuity detecting unit 4101 determines the angle (the direction of the continuity (spatial direction) at the position of interest of the signal of the real world 1 (FIG. 1) and the spatial direction, as in the third combined method. Is calculated by the least square method, and the calculated angle is output as data continuity information. The X direction, which is one direction of the sensor 2 (the direction parallel to a predetermined side of the detection element of the sensor 2 (FIG. 1)), is calculated. I do.
[2544]
However, as described above, in the third combination method, the data continuity detection unit 4101 supplies the region identification information (for example, the estimation error) to the region detection unit 4171, whereas the fourth combination method In the method, the real world estimating unit 4102 supplies the region specifying information (for example, an estimation error (mapping error)) to the region detecting unit 4171.
[2545]
Therefore, in the fourth combined method, the process of step S4201 is executed as the process of the data continuity detecting unit 4101. This processing corresponds to the processing of step S4181 in FIG. 301 in the third combined technique. That is, in step S4201, the data continuity detecting unit 4101 detects an angle corresponding to the direction of continuity based on the input image, and uses the detected angle as data continuity information and the real-world estimating unit 4102 to generate an image. To each of the units 4103.
[2546]
In the fourth combined method, the process of step S4202 is executed as the process of the real world estimation unit 4102. This processing corresponds to the processing of step S4182 in FIG. 295 in the third combined method. That is, the real world estimating unit 4102 estimates the signal of the real world 1 (FIG. 1) based on the angle detected by the data continuity detecting unit 4101 in the process of step S4202, and A signal estimation error, that is, a mapping error is calculated, and the calculated error is supplied to the region detection unit 4171 as region identification information.
[2547]
The other processing is basically the same as the corresponding processing of the third combined method (corresponding processing of the processing shown in the flowchart of FIG. 301), and thus the description thereof is omitted.
[2548]
Next, a fifth combination method will be described with reference to FIGS.
[2549]
FIG. 304 illustrates a configuration example of a signal processing device to which the fifth combination technique is applied.
[2550]
In FIG. 304, portions corresponding to signal processing devices (FIGS. 300 and 302) to which the third and fourth combined techniques are applied are denoted by corresponding reference numerals.
[2551]
In the configuration example of FIG. 300 (third combination technique), one stationary region detection unit 4161 is arranged after the data continuity detection unit 4101 and before the real world estimation unit 4102 and the image generation unit 4104. Is established.
[2552]
Further, in the configuration example of FIG. 302 (fourth combined technique), one stationary region detection unit 4161 is provided after the real world estimation unit 4102 and before the image generation unit 4103 and the image generation unit 4104. Is established.
[2553]
On the other hand, in the configuration example of FIG. 304 (fifth combination method), the real world estimation unit 4102 and the image generation unit follow the data continuity detection unit 4101 similarly to the third combination method. A steady area detection unit 4181 is provided at a stage preceding 4104. Further, similarly to the fourth combination method, a stationary region detection unit 4182 is provided after the real world estimation unit 4102 and before the image generation unit 4103 and the image generation unit 4104.
[2554]
Each of the constant region detection unit 4181 and the constant region detection unit 4182 has basically the same configuration and function as the constant region detection unit 4161 (FIG. 300 or FIG. 302). That is, each of the area detection section 4191 and the area detection section 4201 has basically the same configuration and function as the area detection section 4171. Further, both the execution command generation unit 4192 and the execution command generation unit 4202 have basically the same configuration and function as the execution command generation unit 4172.
[2555]
In other words, the fifth combined technique is a combination of the third combined technique and the fourth combined technique.
[2556]
That is, in the third combined technique and the fourth combined technique, one area specifying information (in the third combined technique, the area identifying information from the data continuity detecting unit 4101 is used, and in the fourth combined technique, Is the region specifying information from the real world estimation unit 4102), it is detected whether the target pixel of the input image is a stationary region or a non-stationary region. Therefore, in the third combination method and the fourth combination method, there is a possibility that the region is detected as a steady region, although the region is originally a non-stationary region.
[2557]
Therefore, in the fifth combined technique, attention is first paid to the input image based on the area specifying information from the data continuity detecting unit 4101 (referred to as first area specifying information in the description of the fifth combined technique). After detecting whether the pixel is a stationary region or a non-stationary region, the region identification information from the real world estimation unit 4102 (hereinafter referred to as second region identification information in the description of the fifth combined method) ), It is detected whether the target pixel of the input image is a stationary region or a non-stationary region.
[2558]
As described above, in the fifth combined method, the region detection process is performed twice, so that the detection accuracy of the steady region is improved as compared with the third combined method and the fourth combined method. . Furthermore, in the first combined technique and the second combined technique, as in the third combined technique and the fourth combined technique, only one steady-state area detection unit 4105 (FIG. 292 or 298) is provided. . Therefore, the detection accuracy of the steady region is improved as compared with the first combined technique and the second combined technique. As a result, it becomes possible to output image data closer to the signal of the real world 1 (FIG. 1) than any of the first to fourth combined methods.
[2559]
However, even in the first to fourth combined methods, an image generation unit 4104 that performs conventional image processing and a device or a program that generates an image using the continuity of data to which the present invention is applied (that is, data There is no difference that the continuity detecting unit 4101, the real world estimating unit 4102, and the image generating unit 4103) are used together.
[2560]
Therefore, even with the first to fourth combined methods, it is possible to output image data closer to the signal of the real world 1 (FIG. 1) than any of the conventional signal processing device and the signal processing of the present invention having the configuration of FIG. Becomes possible.
[2561]
On the other hand, from the viewpoint of processing speed, the first to fourth combined methods require only one region detection process, and therefore are superior to the fifth combined method in which the region detection process is performed twice. Will be.
[2562]
Therefore, the user (or manufacturer) or the like should selectively use a combined method that matches the required quality of the output image and the required processing time (time until the output image is output). Can be.
[2563]
The other configuration in FIG. 304 is basically the same as that in FIG. 300 or FIG. 302. That is, the signal processing device (FIG. 304) to which the fifth combined method is applied is basically the same as the signal processing device (FIG. 300 or FIG. 302) to which the third or fourth combined method is applied. A data continuity detecting unit 4101, a real world estimating unit 4102, an image generating unit 4103, and an image generating unit 4104 having a configuration and a function are provided.
[2564]
However, in the fifth combined method, the real world estimation unit 4102 sets the image generation unit 4103 as long as the execution command from the execution command generation unit 4202 is not input unless the execution command from the execution command generation unit 4192 is input. The image generation unit 4104 does not execute the processing unless an execution command is input from the execution command generation unit 4192 or the execution command generation unit 4202.
[2565]
Also, in the fifth combination method, similarly to the third and fourth combination methods, although not shown, in order to output all the pixels collectively, for example, the image generation unit 4103 and the image generation unit 4104 An image synthesizing unit may be further provided at a subsequent stage.
[2566]
Next, the signal processing of the signal processing device (FIG. 304) to which the fifth combination technique is applied will be described with reference to the flowchart in FIG. 305.
[2567]
Here, as in the case of the third and fourth combined methods, the data continuity detecting unit 4101 detects the angle (the continuity direction (space direction) at the target position of the signal of the real world 1 (FIG. 1)). ) And an X direction (a direction parallel to a predetermined side of the detection element of the sensor 2 (FIG. 1)) which is one direction in the spatial direction) is calculated by the least square method, and the calculated angle is calculated as a data constant. Suppose it is output as gender information.
[2568]
Also, here, as in the case of the third combined method, the data continuity detecting unit 4101 also calculates the estimation error (error of the least squares method) that is calculated when calculating the angle in the first manner. It is assumed that the information is output as area specifying information.
[2569]
Further, here, as in the case of the fourth combination method, it is assumed that real-world estimating section 4102 outputs a mapping error (estimation error) as second region identification information.
[2570]
In FIG. 1, when a signal of the real world 1 is incident on the sensor 2, an input image is output from the sensor 2.
[2571]
In FIG. 304, this input image is input to each of a data continuity detecting unit 4101, a real world estimating unit 4102, and an image generating unit 4104.
[2572]
Therefore, in step S4221 of FIG. 305, the data continuity detecting unit 4101 detects an angle corresponding to the direction of continuity based on the input image and calculates an estimation error. The detected angle is supplied to each of the real world estimation unit 4102 and the image generation unit 4103 as data continuity information. The calculated estimation error is supplied to the area detection unit 4191 as first area specifying information.
[2573]
The processing in step S4221 is basically the same as the processing in step S4181 (FIG. 301) described above.
[2574]
Further, as described above, at this point in time (unless an execution command is supplied from the execution command generation unit 4192), neither the real world estimation unit 4102 nor the image generation unit 4104 executes the processing.
[2575]
In step S4222, the region detection unit 4191 determines the pixel of interest (the data continuity detection unit 4101 determines the pixel of interest in the input image) When the angle is detected, an area of the pixel of interest) is detected, and the detection result is supplied to the execution command generation unit 4192. The processing in step S4222 is basically the same as the processing in step S4182 (FIG. 301) described above.
[2576]
When the detection result of the region detection unit 4181 is supplied to the execution command generation unit 4192, in step S4223, the execution command generation unit 4192 determines whether the detected region is a steady region. The processing in step S4223 is basically the same as the processing in step S4183 (FIG. 301) described above.
[2577]
If it is determined in step S4223 that the detected area is not a steady area (is an unsteady area), the execution command generation unit 4192 supplies an execution command to the image generation unit 4104. Then, in step S4224, the image generation unit 4104 executes “execution processing of the classification adaptive processing” to generate a first pixel (an HD pixel in the target pixel (SD pixel of the input image)), and in step S4225. , The first pixel generated by the classification adaptive processing is output to the outside as an output image.
[2578]
The processing in step S4224 is basically the same as the processing in step S4184 (FIG. 301) described above. That is, the flowchart in FIG. 296 is also a flowchart for explaining the details of the processing in step S4186. The processing in step S4225 is basically the same as the processing in step S4185 (FIG. 301) described above.
[2579]
On the other hand, when it is determined in step S4223 that the detected area is the steady area, the execution command generation unit 4192 supplies the execution command to the real world estimation unit 4102. Then, in step S4226, the real world estimating unit 4102 estimates the signal of the real world 1 based on the angle detected by the data continuity detecting unit 4101 in the process of step S4221, and estimates the estimation error (mapping error). Is calculated. The estimated signal of the real world 1 is supplied to the image generation unit 4103 as real world estimation information. The calculated estimation error is supplied to the area detection unit 4201 as second area specifying information.
[2580]
The processing in step S4226 is basically the same as the processing in step S4202 (FIG. 303) described above.
[2581]
Further, as described above, at this time (unless an execution command is supplied from the execution command generation unit 4192 or the execution command generation unit 4202), neither the image generation unit 4103 nor the image generation unit 4104 executes the processing.
[2582]
In step S4227, the region detection unit 4201 determines the target pixel of the input image (the data continuity detection unit 4101 determines the angle based on the estimation error (the supplied second region identification information) calculated by the real world estimation unit 4102). Is detected, the region of the pixel of interest) is detected, and the detection result is supplied to the execution command generation unit 4202. The processing in step S4227 is basically the same as the processing in step S4203 (FIG. 303) described above.
[2583]
When the detection result of the region detection unit 4201 is supplied to the execution command generation unit 4202, in step S4228, the execution command generation unit 4202 determines whether the detected region is a steady region. The processing in step S4228 is basically the same as the processing in step S4204 (FIG. 303) described above.
[2584]
If it is determined in step S4228 that the detected area is not a steady area (non-steady area), the execution command generation unit 4202 supplies an execution command to the image generation unit 4104. Then, in step S4224, the image generation unit 4104 executes “execution processing of the classification adaptive processing” to generate a first pixel (an HD pixel in the target pixel (SD pixel of the input image)), and in step S4225. , The first pixel generated by the classification adaptive processing is output to the outside as an output image.
[2585]
Note that the processing in step S4224 in this case is basically the same as the processing in step S4205 (FIG. 303) described above. Further, the processing in step S4225 in this case is basically the same as the processing in step S4206 (FIG. 303) described above.
[2586]
On the other hand, when it is determined in step S4228 that the detected area is the steady area, the execution command generation unit 4202 supplies the execution command to the image generation unit 4103. Then, in step S4229, the image generation unit 4103, based on the signal of the real world 1 estimated by the real world estimation unit 4102 (and the data continuity information from the data continuity detection unit 4101 as necessary), A second pixel (HD pixel) in an area detected by the area detection unit 4201 (that is, a target pixel (SD pixel) of the input image) is generated. Then, in step S4230, image generating section 4103 outputs the generated second pixel to the outside as an output image.
[2587]
The processing in steps S4229 and S4230 is basically the same as the processing in steps S4207 and S4208 (FIG. 303) described above.
[2588]
When the first pixel or the second pixel is output as an output image (after the processing in step S4225 or step S4230), it is determined in step S4231 whether or not processing of all pixels has been completed. If it is determined that the process has not been completed, the process returns to step S4221. That is, the processing of steps S4221 to S4231 is repeated until the processing of all pixels is completed.
[2589]
If it is determined in step S4231 that the processing for all pixels has been completed, the processing ends.
[2590]
The combined method has been described as an example of the embodiment of the signal processing device 4 (FIG. 1) of the present invention with reference to FIGS. 292 to 305.
[2591]
As described above, in the combined method, a device (or a program or the like) for performing other signal processing that does not use stationarity is added to the signal processing device of the present invention having the configuration shown in FIG.
[2592]
In other words, in the combined method, the signal processing device (or the program or the like) of the present invention having the configuration shown in FIG. 3 is added to the conventional signal processing device (or the program or the like).
[2593]
That is, in the combined method, for example, the steady-state detection unit 4105 in FIG. 292 or FIG. 298 projects the optical signal of the real world 1 and the image data ( For example, in the input image of FIG. 292 or 298), an area having the continuity of the image data (for example, the steady area described in step S4106 of FIG. 295 or step S4166 of FIG. 299) is detected.
[2594]
The real-world estimating unit 4102 in FIGS. 292 and 298 uses the continuity of the data of the image data in which part of the continuity of the optical signal of the real world 1 is missing based on the continuity of the data of the optical signal of the real world 1 which is missing. The optical signal is estimated by estimating the stationarity.
[2595]
Further, for example, the data continuity detecting unit 4101 of FIGS. 292 and 298 detects the image data in the image data in which the optical signal of the real world 1 is projected and the continuity of the optical signal of the real world 1 is partially missing. (For example, the angle described in step S4102 in FIG. 295 or step S4162 in FIG. 299). In this case, for example, the steady area detection unit 4105 in FIG. 292 or FIG. 298 detects an area having the stationarity of the image data based on the angle, and the real world estimation unit 4102 determines that the area is missing. The optical signal is estimated by estimating the continuity of the optical signal of the real world 1 obtained.
[2596]
However, in FIG. 292, the steady area detection unit 4105 determines whether the error between the model that is stationary along the angle and the input image (that is, for example, the area identification information in the figure and the processing in step S4102 in FIG. 295) An area having continuity of the data of the input image is detected based on the estimation error calculated by (1).
[2597]
On the other hand, in FIG. 298, the constant region detection unit 4105 is disposed after the real world estimation unit 4102, and calculates the optical signal of the real world 1 corresponding to the input image, which is calculated by the real world estimation unit 4102. The error between the represented real-world model and the input image (that is, for example, the estimation error (mapping error) of the real-world signal, which is the area identification information in the figure and is calculated in the process of step S4163 of FIG. 295). Based on this, the real-world model estimated by the real-world estimating unit 4102, that is, the image output from the image generating unit 4103 is selectively output (for example, the selector 4112 in FIG. 298 operates in steps S4166 to S4168 in FIG. 299). Perform the process of).
[2598]
Although the above description has been made with reference to the examples of FIGS. 292 and 298, the same is true for FIGS. 300, 302, and 304.
[2599]
Therefore, in the combined method, for a portion of the real world 1 signal where the stationarity exists (the area having the stationarity of the image data), an apparatus corresponding to the signal processing apparatus having the configuration of FIG. Program, etc.) performs signal processing, and a signal processing device (or program, etc.) can perform signal processing on a portion of the real world 1 signal where there is no clear continuity. Become. As a result, it becomes possible to output image data closer to the signal of the real world 1 (FIG. 1) than any of the conventional signal processing device and the signal processing of the present invention having the configuration of FIG.
[2600]
Next, an example in which an image is directly generated by the data continuity detecting unit 101 will be described with reference to FIGS.
[2601]
The data continuity detection unit 101 in FIG. 306 is obtained by adding an image generation unit 4501 to the data continuity detection unit 101 in FIG. 165. The image generation unit 4501 obtains a coefficient of the approximate function f (x) of the real world output from the real world estimation unit 802 as real world estimation information, and reintegrates each pixel based on the coefficient to obtain an image. Is generated and output.
[2602]
Next, the process of detecting the continuity of the data in FIG. 306 will be described with reference to the flowchart in FIG. Steps S4501 to S4504 and steps S4506 to S4511 in the flowchart in FIG. 307 are the same as steps S801 to S810 in the flowchart in FIG. 166, and a description thereof will be omitted.
[2603]
In step S4504, the image generation unit 4501 re-integrates each pixel based on the coefficient input from the real world estimation unit 802, and generates and outputs an image.
[2604]
Through the above processing, the data continuity detecting unit 101 can output not only the region information but also an image (consisting of pixels generated based on the real world estimation information) used for the region determination.
[2605]
Thus, in the data continuity detecting unit 101 of FIG. 306, the image generating unit 4501 is provided. That is, the data continuity detecting unit 101 in FIG. 306 can generate an output image based on the continuity of the data of the input image. Therefore, the apparatus having the configuration shown in FIG. 306 is not regarded as an embodiment of the data continuity detecting unit 101, but as another embodiment of the signal processing apparatus (image processing apparatus) 4 in FIG. You can also.
[2606]
Further, in the signal processing device to which the above-described combined method is applied, a device having a configuration shown in FIG. 306 as a signal processing unit that performs signal processing on a portion of the real world 1 signal where stationarity exists. (That is, a signal processing device having the same function and configuration as the data continuity detecting unit 101 in FIG. 306) can be applied.
[2607]
Specifically, for example, in the signal processing device of FIG. 292 to which the first combination method is applied, the signal processing unit that performs signal processing on a portion of the real world 1 signal where stationarity exists is provided. , A data continuity detecting unit 4101, a real world estimating unit 4102, and an image generating unit 4103. Although not shown, a signal processing device (image processing device) having the configuration shown in FIG. 306 can be applied instead of the data continuity detection unit 4101, the real world estimation unit 4102, and the image generation unit 4103. . In this case, the comparison unit 804 of FIG. 306 supplies the output to the region detection unit 4111 as the region identification information, and the image generation unit 4501 supplies the output image (second pixel) to the selector 4112. become.
[2608]
Note that the sensor 2 may be a solid-state image sensor, for example, a sensor such as a BBD (Bucket Bridge Device), a CID (Charge Injection Device), or a CPD (Charge Priming Device).
[2609]
As shown in FIG. 2, the recording medium on which the program for performing the signal processing according to the present invention is recorded is a magnetic disk 51 (on which the program is recorded, which is distributed in order to provide the program to the user separately from the computer). An optical disk 52 (including a flexible disk), an optical disk 52 (including a CD-ROM (Compatible Disk-Only Memory), a DVD (Digital Versatile Disk)), a magneto-optical disk 53 (including an MD (Mini-Disk) (trademark)), or It is not only configured by a package medium including a semiconductor memory 54 and the like, but also configured by a ROM 22 in which a program is recorded and provided to a user in a state of being pre-installed in a computer, a hard disk included in a storage unit 28, and the like. You.
[2610]
The program for executing the above-described series of processes is installed on a computer via a wired or wireless communication medium such as a local area network, the Internet, or digital satellite broadcasting via an interface such as a router or a modem as necessary. May be performed.
[2611]
In this specification, a step of describing a program recorded on a recording medium may be performed in chronological order according to the described order, or may be performed in parallel or not necessarily in chronological order. This also includes processes executed individually.
[2612]
【The invention's effect】
As described above, according to the present invention, an accurate and high-accuracy processing result can be obtained.
[2613]
Further, according to the present invention, it is possible to obtain a more accurate and more accurate processing result for a real world event.
[Brief description of the drawings]
FIG. 1 is a diagram showing the principle of the present invention.
FIG. 2 is a block diagram illustrating an example of a configuration of a signal processing device 4.
FIG. 3 is a block diagram showing a signal processing device 4;
FIG. 4 is a diagram illustrating the principle of processing of a conventional signal processing device 121.
FIG. 5 is a diagram for explaining the principle of processing of the signal processing device 4;
FIG. 6 is a diagram for more specifically explaining the principle of the present invention.
FIG. 7 is a diagram for more specifically explaining the principle of the present invention.
FIG. 8 is a diagram illustrating an example of an arrangement of pixels on an image sensor.
FIG. 9 is a diagram illustrating the operation of a detection element that is a CCD.
FIG. 10 is a diagram illustrating a relationship between light incident on detection elements corresponding to pixels D to F and pixel values.
FIG. 11 is a diagram illustrating a relationship between a lapse of time, light incident on a detection element corresponding to one pixel, and a pixel value.
FIG. 12 is a diagram illustrating an example of an image of a linear object in the real world 1;
FIG. 13 is a diagram illustrating an example of pixel values of image data obtained by actual imaging.
FIG. 14 is a schematic diagram of image data.
FIG. 15 is a diagram showing an example of an image of the real world 1 of an object having a straight edge, which is a color different from the background and has a single color.
FIG. 16 is a diagram illustrating an example of pixel values of image data obtained by actual imaging.
FIG. 17 is a schematic diagram of image data.
FIG. 18 is a diagram illustrating the principle of the present invention.
FIG. 19 is a diagram illustrating the principle of the present invention.
FIG. 20 is a diagram illustrating an example of generation of high-resolution data 181.
FIG. 21 is a diagram illustrating approximation by a model 161.
FIG. 22 is a diagram illustrating estimation of a model 161 based on M pieces of data 162.
FIG. 23 is a diagram illustrating a relationship between a signal in the real world 1 and data 3;
FIG. 24 is a diagram showing an example of data 3 of interest when formulating an expression.
FIG. 25 is a diagram illustrating signals for two objects in the real world 1 and values belonging to a mixed area when an equation is formed.
FIG. 26 is a diagram illustrating stationarity represented by Expression (18), Expression (19), and Expression (22).
FIG. 27 is a diagram showing an example of M data 162 extracted from data 3;
FIG. 28 is a diagram illustrating an area where a pixel value as data 3 is obtained.
FIG. 29 is a diagram illustrating approximation of the position of a pixel in the spatiotemporal direction.
FIG. 30 is a diagram for explaining integration of signals of the real world 1 in data 3 in a time direction and a two-dimensional spatial direction.
FIG. 31 is a diagram illustrating an integration area when generating high-resolution data 181 having a higher resolution in a spatial direction.
FIG. 32 is a diagram illustrating an integration area when generating high-resolution data 181 having a higher resolution in the time direction.
FIG. 33 is a diagram illustrating an integration area when generating high-resolution data 181 from which motion blur has been removed.
FIG. 34 is a diagram illustrating an integration area when generating high-resolution data 181 having a higher resolution in the time-space direction.
FIG. 35 is a diagram showing an original image of an input image.
FIG. 36 is a diagram illustrating an example of an input image.
FIG. 37 is a diagram showing an image obtained by applying the conventional classification adaptive processing.
FIG. 38 is a diagram showing a result of detecting a thin line area.
39 is a diagram illustrating an example of an output image output from the signal processing device 4. FIG.
40 is a flowchart illustrating signal processing by the signal processing device 4. FIG.
FIG. 41 is a block diagram showing a configuration of a data continuity detecting unit 101.
FIG. 42 is a diagram showing an image of the real world 1 with a thin line in front of a background.
FIG. 43 is a diagram illustrating approximation of a background by a plane.
FIG. 44 is a diagram showing a cross-sectional shape of image data on which a thin line image is projected.
FIG. 45 is a diagram showing a cross-sectional shape of image data on which a thin line image is projected.
FIG. 46 is a diagram showing a cross-sectional shape of image data on which a thin line image is projected.
FIG. 47 is a diagram illustrating a process of detecting a vertex and detecting a monotone increase / decrease region.
FIG. 48 is a diagram illustrating a process of detecting a thin line region in which the pixel value of a vertex exceeds a threshold value and the pixel value of an adjacent pixel is equal to or less than the threshold value.
FIG. 49 is a diagram illustrating pixel values of pixels arranged in a direction indicated by a dotted line AA ′ in FIG. 48.
FIG. 50 is a diagram illustrating a process of detecting continuity of a monotone increase / decrease region.
FIG. 51 is a diagram illustrating an example of an image in which a stationary component is extracted by approximation on a plane.
FIG. 52 is a diagram illustrating a result of detecting a monotonously decreasing region.
FIG. 53 is a diagram showing an area where continuity is detected.
FIG. 54 is a diagram showing pixel values in an area where continuity is detected.
FIG. 55 is a diagram illustrating an example of another process of detecting a region where a thin line image is projected.
FIG. 56 is a flowchart illustrating a process of stationarity detection.
FIG. 57 is a diagram illustrating a process of detecting continuity of data in the time direction.
FIG. 58 is a block diagram illustrating a configuration of a non-stationary component extraction unit 201.
FIG. 59 is a diagram illustrating the number of rejections.
FIG. 60 is a diagram illustrating an example of an input image.
FIG. 61 is a diagram illustrating an image in which a standard error obtained as a result of approximation on a plane without rejection is used as a pixel value.
FIG. 62 is a diagram showing an image in which a standard error obtained as a result of rejection and approximation on a plane is used as a pixel value.
FIG. 63 is a diagram showing an image in which the number of rejections is set as a pixel value.
FIG. 64 is a diagram showing an image in which the inclination of the plane in the spatial direction X is a pixel value.
FIG. 65 is a diagram showing an image in which the inclination in the spatial direction Y of the plane is a pixel value.
FIG. 66 is a diagram showing an image composed of approximate values indicated by a plane.
FIG. 67 is a diagram illustrating an image including a difference between an approximate value indicated by a plane and a pixel value.
FIG. 68 is a flowchart illustrating a process of extracting an unsteady component.
FIG. 69 is a flowchart illustrating a process of extracting a steady component.
FIG. 70 is a flowchart illustrating another process of extracting a steady component.
FIG. 71 is a flowchart illustrating still another process of extracting a steady component.
FIG. 72 is a block diagram showing another configuration of the data continuity detecting unit 101.
FIG. 73 is a diagram illustrating activities in an input image having data continuity.
FIG. 74 is a diagram illustrating a block for detecting an activity.
FIG. 75 is a diagram illustrating an angle of data continuity with respect to an activity.
FIG. 76 is a block diagram showing a more detailed configuration of the data continuity detector 101.
FIG. 77 is a diagram illustrating a set of pixels.
FIG. 78 is a diagram illustrating the relationship between the position of a set of pixels and the angle of data continuity.
FIG. 79 is a flowchart illustrating a process of detecting data continuity.
FIG. 80 is a diagram illustrating a set of pixels extracted when detecting the continuity angle of data in the time direction and the spatial direction.
FIG. 81 is a block diagram showing another more detailed configuration of the data continuity detecting unit 101.
FIG. 82 is a diagram illustrating a set of pixels including a number of pixels corresponding to a range of a set angle of a straight line.
FIG. 83 is a diagram illustrating the range of the angle of a set straight line.
FIG. 84 is a diagram illustrating the range of the angle of the set straight line, the number of pixel sets, and the number of pixels for each pixel set.
FIG. 85 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 86 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 87 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 88 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 89 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 90 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 91 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 92 is a diagram illustrating the number of pixel sets and the number of pixels for each pixel set.
FIG. 93 is a flowchart for describing processing for detecting data continuity;
FIG. 94 is a block diagram showing still another configuration of the data continuity detecting unit 101.
FIG. 95 is a block diagram showing a more detailed configuration of the data continuity detector 101.
FIG. 96 is a diagram illustrating an example of a block.
FIG. 97 is a diagram illustrating a process of calculating an absolute value of a difference between pixel values of a target block and a reference block.
FIG. 98 is a diagram illustrating a distance in the spatial direction X between a position of a pixel around a target pixel and a straight line having an angle θ.
FIG. 99 is a diagram showing a relationship between a shift amount γ and an angle θ.
FIG. 100 is a diagram illustrating a distance in the spatial direction X between a position of a pixel around a target pixel and a straight line passing through the target pixel and having an angle θ with respect to a shift amount γ.
101 is a diagram illustrating a reference block that passes through a pixel of interest and has a minimum distance from a straight line having an angle θ with respect to an axis in a spatial direction X. FIG.
FIG. 102 is a diagram illustrating a process of reducing the range of the continuity angle of detected data to 1 /.
FIG. 103 is a flowchart illustrating a process of detecting data continuity.
FIG. 104 is a diagram showing blocks extracted when detecting the continuity angle of inter-directional and spatial data.
FIG. 105 is a block diagram illustrating a configuration of a data continuity detection unit 101 that executes a process of detecting data continuity based on a component signal of an input image.
FIG. 106 is a block diagram illustrating a configuration of a data continuity detecting unit 101 that executes a process of detecting data continuity based on a component signal of an input image.
FIG. 107 is a block diagram showing still another configuration of the data continuity detecting unit 101.
FIG. 108 is a diagram illustrating an angle of data continuity with respect to a reference axis in an input image.
FIG. 109 is a diagram illustrating an angle of continuity of data with respect to a reference axis in an input image.
FIG. 110 is a diagram illustrating an angle of continuity of data with respect to a reference axis in an input image.
FIG. 111 is a diagram illustrating a relationship between a change in a pixel value and a regression line with respect to a spatial position of a pixel in an input image.
112 is a diagram illustrating an angle between a regression line A and, for example, an axis indicating a spatial direction X which is a reference axis. FIG.
FIG. 113 is a diagram illustrating an example of a region.
114 is a flowchart for describing processing for detecting data continuity by the data continuity detecting unit 101 having the configuration shown in FIG. 107.
115 is a block diagram showing still another configuration of the data continuity detecting unit 101. FIG.
FIG. 116 is a diagram illustrating a relationship between a change in a pixel value and a regression line with respect to a position of a pixel in a spatial direction in an input image.
FIG. 117 is a diagram illustrating a relationship between a standard deviation and an area having data continuity.
FIG. 118 is a diagram illustrating an example of a region.
119 is a flowchart illustrating a process of detecting data continuity performed by the data continuity detecting unit 101 having the configuration illustrated in FIG. 115.
120 is a flowchart illustrating another process of detecting data continuity by the data continuity detection unit 101 having the configuration illustrated in FIG. 115.
FIG. 121 is a block diagram illustrating a configuration of a data continuity detection unit that detects an angle of a thin line or a binary edge according to the present invention as data continuity information.
FIG. 122 is a diagram illustrating a method for detecting data continuity information.
FIG. 123 is a diagram illustrating a method for detecting data continuity information.
FIG. 124 is a diagram showing a more detailed configuration of a data continuity detector of FIG. 121.
Fig. 125 is a diagram for describing horizontal / vertical determination processing.
Fig. 126 is a diagram for describing horizontal / vertical determination processing.
FIG. 127 is a diagram illustrating a relationship between a thin line in the real world and a thin line captured by a sensor.
FIG. 128 is a diagram illustrating a relationship between a thin line of a real world image and a background.
FIG. 129 is a diagram illustrating a relationship between a thin line of an image captured by a sensor and a background.
FIG. 130 is a diagram illustrating an example of a relationship between a thin line of an image captured by a sensor and a background.
FIG. 131 is a diagram illustrating a relationship between a thin line of a real world image and a background.
FIG. 132 is a diagram illustrating a relationship between a thin line of an image captured by a sensor and a background.
FIG. 133 is a diagram illustrating an example of a relationship between a thin line of an image captured by a sensor and a background.
FIG. 134 is a diagram illustrating a model for determining the angle of a thin line.
FIG. 135 is a diagram showing a model for obtaining the angle of a thin line.
FIG. 136 is a diagram for describing the maximum value and the minimum value of the pixel value of the dynamic range block corresponding to the target pixel.
Fig. 137 is a diagram for describing a method of obtaining an angle of a thin line.
FIG. 138 is a view for explaining how to obtain the angle of a thin line.
FIG. 139 is a diagram illustrating an extraction block and a dynamic range block.
FIG. 140 is a diagram for explaining a solution of the least squares method.
FIG. 141 is a diagram for explaining a solution of the least squares method.
FIG. 142 is a diagram illustrating a binary edge.
FIG. 143 is a diagram illustrating binary edges of an image captured by a sensor.
FIG. 144 is a diagram illustrating an example of a binary edge of an image captured by a sensor.
FIG. 145 is a diagram illustrating binary edges of an image captured by a sensor.
FIG. 146 is a diagram illustrating a model for determining the angle of a binary edge.
FIG. 147 is a view for explaining a method of obtaining the angle of a binary edge.
Fig. 148 is a diagram for describing a method for obtaining the angle of a binary edge.
FIG. 149 is a flowchart illustrating a process of detecting the angle of a thin line or a binary edge as data continuity.
FIG. 150 is a flowchart illustrating a data extraction process.
FIG. 151 is a flowchart illustrating a process of adding to a normal equation.
FIG. 152 is a diagram comparing the inclination of a thin line obtained by applying the present invention and the angle of the thin line obtained by using a correlation.
FIG. 153 is a diagram comparing the slope of a binary edge obtained by applying the present invention with the angle of a thin line obtained using correlation.
FIG. 154 is a block diagram illustrating a configuration of a data continuity detection unit that detects a mixture ratio as data continuity information to which the present invention has been applied.
FIG. 155 is a view for explaining how to obtain a mixture ratio.
FIG. 156 is a flowchart illustrating a process of detecting a mixture ratio as data continuity.
FIG. 157 is a flowchart illustrating a process of adding to a normal equation.
FIG. 158 is a diagram illustrating a distribution example of a mixing ratio of fine lines.
FIG. 159 is a diagram illustrating a distribution example of a mixture ratio of binary edges.
FIG. 160 is a diagram illustrating linear approximation of a mixture ratio.
FIG. 161 is a diagram illustrating a method of obtaining the motion of an object as data continuity information.
FIG. 162 is a diagram illustrating a method of obtaining the motion of an object as data continuity information.
FIG. 163 is a diagram illustrating a method of obtaining a mixture ratio due to the movement of an object as data continuity information.
FIG. 164 is a diagram illustrating linear approximation of the mixture ratio when the mixture ratio due to the motion of the object is obtained as the data continuity information.
FIG. 165 is a block diagram illustrating a configuration of a data continuity detection unit that detects a processing region to which the present invention has been applied as data continuity information.
FIG. 166 is a flowchart illustrating a process of detecting continuity by the data continuity detector of FIG. 165;
FIG. 167 is a diagram illustrating an integration range of a process of detecting continuity by the data continuity detection unit in FIG. 165.
FIG. 168 is a diagram illustrating an integration range of processing for detecting continuity by the data continuity detection unit in FIG. 165.
FIG. 169 is a block diagram illustrating another configuration of a data continuity detection unit that detects a processing region to which the present invention has been applied as data continuity information.
170 is a flowchart illustrating a process of detecting continuity by the data continuity detection unit in FIG. 169.
FIG. 171 is a diagram illustrating an integration range of a process of detecting continuity by the data continuity detection unit in FIG. 169.
FIG. 172 is a diagram illustrating an integration range of a process of continuity detection by the data continuity detection unit in FIG. 169.
FIG. 173 is a block diagram illustrating a configuration of a real world estimation unit 102.
FIG. 174 is a diagram for describing processing for detecting a width of a thin line in a signal of the real world 1;
FIG. 175 is a diagram for describing processing for detecting a width of a thin line in a signal of the real world 1;
FIG. 176 is a diagram for describing processing for estimating the level of a thin-line signal in a signal of the real world 1;
FIG. 177 is a flowchart illustrating a process of estimating the real world.
FIG. 178 is a block diagram illustrating another configuration of the real world estimation unit 102.
FIG. 179 is a block diagram illustrating a configuration of a boundary detection unit 2121.
FIG. 180 is a diagram illustrating processing for calculating a distribution ratio.
FIG. 181 is a diagram for describing processing for calculating a distribution ratio.
FIG. 182 is a diagram for describing processing for calculating a distribution ratio.
FIG. 183 is a diagram for describing processing for calculating a regression line indicating a boundary of a monotonous increase / decrease region.
FIG. 184 is a diagram illustrating a process of calculating a regression line indicating a boundary of a monotonous increase / decrease region.
FIG. 185 is a flowchart illustrating a process of estimating the real world.
FIG. 186 is a flowchart illustrating a process of boundary detection.
FIG. 187 is a block diagram illustrating a configuration of a real world estimating unit that estimates a differential value in a spatial direction as real world estimation information.
FIG. 188 is a flowchart for describing processing of real world estimation by the real world estimation unit in FIG. 187;
FIG. 189 is a diagram illustrating a reference pixel.
FIG. 190 is a diagram for describing a position for obtaining a differential value in the spatial direction.
FIG. 191 is a diagram illustrating a relationship between a differential value in the spatial direction and a shift amount.
FIG. 192 is a block diagram illustrating a configuration of a real world estimating unit that estimates a tilt in a spatial direction as real world estimation information.
FIG. 193 is a flowchart illustrating a process of real world estimation by the real world estimation unit in FIG. 192;
FIG. 194 is a diagram for describing processing for obtaining a tilt in a spatial direction.
FIG. 195 is a diagram for describing processing for obtaining a spatial inclination.
FIG. 196 is a block diagram illustrating a configuration of a real world estimation unit that estimates a differential value in a frame direction as real world estimation information.
FIG. 197 is a flowchart illustrating a process of real world estimation by the real world estimation unit in FIG. 196;
FIG. 198 is a diagram illustrating a reference pixel.
FIG. 199 is a diagram illustrating a position where a differential value in the frame direction is obtained.
FIG. 200 is a diagram illustrating a relationship between a differential value in the frame direction and a shift amount.
FIG. 201 is a block diagram illustrating a configuration of a real world estimation unit that estimates a tilt in a frame direction as real world estimation information.
202 is a flowchart illustrating a process of real world estimation by a real world estimation unit in FIG. 201.
FIG. 203 is a diagram illustrating a process of obtaining a tilt in a frame direction.
FIG. 204 is a diagram illustrating a process of obtaining a tilt in a frame direction.
205 is a diagram illustrating the principle of a function approximation method, which is an example of the embodiment of the real world estimation unit in FIG.
FIG. 206 is a diagram illustrating an integration effect when a sensor is a CCD.
207 is a diagram illustrating a specific example of an integration effect of the sensor in FIG. 206. FIG.
208 is a diagram illustrating another specific example of the integration effect of the sensor in FIG. 206. FIG.
FIG. 209 is a diagram showing the real world region containing fine lines shown in FIG. 207.
210 is a diagram illustrating the principle of an example of the embodiment of the real world estimation unit in FIG. 3 in comparison with the example in FIG. 205.
FIG. 211 is a diagram showing a thin line containing data area shown in FIG. 207.
FIG. 212 is a graph in which each pixel value included in the thin line containing data area of FIG. 211 is graphed.
FIG. 213 is a graph showing an approximate function obtained by approximating each pixel value included in the thin line containing data area in FIG. 212.
FIG. 214 is a diagram illustrating the continuity in the spatial direction of the fine-line-containing real world region shown in FIG. 207.
FIG. 215 is a graph in which each pixel value included in the thin line containing data area of FIG. 211 is graphed.
FIG. 216 is a diagram illustrating a state where each of the input pixel values shown in FIG. 215 is shifted by a predetermined shift amount.
FIG. 217 is a graph showing an approximate function obtained by approximating each pixel value included in the thin-line-containing data area in FIG. 212 in consideration of stationarity in the spatial direction.
FIG. 218 is a diagram illustrating a spatial mixing area.
FIG. 219 is a diagram illustrating an approximation function that approximates a real-world signal in a spatial mixing area.
220 is a graph showing an approximation function that approximates a real-world signal corresponding to the thin-line-containing data area in FIG. 212 in consideration of both the integration characteristic of the sensor and the stationarity in the spatial direction.
FIG. 221 is a block diagram illustrating a configuration example of a real-world estimator that uses a first-order polynomial approximation method among function approximation methods having the principle illustrated in FIG. 205.
FIG. 222 is a flowchart illustrating a real world estimating process performed by the real world estimating unit having the configuration of FIG. 221;
FIG. 223 is a diagram illustrating a tap range.
FIG. 224 is a diagram illustrating a real-world signal having stationarity in a spatial direction.
FIG. 225 is a diagram illustrating an integration effect when a sensor is a CCD.
FIG. 226 is a diagram illustrating a distance in a sectional direction.
FIG. 227 is a block diagram illustrating a configuration example of a real-world estimator that uses a second-order polynomial approximation method among function approximation methods having the principle illustrated in FIG. 205.
FIG. 228 is a flowchart illustrating a real world estimation process performed by the real world estimation unit having the configuration of FIG. 227;
FIG. 229 is a diagram illustrating a tap range.
230 is a diagram for describing the direction of continuity in the spatiotemporal direction. FIG.
FIG. 231 is a diagram illustrating an integration effect when a sensor is a CCD.
FIG. 232 is a diagram illustrating a real-world signal having stationarity in a spatial direction.
FIG. 233 is a diagram for describing a real-world signal having continuity in the space-time direction.
FIG. 234 is a block diagram illustrating a configuration example of a real world estimating unit that uses a three-dimensional function approximation method among function approximation methods having the principle illustrated in FIG. 205.
FIG. 235 is a flowchart illustrating a real world estimating process performed by the real world estimating unit having the configuration of FIG. 234;
FIG. 236 is a diagram illustrating a principle of a reintegration method, which is an example of an embodiment of the image generation unit in FIG. 3;
FIG. 237 is a diagram illustrating an example of an input pixel and an approximation function that approximates a real-world signal corresponding to the input pixel.
238 is a diagram illustrating an example in which four high-resolution pixels in one input pixel shown in FIG. 237 are created from the approximation function shown in FIG. 237;
FIG. 239 is a block diagram illustrating a configuration example of an image generation unit that uses a one-dimensional reintegration method among the reintegration methods having the principle shown in FIG. 236.
240 is a flowchart illustrating an image generation process performed by the image generation unit having the configuration of FIG. 239.
FIG. 241 is a diagram illustrating an example of an original image of an input image.
FIG. 242 is a diagram illustrating an example of image data corresponding to the image in FIG. 241.
FIG. 243 is a diagram illustrating an example of an input image.
FIG. 244 is a diagram illustrating an example of image data corresponding to the image in FIG. 243.
FIG. 245 is a diagram illustrating an example of an image obtained by performing a conventional classification adaptive process on an input image.
FIG. 246 is a diagram illustrating an example of image data corresponding to the image in FIG. 245.
FIG. 247 is a diagram illustrating an example of an image obtained by performing processing of the one-dimensional reintegration method of the present invention on an input image.
FIG. 248 is a diagram illustrating an example of image data corresponding to the image in FIG. 247.
FIG. 249 is a diagram for describing a real-world signal having stationarity in a spatial direction.
250 is a block diagram illustrating a configuration example of an image generation unit that uses a two-dimensional reintegration method among the reintegration methods having the principle shown in FIG. 236.
FIG. 251 is a diagram illustrating a cross-sectional direction distance.
FIG. 252 is a flowchart for describing an image generation process performed by the image generation unit having the configuration in FIG. 250.
FIG. 253 is a diagram illustrating an example of an input pixel.
254 is a diagram illustrating an example of creating four high-resolution pixels in one input pixel shown in FIG. 253 using a two-dimensional reintegration method.
FIG. 255 is a diagram for describing the direction of continuity in the spatiotemporal direction.
FIG. 256 is a block diagram illustrating a configuration example of an image generation unit that uses a three-dimensional reintegration method among the reintegration methods having the principle shown in FIG. 236.
FIG. 257 is a flowchart illustrating an image generation process performed by the image generation unit having the configuration in FIG. 256.
FIG. 258 is a block diagram illustrating another configuration of an image generation unit to which the present invention has been applied.
FIG. 259 is a flowchart illustrating a process of generating an image by the image generation unit in FIG. 258.
FIG. 260 is a diagram for describing processing for generating quadruple-density pixels from input pixels.
FIG. 261 is a diagram illustrating a relationship between an approximate function indicating a pixel value and a shift amount.
FIG. 262 is a block diagram illustrating another configuration of an image generation unit to which the present invention has been applied.
FIG. 263 is a flowchart illustrating a process of generating an image by the image generation unit in FIG. 262.
FIG. 264 is a diagram for describing processing for generating quadruple-density pixels from input pixels.
FIG. 265 is a diagram illustrating a relationship between an approximate function indicating a pixel value and a shift amount.
FIG. 266 is a block diagram illustrating a configuration example of an image generation unit that uses a one-dimensional reintegration method of a class classification adaptive processing correction method, which is an example of an embodiment of the image generation unit in FIG.
FIG. 267 is a block diagram illustrating a configuration example of a class classification adaptive processing unit of the image generation unit in FIG. 266.
FIG. 268 is a block diagram illustrating a configuration example of a classifying adaptive processing unit in FIG. 266 and a learning device that determines a coefficient used by the classifying adaptive processing correction unit by learning.
FIG. 269 is a block diagram illustrating a detailed configuration example of a learning unit for class classification adaptive processing in FIG. 268.
FIG. 270 is a diagram illustrating an example of a processing result of the classification adaptive processing unit in FIG. 267.
FIG. 271 is a diagram illustrating a difference image between the prediction image and the HD image in FIG. 270.
272 is a specific pixel of the HD image in FIG. 270 corresponding to four HD pixels from the left in the figure among six HD pixels continuous in the X direction included in the area shown in FIG. 271; FIG. 7 is a diagram showing plots of values, specific pixel values of an SD image, and actual waveforms (signals in the real world).
FIG. 273 is a diagram illustrating a difference image between the prediction image and the HD image in FIG. 270.
FIG. 274 is a specific pixel of the HD image in FIG. 270 corresponding to four HD pixels from the left in the figure among six HD pixels continuous in the X direction included in the area shown in FIG. 273; FIG. 7 is a diagram showing plots of values, specific pixel values of an SD image, and actual waveforms (signals in the real world).
FIG. 275 is a diagram for describing knowledge obtained based on the contents shown in FIGS. 272 to 274.
FIG. 276 is a block diagram illustrating a configuration example of a class classification adaptive processing correction unit of the image generation unit in FIG. 266.
FIG. 277 is a block diagram illustrating a detailed configuration example of a learning unit for class classification adaptive processing correction in FIG. 268.
FIG. 278 is a diagram for describing tilt in a pixel.
279 is a diagram illustrating the SD image in FIG. 270 and a feature amount image in which the in-pixel inclination of each pixel of the SD image is a pixel value. FIG.
FIG. 280 is a diagram illustrating a method of calculating an in-pixel tilt.
FIG. 281 is a diagram illustrating a method for calculating an in-pixel tilt.
FIG. 282 is a flowchart illustrating an image generation process performed by the image generation unit having the configuration of FIG. 266.
FIG. 283 is a flowchart illustrating details of input image class classification adaptation processing in the image generation processing in FIG. 282.
FIG. 284 is a flowchart illustrating details of the correction processing of the class classification adaptive processing in the image generation processing in FIG. 282.
FIG. 285 is a diagram illustrating an example of class tap arrangement.
Fig. 286 is a diagram for describing an example of class classification.
Fig. 287 is a diagram for describing a prediction tap arrangement example.
FIG. 288 is a flowchart illustrating a learning process of the learning device in FIG. 268.
FIG. 289 is a flowchart illustrating details of the learning processing for the class classification adaptive processing in the learning processing in FIG. 288.
290 is a flowchart illustrating details of a learning process for correcting a class classification adaptive process in the learning process of FIG. 288. FIG.
FIG. 291 is a diagram illustrating the predicted image of FIG. 270 and an image obtained by adding a corrected image to the predicted image (image generated by the image generating unit in FIG. 266).
FIG. 292 is a block diagram illustrating a first configuration example of a signal processing device using a combined method, which is another example of the embodiment of the signal processing device in FIG. 1;
FIG. 293 is a block diagram illustrating a configuration example of an image generation unit that performs a class classification adaptive process in the signal processing device in FIG. 292.
FIG. 294 is a block diagram illustrating a configuration example of a learning device for the image generation unit in FIG. 293.
FIG. 295 is a flowchart illustrating signal processing executed by the signal processing device having the configuration of FIG. 292.
FIG. 296 is a flowchart illustrating details of execution processing of the classification adaptive processing of the signal processing of FIG. 295;
297 is a flowchart illustrating a learning process of the learning device in FIG. 294.
298 is a block diagram illustrating a second example of the configuration of the signal processing device using the combined method, which is another example of the embodiment of the signal processing device in FIG.
FIG. 299 is a flowchart illustrating signal processing executed by the signal processing device having the configuration of FIG. 296.
300 is a block diagram illustrating a third configuration example of the signal processing device using the combined method, which is another example of the embodiment of the signal processing device in FIG. 1. FIG.
301 is a flowchart illustrating signal processing executed by the signal processing device having the configuration in FIG. 298.
302 is a block diagram illustrating a fourth configuration example of the signal processing device using the combined technique, which is another example of the embodiment of the signal processing device in FIG.
303 is a flowchart illustrating signal processing executed by the signal processing device having the configuration in FIG. 300.
304 is a block diagram illustrating a fifth configuration example of the signal processing device using the combined method, which is another example of the embodiment of the signal processing device in FIG. 1. FIG.
305 is a flowchart illustrating signal processing executed by the signal processing device having the configuration in FIG. 302.
FIG. 306 is a block diagram illustrating a configuration of another embodiment of a data continuity detection unit.
FIG. 307 is a flowchart for describing processing for detecting data continuity by the data continuity detection unit in FIG. 306;
[Explanation of symbols]
Reference Signs List 4 signal processing device, 21 CPU, 22 ROM, 23 RAM, 28 storage unit, 51 magnetic disk, 52 optical disk, 53 magneto-optical disk, 54 semiconductor memory, 101 data continuity detection unit, 102 real world estimation unit, 103 image generation Unit, 201 non-stationary component extraction unit, 202 vertex detection unit, 203 monotone increase / decrease detection unit, 204 continuity detection unit, 221 block extraction unit, 222 plane approximation unit, 223 repetition determination unit, 401 activity detection unit, 402 data selection unit , 403 error estimating unit, 404 stationary direction deriving unit, 411-1 to 411-L pixel selecting unit, 412-1 to 412-L estimation error calculating unit, 413 minimum error angle selecting unit, 421-1 to 421-L pixel Selector, 422-1 through 422 Estimation error calculation unit, 441 data selection unit, 442 error estimation unit, 443 steady direction derivation unit, 461-1 to 461-L pixel selection unit, 462-1 to 462-L estimation error calculation unit, 463 minimum error angle selection unit , 481-1 thru 481-3 data continuity detecting unit, 482 determining unit, 491 component processing unit, 492 data continuity detecting unit, 502 pixel acquiring unit, 503 frequency detecting unit, 504 regression line calculating unit, 505 angle calculating unit , 602 pixel acquisition section, 603 frequency detection section, 604 regression line calculation section, 605 area calculation section, 701 data selection section, 702 data addition section, 703 steady direction derivation section, 711 horizontal / vertical determination section, 712 data acquisition section , 721 Difference addition unit, 722 MaxMin acquisition unit, 723 difference addition unit, 731 steady direction operation unit, 751 data addition unit, 752 MaxMin acquisition unit, 753 addition unit, 754 difference operation unit, 755 addition unit, 761 mixture ratio derivation unit, 762 mixture ratio calculation unit, 801 angle detection unit, 802 real world estimation unit, 803 error calculation unit, 804 comparison unit, 821 motion detection unit, 822 real world estimation unit, 823 error calculation unit, 824 comparison unit, 2101 line width detection unit, 2102 signal level estimation Section, 2121 boundary detection section, 2131 distribution ratio calculation section, 2132 regression line calculation section, 2201 real world estimation section, 2202 approximate function estimation section, 2203 differentiation processing section, 2211 reference pixel extraction section, 2212 slope estimation section, 2231 real world Estimator, 2232 approximate function estimation Unit, 2233 Differential processing unit, 2251 Reference pixel extraction unit, 2252 Slope estimation unit, 2331 Condition setting unit, 2332 Input image storage unit, 2333 Input pixel value acquisition unit, 2334 Integral component operation unit, 2335 Normal equation generation unit, 2336 Approximation Function generation unit, 2341 input pixel value table, 2342 integral component table, 2343 normal equation table, 2421 condition setting unit, 2422 input image storage unit, 2423 input pixel value acquisition unit, 2424 integral component calculation unit, 2425 normal equation generation unit, 2426 approximation function generation unit, 2431 input pixel value table, 2432 integral component table, 2433 normal equation table, 2521 condition setting unit, 2522 input image storage unit, 2523 input pixel value acquisition unit, 2524 integration unit Minute operation unit, 2525 normal equation generation unit, 2526 approximation function generation unit, 2531 input pixel value table, 2532 integral component table, 2533 normal equation table, 3121 condition setting unit, 3122 feature amount storage unit, 3123 integral component operation unit, 3124 Output pixel value calculation section, 3131 feature quantity table, 3132 integral component table, 3201 condition setting section, 3202 feature quantity storage section, 3203 integral component calculation section, 3204 output pixel value calculation section, 3211 feature quantity table, 3212 integration component table, 3301 condition setting section, 3302 feature quantity storage section, 3303 integral component calculation section, 3304 output pixel value calculation section, 3311 feature quantity table, 3312 integral component table, 3201 slope acquisition section, 3202 extrapolation Intersection, 3211 Slope acquisition unit, 3212 Extrapolation interpolation unit, 3501 Class classification adaptive processing unit, 3502 Class classification adaptive processing correction unit, 3503 Addition unit, 3504 Learning device, 3521 Class classification adaptive processing learning unit, 3561 Class classification adaptation Learning unit for processing correction, 4101 data continuity detection unit 4101 real world estimation unit, 4103 image generation unit, 4104 image generation unit, 4105 steady region detection unit, 4111 region detection unit, 4112 selector, 4161 steady region detection unit, 4171 region Detection section, 4172 execution command generation section, 4181, 4182 steady area detection section, 4191 area detection section, 4192 execution command generation section, 4201 area detection section, 4202 execution command generation section, 4501 image generation section

Claims (7)

現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、前記画像データのデータの定常性を有する領域を検出する定常領域検出手段と、
前記現実世界の光信号の定常性の一部が欠落した前記画像データのデータの定常性に基づいて、欠落した前記現実世界の光信号の定常性を推定することにより前記光信号を推定する実世界推定手段と
を備えることを特徴とする画像処理装置。
In the image data in which the real-world optical signal is projected and part of the continuity of the real-world optical signal is missing, a steady-state detection unit that detects an area having the data continuity of the image data,
A method for estimating the optical signal by estimating the stationarity of the missing real-world optical signal based on the stationarity of the image data in which part of the stationarity of the real-world optical signal is missing. An image processing apparatus comprising: a world estimation unit.
前記現実世界の光信号が射影され、前記現実世界の光信号の定常性の一部が欠落した前記画像データ内において、前記画像データの前記データの定常性の基準軸に対する角度を検出する角度検出手段をさらに備え、
前記定常領域検出手段は、前記角度に基いて前記画像データの前記データの定常性を有する前記領域を検出し、
前記実世界推定手段は、前記領域に対して、欠落した前記現実世界の光信号の定常性を推定することにより前記光信号を推定する
ことを特徴とする請求項1に記載の画像処理装置。
In the image data in which the real-world optical signal is projected and part of the continuity of the real-world optical signal is missing, an angle detection for detecting an angle of the image data with respect to a reference axis of the continuity of the data. Further comprising means,
The stationary region detecting means detects the region having the stationarity of the data of the image data based on the angle,
The image processing apparatus according to claim 1, wherein the real-world estimating unit estimates the optical signal by estimating continuity of the missing real-world optical signal for the region.
前記定常領域検出手段は、前記角度に沿って定常であるモデルと前記画像データとの誤差に基づいて前記画像データの前記データの定常性を有する前記領域を検出する
ことを特徴とする請求項2に記載の画像処理装置。
The said steady area | region detection means detects the said area | region which has the continuity of the said data of the said image data based on the error of the model which is stationary along the said angle, and the said image data. An image processing apparatus according to claim 1.
前記定常領域検出手段は、前記実世界推定手段の後段に配され、前記実世界推定手段により演算される、前記画像データに対応する前記現実世界の光信号を表す実世界モデルと、前記画像データとの誤差に基いて、前記実世界推定手段により推定された実世界モデルを選択的に出力する
ことを特徴とする請求項2に記載の画像処理装置。
The real-world model, which is arranged at a subsequent stage of the real-world estimating means and is calculated by the real-world estimating means, and represents a real-world optical signal corresponding to the image data; and The image processing apparatus according to claim 2, wherein the real-world model estimated by the real-world estimating means is selectively output based on an error of the real-world estimator.
現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、前記画像データのデータの定常性を有する領域を検出する定常領域検出ステップと、
前記現実世界の光信号の定常性の一部が欠落した前記画像データのデータの定常性に基づいて、欠落した前記現実世界の光信号の定常性を推定することにより前記光信号を推定する実世界推定ステップと
を含むことを特徴とする画像処理方法。
A real-world optical signal is projected, in the image data in which a part of the continuity of the real-world optical signal is missing, a steady-state detection step of detecting an area having continuity of the data of the image data,
A method for estimating the optical signal by estimating the stationarity of the missing real-world optical signal based on the stationarity of the image data in which part of the stationarity of the real-world optical signal is missing. An image processing method, comprising: a world estimation step.
現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、前記画像データのデータの定常性を有する領域を検出する定常領域検出ステップと、
前記現実世界の光信号の定常性の一部が欠落した前記画像データのデータの定常性に基づいて、欠落した前記現実世界の光信号の定常性を推定することにより前記光信号を推定する実世界推定ステップと
を含むことを特徴とする画像処理をコンピュータに実行させるプログラムが記録されている記録媒体。
A real-world optical signal is projected, in the image data in which a part of the continuity of the real-world optical signal is missing, a steady-state detection step of detecting an area having continuity of the data of the image data,
A method for estimating the optical signal by estimating the stationarity of the missing real-world optical signal based on the stationarity of the image data in which part of the stationarity of the real-world optical signal is missing. A recording medium on which a program for causing a computer to execute image processing characterized by including a world estimation step is recorded.
現実世界の光信号が射影され、現実世界の光信号の定常性の一部が欠落した画像データ内において、前記画像データのデータの定常性を有する領域を検出する定常領域検出ステップと、
前記現実世界の光信号の定常性の一部が欠落した前記画像データのデータの定常性に基づいて、欠落した前記現実世界の光信号の定常性を推定することにより前記光信号を推定する実世界推定ステップと
を含むことを特徴とする画像処理をコンピュータに実行させるプログラム。
A real-world optical signal is projected, in the image data in which a part of the continuity of the real-world optical signal is missing, a steady-state detection step of detecting an area having continuity of the data of the image data,
A method for estimating the optical signal by estimating the stationarity of the missing real-world optical signal based on the stationarity of the image data in which part of the stationarity of the real-world optical signal is missing. A program for causing a computer to execute image processing, which includes a world estimation step.
JP2003034571A 2003-02-13 2003-02-13 Image processing apparatus and method, recording medium, and program Expired - Fee Related JP4161729B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003034571A JP4161729B2 (en) 2003-02-13 2003-02-13 Image processing apparatus and method, recording medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003034571A JP4161729B2 (en) 2003-02-13 2003-02-13 Image processing apparatus and method, recording medium, and program

Publications (3)

Publication Number Publication Date
JP2004246526A true JP2004246526A (en) 2004-09-02
JP2004246526A5 JP2004246526A5 (en) 2006-03-23
JP4161729B2 JP4161729B2 (en) 2008-10-08

Family

ID=33020206

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003034571A Expired - Fee Related JP4161729B2 (en) 2003-02-13 2003-02-13 Image processing apparatus and method, recording medium, and program

Country Status (1)

Country Link
JP (1) JP4161729B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8204362B2 (en) 2007-01-31 2012-06-19 Canon Kabushiki Kaisha Video recording and reproducing apparatus, and control method
US8897616B2 (en) 2007-04-17 2014-11-25 Canon Kabushiki Kaisha Apparatus and method for upconverting content data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8204362B2 (en) 2007-01-31 2012-06-19 Canon Kabushiki Kaisha Video recording and reproducing apparatus, and control method
US8897616B2 (en) 2007-04-17 2014-11-25 Canon Kabushiki Kaisha Apparatus and method for upconverting content data

Also Published As

Publication number Publication date
JP4161729B2 (en) 2008-10-08

Similar Documents

Publication Publication Date Title
JP4144378B2 (en) Image processing apparatus and method, recording medium, and program
JP4214459B2 (en) Signal processing apparatus and method, recording medium, and program
JP4144374B2 (en) Image processing apparatus and method, recording medium, and program
JP2004264924A (en) Image processor and processing method, storage medium, and program
JP4214460B2 (en) Image processing apparatus and method, recording medium, and program
JP4214462B2 (en) Image processing apparatus and method, recording medium, and program
JP4161729B2 (en) Image processing apparatus and method, recording medium, and program
JP4161731B2 (en) Image processing apparatus and method, recording medium, and program
JP4161734B2 (en) Image processing apparatus and method, recording medium, and program
JP4161732B2 (en) Image processing apparatus and method, recording medium, and program
JP4161735B2 (en) Image processing apparatus and method, recording medium, and program
JP4161727B2 (en) Image processing apparatus and method, recording medium, and program
JP4161733B2 (en) Image processing apparatus and method, recording medium, and program
JP4214461B2 (en) Image processing apparatus and method, recording medium, and program
JP2004246590A (en) Image processor, image processing method, recording medium, and program
JP4155046B2 (en) Image processing apparatus and method, recording medium, and program
JP4161728B2 (en) Image processing apparatus and method, recording medium, and program
JP4178983B2 (en) Image processing apparatus and method, recording medium, and program
JP4175131B2 (en) Image processing apparatus and method, recording medium, and program
JP4161730B2 (en) Image processing apparatus and method, recording medium, and program
JP4161254B2 (en) Image processing apparatus and method, recording medium, and program
JP4264632B2 (en) Image processing apparatus and method, recording medium, and program
JP4182776B2 (en) Image processing apparatus and method, recording medium, and program
JP4264631B2 (en) Image processing apparatus and method, recording medium, and program
JP2004264941A (en) Image processor and processing method, storage medium, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060207

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080324

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080522

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

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

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

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130801

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees