JP3019522B2 - Image reading device - Google Patents

Image reading device

Info

Publication number
JP3019522B2
JP3019522B2 JP3223478A JP22347891A JP3019522B2 JP 3019522 B2 JP3019522 B2 JP 3019522B2 JP 3223478 A JP3223478 A JP 3223478A JP 22347891 A JP22347891 A JP 22347891A JP 3019522 B2 JP3019522 B2 JP 3019522B2
Authority
JP
Japan
Prior art keywords
signal
brightness
hue
output
outputs
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
JP3223478A
Other languages
Japanese (ja)
Other versions
JPH05110857A (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 JP3223478A priority Critical patent/JP3019522B2/en
Publication of JPH05110857A publication Critical patent/JPH05110857A/en
Application granted granted Critical
Publication of JP3019522B2 publication Critical patent/JP3019522B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Facsimile Image Signal Circuits (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 reading apparatus for converting color digital image signals R, G and 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 number of pixels of 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 of FIG. 4 is the pixel density, and the vertical axis is 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 an image density vs. frequency curve, which is obtained by combining the curves A and B in FIG. 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, lightness and hue parameters are obtained from a color image signal of the object 1, and these parameters are compared with a preset comparison reference signal to be binarized.
2 for image signals that overlap in the density vs. frequency graph
It is an object of the present invention to provide an image reading device that can be converted into a value.

【0008】[0008]

【課題を解決するための手段】この目的を達成するため
に、この発明では、対象物1を撮像し、色ディジタル画
像信号のR信号11、G信号12、B信号13を出力す
る画像入力部2と、R信号11とG信号12とB信号1
3を入力とし、明度信号14と色相信号15に変換する
明度−色相信号作成回路3と、明度の比較基準信号16
と色相の比較基準信号17を出力する比較基準信号発生
器4と、明度信号14が明度の比較基準信号16より大
きいと高レベルを出力し、色相信号15が色相の比較基
準信号17より大きいと高レベルを出力し、2値画像信
号18を出力する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, a lightness-hue signal generation circuit 3 for converting the lightness signal 14 and the hue signal 15 into a lightness-hue signal 15,
And a comparison reference signal generator 4 that outputs a hue comparison reference signal 17. If the brightness signal 14 is greater than the brightness comparison reference signal 16, it outputs a high level, and if the hue signal 15 is greater than the hue comparison reference signal 17. A binarization determination circuit that outputs a high level and outputs a binary image signal;

【0009】次に、この発明による画像読取り装置の構
成を図1により説明する。図1の2は画像入力部、3は
明度−色相信号作成回路、4は比較基準信号発生器、5
は2値化判定回路である。画像入力部2は例えば、ビデ
オカメラやイメージスキャナであり、画像入力部2は対
象物1を撮像し、色デジタル画像信号のR信号11、G
信号12、B信号13を出力し、明度−色相信号作成回
路3は画像入力部2からのR信号11、G信号12、B
信号13を明度信号14と色相信号15に変換する。
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 brightness-hue signal generation circuit, 4 is a comparison reference signal generator, 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 R signals 11 and G of color digital image signals.
A signal 12 and a B signal 13 are output, and the lightness-hue signal creation circuit 3 outputs the R signal 11, the G signal 12,
The signal 13 is converted into a lightness signal 14 and a hue signal 15.

【0010】[0010]

【作用】次に、明度−色相信号作成回路3の動作を説明
する。画像入力部2から出力されるR信号11、G信号
12及びB信号13から、明度信号14と色相信号15
は次の式で求められる。 明度信号14=max(R、G、B)…………(1) 色相信号15 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 」 …………………
(2) ここに、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 lightness-hue signal generation circuit 3 will be described. From the R signal 11, G signal 12, and B signal 13 output from the image input unit 2, a brightness signal 14 and a hue signal 15
Is obtained by the following equation. Brightness signal 14 = max (R, G, B) (1) When hue signal 15 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” …………………
(2) 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に対し、比較
基準信号発生器4には予め明度の比較基準信号値と色相
の比較基準信号値が設定され、比較基準信号発生器4か
ら明度の比較基準信号16と色相の比較基準信号17が
2値化判定回路5に送られる。2値化判定回路5には、
明度−色相信号作成回路3から明度信号14と色相信号
15が入力される。
For the lightness signal 14 and the hue signal 15, a lightness comparison reference signal value and a hue comparison reference signal value are set in advance in the comparison reference signal generator 4. The signal 16 and the hue comparison reference signal 17 are sent to the binarization determination circuit 5. In the binarization determination circuit 5,
A lightness signal 14 and a hue signal 15 are input from the lightness-hue signal creation circuit 3.

【0012】2値化判定回路5では、明度信号14が明
度の比較基準信号16より大きいか、色相信号15が色
相の比較基準信号17より大きいかを判定し、これらを
同時に満たすときは高レベルにし、それ以外のときは低
レベルにする。
The binarization determination circuit 5 determines whether the brightness signal 14 is greater than the brightness comparison reference signal 16 or the hue signal 15 is greater than the hue comparison reference signal 17. Otherwise, it is low.

【0013】次に、明度−色相信号作成回路3の構成を
説明する。明度−色相信号作成回路3の3A〜3Cは比
較器、3Dは減算器、3Eと3Fは選択器、3Gと3H
は減算器、3Jと3Kは除算器、3Lは減算器、3Mは
選択器、3Nは加算器である。比較器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とする。減算器3
Dのaには明度信号14が入力され、bには信号33が
入力される。減算器3Dは、a−bの結果を信号34と
して出力する。
Next, the configuration of the brightness-hue signal generation circuit 3 will be described. 3A to 3C of the brightness-hue signal generation circuit 3 are comparators, 3D is a subtractor, 3E and 3F are selectors, 3G and 3H.
Is a subtractor, 3J and 3K are dividers, 3L is a subtractor, 3M is a selector, and 3N 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. Subtractor 3
The brightness signal 14 is input to a of D, and the signal 33 is input to b. The subtractor 3D outputs the result of ab as a signal 34.

【0014】選択器3Eには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 3E has R signal 11, 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.

【0015】選択器3Fには、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 3F 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.

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

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

【0018】選択器3Mには、R信号11、G信号1
2、B信号13及び明度信号14が入力され、信号42
が取り出される。この場合、明度信号14=R信号11
のとき「1 」を出力し、明度信号14=G信号12のと
き「3 」を出力し、明度信号14=B信号13のとき
「5 」を出力する。加算器3Nのaには信号41が入力
され、bには信号42が入力される。加算器3Nはa+
bを演算し、色相信号15として出力する。
The selector 3M 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 the brightness signal 14 = G signal 12, "3" is output, and when brightness signal 14 = B signal 13, "5" is output. The signal 41 is input to a of the adder 3N, and the signal 42 is input to b. The adder 3N is a +
b is calculated and output as the hue signal 15.

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

【0020】[0020]

【実施例】図1のR信号11の値が「20」、G信号12
の値が「40」、B信号13の値が「30」とすれば、信号
31は「40」、信号32は「20」となり、明度信号14
は「40」になる。また、信号33は「20」となり、減算
器3Dでは「40」−「20」=「20」の減算をする。
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”.

【0021】選択器3Eのaには「20」、bには「4
0」、cには「30」、sには「40」が入力される。この
とき、明度信号14=G信号12なので、信号35=R
信号11「20」になる。選択器3Fのaには「20」、b
には「40」、cには「30」、sには「40」が入力され
る。このとき、明度信号14=G信号12なので、信号
36=B信号13「30」になる。
The selector 3E 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 "a" of the selector 3F
"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".

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

【0023】選択器3Mのaには「20」、bには「4
0」、cには「30」、sには「40」が入力される。この
とき、明度信号14=G信号12なので、信号42は
「1 」になる。加算器3Nでは信号41「0.5 」+信号
42「1 」=色相信号15「1.5 」の加算をする。この
結果、R信号11の値が「20」、G信号12の値が「4
0」、B信号13の値が「30」のときは、明度信号14
は「40」、色相信号15は「1.5 」になる。
The selector 3M 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 3N adds the signal 41 "0.5" + the signal 42 "1" = the hue signal 15 "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" and the hue signal 15 is "1.5".

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

【0025】次に、印刷配線板を例として明度と色相の
分布を図3により説明する。図3のAAは印刷配線板の
パターン以外の部分の分布を示し、BBはパターン部分
の分布を示す。図3のように分布する画像を2値化する
場合、明度の比較基準信号16よりも大きく、かつ色相
の比較基準信号17よりも大きい場合に、2値画像信号
18を高レベルとしそれ以外のときは低レベルにするこ
とにより、BBの部分が高レベルになり、AAの部分が
低レベルになる。
Next, the distribution of lightness and hue will be described with reference to FIG. 3 using a printed wiring board as an example. AA in FIG. 3 shows the distribution of the portion other than the pattern of the printed wiring board, and BB shows the distribution of the pattern portion. When the image distributed as shown in FIG. 3 is binarized, the binary image signal 18 is set to a high level when it is larger than the lightness comparison reference signal 16 and larger than the hue comparison reference signal 17, and otherwise. In some cases, by setting the level to a low level, the BB portion becomes a high level and the AA portion becomes a low level.

【0026】図3において、パターン以外の部分の分布
AAの明度の最小値を「10」、最大値を「100 」、色相
の最小値を「0.5 」、最大値を「3.5 」とし、パターン
の分布BBの明度の最小値を「70」、最大値を「150
」、色相の最小値を「2.5 」、最大値を「4.5 」とす
ると、明度の比較基準信号16を「60」、色相の比較基
準信号17を「2.0 」に設定しておく。この場合、AA
とBBには重なりがないので正しく2値化することがで
きる。
In FIG. 3, the minimum value of the lightness of the distribution AA other than the pattern is "10", the maximum value is "100", the minimum value of the hue is "0.5", and the maximum value is "3.5". The minimum value of the brightness of the distribution BB is “70”, and the maximum value is “150”.
Assuming that the hue minimum value is "2.5" and the hue maximum value is "4.5", the brightness comparison reference signal 16 is set to "60" and the hue comparison reference signal 17 is set to "2.0". In this case, AA
And BB do not overlap, so that binarization can be correctly performed.

【0029】[0029]

【発明の効果】この発明によれば、対象物から色の画像
信号を取り出し、この画像信号から明度信号と色相信号
のパラメータを求め、このパラメータと予め設定された
比較基準信号とを比較して2値化するので、濃度対頻度
グラフに重なりをもつ画像信号に対しても2値化誤りを
少なくして2値化することができる。
According to the present invention, a color image signal is extracted from an object, parameters of a lightness signal and a hue signal are obtained from the image signal, and these parameters are compared with a preset comparison reference signal. Since the binarization is performed, binarization can be performed with less binarization errors even for an image signal having an overlap in the density versus 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 2値画像信号 DESCRIPTION OF SYMBOLS 1 Object 2 Image input part 3 Lightness-hue signal generation circuit 4 Comparison reference signal generator 5 Binarization judgment circuit 11 R signal 12 G signal 13 B signal 14 Lightness signal 15 Hue signal 16 Lightness comparison reference signal 17 Hue Comparison reference signal 18 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)
と、R信号(11)、G信号(12)、B信号(13)及び明度信号
(14)を入力とし、明度信号(14)=R信号(11)のときB信
号(13)を出力し、明度信号(14)=G信号(12)のときR信
号(11)を出力し、明度信号(14)=B信号(13)のときG信
号(12)を出力する第1の選択器(3E)と、R信号(11)、G
信号(12)、B信号(13)及び明度信号(14)を入力とし、明
度信号(14)=R信号(11)のときG信号(12)を出力し、明
度信号(14)=G信号(12)のときB信号(13)を出力し、明
度信号(14)=B信号(13)のときR信号(11)を出力する第
2の選択器(3F)と、明度信号(14)から第1の選択器(3E)
の出力を減算する第2の減算器(3G)と、明度信号(14)か
ら第2の選択器(3F)の出力を減算する第3の減算器(3H)
と、第2の減算器(3G)の出力を第1の減算器(3D)の出力
で除算する第1の除算器(3J)と、第3の減算器(3H)の出
力を第1の減算器(3D)の出力で除算する第2の除算器(3
K)と、第1の除算器(3J)の出力から第2の除算器(3K)の
出力を減算する第4の減算器(3L)と、R信号(11)、G信
号(12)、B信号(13)及び明度信号(14)を入力とし、明度
信号(14)=R信号(11)のとき「1」を出力し、明度信号
(14)=G信号(12)のとき「3」を出力し、明度信号(14)
=B信号(13)のとき「5」を出力する第3の選択器(3M)
と、第4の減算器(3L)の出力と第3の選択器(3M)の出力
を加算して色相信号(15)とする加算器(3N)で構成され、
R信号(11)、G信号(12)、B信号(13)を明度信号(14)と
色相信号(15)に変換する明度−色相信号作成回路(3)
と、 明度の比較基準信号(16)と色相の比較基準信号(17)を出
力する比較基準信号発生器(4) と、 明度信号(14)>明度の比較基準信号(16)のときは高レベ
ルを出力し、明度信号(14)≦明度の比較基準信号(16)の
ときは低レベルを出力する第4の比較器(5A)と、色相信
号(15)>色相の比較基準信号(17)のときは高レベルを出
力し、色相信号(15)≦色相の比較基準信号(17)のときは
低レベルを出力する第5の比較器(5B)と、第4の比較器
(5A)の出力と第5の比較器(5B)の出力を入力とするAN
Dゲート(5C)で構成され、2値画像信号(18)を出力する
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)
, R signal (11), G signal (12), B signal (13) and brightness signal
(14) as input, outputs B signal (13) when brightness signal (14) = R signal (11), and outputs R signal (11) when brightness signal (14) = G signal (12). , A first selector (3E) that outputs a G signal (12) when the brightness signal (14) = B signal (13), an R signal (11),
The signal (12), the B signal (13) and the brightness signal (14) are input, and when the brightness signal (14) = R signal (11), the G signal (12) is output, and the brightness signal (14) = G signal. A second selector (3F) that outputs a B signal (13) when (12) and an R signal (11) when the brightness signal (14) = B signal (13); and a brightness signal (14) To first selector (3E)
And a third subtractor (3H) for subtracting the output of the second selector (3F) from the brightness signal (14).
A first divider (3J) for dividing the output of the second subtractor (3G) by the output of the first subtractor (3D), and the output of the third subtractor (3H) to the first A second divider (3) that divides by the output of the subtractor (3D)
K), a fourth subtractor (3L) for subtracting the output of the second divider (3K) from the output of the first divider (3J), an R signal (11), a G signal (12), B signal (13) and brightness signal (14) are input, and when brightness signal (14) = R signal (11), "1" is output and brightness signal is output.
When (14) = G signal (12), "3" is output, and brightness signal (14)
A third selector (3M) that outputs "5" when = B signal (13)
And an adder (3N) that adds the output of the fourth subtractor (3L) and the output of the third selector (3M) to generate a hue signal (15).
A brightness-hue signal generation circuit (3) for converting the R signal (11), the G signal (12), and the B signal (13) into a brightness signal (14) and a hue signal (15)
A comparison reference signal generator (4) that outputs a brightness comparison reference signal (16) and a hue comparison reference signal (17); and high when the brightness signal (14)> the brightness comparison reference signal (16). A fourth comparator (5A) that outputs a level and outputs a low level when the brightness signal (14) ≦ the brightness reference signal (16); and a hue signal (15)> a hue comparison reference signal (17). )), A fifth comparator (5B) that outputs a high level, and a low level when the hue signal (15) ≦ the comparison reference signal (17) of the hue, and a fourth comparator
AN having the output of (5A) and the output of the fifth comparator (5B) as inputs
An image reading device comprising a D gate (5C) and a binary decision circuit (5) for outputting a binary image signal (18).
JP3223478A 1991-08-08 1991-08-08 Image reading device Expired - Lifetime JP3019522B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3223478A JP3019522B2 (en) 1991-08-08 1991-08-08 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3223478A JP3019522B2 (en) 1991-08-08 1991-08-08 Image reading device

