Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4366807B2 - Infrared image edge processing method - Google Patents
[go: Go Back, main page]

JP4366807B2 - Infrared image edge processing method - Google Patents

Infrared image edge processing method Download PDF

Info

Publication number
JP4366807B2
JP4366807B2 JP2000018593A JP2000018593A JP4366807B2 JP 4366807 B2 JP4366807 B2 JP 4366807B2 JP 2000018593 A JP2000018593 A JP 2000018593A JP 2000018593 A JP2000018593 A JP 2000018593A JP 4366807 B2 JP4366807 B2 JP 4366807B2
Authority
JP
Japan
Prior art keywords
image data
peak
value
edge
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000018593A
Other languages
Japanese (ja)
Other versions
JP2001209809A (en
Inventor
光也 川下
伸司 宮崎
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2000018593A priority Critical patent/JP4366807B2/en
Publication of JP2001209809A publication Critical patent/JP2001209809A/en
Application granted granted Critical
Publication of JP4366807B2 publication Critical patent/JP4366807B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Picture Signal Circuits (AREA)
  • Studio Circuits (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、赤外線画像のエッジ処理方式に係り、特に、赤外線検知器を構成する赤外線検知素子の出力に雑音などによる画像データの変動があっても正確にエッジを処理して画像に表示することが可能な赤外線画像のエッジ処理方式、及び、2つのフィールドの画像データを異なるタイミングで取得して1つのフレームに表示するという特殊な画像処理をすることがあっても違和感がない画像を表示することが可能な赤外線画像のエッジ処理方式に関する。
【0002】
全ての物体は、その物体自体の温度と一義的関係にある強度の赤外線を放射している。そして、放射される赤外線の波長はその物体を形成している物質に依存している。
【0003】
赤外線画像装置は、物体から放射される赤外線を検出して画像表示するので、種々のカメラを使用して可視光を捕捉して画像表示する画像装置とは大きく異なり、昼夜を問わず物体の認識が可能である。
【0004】
又、レーダやソナーとも大きく異なり、物体を認識するために積極的に電磁波、音波又は超音波を放射しないで、認識対象の物体が放射する赤外線を捕捉することによって受動的に物体を認識することが可能なので、認識対象の物体側に気づかれないで物体を認識できるという利点を有している。
【0005】
更に、物体が放射する赤外線を検知して当該物体を認識するということは、物体を非接触で認識できるということで、認識対象の物体に接近すること自体が不可能であったり、接近することが危険な場合にも容易に物体の認識をすることができる。
【0006】
このような多くの特徴を活かして、赤外線画像装置は監視カメラ、サーモ・グラフィ、リモート・センシング、航空機や車輛などの移動体の前方監視装置など、官民を問わず広範囲な分野で使用されている。又、最近では医療やスポーツ生理学の分野での使用が注目されている。
【0007】
上記のように、赤外線画像装置には極めて広い技術範囲にそれぞれ適用される多種の物があるが、別の観点から大別すると、赤外線の強度分布そのものを画像表示する物と、赤外線の強度分布にエッジ処理を行ない、物体の有無や追尾している物体の形状を認識する物とに分けられる。
【0008】
そして、特に後者においては、エッジ処理が正確であることと、エッジ処理による表示品質の劣化がないことが命である。
【0009】
かかる背景にあって、赤外線検知器を構成する赤外線検知素子の画像データに変動があっても正確にエッジを処理して画像に表示することが可能な赤外線画像のエッジ処理方式、及び、特殊な画像処理をすることがあっても違和感がない画像を表示することが可能な赤外線画像のエッジ処理方式の開発が待たれている。
【0010】
【従来の技術】
図15は、エッジ処理機能を備える赤外線画像装置の一般的構成である。
【0011】
図15において、
101は、到達する赤外光を受けて走査する光学系、
102は、光学系101が走査した赤外光を検知してアナログ電気信号に変換する赤外線検知器、
103は、赤外線検知器102が出力するアナログ電気信号を所要レベルまで増幅した後デジタル信号に変換するアナログ・デジタル変換部、
104は、赤外線検知器102を構成する個々の赤外線検知素子の感度ばらつきを補正する感度補正部である。
【0012】
又、105は、エッジ処理部で、平滑フィルタ1、ラプラシアン・フィルタによって代表されるエッジ強調フィルタ2、エッジ検出の閾値を格納するレジスタ4、及び、エッジ強調フィルタ2の出力とレジスタ4に格納されている閾値を比較して論理レベル“0”又は“1”のデジタル信号を出力するコンパレータ6によって構成される。
【0013】
106は、感度補正された画像データとエッジ処理部が出力するエッジ検出信号とを受けて、2値化処理やヒストグラム変換などの処理をした後でアナログ信号に変換して画像表示信号を出力する画像処理部、
107は、画像処理部106が出力する画像表示信号を表示して、画面から可視光を出力する表示部である。
【0014】
図16は、図15の感度補正部104が出力する画像データを受けて、特定の画素の画像データと周囲の画素の画像データの平均値を求める平滑フィルタ1の構成である。
【0015】
図16において、11乃至11hは画像データを保持するフリップ・フロップ、12は第一の遅延回路、13は第二の遅延回路、14乃至14gは加算回路、15は平均する画素数を格納するレジスタ、16は除算回路である。
【0016】
尚、画像データは複数ビットのデジタル信号であるので、実は、フリップ・フロップ、遅延回路、加算回路、レジスタ及び除算回路は全て複数ビットを扱うことができる回路である。しかし、正確にそれを図示すると図が煩雑化するので、単一ビットであるかの如く図示している。
【0017】
さて、図16の構成の平滑フィルタに入力される画像データは、1次元走査された赤外光を赤外線検知器を構成する個々の赤外線検知素子が順に電気変換したライン・データである。
【0018】
従って、図16のフリップ・フロップ11dに保持される画像データに対して、フリップ・フロップ11乃至11c及びフリップ・フロップ11e乃至11hに保持される画像データが周囲の画素の画像データになりうるには、フリップ・フロップ11には特定ラインの画像データが直接供給されているので、第一の遅延回路12の遅延時間を1ラインの遅延時間とし、第二の遅延回路13の遅延時間を2ラインの遅延時間とすればよい。
【0019】
即ち、2次元画像と平滑フリップ・フロップのデータの対比を図示すると図17のようになる。
【0020】
図17において、太い実線の矩形で示してあるのが2次元画像であり、該2次元画像の中に「・」や添字付の小文字のアルファベットで示してあるのが赤外線検知器を構成する単一の赤外線検知素子毎の画像データである。尚、以降、画像データに関する記載においては「赤外線検知器を構成する単一の赤外線検知素子」を「画素」と標記し、物理的な赤外線検知素子に関する記載においては「赤外線検知素子」というように、区別して標記する。
【0021】
1次元走査された赤外光を赤外線検知器を構成する個々の赤外線検知素子が順に電気変換してライン・データを形成するので、ライン・データは図17の縦の矢印の方向に順に出力される。
【0022】
そのライン・データを図17の横方向の矢印の方向に順に出力することによって2次元画像が形成される。
【0023】
そして、図16の第一の遅延回路12と第二の遅延回路13の遅延時間を上記のように設定しているので、図16のフリップ・フロップ11dに画素データb2 が保持される時には、フリップ・フロップ11b、11a及び11には、それぞれ、画素データc3 、c2 及びc1 が保持され、フリップ・フロップ11eと11cには、それぞれ、画素データb3 とb1 が保持され、フリップ・フロップ11h、11g及び11fには、それぞれ、画素データa3 、a2 及びa1 が保持される。この状態を、図17では細い実線の矩形で囲んだ3×3の2次元画像データで示している。
【0024】
従って、次の画素の画像データが入力されると、図16のフリップ・フロップ11乃至11hに保持される3×3の2次元画像データは、図17の細い破線で囲んだ画像データとなる。
【0025】
そして、ライン方向の画像データが全て入力された後には、1ラインずれて3×3の2次元画像データが図16のフリップ・フロップ11乃至11hに保持されることになる。これを、図17では細い一点鎖線の3×3の2次元画像データで示している。
【0026】
尚、図17の縦の矢印の方向をライン方向と呼び、1ラインの画像データをライン・データ又はサンプル・データと呼び、図17の横の矢印の方向をサンプル方向と呼ぶことにする。
【0027】
上記のように図16のフリップ・フロップ11乃至11hに保持された画像データは加算回路に供給されて、加算回路14において画像データc3 と画像データc2 の加算が行なわれ、加算回路14aにおいて加算回路14の出力と画像データc1 の加算が行なわれる。1ライン違う画像データbi (この場合、iは1乃至3である。)、2ライン違う画像データai についても同様である。
【0028】
更に、加算回路14aの出力と加算回路14cの出力が加算回路14fにて加算され、加算回路14fの出力と加算回路14eの出力が加算回路14gにて加算されて、3×3の2次元画像の中心の画素の画像データと、該中心の画素を囲む8画素の画像データ、即ち、3×3の2次元画像を形成する9画素の画像データが全て加算される。
【0029】
ここで、画像データを加算する画素数は9であるので、レジスタ15には9を格納しておき、除算回路16にて加算回路14gの出力を9で割って平均し、3×3の2次元画像の中心の画素の画像データとする。
【0030】
この平均化によって、3×3の2次元画像を形成する画素の画像データにばらつきが残存していても、その影響を緩和することができる。
【0031】
図18は、ラプラシアン・フィルタの構成である。ラプラシアン・フィルタはエッジ強調フィルタの典型であるので、エッジ強調フィルタとしてラプラシアン・フィルタの構成を示している。
【0032】
図18において、21乃至21fはフリップ・フロップ、22は第一の遅延回路、23は第二の遅延回路、24乃至24cは加算回路、25は強調係数4を格納するレジスタ、26は乗算回路である。
【0033】
ここで、強調係数を4にしているのは、後の説明で明らかになるように、3×3の2次元画像の中心の画素の平均化された画素データを、該中心の画素の上下及び左右の4画素の平均化された画素データとの間で強調するからである。
【0034】
図18のラプラシアン・フィルタには、図16の平滑フィルタの出力が供給される。該平滑フィルタの出力は、該平滑フィルタに保持される画像データを平均化した画像データであるので、図16のai 、bi 及びci に対応させてAi 、Bi 及びCi と標記すると、フリップ・フロップ21cに図16の画像データb2 に対応する平均化された画像データB2 が保持される時には、フリップ・フロップ21aには平均化された画像データC2 が、フリップ・フロップ21には平均化された画像データC1 が、フリップ・フロップ21dには平均化された画像データB3 が、フリップ・フロップ21bには平均化された画像データB1 が、フリップ・フロップ21fには平均化された画像データA2 が、フリップ・フロップ21eには平均化された画像データA1 が保持される。
【0035】
そして、加算回路24、24a及び24bによって平均化された画像データC2 、B1 、A2 の加算を行ない、乗算回路26によって平均化された画像データB2 に強調係数4を乗算し、加算回路24bの出力と乗算回路26の出力の差を求めて出力する。
【0036】
図19は、面的に見たラプラシアン・フィルタの出力である。
【0037】
即ち、図19は平均化された画像データを有する3×3の2次元画像の中心の画素と、該中心の画素の上下左右の4画素について有効な平均化された画像データを有するものとなっており、且つ、該中心の画像データが(−4)倍されている。
【0038】
従って、該中心の画素がエッジを形成する画素でない場合には、(A2 +B1 +B3 +C2 )と4×B2 の差は小さく、該中心の画素がエッジを形成する画素である場合には、(A2 +B1 +B3 +C2 )と4×B2 の差が大きくなるので、図18に示した演算によってエッジを強調することができる。
【0039】
つまり、図15の構成の赤外線画像装置では、画素の画像データの、雑音などによる変動をエッジであると認識しないように平滑フィルタを使用し、該平滑フィルタの出力によってエッジを検出するようにしている。
【0040】
図21は、エッジ強調フィルタを備える赤外線画像装置の一般的構成である。
【0041】
図21において、
101は、到達する赤外光を受けて走査する光学系、
102は、光学系101が走査した赤外光を検知してアナログ電気信号に変換する赤外線検知器、
103は、赤外線検知器102が出力するアナログ電気信号を所要レベルまで増幅した後にデジタル信号に変換するアナログ・デジタル変換部、
104は、赤外線検知器102を構成する個々の赤外線検知素子の感度オフセットを補正する感度補正部である。
【0042】
又、105aは、エッジ処理部で、エッジ強調フィルタの典型であるラプラシアン・フィルタ2によって構成される。
【0043】
106は、感度補正され、エッジ強調された画像データを受けて、2値化処理やヒストグラム変換などの処理をした後でアナログ信号に変換して画像表示信号を出力する画像処理部、
107は、画像処理部106が出力する画像表示信号を表示して、画面から可視光を出力する表示部である。
【0044】
図21の構成は、感度補正部104が出力する画像データに対してエッジ強調フィルタ2によってエッジを強調して画像処理部106に画像データを供給し、画像処理部106において2値化したりヒストグラム変換して表示画像データを生成するものである。
【0045】
【発明が解決しようとする課題】
図20は、従来の赤外線画像装置におけるエッジ検出方式の第一の問題点を説明する図である。
【0046】
図20(イ)は、直線の真のエッジを有する画像イメージで、矩形が画像全体を、矩形の中の縦の直線が真のエッジである。
【0047】
図20(ロ)は、従来の赤外線画像装置におけるエッジ処理方式の第一の問題点を示す可視エッジである。
【0048】
図15の構成の説明において記載した如く、デジタル化された画像データに対して感度補正部104によって個々の赤外線検知素子のオフセットを補正した画像データについて、平均化した上でエッジ強調を行ない、所定の閾値と比較してエッジ検出をするが、感度補正部104の出力では雑音などによる画像データの変動を完全には補正しきれないことがある。
【0049】
従って、平均化して雑音成分の影響を緩和しているとはいえ、雑音などの影響を含んだままエッジ検出することがある。即ち、真の画像では連続したエッジになっているところでも、図20(ロ)の如く、ラプラシアン・フィルタの出力は一定ではなく、閾値より低レベルになることがある。
【0050】
このため、可視エッジは図20(ロ)に太い実線と細い破線で示す如く、本来は連続な直線であるべきものが、一部エッジが切れることがある。極端な場合、切れる方が長くてエッジ検出に支障が生ずることにもなる。
【0051】
図22は、従来の赤外線画像装置におけるエッジ処理方式の第二の問題点を説明する図で、特に、図21の構成の赤外線画像装置においてフィールド毎にエッジ検出をする場合の問題点を説明する図である。即ち、1つの赤外線検知器によって2つのフィールドの画像データを取得して、1/60秒ずらして1フレームとする場合の問題点である。
【0052】
図22(イ)は、上記の処理によるフィールド間の画像のずれを示す図で、▲1▼は真の原画像、▲2▼はフィールド間の画像のずれを示している。即ち、赤外線検知素子の奇数番目の赤外線検知素子の画像データと偶数番目の赤外線検知素子の画像データがずれて表示されることになるため、同一フレームに異なるフィールドの画像データが一緒に表示されることになる。図22(イ)▲2▼の太い実線と細い破線は上記のことを示している。
【0053】
これでも、画像データに何の処理もしてない場合や、静止している目標物体を表示する場合には特段の表示品質の低下はないが、図21の構成の如く、エッジ強調をしている場合や、動きが大きい目標物体を表示する場合には表示品質の劣化が目につくようになる。
【0054】
図22(ロ)は、フィールド間でのエッジ検出のずれを示すもので、▲1▼は比較のために示すエッジ検出のずれがない場合のラプラシアン・フィルタの出力、▲2▼はエッジ検出のずれがある場合のラプラシアン・フィルタの出力である。
【0055】
即ち、▲1▼のように、実際に近接する画素の画像データによって3×3のエッジ強調のための画像データが形成されるべきところ、▲2▼に示すように、例えば2行目の強調画像データが異なるフレームに移ってしまい、本来のフレームでは破線で示した1フレーム前の2行目の強調画像データと合わせてエッジ強調を行なうことになる。
【0056】
従って、エッジ強調をしている場合や、動きが大きい目標物体を表示する場合には表示品質の劣化が目につくようになるのである。
【0057】
本発明は、かかる問題点に鑑み、赤外線検知器を構成する赤外線検知素子毎の画像データに雑音などによる変動があっても正確にエッジ処理して画像に表示することが可能な赤外線画像のエッジ処理方式、及び、2つのフィールドの画像データを異なるタイミングで取得して1つのフレームに表示するという特殊な画像処理をすることがあっても違和感がない画像を表示することが可能な赤外線画像のエッジ処理方式を提供することを目的とする。
【0058】
【課題を解決するための手段】
本発明の第一の手段は、
画像データを平均化してエッジ強調し、エッジ強調された画像データと閾値比較してエッジ検出を行なう赤外線画像のエッジ処理方式において、
雑音などによる画像データの変動を該閾値に加算した第一の閾値と、該画像データの変動を該閾値から減算した第二の閾値とを生成し、
該エッジ強調された画像データと該第一の閾値を比較して得たデジタル信号と、該エッジ強調された画像データと該第二の閾値を比較して得たデジタル信号とを併用した2ビットのディジタル信号を10進変換して、その値によって該画像データの中心の画素がエッジであると判定する技術である。
【0059】
本発明の第一の手段によれば、該エッジ強調された画像データと該第一の閾値を比較して得たデジタル信号の論理レベルが“1”であれば、着目している画素にエッジが存在することが確実であり、該エッジ強調された画像データと該第二の閾値を比較して得たデジタル信号の論理レベルが“0”であれば、着目している画素にエッジが存在しないことが確実であり、該エッジ強調された画像データと該第一の閾値を比較して得たデジタル信号の論理レベルが“1”で、該エッジ強調された画像データと該第二の閾値を比較して得たデジタル信号の論理レベルが“0”であれば、着目している画素にエッジが存在する可能性を認識することができるので、エッジ検出の確度を高めることができる。
【0060】
又、本発明の第一の手段において、該画像データの変動に設定可能な係数を乗算し、該閾値と加減算して第一の閾値及び第二の閾値を生成するという変形も可能である。
【0061】
本発明の第二の手段は、
連続して入力される画像データに対してエッジ強調する技術において、
連続して入力される複数の画像データを平均化し、
該平均化された画像データに対してエッジ強調を行なう技術である。
【0062】
本発明の第二の手段によれば、赤外線検知器の赤外線検知素子方向、即ちライン方向に画像データの平均化して画像データの変動を抑圧しながら、サンプル方向のエッジを強調することができる。
【0063】
又、本発明の第二の手段において、連続して入力される画像データの各々に重み係数を乗算して平均化するという変形も可能である。
【0064】
本発明の第三の手段は、
エッジ強調を行なうラプラシアン・フィルタにおいて、
奇数番目のフィールドの画像データを保持する記憶素子と偶数番目のフィールドの画像データを保持する記憶素子の間にダミーの記憶素子を挿入し、
ラプラシアン・フィルタの出力を形成すべき行の画像データを全て仮想的な同一フレームの画像データとして取り扱う技術である。
【0065】
本発明の第三の手段によれば、ラプラシアン・フィルタの出力を形成すべき行の画像データを全て仮想的な同一フレームの画像データとして取り扱うことになるので、2つのフィールドの画像データを異なるタイミングで取得して1つのフレームに表示するという特殊な画像処理をしている場合に、同一フレームの画像データによってエッジ強調をすることができる。従って、上記画像処理をしている場合にも、エッジ強調による赤外線画像の表示品質の低下を防止することが可能になる。
【0066】
【発明の実施の形態】
図1は、本発明のエッジ処理回路の第一の実施の形態である。
【0067】
図1において、
1は、平滑フィルタで、3×3の2次元画像の画像データによって9つの画素の中心の画素の画像データを平均化した画像データとするものである。
【0068】
2は、平滑フィルタ1が出力する平均化された画像データに対してエッジ強調を行なうラプラシアン・フィルタである。
【0069】
3は、雑音などによる画像データの変動を格納するメモリである。
【0070】
4は、所定の閾値を格納するレジスタである。
【0071】
5は、レジスタ4が格納している閾値とメモリ3から読み出した画像データの変動を加算して第一の閾値を生成する第一の加算回路、5aは、レジスタ4が格納している閾値からメモリ3から読み出した画像データの変動を減算して第二の閾値を生成する第二の加算回路、
6は、ラプラシアン・フィルタ2の出力と該第一の閾値とを比較する第一のコンパレータ、6aは、ラプラシアン・フィルタ2の出力と該第二の閾値とを比較する第二のコンパレータである。
【0072】
7は、第一のコンパレータ6の出力pと第二のコンパレータ6aの出力qとを受けて、エッジの有無を判定するエッジ監視フィルタで、エッジ監視フィルタ7の出力がエッジ検出信号となる。
【0073】
即ち、画像データの変動を該閾値に加算した該第一の閾値と、該画像データの変動を該閾値から減算した該第二の閾値とを生成し、エッジ監視フィルタにおいて、該エッジ強調された画像データと該第一の閾値を比較して得たデジタル信号pと、該エッジ強調された画像データと該第二の閾値を比較して得たデジタル信号qとを併用してエッジ検出を行なう。
【0074】
図2は、図1の構成におけるエッジ監視フィルタの構成である。
【0075】
図2において、
71乃至71hは、図1の第一のコンパレータ6及び第二のコンパレータ6aから供給されるデジタル信号を保持するフリップ・フロップである。
【0076】
72は、1ライン分の遅延時間を有する第一の遅延回路、73は、2ライン分の遅延時間を有する第二の遅延回路である。
【0077】
74は、全てのフリップ・フロップ71乃至71hの出力を受けて、該出力を10進数に変換した数値によってエッジ検出をするデコーダである。
【0078】
尚、75は、2ビットのデジタル信号p及びqを集線するという意味を持つ回路シンボルである。即ち、回路シンボル75は、入力における2ビットのデジタル信号を出力側では1本の線で表わすものである。
【0079】
従って、全てのフリップ・フロップ71乃至71hと、第一の遅延回路72と第二の遅延回路73は、全て2ビットのデジタル信号に対応するものである。これを正確に図示していないのは図の煩雑化を避けるためで、図16における表示法と同じである。
【0080】
さて、図2の構成において、2ビットのデジタル信号pとqは、フリップ・フロップ71乃至71bには直接入力され、フリップ・フロップ71c乃至71eには1ラインの遅延を受けて入力され、フリップ・フロップ71f乃至71hには2ラインの遅延を受けて入力される。
【0081】
従って、フリップ・フロップ71乃至71hに保持されているデジタル信号pとqは、3×3の2次元画像の中心の画素と該中心の画素を取り囲む8画素における2ビットのデジタル信号である。デコーダ74は、フリップ・フロップ71乃至71hに保持されている2ビットのデジタル信号を10進変換して、その値によって該中心の画素がエッジであるか否かを判定する。
【0082】
即ち、デジタル信号pとqの論理レベルが共に“0”の時には10進数を0とし、デジタル信号pの論理レベルが“0”でデジタル信号qの論理レベルが“1”の時には10進数を1とし、デジタル信号pとqの論理レベルが共に“1”の時には10進数を3とする。そして、もしデジタル信号pの論理レベルが“1”でデジタル信号qの論理レベルが“0”である場合には、これを無視して10進変換しない。
【0083】
何故かというと、デジタル信号pは図1のメモリ3に格納されている画像データの変動とレジスタ4に格納されている閾値の和である第一の閾値とラプラシアン・フィルタ2の出力を比較した出力で、デジタル信号qは図1のレジスタ4に格納されている閾値とメモリ3に格納されている画像データの変動の差である第二の閾値とラプラシアン・フィルタ2の出力を比較した出力である。つまり、該第二の閾値は該第一の閾値より小さい。
【0084】
従って、ラプラシアン・フィルタ2の出力が該第一の閾値より大きくて、該第二の閾値より小さいということは物理的にあり得ないので、もしデジタル信号pの論理レベルが“1”でデジタル信号qの論理レベルが“0”である場合には、これを無視して10進変換しないのである。
【0085】
そして、図2のフリップ・フロップ71dに保持されているデジタル信号を10進変換した値が3の時には、3×3の2次元画像の中心の画素は無条件にエッジであると判定する。
【0086】
又、図2のフリップ・フロップ71dに保持されているデジタル信号を10進変換した値が1の時には、3×3の2次元画像の中心の画素はエッジである可能性があるとし、周囲の8つの画素に対応する10進数に3もしくは1がある時には該中心の画素はエッジであると判定する。
【0087】
更に、図2のフリップ・フロップ71dに保持されているデジタル信号を10進変換した値が0の時には、3×3の2次元画像の中心の画素は無条件にエッジではないと判定する。
【0088】
図3は、図1の構成のエッジ検出機能を説明する図である。
【0089】
図3(イ)は、直線の真のエッジを有する画像イメージで、矩形が画像全体を、矩形の中に描かれている縦の直線が真のエッジである。
【0090】
図3(ロ)は、図1の構成のエッジ検出機能を説明するための可視エッジで、該デジタル信号pとqの論理レベル及びpとqからなる2ビットのデジタル信号を10進変換した数を併記している。
【0091】
図1の構成の如く、デジタル化された画像データに対して感度補正部104によって個々の画素の画素データのオフセットを補正した画像データについて、平均化した上でエッジ強調を行ない、所定の閾値と比較してエッジ検出をする場合には、感度補正部104の出力では画像データの変動を完全には補正しきれないことがある。
【0092】
従って、平均化して画像データの変動の影響を緩和するとはいえ、該変動の影響を含んだままエッジ検出することがある。即ち、真の画像では連続したエッジになっているところでも、図3(ロ)の太い実線の如く、ラプラシアン・フィルタの出力は一定ではなく、細い破線で示される閾値より低レベルになることがある。
【0093】
しかし、図2の構成ではラプラシアン・フィルタの出力と上記第一の閾値及び上記第二の閾値との比較をして、双方を用いて上記の如くエッジの有無を判定するので、判定結果が正確になる。
【0094】
仔細に見ると、デジタル信号pの論理レベルが上から順に“0”、“0”、“1”、“1”、“0”、“0”“1”、“1”、“1”、“0”、“1”、“0”、“0”であり、デジタル信号qの論理レベルが上から“0”、“0”、“1”、“1”、“1”、“1”、“1”、“1”、“1”、“1”、“1”、“0”、“0”であるから、10進数は上から順に0、0、3、3、1、1、3、3、3、1、3、0、0となる。
【0095】
上記の判定方法により、10進数が3になっているところは無条件にエッジであると判定し、10進数が0になっているところは無条件にエッジでないと判定する。
【0096】
一方、10進数が1になっているところについては、周囲の8つの画素に対応する10進数に3もしくは1がある時にエッジであると判定する。上記の例の場合、10進数が1になっている画素の上下の画素において10進数が3もしくは1になっているのでエッジであると判定する。
【0097】
尚、図3では特定のライン上の画素に対するエッジ検出の10進数を示しているが、同じことを隣接ライン上の画素に対するエッジ検出の10進数を求めて見れば、上記の判定条件の根拠が妥当であることがよく判る。
【0098】
又、上記では2ビットのデジタル信号pとqを10進数に変換してエッジの有無の可能性の判定を行なうと記載したが、これに限定されるものではない。
【0099】
即ち、2ビットのデジタル信号pとqの論理レベル自体のパターンを使ってエッジの有無の可能性の判定を行なうことも可能である。つまり、本発明の本質は、2ビットのデジタル信号pとqをを併用してエッジの有無の可能性の判定を行なうことにある。
【0100】
ところで、図1のメモリ3に格納されている、画像データの変動の値によっては、上記第一の閾値及び上記第二の閾値と図1のラプラシアン・フィルタ2の出力の大小関係が適切ではなくなり、エッジとなっている画素において上記10進数が0になったり、エッジではない画素において上記10進数が1になる恐れを否定できない。次に説明するのは、エッジとなっている画素において上記10進数が0になったり、エッジではない画素において上記10進数が1になることを回避する技術である。
【0101】
図4は、本発明のエッジ処理回路の第二の実施の形態である。
【0102】
図4において、
1は、平滑フィルタで、3×3の2次元画像の画像データによって9つの画素の中心の画素の画像データを平均化した画像データとするものである。
【0103】
2は、平滑フィルタ1が出力する平均化された画像データに対してエッジ強調を行なうラプラシアン・フィルタである。
【0104】
3は、雑音などによる画像データの変動を格納するメモリである。
【0105】
4は、所定の閾値を格納するレジスタである。
【0106】
8は、メモリ3に格納されている画像データの変動に乗算する係数を格納するレジスタである。
【0107】
9は、メモリ3に格納されている画像データの変動と、レジスタ8に格納されている係数を乗算する乗算回路である。
【0108】
5は、レジスタ4が格納している閾値と乗算回路9の出力を加算して第三の閾値を生成する第一の加算回路、5aは、レジスタ4が格納している閾値から乗算回路9の出力を減算して第四の閾値を生成する第二の加算回路である。
【0109】
6は、ラプラシアン・フィルタ2の出力と該第三の閾値とを比較する第一のコンパレータ、6aは、ラプラシアン・フィルタ2の出力と該第四の閾値とを比較する第二のコンパレータである。
【0110】
7は、第一のコンパレータ6の出力pと第二のコンパレータ6aの出力qとを受けて、エッジの有無を判定するエッジ監視フィルタで、エッジ監視フィルタ7の出力がエッジ検出信号となる。
【0111】
即ち、画像データの変動に対して設定された係数を乗算した値を該閾値に加算した該第三の閾値と、該画像データの変動に対して設定された係数を乗算した値を該閾値から減算した該第四の閾値とを生成し、エッジ監視フィルタにおいて、該エッジ強調された画像データと該第三の閾値を比較して得たデジタル信号pと、該エッジ強調された画像データと該第四の閾値を比較して得たデジタル信号qとを併用してエッジ監視フィルタにおいてエッジ検出を行なう。
【0112】
尚、エッジ監視フィルタの構成は図2に示した構成と同一である。又、図4の構成は、予めメモリ3に格納されている画像データの変動に係数を乗算する点だけが図1の構成と違う点である。従って、図4の構成の動作は本質的に図1の構成の動作と同じであるので、図4の構成の動作説明は省略する。
【0113】
さて、図1及び図4において、メモリ3には画像データの変動を格納するという説明をしたが、該画像データの変動については未だ説明をしていない。そこで、以降暫くの間、画像データの変動として適用できる物理量とその計算について説明する。
【0114】
第一の物理量は、雑音の低周波成分である。これは、監視に先立って赤外線検知器に温度基準板からの赤外線を複数回入射させて、ラインを構成する画素毎の画像データをフレーム内でサンプル方向に平均した平均的なラインの画像データを複数回計算し、前回の計算値との差を求めて格納したものである。即ち、ラインを構成する画素毎の画像データをフレーム内で平均した平均的なラインの画像データの変動であるから、物理的には雑音の低周波成分となる訳である。
【0115】
図5は、低周波成分の計算のための構成である。
【0116】
図5において、111は加算回路、112は第一のライン・メモリである。
【0117】
加算回路111には、1ライン分の画像データ(サンプル・データ)が入力され、第一のライン・メモリ112に書き込まれ、書き込まれたサンプル・データは次のサンプル・データが入力される時に第一のライン・メモリ112から読み出されて、加算回路111において第一のライン・メモリ112から読み出されたデータと入力されるサンプル・データが加算される。この動作をサンプル方向にサンプル数だけ行なえば、最終的に第一のライン・メモリ112にはサンプル・データをフレーム内で積分したデータが格納される。
【0118】
113はデータ取得回数のLSB(Least Significant Bit の頭文字を取った一般的な略語である。)を反転入力端子に受け、加算回路111の出力を非反転入力端子に受ける論理積回路(正確には、入力されるデータが複数ビットの並列データであるので、複数の論理積回路で構成される論理積回路群であるが、あたかも単一の論理積回路の如く図示している。)、114はデータ取得回数のLSBを非反転入力端子に受け、加算回路111の出力を非反転入力端子に受ける論理積回路(正確には、入力されるデータが複数ビットの並列データであるので、複数の論理積回路で構成される論理積回路群であるが、あたかも単一の論理積回路の如く図示している。)、115は論理積回路113の出力を格納する第二のライン・メモリ、116は論理積回路114の出力を格納する第三のライン・メモリである。
【0119】
データ取得回数を0からカウントするものとすれば、1回目のデータ取得時にはデータ取得回数のLSBは“0”であるので、加算回路111の出力は第二のライン・メモリに書き込まれる。しかも、この書き込みはサンプル・データが入力される度に第二のライン・メモリ115に格納されているデータに上書きする形で行なわれる。
【0120】
2回目のデータ取得時にはデータ取得回数のLSBは“1”であるので、加算回路111の出力は第三のライン・メモリ116に書き込まれる。しかも、この書き込みはサンプル・データが入力される度に第三のライン・メモリ116に格納されているデータに上書きする形で行なわれる。
【0121】
117は第二のライン・メモリ115と第三のライン・メモリ116の出力の差を求める加算回路、118はサンプル数を格納するレジスタ、119は加算回路117の出力をレジスタ118に格納されているサンプル数で除算する除算回路、120は除算回路119の出力の絶対値を求める絶対値演算回路、121は絶対値演算回路120の出力を格納する第四のライン・メモリである。
【0122】
上記の如く第二のライン・メモリ115と第三のライン・メモリ116に、フレーム内で全サンプル・データの加算が格納された後に、第二のライン・メモリ115と第三のライン・メモリ116からデータを読み出して、加算回路117によって両者の差を求める。
【0123】
その上で、除算回路119において加算回路117の出力を画素毎にサンプル数で除算し、ラインを構成する画素毎にフレーム内で平均した画像データを求め、絶対値演算回路120によって除算回路119の出力を絶対値化して、第四のライン・メモリ121に格納する。
【0124】
そして、監視開始後に図5の第四のライン・メモリ121を図1又は図4のメモリ3として使用すればよい。
【0125】
第二の物理量は、雑音の最大値と最小値の差、即ちピーク・ピーク値である。これは、監視に先立って赤外線検知器に温度基準板からの赤外線を入射させて得た画像データに対して、ラインを構成する画素毎の画像データをサンプル方向に比較して最大値と最小値を求め、これらの差を求めて格納したものである。即ち、ラインを構成する画素毎の画像データの最大値と最小値の差であるから、物理的には雑音のピーク・ピーク値である。
【0126】
図6は、ピーク・ピーク値の計算のための構成である。
【0127】
図6において、122は1フレーム分の画像データを格納するフレーム・メモリ、123はライン内の同一アドレスの画素の画像データの最大値を格納する第一のレジスタ、123aはライン内の同一アドレスの画素の画像データの最小値を格納する第二のレジスタ、124は第一のレジスタから読み出した画像データとフレーム・メモリから読み出した画像データを比較して、フレーム・メモリから読み出した画像データの方が大きい時に第一のレジスタに書き込みイネーブル信号を供給する第一のコンパレータ、124aは第二のレジスタから読み出した画像データとフレーム・メモリから読み出した画像データを比較して、フレーム・メモリから読み出した画像データの方が小さい時に第二のレジスタに書き込みイネーブル信号を供給する第二のコンパレータである。
【0128】
フレーム・メモリ122には、監視に先立って赤外線検知器に温度基準板からの赤外線を入射させて得た1フレーム分の画像データを格納しておく。
【0129】
まず、第一のレジスタ123をクリアすると共に、第二のレジスタ123aには想定しうる最大値を書き込んでおく。
【0130】
ついで、異なるラインの同一アドレスの画素の画像データを順に読み出して第一のレジスタ123、第一のコンパレータ124、第二のレジスタ123a及び第二のコンパレータ124aに供給する。
【0131】
最初に画像データが第一のレジスタ123、第一のコンパレータ124、第二のレジスタ123a及び第二のコンパレータ124aに供給された時には、供給された画像データは第一のレジスタ123に格納されている値より必ず大きいので、供給された画像データが第一のレジスタ123に格納され、又、供給された画像データは第二のレジスタ123aに格納されている値より必ず小さいので、供給された画像データが第二のレジスタ123aに格納される。
【0132】
次に、異なるラインの同一アドレスの画像データが供給された時には、第一のコンパレータ124は、供給された画像データが第一のレジスタ123から読み出された画像データより大きい時に書き込みイネーブル信号を出力し、供給された画像データが第一のレジスタ123から読み出された画像データより小さい時に書き込みイネーブル信号を出力しない。従って、供給された画像データが第一のレジスタ123から読み出された画像データより大きい時に該供給された画像データが第一のレジスタ123に上書きされる。
【0133】
又、第二のコンパレータ124aは、供給された画像データが第二のレジスタ123aから読み出された画像データより小さい時に書き込みイネーブル信号を出力し、供給された画像データが第二のレジスタ123aから読み出された画像データより大きい時に書き込みイネーブル信号を出力しない。従って、供給された画像データが第二のレジスタ123aから読み出された画像データより小さい時に該供給された画像データが第二のレジスタ123aに上書きされる。
【0134】
上記の動作が、フレーム内のサンプル数から1を減じた数に等しい回数行なわれると、全てのラインの特定アドレスの画像データの最大値が第一のレジスタ123に格納され、最小値が第二のレジスタ123aに格納される。
【0135】
125は第一のレジスタ123と第二のレジスタ123aから読み出される画像データの最大値と最小値の差を求める加算回路、126は加算回路125の出力を格納する第五のライン・メモリである。
【0136】
全てのラインの特定アドレスの画像データの最大値と最小値が第一のレジスタ123と第二のレジスタ123aに格納された時に該最大値と該最小値を双方のレジスタから読み出し、加算回路125によって該最大値と該最小値の差、即ち、ピーク・ピーク値を求め、求めたピーク・ピーク値を第五のライン・メモリ126の当該アドレスに格納する。
【0137】
上記の動作をラインを構成する画素数に等しい回数行なえば、第五のライン・メモリ126にはラインを構成する全ての画素の画像データのピーク・ピーク値が格納できる。
【0138】
そして、監視開始後に図6の第五のライン・メモリ126を図1又は図4ののメモリ3として使用すればよい。
【0139】
さて、上記の如くして求めたライン内の同一アドレスの画像データのピーク・ピーク値をそのまま画像データの変動として使用してもよいが、画素間の特性のばらつきが大きい時や欠陥画素が含まれている時には、求めた画像データのピーク・ピーク値をそのまま雑音による画像データの変動として使用することが危険なことが多い。
【0140】
そこで、本発明は、突出したピーク・ピーク値が生じないような処置をして画像データの変動として使用する。
【0141】
図7は、突出値の排除処理(その1)で、図6の構成によって求めたピーク・ピーク値に突出値がある場合にそれを排除するものである。以降、図7の符号に沿って説明する。
【0142】
そして、図7では、最大のピーク・ピーク値からm(mは少なくとも2以上の整数である。)番目に大きいピーク・ピーク値の間と、最小のピーク・ピーク値からm番目に小さいピーク・ピーク値の間で突出値の排除を行なうものとしている。
【0143】
S1.図6の構成によって求めたピーク・ピーク値について、最大のピーク・ピーク値からm番目に大きいピーク・ピーク値までをソーティングによって求める。
【0144】
尚、ソーティングの技術は一般的な技術となっているので、図と説明の記載は省略する。
【0145】
S2.(m−1)番目に大きいピーク・ピーク値と、m番目に大きいピーク・ピーク値の差を求める。
【0146】
S3.上記差が所定の閾値より大きいか否かを判定する。
【0147】
S4.ステップS4で、上記差が所定の閾値より大きいと判定された場合(Yes)には、(m−1)番目に大きいピーク・ピーク値はm番目に大きいピーク・ピーク値に対して異常に突出していると考えられるので、m番目のピーク・ピーク値を最大値に決定し、(m−1)番目のピーク・ピーク値以上のピーク・ピーク値をm番目のピーク・ピーク値に置換して、ステップS11にジャンプする。
【0148】
S5.ステップS4で、上記差が所定の閾値より小さいと判定された場合(No)には、(m−2)番目のピーク・ピーク値と(m−1)番目のピーク・ピーク値との差を求める。
【0149】
S6.上記差が所定の閾値より大きいか否かを判定する。
【0150】
S7.ステップS6で、上記差が所定の閾値より大きいと判定された場合(Yes)には、(m−2)番目に大きいピーク・ピーク値は(m−1)番目に大きいピーク・ピーク値に対して異常に突出していると考えられるので、(m−1)番目のピーク・ピーク値を最大値に決定し、(m−2)番目のピーク・ピーク値以上のピーク・ピーク値を(m−1)番目のピーク・ピーク値に置換して、ステップS11にジャンプする。
【0151】
そして、ステップS6で、上記差が所定の閾値より小さいと判定された場合(No)には、次に大きいピーク・ピーク値の比較を行ない、上記と同様な判定と処置を継続し、2番目のピーク・ピーク値が3番目のピーク・ピーク値に対して突出していない場合には、ステップS8に移行する。
【0152】
S8.最大のピーク・ピーク値と2番目のピーク・ピーク値との差を求める。
【0153】
S9.上記差が所定の閾値より大きいか否かを判定する。
【0154】
上記差が所定の閾値より小さいと判定された場合(No)には、ステップS11にジャンプする。
【0155】
S10.ステップS9で、上記差が所定の閾値より大きいと判定された場合(Yes)には、2番目のピーク・ピーク値を最大値に決定し、最大のピーク・ピーク値を2番目のピーク・ピーク値に置換して、ステップS11にジャンプする。
【0156】
S11.図6の構成によって求めたピーク・ピーク値について、最小のピーク・ピーク値からm番目に小さいピーク・ピーク値までをソーティングによって求める。
【0157】
S12.(m−1)番目に小さいピーク・ピーク値と、m番目に小さいピーク・ピーク値の差を求める。
【0158】
S13.上記差が所定の閾値より小さいか否かを判定する。
【0159】
S14.ステップS13で、上記差が所定の閾値より小さいと判定された場合(Yes)には、(m−1)番目に小さいピーク・ピーク値はm番目に小さいピーク・ピーク値に対して異常に突出していると考えられるので、m番目のピーク・ピーク値を最小値に決定し、(m−1)番目のピーク・ピーク値以上のピーク・ピーク値をm番目のピーク・ピーク値に置換して、処理を終了する。
【0160】
S15.ステップS14で、上記差が所定の閾値より小さいと判定された場合(No)には、(m−2)番目のピーク・ピーク値と(m−1)番目のピーク・ピーク値との差を求める。
【0161】
S16.上記差が所定の閾値より小さいか否かを判定する。
【0162】
S17.ステップS16で、上記差が所定の閾値より小さいと判定された場合(Yes)には、(m−2)番目に小さいピーク・ピーク値は(m−1)番目に小さいピーク・ピーク値に対して異常に突出していると考えられるので、(m−1)番目のピーク・ピーク値を最小値に決定し、(m−2)番目のピーク・ピーク値以上のピーク・ピーク値を(m−1)番目のピーク・ピーク値に置換して、処理を終了する。
【0163】
そして、ステップS16で、上記差が所定の閾値より小さいと判定された場合(No)には、次に小さいピーク・ピーク値の比較を行ない、上記と同様な判定と処置を継続し、2番目のピーク・ピーク値が3番目のピーク・ピーク値に対して突出していない場合には、ステップS18に移行する。
【0164】
S18.最小のピーク・ピーク値と2番目のピーク・ピーク値との差を求める。
【0165】
S19.上記差が所定の閾値より小さいか否かを判定する。
【0166】
上記差が所定の閾値より小さいと判定された場合(No)には、処理を終了する。
【0167】
S20.ステップS19で、上記差が所定の閾値より小さいと判定された場合(Yes)には、2番目のピーク・ピーク値を最小値に決定し、最小のピーク・ピーク値を2番目のピーク・ピーク値に置換して、処理を終了する。
【0168】
上記処理を行なうことによって、画素のばらつきが大きい場合や欠陥画素が含まれている場合にも、異常なピーク・ピーク値を雑音による画像データの変動として使用することがなくなるので、図1又は図4の構成によるピーク検出の確度を高めることができる。
【0169】
ここで、最大値又は最小値からm番目のピーク・ピーク値と(m−1)番目のピーク・ピーク値の比較を最初に行なうのは、(m−1)番目のピーク・ピーク値以上が異常に突出していて、m番目以下のピーク・ピーク値の分布が妥当な場合に、異常値を全て排除できる利点があるためである。
【0170】
しかし、上記のように異常値が複数あることは想定しにくい場合には、最大値又は最小値から1番目のピーク・ピーク値と2番目のピーク・ピーク値の比較を最初に行なうことも可能である。
【0171】
そして、このことは、以下に記載する突出値の排除処理においても同様である。
【0172】
図8は、突出値の排除処理(その2)で、赤外線検知器を構成する画素の画像データに突出値がある場合に、画像データの突出値に影響されていると思われるピーク・ピーク値を排除し、異常値が混入しないようにするものである。以降、図8の符号に沿って説明する。
【0173】
S61.赤外線検知を構成する画素毎に画像データの平均値を求めて最大からm番目までソーティングし、又、ピーク・ピーク値も最大からm番目までソーティングする。
【0174】
S62.(m−1)番目に大きい画像データの平均値と、m番目に大きい画像データの平均値の差を求める。
【0175】
S63.上記差が所定の閾値より大きいか否かを判定する。
【0176】
S64.ステップS63で、上記差が所定の閾値より大きいと判定された場合(Yes)には、(m−1)番目に大きいピーク・ピーク値はm番目に大きいピーク・ピーク値に対して異常に突出していると考えられるので、m番目のピーク・ピーク値を最大値に決定し、(m−1)番目のピーク・ピーク値以上のピーク・ピーク値をm番目のピーク・ピーク値に置換して、ステップS71にジャンプする。
【0177】
S65.ステップS63で、上記差が所定の閾値より小さいと判定された場合(No)には、(m−2)番目の画像データの平均値と(m−1)番目の画像データの平均値との差を求める。
【0178】
S66.上記差が所定の閾値より大きいか否かを判定する。
【0179】
S67.ステップS66で、上記差が所定の閾値より大きいと判定された場合(Yes)には、(m−2)番目に大きいピーク・ピーク値は(m−1)番目に大きいピーク・ピーク値に対して異常に突出していると考えられるので、(m−1)番目のピーク・ピーク値を最大値に決定し、(m−2)番目のピーク・ピーク値以上のピーク・ピーク値を(m−1)番目のピーク・ピーク値に置換して、ステップS71にジャンプする。
【0180】
そして、ステップS66で、上記差が所定の閾値より小さいと判定された場合(No)には、次に大きい画像データの平均値の比較を行ない、上記と同様な判定と処置を継続し、2番目の画像データの平均値が3番目の画像データの平均値に対して突出していない場合には、ステップS68に移行する。
【0181】
S68.最大の画像データの平均値と2番目の画像データの平均値との差を求める。
【0182】
S69.上記差が所定の閾値より大きいか否かを判定する。
【0183】
上記差が所定の閾値より小さいと判定された場合(No)には、ステップS71にジャンプする。
【0184】
S70.ステップS69で、上記差が所定の閾値より大きいと判定された場合(Yes)には、2番目のピーク・ピーク値を最大値に決定し、最大のピーク・ピーク値を2番目のピーク・ピーク値に置換して、ステップS71にジャンプする。
【0185】
S71.赤外線検知を構成する画素毎に画像データの平均値を求めて最小からm番目までソーティングし、又、ピーク・ピーク値も最小からm番目までソーティングする。
【0186】
S72.(m−1)番目に小さい画像データの平均値と、m番目に小さい画像データの平均値の差を求める。
【0187】
S73.上記差が所定の閾値より小さいか否かを判定する。
【0188】
S74.ステップS73で、上記差が所定の閾値より小さいと判定された場合(Yes)には、(m−1)番目に小さいピーク・ピーク値はm番目に小さいピーク・ピーク値に対して異常に突出していると考えられるので、m番目のピーク・ピーク値を最小値に決定し、(m−1)番目のピーク・ピーク値以上のピーク・ピーク値をm番目のピーク・ピーク値に置換して、処理を終了する。
【0189】
S75.ステップS73で、上記差が所定の閾値より小さいと判定された場合(No)には、(m−2)番目の画像データの平均値と(m−1)番目の画像データの平均値との差を求める。
【0190】
S76.上記差が所定の閾値より小さいか否かを判定する。
【0191】
S77.ステップS76で、上記差が所定の閾値より小さいと判定された場合(Yes)には、(m−2)番目に小さいピーク・ピーク値は(m−1)番目に小さいピーク・ピーク値に対して異常に突出していると考えられるので、(m−1)番目のピーク・ピーク値を最小値に決定し、(m−2)番目のピーク・ピーク値以上のピーク・ピーク値を(m−1)番目のピーク・ピーク値に置換して、処理を終了する。
【0192】
そして、ステップS76で、上記差が所定の閾値より小さいと判定された場合(No)には、次に小さい画像データの平均値の比較を行ない、上記と同様な判定と処置を継続し、2番目の画像データの平均値が3番目の画像データの平均値に対して突出していない場合には、ステップS78に移行する。
【0193】
S78.最小の画像データの平均値と2番目の画像データの平均値との差を求める。
【0194】
S79.上記差が所定の閾値より小さいか否かを判定する。
【0195】
上記差が所定の閾値より小さいと判定された場合(No)には、処理を終了する。
【0196】
S80.ステップS79で、上記差が所定の閾値より小さいと判定された場合(Yes)には、2番目のピーク・ピーク値を最小値に決定し、最小のピーク・ピーク値を2番目のピーク・ピーク値に置換して、処理を終了する。
【0197】
上記処理を行なうことによって、画素のばらつきが大きい場合や欠陥画素が含まれている場合にも、異常なピーク・ピーク値を画像データの変動として使用することがなくなるので、図1又は図4の構成によるピーク検出の確度を高めることができる。
【0198】
図9は、突出値の排除処理(その3)で、ラインを構成する画素毎に画像データの突出値を排除して、突出値を排除した画像データを使用して図6の構成によってピーク・ピーク値を求めるられるようにするものである。以降、図9の符号に沿って説明する。
【0199】
S31.同一ライン内で最大の画像データからからm番目に大きい画像データまでをソーティングによって求める。
【0200】
S32.(m−1)番目に大きい画像データと、m番目に大きい画像データの差を求める。
【0201】
S33.上記差が所定の閾値より大きいか否かを判定する。
【0202】
S34.ステップS33で、上記差が所定の閾値より大きいと判定された場合(Yes)には、(m−1)番目に大きい画像データはm番目に大きい画像データに対して異常に突出していると考えられるので、m番目の画像データを最大値に決定し、(m−1)番目の画像データ以上の画像データをm番目の画像データに置換して、ステップS41にジャンプする。
【0203】
S35.ステップS33で、上記差が所定の閾値より小さいと判定された場合(No)には、(m−2)番目の画像データと(m−1)番目の画像データとの差を求める。
【0204】
S36.上記差が所定の閾値より大きいか否かを判定する。
【0205】
S37.ステップS36で、上記差が所定の閾値より大きいと判定された場合(Yes)には、(m−2)番目に大きい画像データは(m−1)番目に大きい画像データに対して異常に突出していると考えられるので、(m−1)番目の画像データを最大値に決定し、(m−2)番目の画像データ以上の画像データを(m−1)番目の画像データに置換して、ステップS41にジャンプする。
【0206】
そして、ステップS36で、上記差が所定の閾値より小さいと判定された場合(No)には、次に大きい画像データの比較を行ない、上記と同様な判定と処置を継続し、2番目の画像データが3番目の画像データに対して突出していない場合には、ステップS38に移行する。
【0207】
S38.最大の画像データと2番目の画像データとの差を求める。
【0208】
S39.上記差が所定の閾値より大きいか否かを判定する。
【0209】
上記差が所定の閾値より小さいと判定された場合(No)には、ステップS41にジャンプする。
【0210】
S40.ステップS39で、上記差が所定の閾値より大きいと判定された場合(Yes)には、2番目の画像データを最大値に決定し、最大の画像データを2番目の画像データに置換して、ステップS41にジャンプする。
【0211】
S41.同一ライン内で最小の画像データからからm番目に小さい画像データまでをソーティングによって求める。
【0212】
S42.(m−1)番目に小さい画像データと、m番目に小さい画像データの差を求める。
【0213】
S43.上記差が所定の閾値より小さいか否かを判定する。
【0214】
S44.ステップS43で、上記差が所定の閾値より小さいと判定された場合(Yes)には、(m−1)番目に小さい画像データはm番目に小さい画像データに対して異常に突出していると考えられるので、m番目の画像データを最小値に決定し、(m−1)番目の画像データ以上の画像データをm番目の画像データに置換して、ステップS51にジャンプする。
【0215】
S45.ステップS43で、上記差が所定の閾値より小さいと判定された場合(No)には、(m−2)番目の画像データと(m−1)番目の画像データとの差を求める。
【0216】
S46.上記差が所定の閾値より小さいか否かを判定する。
【0217】
S47.ステップS46で、上記差が所定の閾値より小さいと判定された場合(Yes)には、(m−2)番目に小さい画像データは(m−1)番目に小さい画像データに対して異常に突出していると考えられるので、(m−1)番目の画像データを最小値に決定し、(m−2)番目の画像データ以上の画像データを(m−1)番目の画像データに置換して、ステップS51にジャンプする。
【0218】
そして、ステップS46で、上記差が所定の閾値より小さいと判定された場合(No)には、次に小さい画像データの比較を行ない、上記と同様な判定と処置を継続し、2番目の画像データが3番目の画像データに対して突出していない場合には、ステップS48に移行する。
【0219】
S48.最小の画像データと2番目の画像データとの差を求める。
【0220】
S49.上記差が所定の閾値より小さいか否かを判定する。
【0221】
上記差が所定の閾値より小さいと判定された場合(No)には、ステップS51に移行する。
【0222】
S50.一方、ステップS49で、上記差が所定の閾値より小さいと判定された場合(Yes)には、2番目の画像データを最小値に決定し、最小の画像データを2番目の画像データに置換して、ステップS51に移行する。
【0223】
S51.上記処理を全てのラインについて行なったか否かを判定する。
【0224】
S52.ステップS51で、上記処理を全てのラインについて終了していないと判定された場合(No)には、ライン番号を歩進して、ステップS31にジャンプする。
【0225】
一方、ステップS51で、上記処理を全てのラインについて行なったと判定された場合(Yes)には、処理を終了する。
【0226】
上記処理を行なうことによって、ライン内で画素毎に見て突出した画像データを排除してからピーク・ピーク値を求めることができるようになるので、処理時間が若干増加することを許容できれば、画素のばらつきが大きい場合や欠陥画素が含まれている場合にも、図1又は図4の構成によるピーク検出の確度を一層高めることができる。
【0227】
ところで、図7乃至図9では、ラインを構成する同一アドレスの画素の画像データのピーク・ピーク値自体のばらつきが大きい場合や、ラインを構成する同一アドレスの画素の画像データ自体のばらつきが大きい場合に、突出して大きいピーク・ピーク値及び突出して小さいピーク・ピーク値を妥当なピーク・ピーク値に置換して画像データの変動とするとして説明した。
【0228】
しかし、突出して大きいピーク・ピーク値は瞬時的に高レベルの雑音が生じたとか欠陥画素であるとか、なんらかの異常を表わす可能性が高いが、突出して小さいピーク・ピーク値が異常を表わすか否かは単純には断定できないこともあり得て、突出して小さいピーク・ピーク値を他のピーク・ピーク値に置換すべきか否かは監視対象の特性も含め、しかも、経験的に判断する方がよいことも少なくない。
【0229】
従って、画像データの変動値として、異なるラインにおいて同一アドレスの画素の画像データのピーク・ピーク値を採用する場合で、該ピーク・ピーク値のばらつきが大きい場合には、少なくとも突出して大きいピーク・ピーク値を妥当なピーク・ピーク値に置換して該画像データの変動とすることが一般的であるといえる。
【0230】
さて、第三の物理量は、画素ごとに求めた画像データの標準偏差δ(i)である。これは、監視に先立って赤外線検知器に温度基準板からの赤外線を入射させて、ラインを構成する画素毎の画像データそのものと、ラインを構成する画像データをフレーム内でサンプル方向に平均した平均値の差の2乗を平均したもので、次の式で表される。
【0231】
δ(i)=(Σ(Sij−mean(Si ))2/(n-1))1/2
但し、iはライン内の画素番号、
jはライン番号、
nはライン数、
ijはjライン目のi番目の画素の画像データ、
mean(Si ) は全ラインにわたるi画素目の画像データの平均値
である。従って、δ(i)は全ラインにわたるi画素目の画像データの標準偏差である。
【0232】
図10は、標準偏差の計算のための構成である。
【0233】
図10において、127は加算回路、128は第六のライン・メモリ、129は第七のライン・メモリ、130は第二のフレーム・メモリ、131は標準偏差計算部、132は第八のライン・メモリである。
【0234】
加算回路127、第六のライン・メモリ128によって、ラインを構成する画素毎の画像データを全ラインに渡って加算して第七のライン・メモリ129に格納する。
【0235】
一方、ラインを構成する画素毎の画像データを全ラインにわたって加算している間に、第二のフレーム・メモリ130に1フレーム分の画像データが格納される。
【0236】
標準偏差計算部131は例えばデジタル信号プロセッサで構成され、第七のライン・メモリ129が格納している、ラインを構成する画素毎の全ラインにわたる画像データの加算値と、第二のフレーム・メモリが格納している各々の画素の画像データを取り込んで、ラインを構成する同一番号の画素の画像データの標準偏差δ(i)を上の式によって計算し、第八のライン・メモリ132に格納する。尚、図10の構成は、ラインを構成する同一番号の画素の画像データの平均値は標準偏差計算部で求めることを想定した構成である。
【0237】
そして、図10の第八のライン・メモリを図1又は図4のメモリとして使用して、画像データの変動データとすればよい。
【0238】
続いて、本発明のエッジ処理回路の他の実施の形態について説明する。
【0239】
図11は、本発明のエッジ処理回路の第三の実施の形態である。
【0240】
図11において、1aは平滑フィルタで、フリップ・フロップ11i、11j、11k、11m及び11n、フリップ・フロップ11i、11j、11k、11m及び11nの出力を加算する加算回路14h、加算する画像データ数を格納するレジスタ15a、加算回路14hの出力をレジスタ15aに格納されている数で除算する除算回路16aによって構成される。
【0241】
2はラプラシアン・フィルタに代表されるエッジ強調フィルタである。
【0242】
図11の構成は、エッジ強調フィルタの前処理として赤外線検知器のライン方向に画像データを平均化するもので、これにより、画素毎のばらつきを抑圧しながらサンプル方向のエッジをシャープに強調することができる。
【0243】
尚、図11においてフリップ・フロップを5つ縦続接続する構成を示しているが、これは1×5の画像に対して平均化をする単なる例で、m×n(m、nは正の整数)の構成も可能である。
【0244】
図12は、本発明のエッジ処理回路の第四の実施の形態である。
【0245】
図12において、1bは平滑フィルタで、フリップ・フロップ11p、11q、11r、11s及び11t、フリップ・フロップ11p乃至11tの出力に乗算する係数を格納するレジスタ15b、15c、15d、15e及び15f、フリップ・フロップ11p乃至11tの出力に、それぞれ、レジスタ15b乃至15fに格納されている係数を乗算する乗算回路17、17a、17b、17c及び17d、乗算回路17乃至17dの出力を加算する加算回路14i、レジスタ15b乃至15fの出力を加算する加算回路14j、加算回路14iの出力を加算回路14jの出力で除算する除算回路16bによって構成される。
【0246】
又、2はラプラシアン・フィルタによって代表されるエッジ強調フィルタである。
【0247】
図12の構成は、エッジ強調フィルタの前処理として赤外線検知器のライン方向に画像データを平均化する際に、素子毎に異なる係数を乗算してから平均化するもので、これにより、画素毎のばらつきを抑圧しながらサンプル方向のエッジをシャープに強調することができる上に、特定の画素を更に強調することが可能になるため、用途に応じて画像処理を柔軟に行なうことができるようになる。
【0248】
尚、図12においてフリップ・フロップを5つ縦続接続する構成を示しているが、これは1×5の画像に対して平均化をする単なる例で、m×nの構成も可能である。
【0249】
図13は、本発明のラプラシアン・フィルタの構成である。
【0250】
図13において、21、21a、21b、21c、21d、21e、21f、21g、21h、21i及び21jはフリップ・フロップ、22は1ライン分の遅延時間の第一の遅延回路、23は2ライン分の遅延時間の第二の遅延回路、24、24a、24b及び24cは加算回路、25は強調係数を格納するレジスタ、26はフリップ・フロップ21cの出力にレジスタ25に格納されている係数を乗算する乗算回路である。
【0251】
図13のラプラシアン・フィルタと図18のラプラシアン・フィルタの違いは、図13においては、フリップ・フロップ21とフリップ・フロップ21aの間にフリップ・フロップ21gを挿入し、フリップ・フロップ21bとフリップ・フロップ21cの間にフリップ・フロップ21hを挿入し、フリップ・フロップ21cとフリップ・フロップ21dの間にフリップ・フロップ21iを挿入し、フリップ・フロップ21eとフリップ・フロップ21fの間にフリップ・フロップ21jを挿入したことである。そして、挿入したフリップ・フロップ21g、21h、21i及び21jの出力は後段の加算回路及び乗算回路には供給されない。
【0252】
図14は、面的に見た図13のラプラシアン・フィルタの出力である。
【0253】
即ち、平均化された画像データを有する仮想的な5×3の2次元画像の中心の画素と、該中心の画素の左右の画素と1つ離れた上下の画素について有効な平均化された画像データを有するものとなっており、且つ、該中心の画像データが(−4)倍されている。
【0254】
従って、該中心の画素がエッジを形成する画素でない場合には、(A2 +B1 +B3 +C2 )と4×B2 の差は小さく、該中心の画素がエッジを形成する画素である場合には、(A2 +B1 +B3 +C2 )と4×B2 の差が大きくなるので、図13に示した演算によってエッジを強調することができる。
【0255】
しかも、仮想的な5×3の2次元画像の中で、有効な画像データを有する画素番号は全て偶数(又は、奇数)になる。これにより、エッジを強調に使用される画素が仮想的に同一フィールドにあることになり、同一フィールド内でエッジ強調を行なうことができるようになる。
【0256】
従って、1つの赤外線検知器によって2つのフィールドの画像データを取得して、1/60秒ずらして1フレームとする場合において、等価的に、同一フレームに異なるフィールドの画像データが表示されることがなくなり、エッジ強調をしても、又、動きが大きい目標物体を捉える時にも表示品質の劣化は生じない。
【0257】
尚、図13においてはフリップ・フロップを使用して本発明のラプラシアン・フィルタを構成する例を説明したが、フリップ・フロップを適用することには限定されない。
【0258】
即ち、ランダム・アクセス・メモリを適用しても同様な機能の回路を構成することも可能である。従って、図13の構成における本質は、奇数番目のフィールドの画像データを保持する記憶素子と偶数番目のフィールドの画像データを保持する記憶素子の間にダミーの記憶素子を挿入し、
エッジ強調フィルタの出力を形成すべき画像データを全て同一のフィールドの画像データとしてエッジ強調するエッジ強調フィルタということになる。
【0259】
【発明の効果】
本発明の第一の手段によれば、該エッジ強調された画像データと該第一の閾値を比較して得たデジタル信号の論理レベルが“1”であれば、着目している画素にエッジが存在することが確実であり、該エッジ強調された画像データと該第二の閾値を比較して得たデジタル信号の論理レベルが“0”であれば、着目している画素にエッジが存在しないことが確実であり、該エッジ強調された画像データと該第一の閾値を比較して得たデジタル信号の論理レベルが“1”で、該エッジ強調された画像データと該第二の閾値を比較して得たデジタル信号の論理レベルが“0”であれば、着目している画素にエッジが存在する可能性を認識することができるので、エッジ検出の確度を高めることができる。
【0260】
本発明の第二の手段によれば、赤外線検知器の赤外線検知素子方向に画像データの平均化を行なうことができ、画像データの変動を抑圧しながらサンプル方向のエッジを強調することができる。
【0261】
本発明の第三の手段によれば、ラプラシアン・フィルタの出力を形成すべき行の画像データを全て仮想的な奇数番目のフィールド又は仮想的な偶数番目のフィールドの画像データとして取り扱うことになるので、2つのフィールドの画像データを異なるタイミングで取得して1つのフレームに表示するという特殊な画像処理をしている場合に、同一フレームの画像データによってエッジ強調をすることができる。従って、エッジ強調による赤外線画像の表示品質の低下を防止することが可能になる。
【図面の簡単な説明】
【図1】 本発明のエッジ処理回路の第一の実施の形態。
【図2】 エッジ監視フィルタの構成。
【図3】 図1の構成のエッジ検出機能を説明する図。
【図4】 本発明のエッジ処理回路の第二の実施の形態。
【図5】 低周波成分の計算のための構成。
【図6】 ピーク・ピーク値の計算のための構成。
【図7】 突出値の排除処理(その1)。
【図8】 突出値の排除処理(その2)。
【図9】 突出値の排除処理(その3)。
【図10】 標準偏差の計算のための構成。
【図11】 本発明のエッジ処理回路の第三の実施の形態。
【図12】 本発明のエッジ処理回路の第四の実施の形態。
【図13】 本発明のラプラシアン・フィルタの構成。
【図14】 面的に見た図13のラプラシアン・フィルタの出力。
【図15】 エッジ処理機能を備える赤外線画像装置の一般的構成。
【図16】 平滑フィルタの構成。
【図17】 2次元画像と平滑フィルタの対比。
【図18】 ラプラシアン・フィルタの構成。
【図19】 面的に見たラプラシアン・フィルタの出力。
【図20】 従来のエッジ検出方式の問題点を説明する図。
【図21】 エッジ強調フィルタを備える赤外線画像装置の一般的構成。
【図22】 フィールド毎にエッジ検出する場合の問題点。
【符号の説明】
1、1a、1b 平滑フィルタ
11、11a、11b、11c、11d、11e、11f、11g、11h、11i、11j、11k、11m、11n、11p、11q、11r、11s、11t フリップ・フロップ
12 第一の遅延回路
13 第二の遅延回路
14、14a、14b、14c、14d、14e、14f、14g、14h、14i、14j 加算回路
15、15a、15b、15c、15d、15e レジスタ
16、16a、16a 除算回路
17、17a、17b、17c、17d 乗算回路
2 エッジ強調フィルタ
21、21a、21b、21c、21d、21e、21f、21g、21h、21i、21j フリップ・フロップ
22 第一の遅延回路
23 第二の遅延回路
24、24a、24b、24c 加算回路
25 レジスタ
26 乗算回路
3 メモリ
4 レジスタ
5、5a 加算回路
6、6a コンパレータ
7 エッジ監視フィルタ
8 レジスタ
9 乗算回路
71、71a、71b、71c、71d、71e、71f、71g、71h
フリップ・フロップ
72 第一の遅延回路
73 第二の遅延回路
74 デコーダ
101 光学系
102 赤外線検知器
103 アナログ・デジタル変換回路(A/D)
104 感度補正部
105、105a エッジ処理部
106 画像処理部
107 表示部
111 加算回路
112 第一のライン・メモリ
113 論理積回路
114 論理積回路
115 第二のライン・メモリ
116 第三のライン・メモリ
117 加算回路
118 レジスタ
119 除算回路
120 絶対値演算回路
121 第四のライン・メモリ
122 フレーム・メモリ
123 第一のレジスタ
123a 第二のレジスタ
124 コンパレータ
124a コンパレータ
125 加算回路
126 第五のライン・メモリ
127 加算回路
128 第六のライン・メモリ
129 第七のライン・メモリ
130 第二のフレーム・メモリ
131 標準偏差計算部
132 第八のライン・メモリ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an infrared image edge processing method, and in particular, accurately processes an edge and displays it on an image even if there is a fluctuation in image data due to noise or the like in the output of an infrared detection element constituting the infrared detector. Image processing that enables image processing, and an image that does not feel uncomfortable even when special image processing is performed in which image data of two fields is acquired at different timings and displayed in one frame. The present invention relates to an edge processing method for infrared images.
[0002]
All objects emit infrared rays with an intensity that is uniquely related to the temperature of the object itself. The wavelength of the emitted infrared light depends on the substance forming the object.
[0003]
An infrared imaging device detects infrared rays emitted from an object and displays an image, so it is very different from an imaging device that captures visible light and displays an image using various cameras. Is possible.
[0004]
Also, unlike radar and sonar, it does not actively radiate electromagnetic waves, sound waves, or ultrasonic waves to recognize the object, but passively recognizes the object by capturing infrared light emitted by the object to be recognized. Therefore, there is an advantage that the object can be recognized without being noticed on the object side to be recognized.
[0005]
Furthermore, detecting an infrared ray emitted from an object and recognizing the object means that the object can be recognized in a non-contact manner, and thus it is impossible or impossible to approach the object to be recognized. It is possible to easily recognize an object even in the case where there is danger.
[0006]
Taking advantage of these many features, infrared imaging devices are used in a wide range of fields, both public and private, including surveillance cameras, thermography, remote sensing, and forward monitoring devices for moving objects such as aircraft and vehicles. . Recently, the use in the fields of medical care and sports physiology has attracted attention.
[0007]
As described above, there are various types of infrared imaging devices that can be applied to a very wide technical range, but from a different point of view, the infrared intensity distribution itself can be displayed as an image and the infrared intensity distribution. The edge processing is performed to classify the presence of the object and the shape of the object being tracked.
[0008]
Particularly in the latter case, it is important that the edge processing is accurate and that there is no deterioration in display quality due to the edge processing.
[0009]
In such a background, an edge processing method of an infrared image capable of accurately processing an edge and displaying it on an image even if there is a change in image data of an infrared detection element constituting the infrared detector, and a special Development of an infrared image edge processing method capable of displaying an image that does not feel uncomfortable even when image processing is performed is awaited.
[0010]
[Prior art]
FIG. 15 shows a general configuration of an infrared imaging apparatus having an edge processing function.
[0011]
In FIG.
101 is an optical system that receives and scans infrared light that arrives;
102 is an infrared detector that detects infrared light scanned by the optical system 101 and converts it into an analog electrical signal;
103 is an analog / digital conversion unit that amplifies the analog electric signal output from the infrared detector 102 to a required level and then converts it to a digital signal;
Reference numeral 104 denotes a sensitivity correction unit that corrects sensitivity variations among the individual infrared detection elements constituting the infrared detector 102.
[0012]
An edge processing unit 105 is stored in the smoothing filter 1, the edge enhancement filter 2 typified by a Laplacian filter, the register 4 for storing the edge detection threshold value, and the output of the edge enhancement filter 2 and the register 4. The comparator 6 outputs a digital signal having a logic level “0” or “1” by comparing the threshold values.
[0013]
In response to the sensitivity-corrected image data and the edge detection signal output by the edge processing unit 106, the image data is converted into an analog signal after being subjected to processing such as binarization processing and histogram conversion, and an image display signal is output. Image processing unit,
Reference numeral 107 denotes a display unit that displays an image display signal output from the image processing unit 106 and outputs visible light from the screen.
[0014]
FIG. 16 shows a configuration of the smoothing filter 1 that receives the image data output from the sensitivity correction unit 104 in FIG. 15 and calculates the average value of the image data of a specific pixel and the image data of surrounding pixels.
[0015]
In FIG. 16, 11 to 11h are flip-flops for holding image data, 12 is a first delay circuit, 13 is a second delay circuit, 14 to 14g are addition circuits, and 15 is a register for storing the average number of pixels. , 16 are division circuits.
[0016]
Since the image data is a multi-bit digital signal, the flip-flop, delay circuit, adder circuit, register, and divider circuit are all circuits that can handle a plurality of bits. However, if it is accurately illustrated, the figure becomes complicated, so that it is shown as if it is a single bit.
[0017]
Now, the image data input to the smoothing filter having the configuration shown in FIG. 16 is line data obtained by sequentially converting one-dimensionally scanned infrared light by each infrared detection element constituting the infrared detector in order.
[0018]
Therefore, in contrast to the image data held in the flip-flop 11d in FIG. 16, the image data held in the flip-flops 11 to 11c and the flip-flops 11e to 11h can become image data of surrounding pixels. Since the image data of a specific line is directly supplied to the flip-flop 11, the delay time of the first delay circuit 12 is set to one line delay time, and the delay time of the second delay circuit 13 is set to two lines. What is necessary is just a delay time.
[0019]
That is, FIG. 17 shows a comparison between the two-dimensional image and the smooth flip-flop data.
[0020]
In FIG. 17, a two-dimensional image is indicated by a thick solid rectangle, and a single letter constituting the infrared detector is indicated by a lowercase alphabet with a suffix “·” in the two-dimensional image. This is image data for each infrared detection element. In the following description, “single infrared detection element constituting the infrared detector” will be referred to as “pixel” in the description relating to the image data, and “infrared detection element” in the description relating to the physical infrared detection element. , To distinguish.
[0021]
The individual infrared detection elements constituting the infrared detector sequentially convert the one-dimensionally scanned infrared light to form line data, so that the line data is sequentially output in the direction of the vertical arrow in FIG. The
[0022]
The two-dimensional image is formed by sequentially outputting the line data in the direction of the horizontal arrow in FIG.
[0023]
Since the delay times of the first delay circuit 12 and the second delay circuit 13 in FIG. 16 are set as described above, the pixel data b is stored in the flip-flop 11d in FIG.2Is held in the flip-flops 11b, 11a and 11, respectively, the pixel data cThree, C2And c1Are stored in the flip-flops 11e and 11c, respectively.ThreeAnd b1Are stored in the flip-flops 11h, 11g, and 11f, respectively.Three, A2And a1Is retained. This state is shown in FIG. 17 by 3 × 3 two-dimensional image data surrounded by a thin solid line rectangle.
[0024]
Therefore, when the image data of the next pixel is input, the 3 × 3 two-dimensional image data held in the flip-flops 11 to 11h in FIG. 16 becomes image data surrounded by a thin broken line in FIG.
[0025]
After all the image data in the line direction is input, 3 × 3 two-dimensional image data shifted by one line is held in the flip-flops 11 to 11h in FIG. This is shown in FIG. 17 by 3 × 3 two-dimensional image data of a thin one-dot chain line.
[0026]
The direction of the vertical arrow in FIG. 17 is referred to as a line direction, one line of image data is referred to as line data or sample data, and the direction of the horizontal arrow in FIG. 17 is referred to as a sample direction.
[0027]
As described above, the image data held in the flip-flops 11 to 11h in FIG. 16 is supplied to the adding circuit, and the adding circuit 14 outputs the image data c.ThreeAnd image data c2Are added, and the output of the addition circuit 14 and the image data c are added in the addition circuit 14a.1Is added. One line different image data bi(In this case, i is 1 to 3.) Two lines of different image data aiThe same applies to.
[0028]
Further, the output of the adder circuit 14a and the output of the adder circuit 14c are added by the adder circuit 14f, and the output of the adder circuit 14f and the output of the adder circuit 14e are added by the adder circuit 14g to obtain a 3 × 3 two-dimensional image. The image data of the center pixel and the image data of 8 pixels surrounding the center pixel, that is, the image data of 9 pixels forming a 3 × 3 two-dimensional image are all added.
[0029]
Here, since the number of pixels to which the image data is added is 9, 9 is stored in the register 15, and the division circuit 16 divides the output of the addition circuit 14g by 9 and averages it, and 3 × 3 2 The image data is the pixel at the center of the three-dimensional image.
[0030]
By this averaging, even if variations remain in image data of pixels forming a 3 × 3 two-dimensional image, the influence can be mitigated.
[0031]
FIG. 18 shows the configuration of a Laplacian filter. Since the Laplacian filter is a typical edge enhancement filter, the configuration of the Laplacian filter is shown as the edge enhancement filter.
[0032]
In FIG. 18, 21 to 21f are flip-flops, 22 is a first delay circuit, 23 is a second delay circuit, 24 to 24c are adder circuits, 25 is a register for storing the enhancement coefficient 4, and 26 is a multiplier circuit. is there.
[0033]
Here, the enhancement coefficient is set to 4, as will be apparent from the following description, the averaged pixel data of the center pixel of the 3 × 3 two-dimensional image is set above and below the center pixel and This is because emphasis is made between the averaged pixel data of the left and right four pixels.
[0034]
The Laplacian filter in FIG. 18 is supplied with the output of the smoothing filter in FIG. Since the output of the smoothing filter is image data obtained by averaging the image data held in the smoothing filter, a in FIG.i, BiAnd ciCorresponding to Ai, BiAnd Ci, The image data b in FIG. 16 is displayed on the flip-flop 21c.2Averaged image data B corresponding to2Is stored in the flip-flop 21a, the averaged image data C is stored in the flip-flop 21a.2However, the flip-flop 21 contains the averaged image data C1However, the averaged image data B is stored in the flip-flop 21d.ThreeHowever, the averaged image data B is stored in the flip-flop 21b.1However, the flip-flop 21f has the averaged image data A2However, the averaged image data A is stored in the flip-flop 21e.1Is retained.
[0035]
Then, the image data C averaged by the adder circuits 24, 24a and 24b2, B1, A2The image data B averaged by the multiplication circuit 26 is added.2Is multiplied by the emphasis coefficient 4, and the difference between the output of the adder circuit 24b and the output of the multiplier circuit 26 is obtained and output.
[0036]
FIG. 19 is an output of a Laplacian filter viewed from a plane.
[0037]
That is, FIG. 19 has effective averaged image data for the center pixel of the 3 × 3 two-dimensional image having the averaged image data and four pixels above, below, left, and right of the center pixel. The center image data is multiplied by (−4).
[0038]
Therefore, if the central pixel is not a pixel forming an edge, (A2+ B1+ BThree+ C2) And 4 x B2When the center pixel is a pixel forming an edge, (A2+ B1+ BThree+ C2) And 4 x B2Therefore, the edge can be emphasized by the calculation shown in FIG.
[0039]
That is, in the infrared imaging apparatus having the configuration shown in FIG. 15, a smoothing filter is used so that fluctuation due to noise or the like in pixel image data is not recognized as an edge, and an edge is detected by the output of the smoothing filter. Yes.
[0040]
FIG. 21 shows a general configuration of an infrared imaging device including an edge enhancement filter.
[0041]
In FIG.
101 is an optical system that receives and scans infrared light that arrives;
102 is an infrared detector that detects infrared light scanned by the optical system 101 and converts it into an analog electrical signal;
Reference numeral 103 denotes an analog / digital conversion unit that amplifies the analog electric signal output from the infrared detector 102 to a required level and converts it to a digital signal.
Reference numeral 104 denotes a sensitivity correction unit that corrects sensitivity offsets of individual infrared detection elements constituting the infrared detector 102.
[0042]
Reference numeral 105a denotes an edge processing unit which includes a Laplacian filter 2 which is a typical edge enhancement filter.
[0043]
An image processing unit 106 receives image data that has been subjected to sensitivity correction and edge enhancement, performs binarization processing, histogram conversion, and the like, and then converts the analog signal into an analog signal and outputs an image display signal.
Reference numeral 107 denotes a display unit that displays an image display signal output from the image processing unit 106 and outputs visible light from the screen.
[0044]
In the configuration of FIG. 21, the image data output from the sensitivity correction unit 104 is edge-enhanced by the edge enhancement filter 2 and supplied to the image processing unit 106, and the image processing unit 106 binarizes or converts the image data. Thus, display image data is generated.
[0045]
[Problems to be solved by the invention]
FIG. 20 is a diagram for explaining the first problem of the edge detection method in the conventional infrared imaging apparatus.
[0046]
FIG. 20A is an image image having a true edge of a straight line, in which a rectangle is the entire image, and a vertical straight line in the rectangle is a true edge.
[0047]
FIG. 20B is a visible edge showing the first problem of the edge processing method in the conventional infrared imaging apparatus.
[0048]
As described in the description of the configuration in FIG. 15, the image data obtained by correcting the offsets of the individual infrared detection elements by the sensitivity correction unit 104 with respect to the digitized image data is averaged and edge-enhanced to obtain a predetermined value. Although the edge detection is performed in comparison with the threshold value, the output of the sensitivity correction unit 104 may not completely correct fluctuations in image data due to noise or the like.
[0049]
Therefore, although the influence of noise components is reduced by averaging, edge detection may be performed while including the influence of noise and the like. That is, even in a true image where there are continuous edges, the output of the Laplacian filter is not constant and may be lower than the threshold value as shown in FIG.
[0050]
For this reason, as shown by the thick solid line and the thin broken line in FIG. 20B, the visible edge, which should be a continuous straight line, may be partially cut off. In an extreme case, the edge is cut longer, which causes trouble in edge detection.
[0051]
FIG. 22 is a diagram for explaining a second problem of the edge processing method in the conventional infrared image device, and particularly, a problem in the case of performing edge detection for each field in the infrared image device having the configuration of FIG. FIG. That is, there is a problem when image data of two fields is acquired by one infrared detector and shifted to 1/60 second to be one frame.
[0052]
FIG. 22 (a) is a diagram showing the image shift between fields due to the above processing. (1) indicates the true original image and (2) indicates the image shift between the fields. That is, since the image data of the odd-numbered infrared detection elements and the image data of the even-numbered infrared detection elements of the infrared detection elements are displayed shifted from each other, the image data of different fields are displayed together in the same frame. It will be. The thick solid line and thin broken line in (2) (2) of FIG. 22 indicate the above.
[0053]
Even in this case, when no processing is performed on the image data or when a stationary target object is displayed, there is no particular deterioration in display quality, but edge enhancement is performed as in the configuration of FIG. In this case, when displaying a target object with a large movement, the display quality deteriorates.
[0054]
FIG. 22 (b) shows the edge detection deviation between fields. (1) is the output of the Laplacian filter when there is no edge detection deviation shown for comparison, and (2) is the edge detection. This is the output of the Laplacian filter when there is a deviation.
[0055]
That is, as shown in (2), the image data for 3 × 3 edge enhancement should be formed by the image data of the pixels that are actually close to each other. The image data moves to a different frame, and in the original frame, edge enhancement is performed together with the enhanced image data in the second row one frame before indicated by a broken line.
[0056]
Therefore, when edge emphasis is performed or when a target object with a large movement is displayed, the display quality deteriorates.
[0057]
In view of such a problem, the present invention provides an edge of an infrared image that can be accurately edge-processed and displayed on an image even if there is a variation in image data for each infrared detection element constituting the infrared detector due to noise or the like. Processing method and infrared image that can display an image that does not feel strange even if special image processing is performed in which image data of two fields are acquired at different timings and displayed in one frame An object is to provide an edge processing method.
[0058]
[Means for Solving the Problems]
  The first means of the present invention is:
  Edge enhancement by averaging image data, edge-enhanced image data and thresholdThePerform edge detection by comparisonInfrared imageEdge processingmethodIn
  Generating a first threshold obtained by adding fluctuation of image data due to noise or the like to the threshold, and a second threshold obtained by subtracting fluctuation of the image data from the threshold;
  A digital signal obtained by comparing the edge-enhanced image data and the first threshold value and a digital signal obtained by comparing the edge-enhanced image data and the second threshold value are used in combination.The 2-bit digital signal is converted into a decimal number, and the center pixel of the image data is determined to be an edge according to the value.Technology.
[0059]
According to the first means of the present invention, if the logical level of the digital signal obtained by comparing the edge-enhanced image data and the first threshold is “1”, the edge of the pixel of interest If the logical level of the digital signal obtained by comparing the edge-enhanced image data and the second threshold is “0”, the pixel of interest has an edge. And the logical level of the digital signal obtained by comparing the edge-enhanced image data with the first threshold is “1”, and the edge-enhanced image data and the second threshold are If the logical level of the digital signal obtained by comparing the two is “0”, it is possible to recognize the possibility that an edge exists in the pixel of interest, so that the accuracy of edge detection can be improved.
[0060]
Further, the first means of the present invention can be modified such that the first threshold value and the second threshold value are generated by multiplying the change of the image data by a settable coefficient and adding / subtracting with the threshold value.
[0061]
The second means of the present invention is:
In the technique of edge enhancement for image data that is input continuously,
Averaging multiple input image data,
This is a technique for performing edge enhancement on the averaged image data.
[0062]
According to the second means of the present invention, the edge in the sample direction can be emphasized while suppressing the fluctuation of the image data by averaging the image data in the direction of the infrared detection element of the infrared detector, that is, the line direction.
[0063]
Further, in the second means of the present invention, it is possible to modify the image data that are successively input by multiplying each of the image data by a weighting factor and averaging.
[0064]
The third means of the present invention is:
In Laplacian filter for edge enhancement,
Inserting a dummy storage element between the storage element holding the image data of the odd-numbered field and the storage element holding the image data of the even-numbered field;
This is a technique for handling all the image data of the rows that should form the output of the Laplacian filter as image data of the same virtual frame.
[0065]
According to the third means of the present invention, all the image data of the rows that should form the output of the Laplacian filter are handled as virtual image data of the same frame. When special image processing is performed such that the image is acquired and displayed in one frame, edge enhancement can be performed using image data of the same frame. Therefore, even when the image processing is performed, it is possible to prevent the display quality of the infrared image from being deteriorated due to edge enhancement.
[0066]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a first embodiment of an edge processing circuit according to the present invention.
[0067]
In FIG.
Reference numeral 1 denotes a smoothing filter, which is image data obtained by averaging image data of pixels at the center of nine pixels by image data of a 3 × 3 two-dimensional image.
[0068]
A Laplacian filter 2 performs edge enhancement on the averaged image data output from the smoothing filter 1.
[0069]
Reference numeral 3 denotes a memory for storing image data fluctuations due to noise or the like.
[0070]
A register 4 stores a predetermined threshold value.
[0071]
Reference numeral 5 denotes a first addition circuit that generates a first threshold value by adding the threshold value stored in the register 4 and the variation of the image data read from the memory 3, and reference numeral 5a denotes a threshold value stored in the register 4. A second addition circuit that subtracts fluctuations in the image data read from the memory 3 to generate a second threshold value;
Reference numeral 6 denotes a first comparator that compares the output of the Laplacian filter 2 with the first threshold value, and reference numeral 6a denotes a second comparator that compares the output of the Laplacian filter 2 with the second threshold value.
[0072]
7 is an edge monitoring filter that receives the output p of the first comparator 6 and the output q of the second comparator 6a and determines the presence or absence of an edge. The output of the edge monitoring filter 7 becomes an edge detection signal.
[0073]
That is, the first threshold value obtained by adding the fluctuation of the image data to the threshold value and the second threshold value obtained by subtracting the fluctuation of the image data from the threshold value are generated, and the edge enhancement is performed in the edge monitoring filter. Edge detection is performed by using the digital signal p obtained by comparing the image data with the first threshold value and the digital signal q obtained by comparing the edge-enhanced image data with the second threshold value. .
[0074]
FIG. 2 shows the configuration of the edge monitoring filter in the configuration of FIG.
[0075]
In FIG.
Reference numerals 71 to 71h denote flip-flops that hold digital signals supplied from the first comparator 6 and the second comparator 6a shown in FIG.
[0076]
72 is a first delay circuit having a delay time of one line, and 73 is a second delay circuit having a delay time of two lines.
[0077]
74 is a decoder that receives the outputs of all the flip-flops 71 to 71h and detects an edge by using a numerical value obtained by converting the output into a decimal number.
[0078]
Incidentally, 75 is a circuit symbol having a meaning of collecting 2-bit digital signals p and q. That is, the circuit symbol 75 represents a 2-bit digital signal at the input by a single line on the output side.
[0079]
Accordingly, all the flip-flops 71 to 71h, the first delay circuit 72, and the second delay circuit 73 all correspond to 2-bit digital signals. This is not illustrated accurately in order to avoid complication of the figure, and is the same as the display method in FIG.
[0080]
In the configuration of FIG. 2, the 2-bit digital signals p and q are directly input to the flip-flops 71 to 71b, and input to the flip-flops 71c to 71e with a delay of one line. The flops 71f to 71h are inputted with a delay of two lines.
[0081]
Accordingly, the digital signals p and q held in the flip-flops 71 to 71h are 2-bit digital signals in the central pixel of the 3 × 3 two-dimensional image and the eight pixels surrounding the central pixel. The decoder 74 performs decimal conversion on the 2-bit digital signals held in the flip-flops 71 to 71h, and determines whether or not the central pixel is an edge based on the value.
[0082]
That is, when both the logical levels of the digital signals p and q are “0”, the decimal number is 0. When the logical level of the digital signal p is “0” and the logical level of the digital signal q is “1”, the decimal number is 1. When the logical levels of the digital signals p and q are both “1”, the decimal number is set to 3. If the logic level of the digital signal p is “1” and the logic level of the digital signal q is “0”, this is ignored and no decimal conversion is performed.
[0083]
This is because the digital signal p is an output obtained by comparing the output of the Laplacian filter 2 with the first threshold which is the sum of the fluctuation of the image data stored in the memory 3 of FIG. 1 and the threshold stored in the register 4. The digital signal q is an output obtained by comparing the output of the Laplacian filter 2 with the second threshold, which is the difference between the threshold value stored in the register 4 and the image data stored in the memory 3 in FIG. . That is, the second threshold value is smaller than the first threshold value.
[0084]
Therefore, it is physically impossible that the output of the Laplacian filter 2 is larger than the first threshold and smaller than the second threshold. Therefore, if the logical level of the digital signal p is “1”, the digital signal When the logical level of q is “0”, it is ignored and decimal conversion is not performed.
[0085]
When the value obtained by decimal conversion of the digital signal held in the flip-flop 71d in FIG. 2 is 3, it is determined that the center pixel of the 3 × 3 two-dimensional image is an edge unconditionally.
[0086]
When the value obtained by decimal conversion of the digital signal held in the flip-flop 71d in FIG. 2 is 1, the center pixel of the 3 × 3 two-dimensional image may be an edge. When there is 3 or 1 in the decimal number corresponding to 8 pixels, it is determined that the central pixel is an edge.
[0087]
Furthermore, when the value obtained by decimal conversion of the digital signal held in the flip-flop 71d in FIG. 2 is 0, it is determined that the center pixel of the 3 × 3 two-dimensional image is not an edge unconditionally.
[0088]
FIG. 3 is a diagram for explaining the edge detection function of the configuration of FIG.
[0089]
FIG. 3A shows an image having a true edge of a straight line. A rectangle is the entire image, and a vertical straight line drawn in the rectangle is a true edge.
[0090]
FIG. 3B is a visible edge for explaining the edge detection function of the configuration of FIG. 1, and is a number obtained by decimal conversion of the logical levels of the digital signals p and q and a 2-bit digital signal composed of p and q. Is also written.
[0091]
As shown in FIG. 1, the image data obtained by correcting the offset of the pixel data of each pixel by the sensitivity correction unit 104 with respect to the digitized image data is averaged and subjected to edge emphasis to obtain a predetermined threshold value. When performing edge detection by comparison, the output of the sensitivity correction unit 104 may not be able to completely correct fluctuations in image data.
[0092]
Therefore, although the effect of fluctuation in image data is reduced by averaging, edge detection may be performed while including the influence of the fluctuation. In other words, the output of the Laplacian filter is not constant, as shown by the thick solid line in FIG. 3B, even when there are continuous edges in the true image, and may be at a level lower than the threshold indicated by the thin broken line. is there.
[0093]
However, in the configuration of FIG. 2, the output of the Laplacian filter is compared with the first threshold value and the second threshold value, and both are used to determine the presence or absence of an edge as described above. become.
[0094]
Looking closely, the logic level of the digital signal p is “0”, “0”, “1”, “1”, “0”, “0” “1”, “1”, “1”, in order from the top. “0”, “1”, “0”, “0”, and the logical level of the digital signal q from the top is “0”, “0”, “1”, “1”, “1”, “1” , “1”, “1”, “1”, “1”, “1”, “0”, “0”, the decimal numbers are 0, 0, 3, 3, 1, 1, 3, 3, 3, 1, 3, 0, 0.
[0095]
According to the above determination method, a place where the decimal number is 3 is unconditionally determined to be an edge, and a place where the decimal number is 0 is unconditionally determined not to be an edge.
[0096]
On the other hand, when the decimal number is 1, the edge is determined to be an edge when there are 3 or 1 in the decimal number corresponding to the surrounding eight pixels. In the case of the above example, since the decimal number is 3 or 1 in the pixels above and below the pixel whose decimal number is 1, it is determined to be an edge.
[0097]
Note that FIG. 3 shows the decimal number of edge detection for pixels on a specific line, but if the same thing is obtained by finding the decimal number of edge detection for pixels on an adjacent line, the basis of the above judgment condition is It turns out well.
[0098]
In the above description, the 2-bit digital signals p and q are converted into decimal numbers to determine the possibility of the presence of an edge. However, the present invention is not limited to this.
[0099]
That is, it is also possible to determine the possibility of the presence or absence of an edge by using the pattern of the logical level itself of the 2-bit digital signals p and q. That is, the essence of the present invention is to determine the presence / absence of an edge by using the 2-bit digital signals p and q together.
[0100]
By the way, depending on the fluctuation value of the image data stored in the memory 3 of FIG. 1, the magnitude relationship between the first threshold value and the second threshold value and the output of the Laplacian filter 2 of FIG. There is no denying the possibility that the decimal number becomes 0 in a pixel that is an edge, or that the decimal number becomes 1 in a pixel that is not an edge. Next, a technique for avoiding that the decimal number becomes 0 in a pixel that is an edge or that the decimal number becomes 1 in a pixel that is not an edge will be described.
[0101]
FIG. 4 shows a second embodiment of the edge processing circuit of the present invention.
[0102]
In FIG.
Reference numeral 1 denotes a smoothing filter, which is image data obtained by averaging image data of pixels at the center of nine pixels by image data of a 3 × 3 two-dimensional image.
[0103]
A Laplacian filter 2 performs edge enhancement on the averaged image data output from the smoothing filter 1.
[0104]
Reference numeral 3 denotes a memory for storing image data fluctuations due to noise or the like.
[0105]
A register 4 stores a predetermined threshold value.
[0106]
Reference numeral 8 denotes a register for storing a coefficient for multiplying the fluctuation of the image data stored in the memory 3.
[0107]
Reference numeral 9 denotes a multiplication circuit that multiplies the fluctuation of the image data stored in the memory 3 by the coefficient stored in the register 8.
[0108]
Reference numeral 5 denotes a first adder circuit that generates a third threshold value by adding the threshold value stored in the register 4 and the output of the multiplier circuit 9. It is the 2nd addition circuit which subtracts an output and produces | generates a 4th threshold value.
[0109]
Reference numeral 6 denotes a first comparator that compares the output of the Laplacian filter 2 with the third threshold value, and reference numeral 6a denotes a second comparator that compares the output of the Laplacian filter 2 with the fourth threshold value.
[0110]
7 is an edge monitoring filter that receives the output p of the first comparator 6 and the output q of the second comparator 6a and determines the presence or absence of an edge. The output of the edge monitoring filter 7 becomes an edge detection signal.
[0111]
That is, the third threshold value obtained by multiplying the threshold value obtained by multiplying the coefficient set for the variation in the image data by the threshold value, and the value obtained by multiplying the coefficient value set for the variation in the image data from the threshold value. The fourth threshold value obtained by subtraction is generated, and the edge monitoring filter compares the edge-enhanced image data with the third threshold value, the edge-enhanced image data, and the edge-threshold image data. The edge detection filter performs edge detection using the digital signal q obtained by comparing the fourth threshold value.
[0112]
The configuration of the edge monitoring filter is the same as that shown in FIG. The configuration of FIG. 4 is different from the configuration of FIG. 1 only in that the variation of the image data stored in the memory 3 is multiplied by a coefficient. Therefore, since the operation of the configuration of FIG. 4 is essentially the same as the operation of the configuration of FIG. 1, the description of the operation of the configuration of FIG. 4 is omitted.
[0113]
In FIGS. 1 and 4, it has been described that the memory 3 stores changes in image data, but the changes in the image data have not been described yet. Therefore, for a while, a physical quantity that can be applied as a change in image data and its calculation will be described.
[0114]
The first physical quantity is a low frequency component of noise. Prior to monitoring, the infrared ray from the temperature reference plate is incident on the infrared detector a plurality of times, and the image data of the average line obtained by averaging the image data for each pixel constituting the line in the sample direction within the frame is obtained. It is calculated several times and the difference from the previous calculated value is obtained and stored. That is, since it is the fluctuation of the average line image data obtained by averaging the image data for each pixel constituting the line within the frame, it is physically a low-frequency component of noise.
[0115]
FIG. 5 shows a configuration for calculating a low frequency component.
[0116]
In FIG. 5, 111 is an adder circuit, and 112 is a first line memory.
[0117]
One line of image data (sample data) is input to the adder circuit 111 and written to the first line memory 112. The written sample data is the first when the next sample data is input. The data read from one line memory 112 and read from the first line memory 112 are added to the input sample data by the adder circuit 111. If this operation is performed for the number of samples in the sample direction, the first line memory 112 finally stores data obtained by integrating the sample data within the frame.
[0118]
113 is a logical product circuit (accurately) that receives the LSB of data acquisition count (a general abbreviation with the acronym of Least Significant Bit) received at the inverting input terminal and the output of the adder circuit 111 at the non-inverting input terminal. Since the input data is parallel data of a plurality of bits, it is a logical product circuit group composed of a plurality of logical product circuits, but it is shown as if it is a single logical product circuit). Is an AND circuit that receives the LSB of the number of times of data acquisition at the non-inverting input terminal and the output of the adder circuit 111 at the non-inverting input terminal (more precisely, since the input data is parallel data of a plurality of bits, A logical product circuit group composed of logical product circuits is shown as if it is a single logical product circuit.), 115 is a second line memory for storing the output of the logical product circuit 113; 116 Is logical A third line memory for storing the output of the product circuit 114.
[0119]
If the data acquisition count is counted from 0, the LSB of the data acquisition count is “0” at the time of the first data acquisition, so the output of the adder circuit 111 is written in the second line memory. Moreover, this writing is performed by overwriting the data stored in the second line memory 115 every time sample data is input.
[0120]
Since the LSB of the data acquisition count is “1” at the time of the second data acquisition, the output of the adder circuit 111 is written in the third line memory 116. Moreover, this writing is performed by overwriting the data stored in the third line memory 116 every time sample data is input.
[0121]
117 is an adder circuit for obtaining the difference between the outputs of the second line memory 115 and the third line memory 116, 118 is a register for storing the number of samples, and 119 is an output of the adder circuit 117 stored in the register 118. A division circuit for dividing by the number of samples, 120 is an absolute value calculation circuit for obtaining an absolute value of the output of the division circuit 119, and 121 is a fourth line memory for storing the output of the absolute value calculation circuit 120.
[0122]
After the addition of all sample data within the frame is stored in the second line memory 115 and the third line memory 116 as described above, the second line memory 115 and the third line memory 116 are stored. The data is read out from the data, and the difference between the two is obtained by the adder circuit 117.
[0123]
After that, the division circuit 119 divides the output of the addition circuit 117 by the number of samples for each pixel to obtain image data averaged in the frame for each pixel constituting the line, and the absolute value calculation circuit 120 uses the division circuit 119. The output is converted into an absolute value and stored in the fourth line memory 121.
[0124]
Then, the fourth line memory 121 shown in FIG. 5 may be used as the memory 3 shown in FIG.
[0125]
The second physical quantity is the difference between the maximum value and the minimum value of noise, that is, the peak-peak value. This is because the image data obtained by making infrared rays from the temperature reference plate incident on the infrared detector prior to the monitoring is compared with the image data for each pixel constituting the line in the sample direction, and the maximum value and the minimum value. And the difference between them is obtained and stored. That is, since it is the difference between the maximum value and the minimum value of image data for each pixel constituting the line, it is physically the peak / peak value of noise.
[0126]
FIG. 6 shows a configuration for calculating a peak / peak value.
[0127]
In FIG. 6, 122 is a frame memory for storing image data for one frame, 123 is a first register for storing the maximum value of image data of pixels at the same address in the line, and 123a is at the same address in the line. A second register 124 for storing the minimum value of the image data of the pixel, 124 compares the image data read from the first register with the image data read from the frame memory, and the image data read from the frame memory The first comparator 124a for supplying a write enable signal to the first register when the value is large compares the image data read from the second register with the image data read from the frame memory, and reads it from the frame memory Supply write enable signal to second register when image data is smaller That is a second comparator.
[0128]
The frame memory 122 stores image data for one frame obtained by making infrared rays from the temperature reference plate incident on the infrared detector prior to monitoring.
[0129]
First, the first register 123 is cleared, and the maximum possible value is written in the second register 123a.
[0130]
Next, image data of pixels at the same address on different lines are read in order and supplied to the first register 123, the first comparator 124, the second register 123a, and the second comparator 124a.
[0131]
When image data is first supplied to the first register 123, the first comparator 124, the second register 123a, and the second comparator 124a, the supplied image data is stored in the first register 123. Since the supplied image data is always larger than the value, the supplied image data is stored in the first register 123, and the supplied image data is always smaller than the value stored in the second register 123a. Is stored in the second register 123a.
[0132]
Next, when image data of the same address on different lines is supplied, the first comparator 124 outputs a write enable signal when the supplied image data is larger than the image data read from the first register 123. When the supplied image data is smaller than the image data read from the first register 123, the write enable signal is not output. Therefore, when the supplied image data is larger than the image data read from the first register 123, the supplied image data is overwritten in the first register 123.
[0133]
The second comparator 124a outputs a write enable signal when the supplied image data is smaller than the image data read from the second register 123a, and the supplied image data is read from the second register 123a. A write enable signal is not output when the image data is larger than the output image data. Therefore, when the supplied image data is smaller than the image data read from the second register 123a, the supplied image data is overwritten in the second register 123a.
[0134]
When the above operation is performed a number of times equal to the number obtained by subtracting 1 from the number of samples in the frame, the maximum value of the image data at the specific address of all lines is stored in the first register 123, and the minimum value is the second value. Stored in the register 123a.
[0135]
Reference numeral 125 denotes an adder circuit for obtaining a difference between the maximum value and the minimum value of the image data read from the first register 123 and the second register 123a, and reference numeral 126 denotes a fifth line memory for storing the output of the adder circuit 125.
[0136]
When the maximum value and the minimum value of the image data of the specific address of all the lines are stored in the first register 123 and the second register 123a, the maximum value and the minimum value are read from both registers, and the adder circuit 125 A difference between the maximum value and the minimum value, that is, a peak-to-peak value is obtained, and the obtained peak-to-peak value is stored at the corresponding address of the fifth line memory 126.
[0137]
If the above operation is performed a number of times equal to the number of pixels constituting the line, the fifth line memory 126 can store the peak / peak values of the image data of all the pixels constituting the line.
[0138]
Then, the fifth line memory 126 shown in FIG. 6 may be used as the memory 3 shown in FIG.
[0139]
The peak / peak value of the image data at the same address in the line obtained as described above may be used as the fluctuation of the image data as it is. However, when the variation in characteristics between pixels is large or defective pixels are included. In such cases, it is often dangerous to use the obtained peak / peak value of the image data as it is as the fluctuation of the image data due to noise.
[0140]
Therefore, in the present invention, a measure is taken so that no prominent peak / peak value occurs, and this is used as fluctuations in image data.
[0141]
FIG. 7 is a process for eliminating a protruding value (No. 1) in which there is a protruding value in the peak-to-peak value obtained by the configuration of FIG. Hereinafter, description will be made along the reference numerals in FIG.
[0142]
In FIG. 7, between the largest peak / peak value, m (m is an integer of at least 2), the largest peak / peak value, and the mth smallest peak / peak value from the smallest peak / peak value. Excess values are excluded between peak values.
[0143]
S1. With respect to the peak / peak value obtained by the configuration of FIG. 6, the maximum peak / peak value to the mth largest peak / peak value are obtained by sorting.
[0144]
In addition, since the sorting technique is a general technique, description of the figure and description is omitted.
[0145]
S2. The difference between the (m−1) th largest peak / peak value and the mth largest peak / peak value is obtained.
[0146]
S3. It is determined whether the difference is greater than a predetermined threshold.
[0147]
S4. If it is determined in step S4 that the difference is greater than the predetermined threshold (Yes), the (m−1) th largest peak / peak value protrudes abnormally with respect to the mth largest peak / peak value. Therefore, the m-th peak / peak value is determined as the maximum value, and the peak / peak value equal to or higher than the (m−1) -th peak / peak value is replaced with the m-th peak / peak value. Jump to step S11.
[0148]
S5. If it is determined in step S4 that the difference is smaller than the predetermined threshold (No), the difference between the (m-2) th peak-peak value and the (m-1) th peak-peak value is calculated. Ask.
[0149]
S6. It is determined whether the difference is greater than a predetermined threshold.
[0150]
S7. If it is determined in step S6 that the difference is greater than the predetermined threshold (Yes), the (m−2) -th largest peak / peak value is compared to the (m−1) -th largest peak / peak value. The (m−1) th peak / peak value is determined as the maximum value, and the peak / peak value equal to or greater than the (m−2) th peak / peak value is (m− 1) Replace with the first peak / peak value and jump to step S11.
[0151]
If it is determined in step S6 that the difference is smaller than the predetermined threshold value (No), the next largest peak / peak value is compared, and the same determination and treatment as described above are continued. If the peak / peak value does not protrude from the third peak / peak value, the process proceeds to step S8.
[0152]
S8. Find the difference between the maximum peak value and the second peak value.
[0153]
S9. It is determined whether the difference is greater than a predetermined threshold.
[0154]
If it is determined that the difference is smaller than the predetermined threshold (No), the process jumps to step S11.
[0155]
S10. If it is determined in step S9 that the difference is greater than the predetermined threshold (Yes), the second peak / peak value is determined as the maximum value, and the maximum peak / peak value is determined as the second peak / peak. The value is replaced with a value, and the process jumps to step S11.
[0156]
S11. With respect to the peak / peak value obtained by the configuration of FIG. 6, the minimum peak / peak value to the mth smallest peak / peak value are obtained by sorting.
[0157]
S12. The difference between the (m−1) th smallest peak / peak value and the mth smallest peak / peak value is obtained.
[0158]
S13. It is determined whether the difference is smaller than a predetermined threshold value.
[0159]
S14. If it is determined in step S13 that the difference is smaller than the predetermined threshold (Yes), the (m−1) th smallest peak / peak value protrudes abnormally with respect to the mth smallest peak / peak value. The m-th peak / peak value is determined to be the minimum value, and the peak / peak value equal to or higher than the (m−1) th peak / peak value is replaced with the m-th peak / peak value. The process is terminated.
[0160]
S15. If it is determined in step S14 that the difference is smaller than the predetermined threshold (No), the difference between the (m-2) th peak / peak value and the (m-1) th peak / peak value is calculated. Ask.
[0161]
S16. It is determined whether the difference is smaller than a predetermined threshold value.
[0162]
S17. When it is determined in step S16 that the difference is smaller than the predetermined threshold value (Yes), the (m−2) th smallest peak / peak value is smaller than the (m−1) th smallest peak / peak value. Therefore, the (m−1) th peak / peak value is determined to be the minimum value, and the (m−2) th peak / peak value is set to (m−) 1) Replace with the first peak / peak value and end the process.
[0163]
If it is determined in step S16 that the difference is smaller than the predetermined threshold (No), the next smallest peak / peak value is compared, and the same determination and treatment as above are continued. If the peak-to-peak value does not protrude from the third peak-to-peak value, the process proceeds to step S18.
[0164]
S18. Find the difference between the minimum peak value and the second peak value.
[0165]
S19. It is determined whether the difference is smaller than a predetermined threshold value.
[0166]
If it is determined that the difference is smaller than the predetermined threshold (No), the process is terminated.
[0167]
S20. If it is determined in step S19 that the difference is smaller than the predetermined threshold (Yes), the second peak / peak value is determined as the minimum value, and the minimum peak / peak value is determined as the second peak / peak. Replace with a value and finish the process.
[0168]
By performing the above processing, even when there is a large variation in pixels or when defective pixels are included, abnormal peak / peak values are not used as fluctuations in image data due to noise. The accuracy of peak detection by the configuration of 4 can be increased.
[0169]
Here, the comparison between the m-th peak / peak value and the (m−1) -th peak / peak value from the maximum value or the minimum value is performed first when the (m−1) -th peak / peak value or more is compared. This is because there is an advantage that all abnormal values can be eliminated when the distribution of peaks and peak values of mth or less is reasonable.
[0170]
However, if it is difficult to assume that there are multiple abnormal values as described above, the first peak / peak value can be compared with the second peak / peak value from the maximum or minimum value first. It is.
[0171]
This also applies to the protrusion value elimination process described below.
[0172]
FIG. 8 shows a peak / peak value that is considered to be influenced by the protrusion value of image data when there is a protrusion value in the image data of the pixels constituting the infrared detector in the protrusion value elimination process (part 2). Is to prevent abnormal values from being mixed. Hereinafter, description will be made along the reference numerals in FIG.
[0173]
S61. The average value of the image data is obtained for each pixel constituting the infrared detection and is sorted from the maximum to the mth, and the peak / peak value is also sorted from the maximum to the mth.
[0174]
S62. The difference between the average value of the (m−1) th largest image data and the average value of the mth largest image data is obtained.
[0175]
S63. It is determined whether the difference is greater than a predetermined threshold.
[0176]
S64. If it is determined in step S63 that the difference is greater than the predetermined threshold (Yes), the (m−1) th largest peak / peak value protrudes abnormally with respect to the mth largest peak / peak value. Therefore, the m-th peak / peak value is determined as the maximum value, and the peak / peak value equal to or higher than the (m−1) -th peak / peak value is replaced with the m-th peak / peak value. Jump to step S71.
[0177]
  S65. If it is determined in step S63 that the difference is smaller than the predetermined threshold (No), the average value of the (m-2) th image data and the average of the (m-1) th image dataValue andFind the difference.
