JPH0773197B2 - Floating binarization method for image processing - Google Patents
Floating binarization method for image processingInfo
- Publication number
- JPH0773197B2 JPH0773197B2 JP62013356A JP1335687A JPH0773197B2 JP H0773197 B2 JPH0773197 B2 JP H0773197B2 JP 62013356 A JP62013356 A JP 62013356A JP 1335687 A JP1335687 A JP 1335687A JP H0773197 B2 JPH0773197 B2 JP H0773197B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- differential
- value
- original signal
- time
- 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 - Lifetime
Links
Landscapes
- Picture Signal Circuits (AREA)
- Facsimile Image Signal Circuits (AREA)
- Manipulation Of Pulses (AREA)
Description
【発明の詳細な説明】 (技術分野) 本発明はTVカメラ等の撮像装置から得られる画像信号等
を精度良く2値化する画像処理等のための浮動2値化方
法に関する。TECHNICAL FIELD The present invention relates to a floating binarization method for image processing for binarizing an image signal obtained from an image pickup device such as a TV camera with high accuracy.
(背景技術) 第3図(イ)に示すような文字パターンや配線パターン
等をTVカメラ等の撮像装置で撮像した場合、理想的には
(ロ)のような映像信号(1スキャン分の映像信号を示
している。)が得られる。(Background Art) When a character pattern, a wiring pattern, or the like as shown in FIG. 3 (a) is imaged by an image pickup device such as a TV camera, ideally, a video signal such as (b) (video for one scan) Signal is shown).
しかし、一般には人間ならば無意識に除外して文字パタ
ーン等の意味のある信号だけをだけを認識できるような
ノイズ、例えば照明の不均一さや場所による漸次変化で
あるところの歪やカメラの持つ特性、例えば均一な画像
を撮像しても画面の左から右へ漸次出力信号が大きく
(小さく)変化する等のシェーディング特性等の影響に
より、(ハ)に示すように歪を含んだ信号波形が得られ
ることが多い。However, in general, noise that humans can unknowingly exclude and recognize only meaningful signals such as character patterns, for example, unevenness of lighting or distortion that is a gradual change due to location or characteristics of a camera , Even if a uniform image is picked up, a signal waveform including distortion is obtained as shown in (c) due to the effect of shading characteristics such as the output signal changing from left to right on the screen gradually (smallly). It is often done.
ところで、従来の画像処理技術として、モノクロ画像の
各点の画像信号をあるしきい値で1か0かに分け、認識
しようとする物体等の対象を単純に各点の明るさの画像
信号がしきい値より大きければ1、小さければ0という
ように情報圧縮して処理する方法として2値化方法等が
知られている。By the way, as a conventional image processing technique, an image signal of each point of a monochrome image is divided into 1 or 0 by a certain threshold value, and an object such as an object to be recognized is simply converted into an image signal of brightness of each point. A binarization method or the like is known as a method of compressing information such that it is 1 if it is larger than the threshold value and 0 if it is smaller than the threshold value.
しかし、従来の2値化方法等では固定の2値化しきい値
により2値化したり、あるいは浮動2値化しきい値を採
用したとしても原信号に対して充分に追従しないもので
あったため、物体と背景とのエッジ部の信号の周波数成
分の変化により2値化精度が悪化したり、また、上記し
た照明ムラやシェーディング等の影響を受けやすい等の
ため、認識すべき物体等の対象が十分認識できない等の
欠点があった。However, in the conventional binarization method or the like, even if the binarization is performed by a fixed binarization threshold, or even if the floating binarization threshold is adopted, it does not sufficiently follow the original signal. Since the binarization accuracy is deteriorated due to the change of the frequency component of the signal of the edge portion between the background and the background, and the above-mentioned illumination unevenness and shading are easily affected, the object such as an object to be recognized is sufficient. There were drawbacks such as not being able to recognize it.
(発明の目的) 本発明は上記の点に鑑み提案されたものであり、その目
的とするところは、文字パターンや配線パターン等を撮
像した場合に得られる上記の歪を含んだ映像信号につい
ても必要な信号部のみを精度良く2値化することにより
対象を精度良く認識できる画像処理のための浮動2値化
方法を提供することにある。(Object of the Invention) The present invention has been proposed in view of the above points, and an object of the present invention is to provide a video signal including the above distortion obtained when a character pattern, a wiring pattern, or the like is imaged. It is an object of the present invention to provide a floating binarization method for image processing that can accurately recognize an object by binarizing only a necessary signal part with high precision.
(発明の開示) 以下、図面に沿って本発明を詳述する。(Disclosure of the Invention) Hereinafter, the present invention will be described in detail with reference to the drawings.
第1図は本発明の画像処理のための浮動2値化方法によ
り処理を受けて変形して行く信号波形を示したものであ
り、その原理としては、TVカメラ等の撮像装置から得ら
れる画像信号たる原信号aを微分して、一定値以上の変
化量を持っている変化の激しい部分だけを取り出し、そ
の中央の時刻t1を算出して変化部の中心的時刻を知り、
この時刻の前後の信号を調べて前後2つの信号の中間レ
ベル(荷重平均、簡単には相加平均)を算出してその区
間のしきい値として使って画像信号を2値化するもので
ある。FIG. 1 shows a signal waveform which undergoes processing and is transformed by the floating binarization method for image processing of the present invention. The principle thereof is an image obtained from an image pickup device such as a TV camera. The original signal a, which is a signal, is differentiated, and only the part with a large change having a change amount of a certain value or more is taken out, and the time t 1 at the center thereof is calculated to know the central time of the change portion,
The signal before and after this time is checked to calculate the intermediate level (weighted average, simply arithmetic average) of the two signals before and after, and is used as the threshold value for that section to binarize the image signal. .
以下、文字パターンや配線パターン等をTVカメラ等の撮
像装置で撮像して得られる映像信号の原信号aを適切に
2値化する浮動2値化しきい値bを求める手順を説明す
る。Hereinafter, a procedure for obtaining the floating binarization threshold value b that appropriately binarizes the original signal a of the video signal obtained by imaging the character pattern, the wiring pattern, and the like with an imaging device such as a TV camera will be described.
先ず、得られた原信号aを一次微分し、微分値の絶対値
を算出する。このとき、微分信号cが得られる。この微
分信号cの波形の凸部は原信号aにおける波形のエッジ
部分に相当する。このエッジ部分を抽出するべく、適切
な微分しきい値dにより微分信号cに対してしきい値処
理を施す。このとき、しきい値dはどの程度の緩慢な変
化を無視するか、つまり、入力される画像信号にどの様
な性質の不要信号、すなわち、上記の歪が含まれるかに
よって適宜決められる。この結果、微分2値化信号eが
得られる。この微分2値化信号eのハイレベルの期間の
中央を抽出し、この時刻をt1とする。時刻t1は原信号a
におけるエッジ部分の中央部に相当する。First, the obtained original signal a is first-order differentiated to calculate the absolute value of the differential value. At this time, the differential signal c is obtained. The convex portion of the waveform of the differential signal c corresponds to the edge portion of the waveform of the original signal a. In order to extract this edge portion, threshold processing is performed on the differential signal c with an appropriate differential threshold d. At this time, the threshold value d is appropriately determined according to how much a slow change is ignored, that is, what kind of property the input image signal includes an unnecessary signal, that is, the above distortion. As a result, a differential binarized signal e is obtained. The center of the high level period of the differential binarized signal e is extracted, and this time is defined as t 1 . Original signal a at time t 1
Corresponds to the central part of the edge portion of.
以下、第2図を用いて説明する。今、原信号aを関数y
=f(t)で表すとする。このとき、原信号aの時刻t1
における点、つまり着目点t1より前後にΔtだけずれた
点の値はそれぞれf(t1+Δt),f(t1−Δt)と書け
る。この2値をm:nに分割した点をg(t1)とすると、 となる。この、m:nの分割は時間的に前の信号にウエイ
トをおいて平均するか、後の信号にウエイトをおいて平
均するかに関係し、どの様な形態の波形に対応するかに
より適宜決められる。This will be described below with reference to FIG. Now, let the original signal a be the function y
= F (t). At this time, the time t 1 of the original signal a
Write point, i.e. each value of the point shifted by Delta] t before and after from the notice point t 1 f (t 1 + Δt ), and f (t 1 -Δt) in. If the point obtained by dividing this binary value into m: n is g (t 1 ), Becomes This division of m: n is related to averaging after weighting the previous signal in time, or averaging after weighting the later signal, depending on what kind of waveform the waveform corresponds to. Can be decided
同様に時刻t0,t2についてもg(t0),g(t2)を求め、
点〔t0,g(t0)〕と点〔t1,g(t1)〕、点〔t1,g
(t1)〕と点〔t2,g(t2)〕をそれぞれ結んだ直線をそ
れぞれ浮動2値化しきい値とする。すなわち、浮動2値
化しきい値bは区間t0≦t<t1では 区間t1≦t<t2では となり、一般には、区間tn-1≦t<tnにおいて と書くことができる。Similarly, g (t 0 ), g (t 2 ) is also obtained for times t 0 and t 2 ,
Point [t 0 , g (t 0 )] and point [t 1 , g (t 1 )], point [t 1 , g
The straight lines connecting (t 1 )] and the points [t 2 , g (t 2 )] are set as floating binarization thresholds. That is, the floating binarization threshold value b is in the interval t 0 ≤t <t 1 . In the interval t 1 ≤t <t 2 And, in general, in the interval t n-1 ≤t <t n Can be written.
しかして、この浮動2値化しきい値b(=y)で原信号
aをしきい値処理することにより、浮動2値化信号fが
得られる。Then, the floating binarized signal f is obtained by thresholding the original signal a with this floating binarized threshold b (= y).
ここで、文字パターンや配線パターン等をTVカメラ等の
撮像装置で撮像して得られる映像信号たる原信号aは時
刻tにより変化する関数y=f(t)として表したが、
実際には入力された原信号aを所定の時間間隔にてサン
プリングし、これをD/A変化した後、コンピュータによ
り入力された原信号aについて各時刻におけるg(t1)
あるいはg(t0),g(t2)等を上記計算手段を用いて求
め、浮動2値化信号fを得る。なお、原信号aの時刻t
あるいは時刻tより前後にΔtだけずれた点について
は、求める信号の精度、使用する装置により適宜定めら
れる。Here, the original signal a, which is a video signal obtained by imaging a character pattern, a wiring pattern, or the like with an imaging device such as a TV camera, is expressed as a function y = f (t) that changes with time t
Actually, the input original signal a is sampled at a predetermined time interval, D / A is changed, and then g (t 1 ) at each time for the original signal a input by the computer
Alternatively, g (t 0 ), g (t 2 ) and the like are obtained using the above calculation means to obtain the floating binarized signal f. The time t of the original signal a
Alternatively, the point deviated by Δt before and after the time t is appropriately determined depending on the accuracy of the signal to be obtained and the device used.
(発明の効果) 以上のように本発明にあっては、文字パターンや配線パ
ターン等の2値化する上で、原信号の波形に追従する浮
動2値化しきい値を設定するようにしているので、照明
ムラやシェーデイング等の歪の影響を受けず、精度良く
2値化が行え、対象を精度良く認識できるという効果が
ある。(Effects of the Invention) As described above, in the present invention, when binarizing a character pattern, a wiring pattern, or the like, a floating binarization threshold value that follows the waveform of the original signal is set. Therefore, there is an effect that binarization can be performed with high accuracy and an object can be recognized with high accuracy without being affected by distortion such as uneven illumination and shading.
第1図は本発明の浮動2値化方法及び装置により処理を
受けて変形して行く信号波形を示す図、第2図は浮動2
値化しきい値の詳細を示す図、第3図は被撮像映像と映
像信号を示す図である。 a……原信号、b……浮動2値化しきい値 c……微分信号、d……微分しきい値 e……微分2値化信号、f……2値化信号FIG. 1 is a diagram showing a signal waveform which is processed and deformed by the floating binarizing method and apparatus of the present invention, and FIG.
FIG. 3 is a diagram showing details of the threshold value, and FIG. 3 is a diagram showing a captured image and a video signal. a ... original signal, b ... floating binary threshold c ... differential signal, d ... differential threshold e ... differential binary signal, f ... binary signal
Claims (1)
等の撮像装置で撮像して得られる映像信号を原信号と
し、この原信号を一次微分し微分値の絶対値を示す微分
信号を算出するステップと、前記微分信号を適切な微分
しきい値によりしきい値処理を施し微分2値化信号を得
るステップと、前記微分2値化信号のハイレベル期間の
中央の時刻tnを算出するステップと、算出した時刻tnよ
りもそれぞれ前後にΔtだけずれた時刻での原信号の値
を求めるステップと、上記の2値をm:nに分割した値g
(tn)を求めるステップと、tn-1≦t<tnの区間で点
〔tn-1,g(tn-1)〕と点〔tn,g(tn)〕とを結ぶ直線 を求めるステップとを有し、前記直線yを浮動2値化し
きい値として前記原信号を2値化することを特徴とした
画像処理のための浮動2値化方法。1. An original signal is a video signal obtained by capturing an image of a character pattern, a wiring pattern or the like with an image pickup device such as a TV camera, and the original signal is first differentiated to calculate a differential signal indicating the absolute value of the differential value. A step of thresholding the differential signal with an appropriate differential threshold value to obtain a differential binary signal, and a step of calculating a central time t n of a high level period of the differential binary signal. When, determining a value of the original signal at the calculated time t time shifted by Δt before and after each than n, the 2 value of the m: values were divided into n g
The step of obtaining (t n ) and the point [t n-1 , g (t n-1 )] and the point [t n , g (t n )] in the interval of t n-1 ≤t <t n Straight line And a binarization of the original signal by using the straight line y as a floating binarization threshold value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62013356A JPH0773197B2 (en) | 1987-01-22 | 1987-01-22 | Floating binarization method for image processing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62013356A JPH0773197B2 (en) | 1987-01-22 | 1987-01-22 | Floating binarization method for image processing |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63181521A JPS63181521A (en) | 1988-07-26 |
| JPH0773197B2 true JPH0773197B2 (en) | 1995-08-02 |
Family
ID=11830820
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62013356A Expired - Lifetime JPH0773197B2 (en) | 1987-01-22 | 1987-01-22 | Floating binarization method for image processing |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0773197B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04268809A (en) * | 1991-02-22 | 1992-09-24 | Mitsubishi Electric Corp | Method and device for extracting pulse signal |
-
1987
- 1987-01-22 JP JP62013356A patent/JPH0773197B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63181521A (en) | 1988-07-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3083918B2 (en) | Image processing device | |
| JPH02285475A (en) | Method and equipment for extracting edge and line | |
| JP2811909B2 (en) | Image processing device | |
| JPH041866A (en) | Method and device for image processing | |
| US4240107A (en) | Apparatus and method for pattern information processing | |
| JPH0773197B2 (en) | Floating binarization method for image processing | |
| JPH0824350B2 (en) | Background image extraction method | |
| JPH10208037A (en) | Target detection device | |
| JP2956151B2 (en) | Image processing method and apparatus | |
| JP2511068B2 (en) | Character string detector | |
| JPS62297981A (en) | Binarization system for image | |
| JP2797655B2 (en) | Image processing method and apparatus | |
| JP3187872B2 (en) | Image data binarization device | |
| JPH11351835A (en) | Method for extracting contour line of cutting edge by processing taken image of tool | |
| JPH0512441A (en) | Edge image generator | |
| JPH069062B2 (en) | Area extraction device | |
| JP3379591B2 (en) | Binarization processing method and apparatus | |
| JP2853141B2 (en) | Image area identification device | |
| JP2647458B2 (en) | Halftone dot area separation device | |
| JP2971793B2 (en) | Position detection device | |
| JP3705405B2 (en) | Binarization threshold determination method | |
| JP3002473B2 (en) | Pattern inspection method and apparatus | |
| JPH0289187A (en) | Picture signal correcting device | |
| JPS60153671A (en) | Binary coding system | |
| JPH0561677B2 (en) |