JP3019518B2 - Image reading device - Google Patents

Image reading device

Info

Publication number
JP3019518B2
JP3019518B2 JP3221279A JP22127991A JP3019518B2 JP 3019518 B2 JP3019518 B2 JP 3019518B2 JP 3221279 A JP3221279 A JP 3221279A JP 22127991 A JP22127991 A JP 22127991A JP 3019518 B2 JP3019518 B2 JP 3019518B2
Authority
JP
Japan
Prior art keywords
signal
brightness
output
hue
subtractor
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
JP3221279A
Other languages
Japanese (ja)
Other versions
JPH05110856A (en
Inventor
誠之 荒瀬
Original Assignee
安藤電気株式会社
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 安藤電気株式会社 filed Critical 安藤電気株式会社
Priority to JP3221279A priority Critical patent/JP3019518B2/en
Publication of JPH05110856A publication Critical patent/JPH05110856A/en
Application granted granted Critical
Publication of JP3019518B2 publication Critical patent/JP3019518B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Input (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、色ディジタル画像信
号R、G、B信号を2値化信号に変換する画像読取り装
置についてのものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reader for converting color digital image signals R, G, B signals into binary signals.

【0002】[0002]

【従来の技術】次に、従来技術による画像読取装置の構
成を図2により説明する。図2の1は対象物、6は画像
入力部、7は比較基準信号作成回路、8は2値化判定回
路である。例えば、対象物1が印刷配線板であり、画像
入力部6がカメラとする。印刷配線板のパターンとパタ
ーン以外をカメラで撮ると、パターンとパターン以外で
は反射率が違うので、画像入力部6の出力から印刷配線
板のパターンとパターン以外を読み取ることができる。
2. Description of the Related Art Next, the configuration of a conventional image reading apparatus will be described with reference to FIG. 2 is an object, 6 is an image input unit, 7 is a comparison reference signal generation circuit, and 8 is a binarization determination circuit. For example, the object 1 is a printed wiring board, and the image input unit 6 is a camera. If the pattern of the printed wiring board is photographed with a camera, the reflectance is different between the pattern and the pattern other than the pattern. Therefore, the pattern of the printed wiring board and the pattern other than the pattern can be read from the output of the image input unit 6.

【0003】対象物1の画像は画像入力部6でデジタル
の画像信号21に変換される。比較基準信号作成回路7
は、予め画像信号の濃度対頻度ヒストグラムから比較基
準信号22を算出しておく。比較基準信号22の算出方
法は、例えば、大津展之「判別および最小2乗基準に基
づく自動しきい値算出法」電子通信学会論文誌80/4Vol
1.J63-D〓4 に記載されている。これは、画像信号の濃
度対頻度ヒストグラムから、分離されるクラスの分離度
を最大にするしきい値を求める方法である。
The image of the object 1 is converted into a digital image signal 21 by the image input unit 6. Comparison reference signal creation circuit 7
Calculates the comparison reference signal 22 from the density vs. frequency histogram of the image signal in advance. The method of calculating the comparison reference signal 22 is described in, for example, Nobuyuki Otsu, “Automatic threshold value calculation method based on discrimination and least square criterion,” IEICE Transactions on Electronics
1. Described in J63-D〓4. In this method, a threshold value that maximizes the degree of separation of a class to be separated is obtained from a density versus frequency histogram of an image signal.

【0004】画像信号21が画像入力部6から出るたび
に、2値化判定回路8は比較基準信号22と比較し、2
値化する。2値化の条件は、次のとおり。画像信号21
>比較基準信号22のとき、2値画像信号23を高レベ
ルにする。画像信号21≦比較基準信号22のとき、2
値画像信号23を低レベルにする。
Each time the image signal 21 is output from the image input unit 6, the binarization determination circuit 8 compares the image signal 21 with the comparison reference signal 22,
Value. The conditions for binarization are as follows. Image signal 21
> In the case of the comparison reference signal 22, the binary image signal 23 is set to a high level. 2 when image signal 21 ≦ comparison reference signal 22
The value image signal 23 is set to a low level.

【0005】次に、対象物1が印刷配線板のときのパタ
ーン部分とパターン以外の部分の画素濃度対画素数の頻
度のグラフを図4により説明する。図4の横軸は画素の
濃度であり、縦軸は画素数の頻度である。パターン部分
の濃度対頻度ヒストグラムAとパターン以外の部分の濃
度対頻度ヒストグラムBには、重なり部分Cが存在す
る。
Next, a graph of the pixel density versus the frequency of the number of pixels in the pattern portion and the portion other than the pattern when the object 1 is a printed wiring board will be described with reference to FIG. The horizontal axis in FIG. 4 is the pixel density, and the vertical axis is the frequency of the number of pixels. An overlap portion C exists in the density vs. frequency histogram A of the pattern portion and the density vs. frequency histogram B of the portion other than the pattern.

【0006】次に、図4の画像を比較基準信号22で2
値化するときの状態を図5により説明する。図5の横軸
は濃度であり、縦軸は頻度である。図5のABは画像の
濃度対頻度ヒストグラムであり、図4の曲線Aと曲線B
を合成したものである。図5のCAとCBは、図4の重
なり部分Cの部分である。図5の重なり部分CBはパタ
ーン以外の部分と判定され、重なり部分CAはパターン
と判定されて2値化される。
Next, the image of FIG.
The state when the value is converted will be described with reference to FIG. The horizontal axis in FIG. 5 is the density, and the vertical axis is the frequency. AB in FIG. 5 is a histogram of density vs. frequency of the image, and curves A and B in FIG.
Are synthesized. CA and CB in FIG. 5 correspond to the overlapping portion C in FIG. The overlapping portion CB in FIG. 5 is determined to be a portion other than the pattern, and the overlapping portion CA is determined to be a pattern and is binarized.

【0007】[0007]

【発明が解決しようとする課題】図4のように重なり部
分Cをもつ画像信号を濃度のしきい値で正しく2値化す
ることは困難である。この発明は、対象物1の色画像信
号から明度、彩度、色相のパラメータを求め、このパラ
メータと予め設定された比較基準信号とを比較して2値
化し、濃度対頻度グラフに重なりをもつ画像信号に対し
ても2値化することができる画像読取り装置の提供を目
的とする。
It is difficult to correctly binarize an image signal having an overlapping portion C as shown in FIG. 4 using a density threshold. According to the present invention, parameters of lightness, saturation, and hue are obtained from a color image signal of the object 1, and these parameters are compared with a predetermined comparison reference signal to be binarized. It is an object of the present invention to provide an image reading device that can binarize an image signal.

【0008】[0008]

【課題を解決するための手段】この目的を達成するため
に、この発明では、対象物1を撮像し、色ディジタル画
像信号のR信号11、G信号12、B信号13を出力す
る画像入力部2と、R信号11とG信号12とB信号1
3を入力とし、明度信号14と彩度信号15と色相信号
16に変換する色情報分離回路3と、明度の比較基準信
号17、彩度の比較基準信号18及び色相の比較基準信
号19を出力する比較基準信号発生器4と、明度信号1
4>明度の比較基準信号17で、かつ彩度信号15>彩
度の比較基準信号18で、かつ色相信号16>色相の比
較基準信号19のとき高レベルの2値画像信号20を出
力し、それ以外のときは低レベルの2値画像信号20を
出力する2値化判定回路5とを備える。
In order to achieve this object, according to the present invention, there is provided an image input unit for picking up an image of an object 1 and outputting an R signal 11, a G signal 12, and a B signal 13 of color digital image signals. 2, R signal 11, G signal 12, and B signal 1
3 as an input and outputs a color information separating circuit 3 for converting into a lightness signal 14, a chroma signal 15 and a hue signal 16, and a lightness comparison reference signal 17, a saturation comparison reference signal 18 and a hue comparison reference signal 19 Comparison reference signal generator 4 and brightness signal 1
4> output a high-level binary image signal 20 when lightness comparison reference signal 17 and saturation signal 15> saturation comparison reference signal 18 and hue signal 16> hue comparison reference signal 19; In other cases, a binarization determination circuit 5 that outputs a low-level binary image signal 20 is provided.

【0009】次に、この発明による画像読取り装置の構
成を図1により説明する。図1の2は画像入力部、3は
色情報分離回路、4は比較基準信号発生器、5は2値化
判定回路である。画像入力部2は例えば、ビデオカメラ
やイメージスキャナであり、画像入力部2は対象物1を
撮像し、色デジタル画像信号のR信号11、G信号1
2、B信号13を出力し、色情報分離回路3は画像入力
部2からのR信号11、G信号12、B信号13を明度
信号14と彩度信号15と色相信号16に変換する。
Next, the configuration of an image reading apparatus according to the present invention will be described with reference to FIG. 1 is an image input unit, 3 is a color information separation circuit, 4 is a comparison reference signal generator, and 5 is a binarization determination circuit. The image input unit 2 is, for example, a video camera or an image scanner. The image input unit 2 captures an image of the object 1, and outputs an R signal 11 and a G signal 1 of a color digital image signal.
2, the B signal 13 is output, and the color information separation circuit 3 converts the R signal 11, the G signal 12, and the B signal 13 from the image input unit 2 into a brightness signal 14, a saturation signal 15, and a hue signal 16.

【0010】[0010]

【作用】次に、色情報分離回路3の動作を説明する。画
像入力部2から出力されるR信号11、G信号12及び
B信号13から、明度信号14、彩度信号15及び色相
信号16は次の式で求められる。 明度信号14=max(R、G、B)…………(1) 彩度信号15={max(R、G、B)−min(R、
G、B)} /max(R、G、B)…………(2) 色相信号16 max(R、G、B)=R信号11のときは、 〔{max(R、G、B)−信号B}/{max(R、
G、B)−min(R、G、B)}〕−〔{max
(R、G、B)−信号G}/{max(R、G、B)−
min(R、G、B)}〕+「1 」 max(R、G、B)=G信号12のときは、 〔{max(R、G、B)−信号R}/{max(R、
G、B)−min(R、G、B)}〕−〔{max
(R、G、B)−信号B}/{max(R、G、B)−
min(R、G、B)}〕+「3 」 max(R、G、B)=B信号13のときは、 〔{max(R、G、B)−信号G}/{max(R、
G、B)−min(R、G、B)}〕−〔{max
(R、G、B)−信号R}/{max(R、G、B)−
min(R、G、B)}〕+「5 」 …………………
(3) ここに、max(R、G、B)=max(R信号11、
G信号12、B信号13)、min(R、G、B)=m
in(R信号11、G信号12、B信号13)とする。
Next, the operation of the color information separation circuit 3 will be described. From the R signal 11, the G signal 12, and the B signal 13 output from the image input unit 2, the brightness signal 14, the saturation signal 15, and the hue signal 16 are obtained by the following equations. Brightness signal 14 = max (R, G, B) (1) Saturation signal 15 = {max (R, G, B) −min (R,
G, B)} / max (R, G, B) (2) When the hue signal 16 max (R, G, B) = R signal 11, [{max (R, G, B) Signal B} / {max (R,
G, B) -min (R, G, B)}]-[{max
(R, G, B) -signal G / max (R, G, B)-
min (R, G, B)} + “1” When max (R, G, B) = G signal 12, [{max (R, G, B) −signal R} / {max (R,
G, B) -min (R, G, B)}]-[{max
(R, G, B) -Signal B} / {max (R, G, B)-
min (R, G, B)} + “3” When max (R, G, B) = B signal 13, [{max (R, G, B) −signal G} / {max (R,
G, B) -min (R, G, B)}]-[{max
(R, G, B) -signal R} / {max (R, G, B)-
min (R, G, B)}] + “5” …………………
(3) where max (R, G, B) = max (R signal 11,
G signal 12, B signal 13), min (R, G, B) = m
in (R signal 11, G signal 12, B signal 13).

【0011】明度信号14、彩度信号15及び色相信号
16に対し、比較基準信号発生器4には予め明度の比較
基準信号値、彩度の比較基準信号値及び色相の比較基準
信号値が設定され、比較基準信号発生器4から明度の比
較基準信号17、彩度の比較基準信号18及び色相の比
較基準信号19が2値化判定回路5に送られる。2値化
判定回路5には、色情報分離回路3から明度信号14、
彩度信号15及び色相信号16が入力される。
For the lightness signal 14, the saturation signal 15, and the hue signal 16, the lightness comparison reference signal value, the saturation comparison reference signal value, and the hue comparison reference signal value are set in advance in the comparison reference signal generator 4. Then, the comparison reference signal 17 for brightness, the comparison reference signal 18 for saturation, and the comparison reference signal 19 for hue are sent from the comparison reference signal generator 4 to the binarization determination circuit 5. The binarization determination circuit 5 includes a lightness signal 14 from the color information separation circuit 3,
A saturation signal 15 and a hue signal 16 are input.

【0012】2値化判定回路5では、明度信号14が明
度の比較基準信号17より大きいか、彩度信号15が彩
度の比較基準信号18より大きいか、色相信号16が色
相の比較基準信号19より大きいかを判定し、これらを
同時に満たすときは高レベルにし、それ以外のときは低
レベルにする。
In the binarization determination circuit 5, the brightness signal 14 is larger than the brightness comparison reference signal 17, the saturation signal 15 is larger than the saturation comparison reference signal 18, and the hue signal 16 is the hue comparison reference signal. It is determined whether it is greater than 19. If these are satisfied at the same time, the level is set to a high level; otherwise, the level is set to a low level.

【0013】次に、色情報分離回路3の構成を説明す
る。色情報分離回路3の3A〜3Cは比較器、3Dは減
算器、3Eは除算器、3Fと3Gは選択器、3Hと3J
は減算器、3Kと3Lは除算器、3Mは減算器、3Nは
選択器、3Pは加算器である。比較器3AにはR信号1
1とG信号12が入力され、比較器3AはR信号11と
G信号12のうち大きいものを信号31にし、小さいも
のを信号32にする。比較器3Bには信号31とB信号
13が入力され、比較器3Bは信号31とB信号13の
うち大きいものを明度信号14とする。比較器3Cには
信号32とB信号13が入力され、信号32とB信号1
3の信号のうち小さいものを信号33とする。
Next, the configuration of the color information separation circuit 3 will be described. 3A to 3C of the color information separation circuit 3 are comparators, 3D is a subtractor, 3E is a divider, 3F and 3G are selectors, 3H and 3J.
Is a subtractor, 3K and 3L are dividers, 3M is a subtractor, 3N is a selector, and 3P is an adder. The comparator 3A has an R signal 1
1 and the G signal 12 are input, and the comparator 3A sets the larger one of the R signal 11 and the G signal 12 to the signal 31 and sets the smaller one to the signal 32. The signal 31 and the B signal 13 are input to the comparator 3B. The comparator 3B sets the larger one of the signal 31 and the B signal 13 as the brightness signal 14. The signal 32 and the B signal 13 are input to the comparator 3C.
The smaller one of the three signals is signal 33.

【0014】減算器3Dのaには明度信号14が入力さ
れ、bには信号33が入力される。減算器3Dは、a−
bの結果を信号34として出力する。除算器3Eのaに
は信号34が入力され、bには明度信号14が入力され
る。除算器3Eは、a/bの結果を彩度信号15として
出力する。
The brightness signal 14 is input to a of the subtracter 3D, and the signal 33 is input to b. The subtractor 3D is a-
The result of b is output as a signal 34. The signal 34 is input to a of the divider 3E, and the brightness signal 14 is input to b. The divider 3E outputs the result of a / b as the saturation signal 15.

【0015】選択器3FにはR信号11、G信号12、
B信号13及び明度信号14が入力され、信号35が取
り出される。この場合、明度信号14=R信号11のと
き、B信号13が信号35となり、明度信号14=G信
号12のとき、R信号11が信号35となり、明度信号
14=B信号13のとき、G信号12が信号35にな
る。
The selector 3F includes an R signal 11, a G signal 12,
The B signal 13 and the brightness signal 14 are input, and the signal 35 is extracted. In this case, when the brightness signal 14 = R signal 11, the B signal 13 becomes the signal 35, when the brightness signal 14 = G signal 12, the R signal 11 becomes the signal 35, and when the brightness signal 14 = B signal 13, the G signal becomes The signal 12 becomes the signal 35.

【0016】選択器3Gには、R信号11、G信号1
2、B信号13及び明度信号14が入力され、信号36
が取り出される。この場合、明度信号14=R信号11
のとき、G信号12が信号36となり、明度信号14=
G信号12のとき、B信号13が信号36になり、明度
信号14=B信号13のとき、R信号11が信号36に
なる。
The selector 3G includes an R signal 11, a G signal 1
2, the B signal 13 and the brightness signal 14 are input, and the signal 36
Is taken out. In this case, the brightness signal 14 = the R signal 11
, The G signal 12 becomes the signal 36, and the brightness signal 14 =
When the G signal 12, the B signal 13 becomes the signal 36, and when the brightness signal 14 = B signal 13, the R signal 11 becomes the signal 36.

【0017】減算器3Hのaには明度信号14が入力さ
れ、bには信号35が入力される。減算器3Hはa−b
を演算し、信号37として出力する。減算器3Jのaに
は明度信号14が入力され、bには信号36が入力され
る。減算器3Jはa−bを演算し、信号38として出力
する。
The brightness signal 14 is input to a of the subtractor 3H, and the signal 35 is input to b. Subtractor 3H is ab
And outputs the result as a signal 37. The lightness signal 14 is input to a of the subtractor 3J, and the signal 36 is input to b. The subtractor 3J calculates ab and outputs the result as a signal 38.

【0018】除算器3Kのaには信号37が入力され、
bには信号34が入力される。除算器3Kはa/bを演
算し、信号39として出力する。除算器3Lのaには信
号38が入力され、bには信号34が入力される。除算
器3Lはa/bを演算し、信号40として出力する。減
算器3Mのaには信号39が入力され、bには信号40
が入力される。減算器3Mはa−bを演算し、信号41
として出力する。
A signal 37 is input to a of the divider 3K.
The signal 34 is input to b. The divider 3K calculates a / b and outputs the result as a signal 39. The signal 38 is input to a of the divider 3L, and the signal 34 is input to b. The divider 3L calculates a / b and outputs the result as a signal 40. The signal 39 is input to a of the subtractor 3M, and the signal 40 is input to b.
Is entered. The subtractor 3M calculates a−b, and outputs the signal 41
Output as

【0019】選択器3Nには、R信号11、G信号1
2、B信号13及び明度信号14が入力され、信号42
が取り出される。この場合、明度信号14=R信号11
のとき「1」を出力し、明度信号14=G信号12のと
き「3」を出力し、明度信号14=B信号13のとき
「3」を出力する。加算器3Pのaには信号41が入力
され、bには信号42が入力される。加算器3Pはa+
bを演算し、色相信号16として出力する。
The selector 3N includes an R signal 11, a G signal 1
2, the B signal 13 and the brightness signal 14 are input, and the signal 42
Is taken out. In this case, the brightness signal 14 = the R signal 11
In this case, "1" is output, when brightness signal 14 = G signal 12, "3" is output, and when brightness signal 14 = B signal 13, "3" is output. The signal 41 is input to a of the adder 3P, and the signal 42 is input to b. The adder 3P is a +
b is calculated and output as the hue signal 16.

【0020】次に、2値化判定回路の構成を図6により
説明する。図6の5A、5B、5Cは比較器、5DはA
NDゲートである。比較器5Aには、明度信号14がa
に入力され、明度の比較基準信号17がbに入力され
る。a>bのときに信号51は高レベルになり、a≦b
のときに信号51は低レベルになる。比較器5Bには、
彩度信号15がaに入力され、彩度の比較基準信号18
がbに入力される。a>bのときに信号52は高レベル
になり、a≦bのときに信号52は低レベルになる。比
較器5Cには、色相信号16がaに入力され、色相の比
較基準信号19がbに入力される。a>bのときに信号
53は高レベルになり、a≦bのときに信号53は低レ
ベルになる。信号51、信号52、信号53は、AND
ゲート5Dを通り、2値画像信号20を出力する。
Next, the configuration of the binarization determination circuit will be described with reference to FIG. 5A, 5B and 5C are comparators and 5D is A in FIG.
ND gate. The comparator 5A outputs the lightness signal 14 to a
And the brightness comparison reference signal 17 is input to b. When a> b, the signal 51 goes high, and a ≦ b
At this time, the signal 51 goes low. The comparator 5B includes
A saturation signal 15 is input to a, and a saturation comparison reference signal 18
Is input to b. The signal 52 goes high when a> b, and goes low when a ≦ b. To the comparator 5C, the hue signal 16 is input to a, and the hue comparison reference signal 19 is input to b. The signal 53 goes high when a> b, and goes low when a ≦ b. The signal 51, the signal 52, and the signal 53 are AND
The binary image signal 20 is output through the gate 5D.

【0021】次に、印刷配線板を例として明度、彩度及
び色相の分布を図3により説明する。図3のAAは印刷
配線板のパターン部分の分布を示し、BBはパターン以
外の部分の分布を示す。図3のAAとBBを2値化する
場合、明度の比較基準信号17よりも大きく、彩度の比
較基準信号18よりも大きく、かつ色相の比較基準信号
19よりも大きい場合に、BBの部分が低レベルに、A
Aの部分が高レベルとになり、それ以外のときに、BB
の部分が高レベルに、AAの部分が低レベルになる。こ
の場合、AAとBBには重なりがないので正しく2値化
することができる。
Next, the distribution of lightness, saturation and hue will be described with reference to FIG. 3 using a printed wiring board as an example. 3A shows the distribution of the pattern portion of the printed wiring board, and BB shows the distribution of the portion other than the pattern. In the case where AA and BB in FIG. 3 are binarized, if the value is larger than the lightness comparison reference signal 17, larger than the saturation comparison reference signal 18, and larger than the hue comparison reference signal 19, the BB portion Is low, A
A becomes high level, otherwise BB
Is at a high level and AA is at a low level. In this case, since AA and BB do not overlap, binarization can be performed correctly.

【0022】[0022]

【実施例】図1のR信号11の値が「20」、G信号12
の値が「40」、B信号13の値が「30」とすれば、信号
31は「40」、信号32は「20」となり、明度信号14
は「40」になる。また、信号33は「20」となり、減算
器3Dでは「40」−「20」=「20」の減算をする。除算
器3Eでは「20」÷「40」=「0.5 」の除算をし、彩度
信号15は「0.5 」になる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The value of the R signal 11 in FIG.
Is "40" and the value of the B signal 13 is "30", the signal 31 is "40", the signal 32 is "20", and the brightness signal 14
Becomes "40". Further, the signal 33 becomes “20”, and the subtractor 3D subtracts “40” − “20” = “20”. The divider 3E divides “20” ÷ “40” = “0.5”, and the saturation signal 15 becomes “0.5”.

【0023】選択器3Fのaには「20」、bには「4
0」、cには「30」、sには「40」が入力される。この
とき、明度信号14=G信号12なので、信号35=R
信号11「20」になる。選択器3Gのaには「20」、b
には「40」、cには「30」、sには「40」が入力され
る。このとき、明度信号14=G信号12なので、信号
36=B信号13「30」になる。
The selector 3F has "20" for a and "4" for b.
“0”, “30” is input to c, and “40” is input to s. At this time, since the brightness signal 14 = the G signal 12, the signal 35 = R
The signal 11 becomes "20". "20", b for selector 3G
"40", "30" for c, and "40" for s. At this time, since the brightness signal 14 = the G signal 12, the signal 36 = the B signal 13 "30".

【0024】減算器3Hでは明度信号14「40」−信号
35「20」=信号37「20」の減算をし、減算器3Jで
は明度信号14「40」−信号36「30」=信号38「1
0」の減算をする。除算器3Kでは信号37「20」÷信
号34「20」=信号39「1 」の除算をし、除算器3L
では信号38「10」÷信号34「20」=信号40「0.
5」の除算をする。減算器3Mでは信号39「1 」−信
号40「0.5 」=信号41「0.5 」の減算をする。
The subtractor 3H subtracts the brightness signal 14 “40” −the signal 35 “20” = the signal 37 “20”, and the subtractor 3J performs the brightness signal 14 “40” −the signal 36 “30” = the signal 38 ”. 1
Subtract "0". In the divider 3K, the signal 37 “20” ÷ the signal 34 “20” = the signal 39 “1” is divided, and the divider 3L is divided.
Then, the signal 38 “10” ÷ the signal 34 “20” = the signal 40 “0.
Divide 5 ”. The subtracter 3M subtracts the signal 39 “1” −the signal 40 “0.5” = the signal 41 “0.5”.

【0025】選択器3Nのaには「20」、bには「4
0」、cには「30」、sには「40」が入力される。この
とき、明度信号14=G信号12なので、信号42は
「1 」になる。加算器3Pでは信号41「0.5 」+信号
42「1 」=色相信号16「1.5 」の加算をする。この
結果、R信号11の値が「20」、G信号12の値が「4
0」、B信号13の値が「30」のときは、明度信号14
は「40」、彩度信号は0.5 、色相信号16は「1.5 」に
なる。
The selector 3N has "20" for a and "4" for b.
“0”, “30” is input to c, and “40” is input to s. At this time, since the brightness signal 14 = the G signal 12, the signal 42 becomes "1". The adder 3P adds the signal 41 "0.5" + the signal 42 "1" = the hue signal 16 "1.5". As a result, the value of the R signal 11 is “20” and the value of the G signal 12 is “4”.
0 ”and the value of the B signal 13 is“ 30 ”.
Is "40", the chroma signal is 0.5, and the hue signal 16 is "1.5".

【0026】図6の2値化判定回路回路5では、明度信
号14の値が「40」、彩度信号15の値が「0.5 」、色
相信号16の値が「1.5 」、明度の比較基準信号17の
値がが「30」、彩度の比較基準信号の値が「0.4 」、色
相の比較基準信号の値が「1.0 」とすれば、比較器5A
のaには「40」が、bには「30」が入力されので、信号
51は高レベルとなる。比較器5Bのaには「0.5 」
が、bには「0.4」が入力され、信号52は高レベルと
なり、比較器5Cのaには「1.5 」が、bには「1.0 」
が入力されので信号53は高レベルとなる。ANDゲー
ト5Dの入力は全て高レベルとなり、2値画像信号20
は高レベルとなる。
In the binarization determination circuit 5 of FIG. 6, the value of the lightness signal 14 is "40", the value of the chroma signal 15 is "0.5", the value of the hue signal 16 is "1.5", and the comparison standard of the lightness. If the value of the signal 17 is “30”, the value of the saturation reference signal is “0.4”, and the value of the hue comparison reference signal is “1.0”, the comparator 5A
Since "40" is input to "a" and "30" is input to b, the signal 51 becomes high level. "0.5" is set for a of the comparator 5B.
However, “0.4” is input to b, the signal 52 becomes high level, “a” of the comparator 5C is “1.5”, and “b” is “1.0”.
Is input, the signal 53 goes high. All inputs of the AND gate 5D become high level, and the binary image signal 20
Is at a high level.

【0027】図3において、パターン以外の部分の分布
BBは、明度が「120 」、彩度が「「0.3 」、色相が
「2 」を中心として、球状に分布しているとする。一
方、パターンの分布AAは、明度が「180 」、彩度が
「0.45」、色相が「3 」を中心として、球状に分布して
いるとする。このとき、明度軸、彩度軸、色相軸のスケ
ールを合わせるため、彩度軸は400 倍、色相軸は60倍さ
れているものとする。
In FIG. 3, it is assumed that the distribution BB of the portion other than the pattern has a lightness of "120", a saturation of "0.3" and a hue of "2" in a spherical shape. On the other hand, it is assumed that the pattern distribution AA is spherically distributed with lightness “180”, saturation “0.45”, and hue “3”. At this time, in order to adjust the scales of the lightness axis, the saturation axis, and the hue axis, the saturation axis is assumed to be multiplied by 400, and the hue axis by 60 times.

【0028】分布AAの明度の分布範囲を「85」〜「15
5 」、彩度の分布範囲を「0.22」〜「0.38」、色相の分
布範囲を「1.4 」〜「2.6 」とし、分布BBの明度の分
布範囲を「145 」〜「215 」、彩度の分布範囲を「0.3
7」〜「0.53」、色相の分布範囲を「2.4 」〜「3.6 」
とする。このとき、明度の比較基準信号17を「14
5」、彩度の比較基準信号18を「0.36」、色相の比較
基準信号19を「2.38」に設定しておく。
The distribution range of the brightness of the distribution AA is "85" to "15".
5 ", the saturation distribution range is" 0.22 "to" 0.38 ", the hue distribution range is" 1.4 "to" 2.6 ", the lightness distribution range of the distribution BB is" 145 "to" 215 ", and the saturation distribution is Change the distribution range to "0.3
7 "to" 0.53 ", and the hue distribution range from" 2.4 "to" 3.6 "
And At this time, the brightness comparison reference signal 17 is set to “14”.
5 ", the saturation reference signal 18 is set to" 0.36 ", and the hue comparison reference signal 19 is set to" 2.38 ".

【0029】この場合、主対角軸上の明度の最大値は12
0 +(155−120 )/√3 =140 、彩度の最大値は0.3
+(0.38−0.3 )/√3 =0.35、色相の最大値は2 +
(2.6−2 )/√3 =2.35となり、パターン部分の明度
の最小値は180 +(145 −180)/√3 =160 、彩度の
最小値は0.45+(0.37−0.45)/√3 =0.40、色相の最
小値は、3+(2.4 −3 )/√3 =2.65となる。この場
合、パターン以外の部分の分布AAが低レベルに、パタ
ーンの部分の分布BBが高レベルになり、AAとBBは
重なりがないので正しく2値化することができる。
In this case, the maximum value of the brightness on the main diagonal axis is 12
0+ (155−120) / √3 = 140, maximum saturation is 0.3
+ (0.38−0.3) /√3=0.35, the maximum value of hue is 2+
(2.6−2) /√3=2.35, the minimum value of the brightness of the pattern portion is 180+ (145−180) / √3 = 160, and the minimum value of the saturation is 0.45+ (0.37−0.45) / √3 = 0.40, and the minimum value of the hue is 3+ (2.4−3) /√3=2.65. In this case, the distribution AA of the portion other than the pattern is at a low level, and the distribution BB of the pattern portion is at a high level. Since AA and BB do not overlap, binarization can be performed correctly.

【0030】[0030]

【発明の効果】この発明によれば、対象物から色の画像
信号を取り出し、この画像信号から明度信号、彩度信号
及び色相信号のパラメータを求め、このパラメータと予
め設定された比較基準信号とを比較して2値化するの
で、濃度対頻度グラフに重なりをもつ画像信号に対して
も2値化誤りを少なくして2値化することができる。
According to the present invention, a color image signal is extracted from an object, parameters of a lightness signal, a saturation signal, and a hue signal are obtained from the image signal, and the parameters are compared with a preset comparison reference signal. Are binarized by comparing with each other, it is possible to reduce binarization errors and binarize even an image signal having an overlap with the density vs. frequency graph.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明による画像読取り装置の構成図であ
る。
FIG. 1 is a configuration diagram of an image reading apparatus according to the present invention.

【図2】従来技術による画像読取り装置の構成図であ
る。
FIG. 2 is a configuration diagram of a conventional image reading apparatus.

【図3】印刷配線板を例とした明度、彩度及び色相の分
布図である。
FIG. 3 is a distribution diagram of lightness, saturation, and hue taking a printed wiring board as an example.

【図4】パターン部分とパターン以外の部分の画素濃度
対頻度のグラフである。
FIG. 4 is a graph of pixel density versus frequency of a pattern portion and a portion other than the pattern.

【図5】図4の画像を比較基準信号22で2値化すると
きの状態図である。
5 is a state diagram when the image of FIG. 4 is binarized by a comparison reference signal 22. FIG.

【図6】2値化判定判定回路5の構成図である。FIG. 6 is a configuration diagram of a binarization determination determination circuit 5.

【符号の説明】[Explanation of symbols]

1 対象物 2 画像入力部 3 色情報分離回路 4 比較基準信号発生器 5 2値化判定回路 11 R信号 12 G信号 13 B信号 14 明度信号 15 彩度信号 16 色相信号 17 明度の比較基準信号 18 彩度の比較基準信号 19 色相の比較基準信号 20 2値画像信号 DESCRIPTION OF SYMBOLS 1 Object 2 Image input part 3 Color information separation circuit 4 Comparison reference signal generator 5 Binarization determination circuit 11 R signal 12 G signal 13 B signal 14 Lightness signal 15 Chroma signal 16 Hue signal 17 Lightness comparison reference signal 18 Saturation comparison reference signal 19 Hue comparison reference signal 20 Binary image signal

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 対象物(1) を撮像し、色ディジタル画像
信号のR信号(11)、G信号(12)、B信号(13)を出力する
画像入力部(2) と、 R信号(11)とG信号(12)を比較し、大きいものを第1の
信号(31)とし、小さいものを第2の信号(32)とする第1
の比較器(3A)と、B信号(13)と第1の信号(31)を比較
し、大きいものを明度信号(14)とする第2の比較器(3B)
と、B信号(13)と第2の信号(32)を比較し、小さいもの
を第3の信号(33)とする第3の比較器(3C)と、明度信号
(14)から第3の信号(33)を減算する第1の減算器(3D)
と、第1の減算器(3D)の出力を明度信号(14)で除算して
彩度信号(15)とする第1の除算器(3E)と、R信号(11)、
G信号(12)、B信号(13)及び明度信号(14)を入力とし、
明度信号(14)=R信号(11)のときB信号(13)を出力し、
明度信号(14)=G信号(12)のときR信号(11)を出力し、
明度信号(14)=B信号(13)のときG信号(12)を出力する
第1の選択器(3F)と、R信号(11)、G信号(12)、B信号
(13)及び明度信号(14)を入力とし、明度信号(14)=R信
号(11)のときG信号(12)を出力し、明度信号(14)=G信
号(12)のときB信号(13)を出力し、明度信号(14)=B信
号(13)のときR信号(11)を出力する第2の選択器(3G)
と、明度信号(14)から第1の選択器(3F)の出力を減算す
る第2の減算器(3H)と、明度信号(14)から第2の選択器
(3G)の出力を減算する第3の減算器(3J)と、第2の減算
器(3H)の出力を第1の減算器(3D)の出力で除算する第2
の除算器(3K)と、第3の減算器(3J)の出力を第1の減算
器(3D)の出力で除算する第3の除算器(3L)と、第2の除
算器(3K)の出力から第3の除算器(3L)の出力を減算する
第4の減算器(3M)と、R信号(11)、G信号(12)、B信号
(13)及び明度信号(14)を入力とし、明度信号(14)=R信
号(11)のとき「1」を出力し、明度信号(14)=G信号(1
2)のとき「3」を出力し、明度信号(14)=B信号(13)の
とき「5」を出力する第3の選択器(3N)と、第4の減算
器(3M)の出力と第3の選択器(3N)の出力を加算して色相
信号(16)とする加算器(3P)で構成され、R信号(11)、G
信号(12)、B信号(13)を明度信号(14)、彩度信号(15)及
び色相信号(16)に変換する色情報分離回路(3) と、 明度の比較基準信号(17)、彩度の比較基準信号(18)及び
色相の比較基準信号(19)を出力する比較基準信号発生器
(4) と、 明度信号(14)>明度の比較基準信号(17)のときは高レベ
ルを出力し、明度信号(14)≦明度の比較基準信号(17)の
ときは低レベルを出力する第4の比較器(5A)と、彩度信
号(15)>彩度の比較基準信号(18)のときは高レベルを出
力し、彩度信号(15)≦彩度の比較基準信号(18)のときは
低レベルを出力する第5の比較器(5B)と、色相信号(16)
>色相の比較基準信号(19)のときは高レベルを出力し、
色相信号(16)≦色相の比較基準信号(19)のときは低レベ
ルを出力する第6の比較器(5C)と、第4の比較器(5A)の
出力、第5の比較器(5B)の出力及び第6の比較器(5C)の
出力を入力とするANDゲート(5D)で構成され、2値画
像信号(20)を出力する2値化判定回路(5) とを備えるこ
とを特徴とする画像の読取り装置。
An image input unit (2) for imaging an object (1) and outputting an R signal (11), a G signal (12), and a B signal (13) of a color digital image signal; 11) is compared with the G signal (12), and the larger signal is used as the first signal (31), and the smaller signal is used as the second signal (32).
The second comparator (3B) compares the B signal (13) with the first signal (31) and determines the larger one as the brightness signal (14).
And a third comparator (3C) that compares the B signal (13) with the second signal (32) and determines the smaller one as the third signal (33);
A first subtractor (3D) for subtracting the third signal (33) from (14)
A first divider (3E) that divides the output of the first subtractor (3D) by the brightness signal (14) to obtain a saturation signal (15); and an R signal (11);
G signal (12), B signal (13) and brightness signal (14) are input,
When brightness signal (14) = R signal (11), B signal (13) is output,
When brightness signal (14) = G signal (12), R signal (11) is output,
A first selector (3F) that outputs a G signal (12) when the brightness signal (14) = B signal (13), an R signal (11), a G signal (12), and a B signal
(13) and brightness signal (14) as input, output G signal (12) when brightness signal (14) = R signal (11), and B signal when brightness signal (14) = G signal (12) A second selector (3G) that outputs (13) and outputs an R signal (11) when the brightness signal (14) = B signal (13)
A second subtractor (3H) for subtracting the output of the first selector (3F) from the brightness signal (14); and a second selector from the brightness signal (14).
A third subtractor (3J) for subtracting the output of (3G), and a second subtractor for dividing the output of the second subtractor (3H) by the output of the first subtractor (3D).
Divider (3K), a third divider (3L) for dividing the output of the third subtractor (3J) by the output of the first subtractor (3D), and a second divider (3K) A fourth subtractor (3M) for subtracting the output of the third divider (3L) from the output of the third signal, an R signal (11), a G signal (12), and a B signal
(13) and the brightness signal (14) are input, and when the brightness signal (14) = R signal (11), "1" is output, and the brightness signal (14) = G signal (1
The output of the third selector (3N) and the fourth subtractor (3M) that output “3” when 2) and output “5” when the brightness signal (14) = B signal (13) And an adder (3P) that adds the output of the third selector (3N) to the hue signal (16).
A color information separation circuit (3) for converting the signal (12) and the B signal (13) into a brightness signal (14), a saturation signal (15) and a hue signal (16); a brightness comparison reference signal (17); A comparison reference signal generator that outputs a saturation comparison reference signal (18) and a hue comparison reference signal (19)
(4), and outputs a high level when the brightness signal (14)> the brightness comparison reference signal (17) and outputs a low level when the brightness signal (14) ≦ the brightness comparison reference signal (17) The fourth comparator (5A) outputs a high level signal when the saturation signal (15)> the saturation reference signal (18), and outputs the saturation signal (15) ≦ the saturation reference signal (18). )), The fifth comparator (5B) that outputs a low level, and the hue signal (16)
> Output high level when the hue comparison reference signal (19)
When the hue signal (16) ≦ the hue comparison reference signal (19), the sixth comparator (5C) that outputs a low level, the output of the fourth comparator (5A), and the fifth comparator (5B) ) And an output of a sixth comparator (5C), and a binarization determination circuit (5) that outputs a binary image signal (20). A featured image reading device.
JP3221279A 1991-08-07 1991-08-07 Image reading device Expired - Lifetime JP3019518B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3221279A JP3019518B2 (en) 1991-08-07 1991-08-07 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3221279A JP3019518B2 (en) 1991-08-07 1991-08-07 Image reading device