[0178]
S66. It is determined whether the difference is greater than a predetermined threshold.
[0179]
S67. If it is determined in step S66 that the difference is greater than the predetermined threshold value (Yes), the (m-2) th largest peak / peak value is compared to the (m-1) th largest peak / peak value. The (m−1) th peak / peak value is determined as the maximum value, and the peak / peak value equal to or greater than the (m−2) th peak / peak value is (m− 1) Replace with the first peak / peak value and jump to step S71.
[0180]
  If it is determined in step S66 that the difference is smaller than the predetermined threshold (No), the average of the next largest image dataValueCompare and continue the same judgment and treatment as above, and average the second image datavalueAverage of the third image dataIn valueIf it does not protrude, the process proceeds to step S68.
[0181]
  S68. Average of the largest image dataValue andAverage of second image dataValue andFind the difference.
[0182]
S69. It is determined whether the difference is greater than a predetermined threshold.
[0183]
If it is determined that the difference is smaller than the predetermined threshold (No), the process jumps to step S71.
[0184]
S70. If it is determined in step S69 that the difference is larger than the predetermined threshold (Yes), the second peak / peak value is determined as the maximum value, and the maximum peak / peak value is determined as the second peak / peak. The value is replaced with a value, and the process jumps to step S71.
[0185]
S71. The average value of the image data is obtained for each pixel constituting the infrared detection and sorted from the minimum to the mth, and the peak / peak value is also sorted from the minimum to the mth.
[0186]
  S72. (M-1) Average of the smallest image dataValue and, Average of mth smallest image dataValueFind the difference.