Publications (2)

Publication Number Publication Date
JPH05110857A JPH05110857A (en) 1993-04-30
JP3019522B2 true JP3019522B2 (en) 2000-03-13

Family

ID=16798768

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3223478A Expired - Lifetime JP3019522B2 (en) 1991-08-08 1991-08-08 Image reading device

Country Status (1)

Country Link
JP (1) JP3019522B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102652198A (en) * 2009-12-15 2012-08-29 日立造船株式会社 Mechanism for maintaining upright state of breakwater flap gate

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102652198A (en) * 2009-12-15 2012-08-29 日立造船株式会社 Mechanism for maintaining upright state of breakwater flap gate

Also Published As

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

Similar Documents

Publication Publication Date Title
US5018008A (en) Method of and appartus for setting color separation
JP2564959B2 (en) Pictogram area identification method for image processing device
US4817174A (en) Image processing apparatus
KR930000033B1 (en) Quantification wide adjusting circuits using edge detection
JPS62118676A (en) Picture processing system
US5200841A (en) Apparatus for binarizing images
JP3088010B2 (en) Line drawing separation method and apparatus
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
JP3019522B2 (en) Image reading device
US6118558A (en) Color image forming method and apparatus
JP3019521B2 (en) Image reading device
JP3019518B2 (en) Image reading device
JP3018628B2 (en) Image reading device
JPH10283470A (en) Image processor, image processing method and recording medium
JP2859268B2 (en) Image processing method
JPH0888770A (en) Image processing unit
JP3226224B2 (en) Image processing device
JP2521744B2 (en) Image processing device
JP3066154B2 (en) Selective binarization method
JP2954230B2 (en) Image processing device
US6415052B1 (en) Color image processing apparatus
JP3251119B2 (en) Image processing device
JP2912629B2 (en) Automatic tracking device for moving objects