JPH0687263B2 - Image binarization method - Google Patents

Image binarization method

Info

Publication number
JPH0687263B2
JPH0687263B2 JP61140182A JP14018286A JPH0687263B2 JP H0687263 B2 JPH0687263 B2 JP H0687263B2 JP 61140182 A JP61140182 A JP 61140182A JP 14018286 A JP14018286 A JP 14018286A JP H0687263 B2 JPH0687263 B2 JP H0687263B2
Authority
JP
Japan
Prior art keywords
density
histogram
image
density histogram
level
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
Application number
JP61140182A
Other languages
Japanese (ja)
Other versions
JPS62297980A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP61140182A priority Critical patent/JPH0687263B2/en
Publication of JPS62297980A publication Critical patent/JPS62297980A/en
Publication of JPH0687263B2 publication Critical patent/JPH0687263B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Character Input (AREA)
  • Image Input (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、テレビカメラ等の画像入力装置を介して入
力される画像を処理しその検査,確認等を行う画像処理
装置、特にその2値化方式に関する。
Description: TECHNICAL FIELD The present invention relates to an image processing apparatus that processes an image input through an image input apparatus such as a television camera and inspects and confirms the image, and particularly, its binary value. Regarding the conversion method.

〔従来の技術〕[Conventional technology]

従来、この種の2値化方式として、例えば画素単位でデ
イジタル化された画像信号の濃度ヒストグラムを利用す
るものが知られている。
Conventionally, as this type of binarization method, for example, a method using a density histogram of an image signal digitalized in pixel units is known.

第5図はゝる方式を説明するためのもので、同図(イ)
はP−タイル法と呼ばれ、同図(ロ)はモード法と呼ば
れている。すなわち、前者は同図に示す濃度ヒストグラ
ムにおける背景部分の面積をS1、図形部分の面積をS2
するとき、その面積比率S2/(S1+S2)がR(%)とな
る位置に2値化しきい値THを設定するもので、面積比率
が予めわかつていることが前提である。
Fig. 5 is for explaining such a method.
Is called the P-tile method, and the same figure (b) is called the modal method. That is, the former is the position where the area ratio S 2 / (S 1 + S 2 ) is R (%), where S 1 is the area of the background part and S 2 is the area of the graphic part in the density histogram shown in FIG. The binarization threshold value TH is set to, and it is premised that the area ratio is known in advance.

一方、後者は濃度ヒストグラムの谷となる部分を検出
し、この位置にしきい値THを設定するものである。
On the other hand, the latter is to detect the valley of the density histogram and set the threshold TH at this position.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかしながら、上記各方式は面積比率がわからないも
の、またはヒストグラムの谷が検出できないものには適
用できず、したがつて対象が制限されること、また実際
にはこのような対象が多い、と云う問題がある。
However, the above-mentioned methods cannot be applied to those for which the area ratio is unknown or for which the valleys in the histogram cannot be detected, and thus the target is limited, and in reality, there are many such targets. There is.

ところで、濃度ヒストグラムは理想的には第6図(イ)
の如く得られることが望ましい。なお、これは5種類の
画像があつてもその各々がK1,K2,K3,K4,K5として分離,
抽出された例である。しかし、実際には画像入力時の照
明系における影やボケによる濃度レベルの「ダレ」や、
センサ系(画像入力装置)の空間周波数特性による濃度
レベルの「ダレ」等のため、濃度ヒストグラムは第6図
(ロ)のように、K1〜K5のブロツクが分離されずに連結
されてしまうことが多い。その結果、例えば第7図のよ
うに2つの画像Ki,Kjがある場合に、その真の輪郭Zi,Zj
が以上の如き影響によつてZi′,Zj′にまで広がり、こ
のため真の輪郭の位置に2値化しきい値を設定すること
ができなくなる。
By the way, the density histogram is ideally shown in FIG.
It is desirable to obtain It should be noted that even if there are 5 types of images, each of them is separated as K 1 , K 2 , K 3 , K 4 and K 5 ,
It is an extracted example. However, in reality, when the image is input, the density level “dulls” due to shadows and blurring in the illumination system,
For such "sagging" of the density level due to the spatial frequency characteristics of the sensor system (image input device), the concentration histogram as FIG. 6 (b), block of K 1 ~K 5 is connected without being separated It often happens. As a result, for example, when there are two images Ki and Kj as shown in FIG. 7, their true contours Zi and Zj
Due to the above influence, it spreads to Zi 'and Zj', so that it becomes impossible to set the binarization threshold at the position of the true contour.

つまり、このような問題についても上記の如き従来方式
では何ら対処できず、しかるべき手段の出現が望まれて
いた。
In other words, even such a problem cannot be dealt with by the above-mentioned conventional methods, and the advent of appropriate means has been desired.

したがつて、この発明は如何なる濃度ヒストグラムに対
しても、容易にしきい値レベルを設定して2値化するこ
とが可能な2値化方式を提供することを目的とする。
Therefore, it is an object of the present invention to provide a binarization method capable of easily setting a threshold level and binarizing any density histogram.

〔問題点を解決するための手段〕[Means for solving problems]

濃度ヒストグラムにおける濃度レベル範囲とその度数と
の関係が略一定な第1の部分とそれ以外の第2の部分と
に分離する分離手段と、この分離手段からの出力にもと
づき第1の部分のみを含む他の濃度ヒストグラムを作成
するヒストグラム作成手段とを設ける。
Separation means for separating into a first part and a second part other than that, the relationship between the density level range and the frequency in the density histogram is substantially constant, and only the first part based on the output from this separation means. And a histogram creating means for creating another density histogram including the density histogram.

〔作用〕[Action]

第6図(ロ)の如き濃度ヒストグラムで2値化しきい値
レベルが決められないのは、同図にG1〜G6の如き傾斜部
(第2の部分)があるためであるから、上記分離手段に
てその分離を行ない、上記ヒストグラム作成手段により
この部分を除いた第6図(イ)の如き濃度ヒストグラム
を作成することにより、2値化しきい値レベルを容易に
決定できるようにする。
The reason why the binarization threshold level cannot be determined by the density histogram as shown in FIG. 6B is that there is a sloped portion (second portion) as G 1 to G 6 in FIG. The separation means performs the separation, and the histogram creation means creates a density histogram as shown in FIG. 6 (a) excluding this portion, so that the binarization threshold level can be easily determined.

〔実施例〕〔Example〕

第1図はこの発明の実施例を示す構成図である。同図に
おいて、1はアナログ/デイジタル(A/D)変換器、2
は画像メモリ、3はコントロール信号発生器、4,6は濃
度ヒストグラム作成回路、5は微分処理部、7は2値化
しきい値発生回路、8は比較回路であり、Aは入力画像
信号、Bは2値化画像信号を示す。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is an analog / digital (A / D) converter, 2
Is an image memory, 3 is a control signal generator, 4 and 6 are density histogram creating circuits, 5 is a differentiation processing section, 7 is a binarization threshold value generating circuit, 8 is a comparing circuit, A is an input image signal, and B is a Indicates a binarized image signal.

図示されない画像入力手段を介して得られる画像信号A
は、まずA/D変換器1により画素単位でデイジタル値に
変換され、信号発生器3から出力されるコントロール信
号とタイミングをとつて画像メモリ2に格納される一
方、濃度ヒストグラム作成回路4に与えられる。
Image signal A obtained via image input means (not shown)
Is first converted into a digital value pixel by pixel by the A / D converter 1 and stored in the image memory 2 in synchronization with the control signal output from the signal generator 3. To be

この濃度ヒストグラム作成回路4は具体的には第2図の
如く、濃度レベル数設定部41、濃度レベル範囲設定部4
2、カウンタ43および濃度ヒストグラム出力部44等より
構成される。設定部41には濃度レベル数(N)が適宜に
初期設定され、設定部42はこれに従い濃度レベルの上,
下限値Lmax,Lmin内に入る濃度レベル範囲Liを決定する
ので、カウンタ43はこの各濃度レベル範囲毎にそこに入
る画素数をカウントして濃度ヒストグラムHf(i)を作
成し、出力部44を介して出力する。この濃度ヒストグラ
ムは第6図(ロ)の如く、傾斜部G1によつて各濃度
ブロツクが互いに連結しており、2値化しきい値を決定
するのに適した形にはなつていないのは前述の通りであ
る。そこで、この実施例ではかゝる傾斜部を除去すべ
く、微分処理部5を設けて微分処理を行なう。
As shown in FIG. 2, the density histogram creating circuit 4 is specifically composed of a density level number setting section 41 and a density level range setting section 4
2, a counter 43, a density histogram output unit 44, etc. The number of density levels (N) is appropriately initialized in the setting unit 41, and the setting unit 42 sets the density level accordingly,
Since the density level range Li that falls within the lower limit values Lmax and Lmin is determined, the counter 43 counts the number of pixels that fall within each density level range to create a density histogram Hf (i), and outputs the output unit 44. Output through. The density histogram is as FIG. 6 (b), by connexion each concentration block the inclined portion G 1 ~ 6 are connected to each other, not gives off into a form suitable for determining the binarizing threshold Is as described above. Therefore, in this embodiment, the differential processing unit 5 is provided to perform the differential processing in order to remove such an inclined portion.

この微分処理動作を第3図に示す。これは、 を同図(イ)の如く求め、この値に対して正,負のしき
い値THP,THNを設定して同図(ロ)の如く2値化し、そ
の結果がハイレベル“H"ならば傾斜であり、ローレベル
“L"ならば信号部とするものである。
This differential processing operation is shown in FIG. this is, Is obtained as shown in (b) of the figure, and positive and negative thresholds TH P and TH N are set for this value to be binarized as shown in (b) of the figure, and the result is the high level "H". If it is, it is a slope, and if it is a low level "L", it is a signal part.

濃度ヒストグラム作成回路6は、微分処理部5からの出
力にもとづき、例えば第6図(ロ)の如く示される濃度
ヒストグラムHf(i)から、上述の如き傾斜部を除去し
た第4図の如き濃度ヒストグラムHg(i)を作成する。
こうして得られる第4図の如きヒストグラムに対し、し
きい値発生回路7により、例えば画像K4に対しその度数
がPαとなる濃度レベルα1を同図の如く求め、こ
の値α1に或るマージンを見込んだ値THL,THRから
2値化しきい値レベルを決定することができる。なお、
他の画像K1〜K3,K5についても同様の処理をすることに
より、この例では全部で5組の2値化しきい値を求める
ことができる。こうして2値化しきい値が決定されゝ
ば、これを比較回路8に導いて画像メモリ2から読み出
される画像データと比較することにより、2値化画像信
号Bを得ることができる。
Based on the output from the differentiation processing unit 5, the density histogram creation circuit 6 removes the above-described sloped part from the density histogram Hf (i) shown in, for example, FIG. Create a histogram Hg (i).
With respect to the thus obtained histogram as shown in FIG. 4, density levels α 1 and α 2 at which the frequency becomes P α for the image K 4 are obtained by the threshold value generating circuit 7 as shown in FIG. The binarization threshold level can be determined from the values TH L and TH R that allow for a certain margin for 1 and α 2 . In addition,
By performing the same processing on the other images K 1 to K 3 and K 5 , it is possible to obtain a total of 5 sets of binarization threshold values in this example. If the binarization threshold value is thus determined, it is guided to the comparison circuit 8 and compared with the image data read from the image memory 2, whereby the binarized image signal B can be obtained.

〔発明の効果〕〔The invention's effect〕

この発明によれば、濃度ヒストグラムを微分処理し、こ
れにより照明系の影,ボケやセンサ系の空間周波数特性
によるノイズ等を含む濃度ヒストグラムから、傾斜部を
除去し真の濃度ヒストグラムを作るようにしたので、2
値化しきい値が簡単かつ正確に決定され、その結果高精
度かつ安定な画像処理が可能となる利点がもたらされ
る。
According to the present invention, the density histogram is differentiated so that the slope portion is removed from the density histogram including the shadow of the illumination system, the blurring, the noise due to the spatial frequency characteristic of the sensor system, and the like to create a true density histogram. I did so, 2
The threshold value can be determined easily and accurately, and as a result, it is possible to perform image processing with high accuracy and stability.

【図面の簡単な説明】 第1図はこの発明の実施例を示す構成図、第2図は濃度
ヒストグラム作成回路の具体例を示すブロツク図、第3
図は微分処理を説明するため説明図、第4図は2値化し
きい値の決定方法を説明するための説明図、第5図は濃
度ヒストグラムを利用する2値化方式の従来例を説明す
るためのグラフ、第6図は濃度ヒストグラムの例を示す
グラフ、第7図は画像と2値化しきい値との関係を説明
するための説明図である。 符号説明 1……アナログ/デイジタル(A/D)変換器、2……画
像メモリ、3……コントロール信号発生器、4,6……濃
度ヒストグラム作成回路、5……微分処理部、7……し
きい値発生回路、8……比較回路、41……濃度レベル数
設定部、42……濃度レベル範囲設定部、43……カウン
タ、44……濃度ヒストグラム出力部、A……入力面像信
号、B……2値化画像信号。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a concrete example of a density histogram creating circuit, and FIG.
FIG. 4 is an explanatory diagram for explaining a differential process, FIG. 4 is an explanatory diagram for explaining a method of determining a binarization threshold value, and FIG. 5 is a conventional example of a binarization method using a density histogram. FIG. 6 is a graph showing an example of the density histogram, and FIG. 7 is an explanatory diagram for explaining the relationship between the image and the binarization threshold value. Explanation of code 1 …… Analog / digital (A / D) converter, 2 …… Image memory, 3 …… Control signal generator, 4,6 …… Density histogram creation circuit, 5 …… Differentiation processing section, 7 …… Threshold generator circuit, 8 ... Comparison circuit, 41 ... Density level number setting unit, 42 ... Density level range setting unit, 43 ... Counter, 44 ... Density histogram output unit, A ... Input image signal , B ... Binary image signal.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】対象物を撮像して得られる画像信号をその
濃度に応じて画素毎にデイジタル化し、予め設定される
各濃度レベル範囲とその各々に属する画素数との関係を
示す濃度ヒストグラムを作成し、該濃度ヒストグラムに
もとづき2値化しきい値レベルを決定して画像を2値化
する2値化方式において、 前記作成された濃度ヒストグラムをその濃度レベルと度
数との関係が略一定な第1の部分と、それ以外の第2の
部分とに分離する分離手段と、 該分離手段からの出力にもとづき前記第1の部分のみを
含む他の濃度ヒストグラムを作成するヒストグラム作成
手段と、 を設け、該他のヒストグラムから2値化しきい値レベル
を決定することを特徴とする画像の2値化方式。
1. An image signal obtained by picking up an image of an object is digitized pixel by pixel according to its density, and a density histogram showing a relationship between each density level range set in advance and the number of pixels belonging to each range is created. A binarization method in which a binarization threshold value level is created based on the density histogram and the image is binarized, wherein the created density histogram has a substantially constant relationship between the density level and the frequency. And a histogram creating means for creating another density histogram containing only the first portion based on the output from the separating means. , A binarization method for an image, wherein a binarization threshold level is determined from the other histogram.
JP61140182A 1986-06-18 1986-06-18 Image binarization method Expired - Lifetime JPH0687263B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61140182A JPH0687263B2 (en) 1986-06-18 1986-06-18 Image binarization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61140182A JPH0687263B2 (en) 1986-06-18 1986-06-18 Image binarization method

Publications (2)

Publication Number Publication Date
JPS62297980A JPS62297980A (en) 1987-12-25
JPH0687263B2 true JPH0687263B2 (en) 1994-11-02

Family

ID=15262804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61140182A Expired - Lifetime JPH0687263B2 (en) 1986-06-18 1986-06-18 Image binarization method

Country Status (1)

Country Link
JP (1) JPH0687263B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MY118340A (en) 1997-03-06 2004-10-30 Matsushita Electric Ind Co Ltd Histogram generator.

Also Published As

Publication number Publication date
JPS62297980A (en) 1987-12-25

Similar Documents

Publication Publication Date Title
JP2903788B2 (en) Fingerprint image input device
JPH0687263B2 (en) Image binarization method
KR940002236B1 (en) Apparatus for binarizing image signals
GB2044500A (en) Signal processing counting apparatus
JPS62297981A (en) Binarization system for image
JP2548386B2 (en) License plate usage code recognition method
JPH0217832B2 (en)
JPH069062B2 (en) Area extraction device
JPS59178872A (en) Binary-coding system of contrast picture
JPH0514898A (en) Image monitor device
JP3091356B2 (en) Moving object detection method and apparatus
JP2548385B2 (en) License plate code recognition method
JP4538135B2 (en) Defect inspection equipment
JP2968277B2 (en) Character part separation method and apparatus
JPH0512441A (en) Edge image generator
JPH07320035A (en) Moving body image extracting method
JPH0812695B2 (en) Area extraction device
JP2773871B2 (en) Image data binarization method
JPH0559547U (en) Image target detection device
JPH0556329A (en) Image blur amount detector
JPS63157288A (en) Binarization threshold determination system
JPH038630B2 (en)
JPH0773197B2 (en) Floating binarization method for image processing
JPH0552767A (en) Image inspecting apparatus
JPH05165525A (en) Method for deciding order to take out objects