[0187]
S73. It is determined whether the difference is smaller than a predetermined threshold value.
[0188]
S74. If it is determined in step S73 that the difference is smaller than the predetermined threshold (Yes), the (m−1) th smallest peak / peak value protrudes abnormally with respect to the mth smallest peak / peak value. Therefore, the m-th peak / peak value is determined to be the minimum value, and the peak / peak value equal to or higher than the (m−1) th peak / peak value is replaced with the m-th peak / peak value. The process is terminated.
[0189]
  S75. If it is determined in step S73 that the difference is smaller than the predetermined threshold (No), the average of the (m-2) th image dataValue and(M-1) average of the image dataValue andFind the difference.
[0190]
S76. It is determined whether the difference is smaller than a predetermined threshold value.
[0191]
S77. When it is determined in step S76 that the difference is smaller than the predetermined threshold (Yes), the (m−2) th smallest peak / peak value is smaller than the (m−1) th smallest peak / peak value. Therefore, the (m−1) th peak / peak value is determined to be the minimum value, and the (m−2) th peak / peak value is set to (m−) 1) Replace with the first peak / peak value and end the process.
[0192]
  If it is determined in step S76 that the difference is smaller than the predetermined threshold (No), the average of the next smallest image dataValueCompare and continue the same judgment and treatment as above, and average the second image datavalueAverage of the third image dataIn valueOn the other hand, if it does not protrude, the process proceeds to step S78.