Publications (2)

Publication Number Publication Date
JPH05110856A JPH05110856A (en) 1993-04-30
JP3019518B2 true JP3019518B2 (en) 2000-03-13

Family

ID=16764295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3221279A Expired - Lifetime JP3019518B2 (en) 1991-08-07 1991-08-07 Image reading device

Country Status (1)

Country Link
JP (1) JP3019518B2 (en)

Also Published As

Publication number Publication date
JPH05110856A (en) 1993-04-30

Similar Documents

Publication Publication Date Title
US5018008A (en) Method of and appartus for setting color separation
US5768403A (en) Image-area identifying system for a color image processing apparatus
JP3003261B2 (en) Color image recognition device
US5548663A (en) Multi-color marker editing system
JPH07101916B2 (en) Color image editing device
JP3088010B2 (en) Line drawing separation method and apparatus
US5200841A (en) Apparatus for binarizing images
EP0297516B1 (en) Picture signal binarization system
US7239758B2 (en) Signal processing device for reducing noise of image signal, signal processing program, and signal processing method
JP3255258B2 (en) Image display device
JP3019518B2 (en) Image reading device
JP3019522B2 (en) Image reading device
US6118558A (en) Color image forming method and apparatus
JP3019521B2 (en) Image reading device
JP3018628B2 (en) Image reading device
JP3118469B2 (en) Image area separation device
JPH10283470A (en) Image processor, image processing method and recording medium
JP3226224B2 (en) Image processing device
JPH0888770A (en) Image processing unit
JPH06334856A (en) Picture processor
JP3070174B2 (en) Image forming device
JP2954230B2 (en) Image processing device
JP3466655B2 (en) Image processing device
JP2521744B2 (en) Image processing device
JPH05130406A (en) Color picture processor