[0193]
  S78. Average of the smallest image dataValue andAverage of second image dataValue andFind the difference.
[0194]
S79. It is determined whether the difference is smaller than a predetermined threshold value.
[0195]
If it is determined that the difference is smaller than the predetermined threshold (No), the process is terminated.
[0196]
S80. If it is determined in step S79 that the difference is smaller than the predetermined threshold (Yes), the second peak / peak value is determined as the minimum value, and the minimum peak / peak value is determined as the second peak / peak. Replace with a value and finish the process.
[0197]
By performing the above processing, abnormal peaks and peak values are not used as fluctuations in image data even when there are large pixel variations or defective pixels are included. The accuracy of peak detection by the configuration can be increased.
[0198]
FIG. 9 is a projection value elimination process (No. 3), wherein the projection value of the image data is eliminated for each pixel constituting the line, and the peak / The peak value can be obtained. Hereinafter, description will be made along the reference numerals in FIG.
[0199]
S31. From the maximum image data to the mth largest image data in the same line is obtained by sorting.
[0200]
S32. The difference between the (m−1) th largest image data and the mth largest image data is obtained.
[0201]
S33. It is determined whether the difference is greater than a predetermined threshold.
[0202]
S34. If it is determined in step S33 that the difference is larger than the predetermined threshold (Yes), it is considered that the (m−1) th largest image data protrudes abnormally with respect to the mth largest image data. Therefore, the mth image data is determined as the maximum value, the image data equal to or greater than the (m−1) th image data is replaced with the mth image data, and the process jumps to step S41.
[0203]
S35. If it is determined in step S33 that the difference is smaller than the predetermined threshold (No), the difference between the (m-2) th image data and the (m-1) th image data is obtained.
[0204]
S36. It is determined whether the difference is greater than a predetermined threshold.
[0205]
S37. If it is determined in step S36 that the difference is greater than the predetermined threshold (Yes), the (m-2) th largest image data protrudes abnormally with respect to the (m-1) th largest image data. Therefore, the (m−1) th image data is determined to be the maximum value, and the image data greater than the (m−2) th image data is replaced with the (m−1) th image data. Jump to step S41.
[0206]
If it is determined in step S36 that the difference is smaller than the predetermined threshold value (No), the next largest image data is compared, and the determination and treatment similar to the above are continued, so that the second image is obtained. If the data does not protrude from the third image data, the process proceeds to step S38.
[0207]
S38. The difference between the maximum image data and the second image data is obtained.
[0208]
S39. It is determined whether the difference is greater than a predetermined threshold.
[0209]
If it is determined that the difference is smaller than the predetermined threshold (No), the process jumps to step S41.
[0210]
S40. If it is determined in step S39 that the difference is greater than the predetermined threshold (Yes), the second image data is determined as the maximum value, the maximum image data is replaced with the second image data, Jump to step S41.
[0211]
S41. From the smallest image data to the mth smallest image data within the same line is obtained by sorting.
[0212]
S42. The difference between the (m−1) th smallest image data and the mth smallest image data is obtained.
[0213]
S43. It is determined whether the difference is smaller than a predetermined threshold value.
[0214]
S44. When it is determined in step S43 that the difference is smaller than the predetermined threshold (Yes), it is considered that the (m−1) th smallest image data protrudes abnormally with respect to the mth smallest image data. Therefore, the mth image data is determined to be the minimum value, the image data equal to or larger than the (m−1) th image data is replaced with the mth image data, and the process jumps to step S51.
[0215]
S45. If it is determined in step S43 that the difference is smaller than the predetermined threshold (No), the difference between the (m-2) th image data and the (m-1) th image data is obtained.
[0216]
S46. It is determined whether the difference is smaller than a predetermined threshold value.
[0217]
S47. If it is determined in step S46 that the difference is smaller than the predetermined threshold (Yes), the (m-2) th smallest image data protrudes abnormally with respect to the (m-1) th smallest image data. Therefore, the (m−1) th image data is determined to be the minimum value, and the image data equal to or greater than the (m−2) th image data is replaced with the (m−1) th image data. The process jumps to step S51.
[0218]
If it is determined in step S46 that the difference is smaller than the predetermined threshold value (No), the next smaller image data is compared, and the determination and treatment similar to the above are continued, so that the second image is obtained. If the data does not protrude from the third image data, the process proceeds to step S48.
[0219]
S48. The difference between the minimum image data and the second image data is obtained.
[0220]
S49. It is determined whether the difference is smaller than a predetermined threshold value.
[0221]
When it is determined that the difference is smaller than the predetermined threshold (No), the process proceeds to step S51.
[0222]
S50. On the other hand, if it is determined in step S49 that the difference is smaller than the predetermined threshold (Yes), the second image data is determined to be the minimum value, and the minimum image data is replaced with the second image data. Then, the process proceeds to step S51.
[0223]
S51. It is determined whether or not the above processing has been performed for all lines.
[0224]
S52. If it is determined in step S51 that the above processing has not been completed for all lines (No), the line number is incremented and the process jumps to step S31.
[0225]
On the other hand, if it is determined in step S51 that the above process has been performed for all lines (Yes), the process ends.
[0226]
By performing the above processing, it becomes possible to obtain the peak / peak value after eliminating the protruding image data for each pixel in the line, so if the processing time can be allowed to increase slightly, Even when there is a large variation in the number of pixels or when defective pixels are included, the accuracy of peak detection by the configuration of FIG. 1 or FIG. 4 can be further increased.
[0227]
By the way, in FIG. 7 thru | or 9, when the dispersion | variation in the peak-peak value itself of the image data of the pixel of the same address which comprises a line is large, or when the dispersion | variation in the image data itself of the pixel of the same address which comprises a line is large In the above description, the large peak / peak value that protrudes and the small peak / peak value that protrudes are replaced with appropriate peak / peak values to obtain fluctuations in the image data.
[0228]
However, there is a high possibility that a large peak / peak value that is prominently presents a high level of noise instantaneously or a defective pixel, or something abnormal. It may not be possible to simply determine, and it is better to empirically determine whether or not to replace a prominently small peak / peak value with another peak / peak value, including the characteristics of the monitored object. There are many good things.
[0229]
Therefore, when the peak / peak value of the image data of the pixel of the same address in different lines is adopted as the fluctuation value of the image data, and the variation of the peak / peak value is large, at least a prominently large peak / peak It can be said that it is general to replace the value with an appropriate peak / peak value to change the image data.
[0230]
Now, the third physical quantity is the standard deviation δ (i) of the image data obtained for each pixel. Prior to monitoring, infrared rays from the temperature reference plate are incident on the infrared detector, and the average of the image data itself for each pixel constituting the line and the image data constituting the line in the sample direction within the frame is averaged. This is the average of the squares of the value differences, and is expressed by the following formula.
[0231]
δ (i) = (Σ (Sij−mean (Si))2/ (n-1))1/2
Where i is the pixel number in the line,
j is the line number,
n is the number of lines,
SijIs the image data of the i-th pixel in the j-th line,
mean (Si) Is the average value of the i-th pixel image data across all lines
It is. Therefore, δ (i) is the standard deviation of the image data of the i-th pixel across all lines.
[0232]
FIG. 10 shows a configuration for calculating the standard deviation.
[0233]
In FIG. 10, 127 is an adder circuit, 128 is a sixth line memory, 129 is a seventh line memory, 130 is a second frame memory, 131 is a standard deviation calculator, and 132 is an eighth line memory. It is memory.
[0234]
The adder circuit 127 and the sixth line memory 128 add the image data for each pixel constituting the line over all the lines and store them in the seventh line memory 129.
[0235]
On the other hand, image data for one frame is stored in the second frame memory 130 while image data for each pixel constituting the line is added over all lines.
[0236]
The standard deviation calculation unit 131 is composed of, for example, a digital signal processor, and is stored in the seventh line memory 129. The added value of the image data over all lines for each pixel constituting the line, and the second frame memory Is taken in, and the standard deviation δ (i) of the image data of the same numbered pixels constituting the line is calculated by the above formula and stored in the eighth line memory 132. To do. Note that the configuration of FIG. 10 is a configuration that assumes that the average value of the image data of the pixels having the same number constituting the line is obtained by the standard deviation calculator.
[0237]
Then, the eighth line memory of FIG. 10 may be used as the memory of FIG. 1 or FIG.
[0238]
Next, another embodiment of the edge processing circuit of the present invention will be described.
[0239]
FIG. 11 shows a third embodiment of the edge processing circuit of the present invention.
[0240]
In FIG. 11, 1a is a smoothing filter, an adder circuit 14h for adding the outputs of flip-flops 11i, 11j, 11k, 11m and 11n, flip-flops 11i, 11j, 11k, 11m and 11n, and the number of image data to be added. The register 15a to be stored and the division circuit 16a that divides the output of the adder circuit 14h by the number stored in the register 15a.
[0241]
Reference numeral 2 denotes an edge enhancement filter typified by a Laplacian filter.
[0242]
The configuration of FIG. 11 averages image data in the line direction of the infrared detector as preprocessing of the edge enhancement filter, thereby sharply enhancing the edge in the sample direction while suppressing variation for each pixel. Can do.
[0243]
FIG. 11 shows a configuration in which five flip-flops are cascade-connected. This is merely an example of averaging for a 1 × 5 image, and m × n (m and n are positive integers). ) Is also possible.
[0244]
FIG. 12 shows a fourth embodiment of the edge processing circuit of the present invention.
[0245]
In FIG. 12, 1b is a smoothing filter, registers 15b, 15c, 15d, 15e and 15f for storing coefficients for multiplying the outputs of flip-flops 11p, 11q, 11r, 11s and 11t and flip-flops 11p to 11t, flip A multiplier circuit 17, 17a, 17b, 17c and 17d for multiplying the outputs of the flops 11p to 11t by the coefficients stored in the registers 15b to 15f, respectively, and an adder circuit 14i for adding the outputs of the multiplier circuits 17 to 17d, An adder circuit 14j for adding the outputs of the registers 15b to 15f, and a divider circuit 16b for dividing the output of the adder circuit 14i by the output of the adder circuit 14j.
[0246]
Reference numeral 2 denotes an edge enhancement filter represented by a Laplacian filter.
[0247]
In the configuration of FIG. 12, when averaging image data in the line direction of the infrared detector as preprocessing of the edge enhancement filter, the image data is averaged after being multiplied by a different coefficient for each element. The edge in the sample direction can be sharply enhanced while suppressing variations in the image quality, and specific pixels can be further enhanced, so that image processing can be flexibly performed according to the application. Become.
[0248]
Although FIG. 12 shows a configuration in which five flip-flops are connected in cascade, this is merely an example of averaging a 1 × 5 image, and an m × n configuration is also possible.
[0249]
FIG. 13 shows the configuration of the Laplacian filter of the present invention.
[0250]
In FIG. 13, 21, 21 a, 21 b, 21 c, 21 d, 21 e, 21 f, 21 g, 21 h, 21 i and 21 j are flip-flops, 22 is a first delay circuit with a delay time of one line, and 23 is for two lines The delay circuit of the second delay time, 24, 24a, 24b and 24c are adder circuits, 25 is a register for storing the emphasis coefficient, and 26 is an output of the flip-flop 21c multiplied by a coefficient stored in the register 25. It is a multiplication circuit.
[0251]
The difference between the Laplacian filter of FIG. 13 and the Laplacian filter of FIG. 18 is that in FIG. 13, a flip-flop 21g is inserted between the flip-flop 21 and the flip-flop 21a, and the flip-flop 21b and the flip-flop are inserted. The flip-flop 21h is inserted between the flip-flop 21c, the flip-flop 21i is inserted between the flip-flop 21c and the flip-flop 21d, and the flip-flop 21j is inserted between the flip-flop 21e and the flip-flop 21f. It is that. The outputs of the inserted flip-flops 21g, 21h, 21i, and 21j are not supplied to the subsequent adder circuit and multiplier circuit.
[0252]
FIG. 14 is an output of the Laplacian filter of FIG.
[0253]
That is, an averaged image effective for the center pixel of a virtual 5 × 3 two-dimensional image having averaged image data, and the upper and lower pixels that are one distance away from the left and right pixels of the center pixel. The center image data is multiplied by (−4).
[0254]
Therefore, if the central pixel is not a pixel forming an edge, (A2+ B1+ BThree+ C2) And 4 x B2When the center pixel is a pixel forming an edge, (A2+ B1+ BThree+ C2) And 4 x B2Therefore, the edge can be emphasized by the calculation shown in FIG.
[0255]
In addition, in the virtual 5 × 3 two-dimensional image, the pixel numbers having valid image data are all even numbers (or odd numbers). As a result, the pixels used for edge enhancement are virtually in the same field, and edge enhancement can be performed in the same field.
[0256]
Therefore, when image data of two fields is acquired by one infrared detector and shifted to 1 frame by 1/60 seconds, equivalently, image data of different fields may be displayed in the same frame. Even when edge emphasis is performed or when a target object with a large movement is captured, display quality does not deteriorate.
[0257]
In FIG. 13, the example in which the Laplacian filter of the present invention is configured using flip-flops has been described. However, application of flip-flops is not limited.
[0258]
That is, even if a random access memory is applied, a circuit having a similar function can be configured. Accordingly, the essence in the configuration of FIG. 13 is that a dummy storage element is inserted between the storage element that holds the image data of the odd-numbered field and the storage element that holds the image data of the even-numbered field,
This is an edge enhancement filter that edge-enhances all the image data that should form the output of the edge enhancement filter as image data in the same field.
[0259]
【The invention's effect】
According to the first means of the present invention, if the logical level of the digital signal obtained by comparing the edge-enhanced image data and the first threshold is “1”, the edge of the pixel of interest If the logical level of the digital signal obtained by comparing the edge-enhanced image data and the second threshold is “0”, the pixel of interest has an edge. And the logical level of the digital signal obtained by comparing the edge-enhanced image data with the first threshold is “1”, and the edge-enhanced image data and the second threshold are If the logical level of the digital signal obtained by comparing the two is “0”, it is possible to recognize the possibility that an edge exists in the pixel of interest, so that the accuracy of edge detection can be improved.
[0260]
According to the second means of the present invention, the image data can be averaged in the direction of the infrared detection element of the infrared detector, and the edge in the sample direction can be emphasized while suppressing fluctuations in the image data.
[0261]
According to the third means of the present invention, all of the image data in the row where the output of the Laplacian filter should be formed is handled as image data of the virtual odd-numbered field or virtual even-numbered field. When special image processing is performed in which image data of two fields are acquired at different timings and displayed in one frame, edge enhancement can be performed using image data of the same frame. Therefore, it is possible to prevent the deterioration of the display quality of the infrared image due to edge enhancement.
[Brief description of the drawings]
FIG. 1 is a first embodiment of an edge processing circuit according to the present invention.
FIG. 2 is a configuration of an edge monitoring filter.
FIG. 3 is a diagram for explaining an edge detection function having the configuration of FIG. 1;
FIG. 4 is a second embodiment of an edge processing circuit according to the present invention.
FIG. 5 shows a configuration for calculating a low frequency component.
FIG. 6 shows a configuration for calculating a peak / peak value.
FIG. 7 is a process for eliminating a protrusion value (No. 1).
FIG. 8 is a process for eliminating a protrusion value (part 2).
FIG. 9 is a projection value elimination process (No. 3).
FIG. 10 shows a configuration for calculating a standard deviation.
FIG. 11 is a third embodiment of an edge processing circuit according to the present invention.
FIG. 12 shows a fourth embodiment of the edge processing circuit of the present invention.
FIG. 13 shows a configuration of a Laplacian filter of the present invention.
14 is an output of the Laplacian filter of FIG.
FIG. 15 shows a general configuration of an infrared imaging apparatus having an edge processing function.
FIG. 16 shows a configuration of a smoothing filter.
FIG. 17 is a comparison between a two-dimensional image and a smoothing filter.
FIG. 18 shows a configuration of a Laplacian filter.
FIG. 19 is an output of a Laplacian filter viewed from a plane.
FIG. 20 is a diagram for explaining a problem of a conventional edge detection method.
FIG. 21 shows a general configuration of an infrared imaging device including an edge enhancement filter.
FIG. 22 shows a problem when edge detection is performed for each field.
[Explanation of symbols]
1, 1a, 1b Smoothing filter
11, 11a, 11b, 11c, 11d, 11e, 11f, 11g, 11h, 11i, 11j, 11k, 11m, 11n, 11p, 11q, 11r, 11s, 11t Flip flops
12 First delay circuit
13 Second delay circuit
14, 14a, 14b, 14c, 14d, 14e, 14f, 14g, 14h, 14i, 14j Adder circuit
15, 15a, 15b, 15c, 15d, 15e registers
16, 16a, 16a Division circuit
17, 17a, 17b, 17c, 17d Multiplication circuit
2 Edge enhancement filter
21, 21a, 21b, 21c, 21d, 21e, 21f, 21g, 21h, 21i, 21j Flip-flop
22 First delay circuit
23 Second delay circuit
24, 24a, 24b, 24c Adder circuit
25 registers
26 Multiplier circuit
3 memory
4 registers
5, 5a Adder circuit
6, 6a Comparator
7 Edge monitoring filter
8 registers
9 Multiplier circuit
71, 71a, 71b, 71c, 71d, 71e, 71f, 71g, 71h
flip flop
72 First delay circuit
73 Second delay circuit
74 Decoder
101 Optical system
102 Infrared detector
103 Analog-digital conversion circuit (A / D)
104 Sensitivity correction unit
105, 105a Edge processing unit
106 Image processing unit
107 Display section
111 Adder circuit
112 First line memory
113 AND circuit
114 AND circuit
115 second line memory
116 Third line memory
117 Adder circuit
118 registers
119 Division circuit
120 Absolute value calculation circuit
121 Fourth line memory
122 frame memory
123 First register
123a Second register
124 Comparator
124a Comparator
125 Adder circuit
126 Fifth line memory
127 Adder circuit
128 Sixth line memory
129 Seventh line memory
130 Second frame memory
131 Standard deviation calculator
132 Eighth line memory

Claims (5)

画像データを平均化してエッジ強調し、エッジ強調された画像データと閾値を比較してエッジ検出を行なう赤外線画像のエッジ処理方式において、
画像データの変動値を該閾値に加算した第一の閾値と、該画像データの変動値を該閾値から減算した第二の閾値とを生成し、
該エッジ強調された画像データと該第一の閾値を比較して得たデジタル信号と、該エッジ強調された画像データと該第二の閾値を比較して得たデジタル信号とを併用した2ビットのデジタル信号を10進変換して、その値によって該画像データの中心の画素がエッジであると判定することを特徴とする赤外線画像のエッジ処理方式。
In the edge processing method of the infrared image that performs edge detection by averaging the image data and performing edge enhancement, comparing the edge-enhanced image data with a threshold value,
Generating a first threshold value obtained by adding the fluctuation value of the image data to the threshold value, and a second threshold value obtained by subtracting the fluctuation value of the image data from the threshold value;
2 bits using both the edge-enhanced image data and the digital signal obtained by comparing the first threshold, and the edge-enhanced image data and the digital signal obtained by comparing the second threshold The infrared signal edge processing method is characterized in that the digital signal is converted to a decimal and the central pixel of the image data is determined to be an edge based on the value.
請求項1記載の赤外線画像のエッジ処理方式において、
上記画像データの変動値に対して設定可能な係数を乗算し、上記閾値と加減算して上記第一の閾値及び上記第二の閾値に代わる閾値を生成することを特徴とする赤外線画像のエッジ処理方式。
The infrared image edge processing method according to claim 1,
Infrared image edge processing characterized by multiplying a changeable coefficient of the image data by a settable coefficient and adding / subtracting with the threshold to generate a threshold in place of the first threshold and the second threshold method.
請求項1又は請求項2のいずれかに記載の赤外線画像のエッジ処理方式において、
上記画像データの変動値として、異なるラインにおける同一アドレスの画素の画像データの最大値と最小値の差(ピーク・ピーク値)を採用する場合で、該ピーク・ピーク値のばらつきが大きい場合には、少なくとも突出して大きいピーク・ピーク値を妥当なピーク・ピーク値に置換して該画像データの変動値とすることを特徴とする赤外線画像のエッジ処理方式。
In the infrared image edge processing method according to claim 1 or 2,
When the difference between the maximum value and the minimum value (peak / peak value) of the image data of pixels at the same address in different lines is adopted as the fluctuation value of the image data, and the variation of the peak / peak value is large An infrared image edge processing method characterized in that at least a prominently large peak / peak value is replaced with an appropriate peak / peak value to obtain a fluctuation value of the image data.
請求項1記載の赤外線画像のエッジ処理方式において、
連続して入力される上記画像データの各々に重み係数を乗算して平均化し、
該平均化された画像データに対してエッジ強調を行なうことを特徴とする赤外線画像のエッジ処理方式。
The infrared image edge processing method according to claim 1,
Each of the image data is successively inputted to and multiplied by the weighting factor averaging,
An infrared image edge processing method, wherein edge enhancement is performed on the averaged image data.
請求項1記載の赤外線画像のエッジ処理方式において、
奇数番目のフィールドの上記画像データを保持する記憶素子と偶数番目のフィールドの上記画像データを保持する記憶素子の間にダミーの記憶素子を挿入し、
エッジ強調フィルタの出力を形成すべき画像データを全て同一のフィールドの画像データとしてエッジ強調するエッジ強調フィルタを適用することを特徴とする赤外線画像のエッジ処理方式。
The infrared image edge processing method according to claim 1,
Insert the dummy storage elements during storage element for holding the image data of the storage element and the even-numbered fields for holding the image data of the odd-numbered field,
An infrared image edge processing method, wherein an edge enhancement filter that applies edge enhancement to all image data that should form an output of an edge enhancement filter as image data of the same field is applied.
JP2000018593A 2000-01-27 2000-01-27 Infrared image edge processing method Expired - Fee Related JP4366807B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000018593A JP4366807B2 (en) 2000-01-27 2000-01-27 Infrared image edge processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000018593A JP4366807B2 (en) 2000-01-27 2000-01-27 Infrared image edge processing method

Publications (2)

Publication Number Publication Date
JP2001209809A JP2001209809A (en) 2001-08-03
JP4366807B2 true JP4366807B2 (en) 2009-11-18

Family

ID=18545423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000018593A Expired - Fee Related JP4366807B2 (en) 2000-01-27 2000-01-27 Infrared image edge processing method

Country Status (1)

Country Link
JP (1) JP4366807B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12429584B2 (en) 2023-03-27 2025-09-30 Stmicroelectronics International N.V. Presence detection with signal regularization and edge detection

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12429584B2 (en) 2023-03-27 2025-09-30 Stmicroelectronics International N.V. Presence detection with signal regularization and edge detection

Also Published As

Publication number Publication date
JP2001209809A (en) 2001-08-03

Similar Documents

Publication Publication Date Title
KR920003047B1 (en) Resolution enhancement and zoom
US8436912B2 (en) Range measurement using multiple coded apertures
KR920005868B1 (en) Picture processing device
CN108229526A (en) Network training, image processing method, device, storage medium and electronic equipment
CN108288253B (en) HDR image generation method and device
US4525747A (en) Analog-to-digital image signal conversion
JPH0620243B2 (en) Image processing system
US10540750B2 (en) Electronic device with an upscaling processor and associated method
US8374433B2 (en) Apparatus, method, and manufacture for correcting color shading in CMOS image sensors
JP5176289B2 (en) Infrared target selection device
EP0069542B1 (en) Data processing arrangement
US20220414827A1 (en) Training apparatus, training method, and medium
KR101321780B1 (en) Image processing apparatus and image processing method
CN120672880A (en) Image processing method, device, equipment and storage medium
US6667766B2 (en) Method of removing noise from image signal
JP2013171469A (en) Image processing apparatus, binarization threshold calculation method, and computer program
KR100367900B1 (en) Pixel number converting circuit and image display device using the same
JP4366807B2 (en) Infrared image edge processing method
CN119452670A (en) Noise Reduction and Feature Enhancement for Thermal Imaging Cameras
US10825160B2 (en) Spatially dynamic fusion of images of different qualities
KR101733668B1 (en) Object detection apparatus, surveillance camera, and object detection method
FI91029B (en) Method and switching arrangement for dual horizontal and vertical resolution of an image displayed on the screen
JP2004537902A (en) Automatic thresholding of noisy images
US10142643B2 (en) Marker generating method, marker decoding method, and marker reading device
CN116866548A (en) Dead pixel detection method, device and equipment of acquisition equipment and readable storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060525

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090501

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090512

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090713

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120904

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120904

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130904

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees