JPH05292309A - Binarizing processing unit - Google Patents

Binarizing processing unit

Info

Publication number
JPH05292309A
JPH05292309A JP4088761A JP8876192A JPH05292309A JP H05292309 A JPH05292309 A JP H05292309A JP 4088761 A JP4088761 A JP 4088761A JP 8876192 A JP8876192 A JP 8876192A JP H05292309 A JPH05292309 A JP H05292309A
Authority
JP
Japan
Prior art keywords
pixel
image
image data
history information
binary
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.)
Withdrawn
Application number
JP4088761A
Other languages
Japanese (ja)
Inventor
Nobuo Ogawa
信夫 小川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4088761A priority Critical patent/JPH05292309A/en
Publication of JPH05292309A publication Critical patent/JPH05292309A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To separate a binarizing area and an intermediate area regardless of a line width of a line pattern by taking presence of an edge and a density gradient history into account so as to discriminate whether or not each picture element is to be binarized. CONSTITUTION:Gradient history information obtained by a gradient discrimination means 112 is stored in a history storage means 113. A discrimination means 114 discriminates whether or not a relevant picture element is a binary picture based on the history information and the result of detection by an edge detection means 111, and gives an instruction to a binarizing processing means 101 accordingly. The storage means 113 stores the gradient history information from the density increase gradient discrimination to the density decrease gradient discrimination. Moreover, while the said history information is stored and the detection means 111 detects an edge, the discrimination means 114 discriminates the said picture element to be the binary picture. In this case, the part between both edges of a linear pattern forming a character or a line drawing is discriminated to be the binary picture based on the storage history information. Thus, a binary picture area and an intermediate area are separated regardless of the line width of the line pattern.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、イメージスキャナなど
の画像読取装置が原稿から読み取った多値画像データを
二値化する二値化処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binarization processing device for binarizing multivalued image data read from an original by an image reading device such as an image scanner.

【0002】近年、文書ファイルシステムやデスクトッ
プパブリッシングシステムなどの用途の需要に応えるた
めに、文字や線画のように白黒の二値のみで表された文
書だけでなく、写真などの中間調を含んだ原稿を読み取
る機能を有するイメージスキャナが必要とされている。
これに応じて、原稿を多値画像として読み取る構成とし
たイメージスキャナが実現されている。
In recent years, in order to meet the demand for applications such as a document file system and a desktop publishing system, not only a document represented by only black and white binary values such as characters and line drawings but also halftones such as photographs are included. There is a need for an image scanner having the function of reading a document.
In response to this, an image scanner configured to read a document as a multi-valued image has been realized.

【0003】一方、画像を出力するディスプレイ装置や
プリンタ装置などの出力装置は、白黒の二値画像のみに
対応している場合が多いので、イメージスキャナ内部で
多値画像を二値画像に変換する必要がある。
On the other hand, an output device such as a display device or a printer device for outputting an image often supports only a black and white binary image, so that a multi-valued image is converted into a binary image inside an image scanner. There is a need.

【0004】ここで、多値画像を二値化する方法として
は、単純に固定の閾値との大小関係に基づいて二値化す
る方法と、ディザを用いて疑似中間調画像を生成する方
法とがある。固定閾値を用いた二値化方法は、白黒の二
値のみで表された文書を鮮明に再現できる反面、中間調
を含んだ画像に適用すると、画質を著しく劣化させてし
まう。逆に、ディザを用いた方法は、写真などの中間調
を擬似的に再現することができるが、白黒の二値のみで
表された文書に対応する多値画像に適用すると、文字や
線画に網がかかって判読しにくくなる場合がある。
Here, as a method of binarizing a multi-valued image, a method of simply binarizing based on the magnitude relation with a fixed threshold value and a method of generating a pseudo halftone image using dither are used. There is. The binarization method using a fixed threshold can clearly reproduce a document represented by only black and white binary, but when applied to an image including halftone, the image quality is significantly deteriorated. On the other hand, the method using dither can reproduce halftones such as photographs in a pseudo manner, but if it is applied to a multi-valued image corresponding to a document represented by only black and white binary, it will produce text and line drawings. It may be difficult to read due to the net.

【0005】したがって、1枚の原稿に文字や線画など
の二値画像と写真などの中間調画像とが混在している場
合は、この原稿に対応する多値画像を二値画像の領域と
中間調画像の領域とに分割して、それぞれに適した二値
化方法を用いて二値化処理を行う必要がある。
Therefore, when a binary image such as a character or a line drawing and a halftone image such as a photograph are mixed in one original, the multivalued image corresponding to this original is interleaved with the area of the binary image. It is necessary to divide into a toned image area and perform binarization processing using a binarization method suitable for each.

【0006】[0006]

【従来の技術】従来は、イメージスキャナで読み取った
多値画像をディスプレイ装置などに表示して、操作者の
判断を仰ぎ、操作者の指示に応じて、二値画像の領域と
中間調画像の領域とを分割して二値化する方法が用いら
れていた。
2. Description of the Related Art Conventionally, a multi-valued image read by an image scanner is displayed on a display device or the like to ask the operator's judgment, and a binary image area and a halftone image are displayed in accordance with the operator's instruction. A method of dividing a region and binarization has been used.

【0007】また、文字や線画の輪郭部分では、画像デ
ータが白色に対応する白レベルから黒色に対応する黒レ
ベルへ、あるいは逆に黒レベルから白レベルへと急峻に
変化することを利用して、多値画像からエッジ部分を検
出し、このエッジ部分のみを固定閾値を用いて二値化す
る方法もある。
Further, in the outline portion of a character or a line drawing, it is used that the image data sharply changes from a white level corresponding to white to a black level corresponding to black, or conversely from a black level to a white level. There is also a method of detecting an edge part from a multi-valued image and binarizing only this edge part using a fixed threshold.

【0008】例えば、各画素の画像データとその周囲の
画素の画像データとの差分を求め、差分の値が所定の閾
値以上であるときに、該当する画素の位置にエッジがあ
ると判定し、この画素の画像データは上述した固定閾値
を用いて二値化し、他の画素の画像データはディザ法な
どを用いて二値化すればよい。
For example, the difference between the image data of each pixel and the image data of the surrounding pixels is obtained, and when the difference value is equal to or more than a predetermined threshold value, it is determined that there is an edge at the position of the corresponding pixel, The image data of this pixel may be binarized using the fixed threshold value described above, and the image data of other pixels may be binarized using the dither method or the like.

【0009】[0009]

【発明が解決しようとする課題】ところで、上述したよ
うに、操作者が原稿それぞれについて、二値画像の領域
と中間調画像の領域との分割を指定する方法では、操作
者の負担が大きく、特に、文書ファイルシステムなどで
一度に大量の文書を入力する際には、到底対応すること
はできない。
By the way, as described above, in the method in which the operator specifies the division of the binary image area and the halftone image area for each document, the operator's burden is large, In particular, when inputting a large number of documents at one time using a document file system or the like, it is impossible to deal with them at all.

【0010】一方、エッジ部分にのみ固定閾値を適用す
る方法は自動化が可能であるから、大量の文書を一括し
て入力する用途にも対応することができ、小さい文字や
2画素以下の線幅を持つ文字および線画を鮮明に再現す
ることができる。しかしながら、大きな文字や3画素以
上の線幅を持つ文字および線画にこの方法を適用する
と、文字や線画を構成する線状のパターンの中央部の各
画素の画像データにはディザ法が適用されてしまう。こ
のため、線状のパターンの中央部の画像データが、本来
は黒レベルとされるべきであるのに白レベルとされる場
合があり、いわゆる『中抜け』の状態となって、画質が
大幅に劣化してしまう。また、上述した中抜けが発生す
ると、文字認識処理が不可能となってしまう。
On the other hand, since the method of applying the fixed threshold value only to the edge portion can be automated, it can be applied to the input of a large amount of documents all at once, and the small characters and the line width of 2 pixels or less can be used. Characters and line drawings with can be reproduced clearly. However, when this method is applied to a large character or a character and a line drawing having a line width of 3 pixels or more, the dither method is applied to the image data of each pixel in the central portion of the linear pattern forming the character or the line drawing. I will end up. For this reason, the image data in the central portion of the linear pattern may be set to the white level, which should be the black level, resulting in a so-called "middle-out" state, and the image quality is significantly reduced. Deteriorates. In addition, when the above-mentioned hollow portion occurs, the character recognition processing becomes impossible.

【0011】本発明は、二値画像領域と中間調画像領域
とを高い精度で分離して、それぞれに適した方法で二値
化する二値化処理装置を提供することを目的とする。
It is an object of the present invention to provide a binarization processing device which separates a binary image area and a halftone image area with high accuracy and binarizes them by a method suitable for each.

【0012】[0012]

【課題を解決するための手段】図1は、本発明の原理ブ
ロック図である。本発明は、2次元に配列された各画素
の濃度を表す画像データの入力に応じて、各画素を二値
画像あるいは中間調画像として、その画像データの二値
化処理を行う二値化処理手段101を備えた二値化処理
装置において、各画素およびその周囲の画素の画像デー
タの入力に応じて、各画素の位置におけるエッジを検出
するエッジ検出手段111と、画像データの入力に応じ
て、少なくとも一方の画素の並び方向について、各画素
の位置における濃度勾配の傾きを判別する傾斜判別手段
112と、傾斜判別手段112による判別結果の入力に
応じて、画素の並び方向の濃度勾配に関する履歴情報を
保持する履歴保持手段113と、エッジ検出手段111
による検出結果と履歴保持手段113に保持された履歴
情報とに基づいて、各画素が二値画像であるか否かを判
定し、二値化処理手段101に該当する画素を二値画像
として二値化処理すべきか否かを指示する判定手段11
4とを備えたことを特徴とする。
FIG. 1 is a block diagram showing the principle of the present invention. According to the present invention, in accordance with input of image data representing the densities of pixels arranged two-dimensionally, each pixel is treated as a binary image or a halftone image, and binarization processing of the image data is performed. In a binarization processing device including means 101, edge detection means 111 for detecting an edge at each pixel position in response to input of image data of each pixel and its surrounding pixels, and in response to input of image data A history relating to the density gradient in the pixel arrangement direction according to the inclination determination means 112 for determining the inclination of the density gradient at each pixel position in at least one pixel arrangement direction and the determination result input by the inclination determination means 112. History holding means 113 for holding information and edge detecting means 111
It is determined whether or not each pixel is a binary image based on the detection result by the history storage unit 113 and the history information stored in the history storage unit 113, and the pixel corresponding to the binarization processing unit 101 is binarized as a binary image. Judgment means 11 for instructing whether or not the digitization process should be performed
4 is provided.

【0013】[0013]

【作用】本発明は、傾斜判別手段112で得られた勾配
に関する履歴情報を履歴保持手段113が保持してお
り、この履歴情報とエッジ検出手段111で得られた検
出結果とから、判定手段114が該当する画素が二値画
像であるか否かを判定し、この判定結果に応じて、二値
化処理手段101に対する指示を送出するものである。
ここで、履歴保持手段113は、傾斜判別手段112で
濃度が増加する傾斜が判別されてから濃度が減少する傾
斜が判別されるまで、濃度の勾配があった旨の履歴情報
を保持しておけばよい。また、判定手段114は、濃度
の勾配があった旨の履歴情報が保持されている間および
エッジ検出手段111によりエッジが検出されたとき
に、該当する画素が二値画像であると判定すればよい。
According to the present invention, the history holding means 113 holds the history information regarding the gradient obtained by the inclination judging means 112, and the judging means 114 is determined from this history information and the detection result obtained by the edge detecting means 111. Determines whether or not the corresponding pixel is a binary image, and sends an instruction to the binarization processing means 101 according to the determination result.
Here, the history holding unit 113 should hold history information indicating that there is a density gradient from the slope determination unit 112 determining the slope at which the density increases until the slope at which the density decreases. Good. Further, if the determination unit 114 determines that the corresponding pixel is a binary image while the history information indicating that there is a density gradient is held and when the edge detection unit 111 detects an edge. Good.

【0014】この場合は、文字や線画を構成する線状の
パターンの両側のエッジの間の部分では、上述した履歴
情報が保持されているから、この部分の各画素はエッジ
部分の各画素とともに二値画像であると判定される。し
たがって、線状のパターンの線幅にかかわらず、二値画
像の領域と中間調画像の領域とを高い精度で分離し、そ
れぞれに適した方法を用いて二値化することが可能とな
る。
In this case, since the above-mentioned history information is held in the part between the edges on both sides of the linear pattern forming the character or line drawing, each pixel in this part is together with each pixel in the edge part. It is determined to be a binary image. Therefore, regardless of the line width of the linear pattern, it is possible to separate the binary image region and the halftone image region with high accuracy and perform binarization using a method suitable for each.

【0015】[0015]

【実施例】以下、図面に基づいて本発明の実施例につい
て詳細に説明する。図2は、本発明の二値化処理装置を
適用したイメージスキャナの実施例構成を示す。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 2 shows the configuration of an embodiment of an image scanner to which the binarization processing device of the present invention is applied.

【0016】図2において、イメージスキャナの画像読
取部210は、CCDラインイメージセンサ(CCD)
211が、その素子の並び方向に対応する主走査方向の
複数の帯状の領域(以下、ラインと称する)ごとに分割
して原稿201を読み取り、アナログ−デジタル変換回
路(A/D)212が、このCCDラインイメージセン
サ211からのアナログ信号をデジタルデータに変換
し、上述した各ラインを構成する各画素の画像データと
して送出する構成となっている。
In FIG. 2, the image reading unit 210 of the image scanner is a CCD line image sensor (CCD).
211 reads the original 201 by dividing it into a plurality of strip-shaped regions (hereinafter referred to as lines) in the main scanning direction corresponding to the arrangement direction of the elements, and the analog-digital conversion circuit (A / D) 212 The analog signal from the CCD line image sensor 211 is converted into digital data and sent as image data of each pixel forming each line described above.

【0017】また、図2において、画像読取部210か
らの画像データは、直列接続された3つのラッチ221
a,221b,221cを介して1ライン分のシフトメ
モリ222aに入力されている。このシフトメモリ22
2aの出力は、直列接続された3つのラッチ221d,
221e,221fを介して1ライン分のシフトメモリ
222bに入力され、更に、このシフトメモリ222b
の出力は、直列接続された3つのラッチ221g,22
1h,221iの第1段に入力されている。
Further, in FIG. 2, the image data from the image reading section 210 has three latches 221 connected in series.
It is input to the shift memory 222a for one line via a, 221b and 221c. This shift memory 22
The output of 2a has three latches 221d connected in series,
It is input to the shift memory 222b for one line via 221e and 221f, and further, this shift memory 222b
The output of is three latches 221g, 22 connected in series.
It is input to the first stage of 1h and 221i.

【0018】すなわち、9つのラッチ221a〜221
iに、原稿201において3×3画素の領域に対応する
画像データが保持され、これらの画像データが、注目画
素およびその周囲の画素の画像データとして、エッジ検
出手段111と傾斜判別手段112とに送出される構成
となっている。但し、図2において、ラッチ221a〜
221iを記号『L』で示した。
That is, nine latches 221a to 221
In i, image data corresponding to a region of 3 × 3 pixels in the original 201 is held, and these image data are stored in the edge detecting unit 111 and the inclination determining unit 112 as image data of the pixel of interest and surrounding pixels. It is configured to be sent out. However, in FIG.
221i is indicated by the symbol "L".

【0019】図2において、エッジ検出手段111は、
加算回路231とROM232とから構成されており、
加算回路231が、ラッチ221b,221d,221
f,221hそれぞれに保持された画像データを加算
し、この加算結果とラッチ221eに保持された画像デ
ータとをROM232にアドレス入力する構成となって
いる。ここで、上述したラッチ221eに保持された画
像データは、注目画素の画像データであり、ラッチ22
1b,221d,221f,221hに保持された画像
データは、注目画素の周囲の4画素の画像データであ
る。したがって、ROM232の各アドレスに、アドレ
ス入力の上位nビットで示された4画素の画像データの
和からアドレス入力の下位mビットで示された注目画素
の画像データを差し引いた結果が所定の閾値以上である
か否かを保持しておけば、このROM232の出力とし
て、注目画素の位置にエッジがあるか否かを示す検出結
果が得られる。
In FIG. 2, the edge detecting means 111 is
It is composed of an adder circuit 231 and a ROM 232.
The adder circuit 231 includes latches 221b, 221d and 221.
The image data held in each of f and 221h is added, and the addition result and the image data held in the latch 221e are input to the ROM 232. Here, the image data held in the above-mentioned latch 221e is the image data of the pixel of interest, and the latch 22
The image data held in 1b, 221d, 221f, and 221h is image data of 4 pixels around the target pixel. Therefore, for each address of the ROM 232, the result obtained by subtracting the image data of the pixel of interest indicated by the lower m bits of the address input from the sum of the image data of the 4 pixels indicated by the upper n bits of the address input is equal to or greater than the predetermined threshold value. By holding whether or not, the detection result indicating whether or not there is an edge at the position of the pixel of interest is obtained as the output of the ROM 232.

【0020】また、図2において、傾斜判別手段112
は、2つの判別回路240m,240sが、主走査方向
の傾斜および副走査方向の傾斜をそれぞれ判別する構成
となっている。
Further, referring to FIG. 2, the inclination judging means 112 is provided.
The two determination circuits 240m and 240s are configured to determine the inclination in the main scanning direction and the inclination in the sub scanning direction, respectively.

【0021】図3に、判別回路240m,240sの詳
細構成を示す。判別回路240mは、2つの減算回路2
41am,241bmと、6個のアンドゲート242am〜2
42fmから形成されている。また、図3において、図2
に示したラッチ221b,221d,221e,221
f,221hそれぞれの出力を『ラッチb』,『ラッチ
d』,『ラッチe』,『ラッチf』,『ラッチh』とし
て示した。
FIG. 3 shows a detailed configuration of the discrimination circuits 240m and 240s. The determination circuit 240m includes two subtraction circuits 2
41 am , 241 bm and 6 AND gates 242 am- 2
It is formed from 42 fm . In addition, in FIG.
221b, 221d, 221e, 221 shown in FIG.
The outputs of f and 221h are shown as "latch b", "latch d", "latch e", "latch f", and "latch h".

【0022】上述した減算器241amは、ラッチ221
fの出力からラッチ221eの出力を減算し、3つの出
力端子O+ ,Oz ,O- を介して、減算結果が正の値で
あるか零であるか負の値であるかを示す信号を出力する
構成となっている。同様に、減算器241bmは、ラッチ
221eの出力からラッチ221dの出力を減算して、
その減算結果を示す信号を3つの出力端子O+ ,Oz ,
O- を介して出力する構成となっている。
The above-mentioned subtractor 241 am includes a latch 221.
The output of the latch 221e is subtracted from the output of f, and a signal indicating whether the subtraction result is a positive value, zero, or a negative value is output through the three output terminals O +, Oz, and O-. It is configured to output. Similarly, the subtractor 241 bm subtracts the output of the latch 221d from the output of the latch 221e,
A signal indicating the subtraction result is output to three output terminals O +, Oz,
It is configured to output via O-.

【0023】ここで、これらの減算器241am,241
bmは、減算結果が正である場合に出力端子O+ ,Oz ,
O- からそれぞれ論理“1”,論理“1”,論理“0”
を出力し、零である場合にそれぞれ論理“1”,論理
“0”,論理“1”を出力し、負である場合にそれぞれ
論理“0”,論理“1”,論理“1”を出力する構成と
すればよい。
Here, these subtracters 241 am and 241
bm is the output terminal O +, Oz, when the subtraction result is positive.
Logic "1", logic "1", logic "0" from O-
, And outputs logical "1", logical "0", logical "1" when they are zero, and logical "0", logical "1", logical "1" when they are negative. It may be configured to.

【0024】また、上述した減算器241amの出力端子
O+ ,O- は、それぞれアンドゲート242am,242
bmの入力端子の一方に接続されており、これらのアンド
ゲート242am,242bmの入力端子の他方は、減算器
241amの出力端子Oz に接続されている。同様に、減
算器241bmの出力端子O+ ,Oz ,O- は、アンドゲ
ート242cm,242dmの各入力端子にそれぞれ接続さ
れている。
The output terminals O + and O- of the subtracter 241 am are AND gates 242 am and 242, respectively.
It is connected to one of the input terminals of bm , and the other of the input terminals of these AND gates 242 am and 242 bm is connected to the output terminal Oz of the subtractor 241 am . Similarly, the output terminals O +, Oz, O- of the subtractor 241 bm are connected to the input terminals of the AND gates 242 cm , 242 dm , respectively.

【0025】これらのアンドゲート242am,242cm
の出力は、アンドゲート242emに入力されており、こ
のアンドゲート242emが、2つの減算器241am,2
41 bmによる減算結果がともに正の値であるか否かを判
定する構成となっている。ここで、上述した減算結果が
ともに正の値であることは、注目画素の近傍において、
画像データが主走査方向に単調増加していることを示し
ており、アンドゲート242emの出力は、画像データの
主走査方向の傾斜は正であるか否かを示している。
These AND gates 242am, 242cm
Output of AND gate 242emHas been entered in
And gate 242emBut two subtractors 241am, 2
41 bmTo determine whether the subtraction results from both are positive values.
It is configured to set. Here, the above subtraction result is
The fact that both are positive values means that in the vicinity of the pixel of interest,
Indicates that the image data increases monotonically in the main scanning direction.
And AND gate 242emOutput of image data
The inclination in the main scanning direction indicates whether or not the inclination is positive.

【0026】同様に、アンドゲート242bm,242dm
の出力は、アンドゲート242fmに入力されており、こ
のアンドゲート242fmが、2つの減算器241am,2
41 bmによる減算結果がともに負の値であるか否かを判
定する構成となっており、このアンドゲート242fm
出力により、画像データの主走査方向の傾斜が負である
か否かが示される。
Similarly, the AND gate 242.bm, 242dm
Output of AND gate 242fmHas been entered in
And gate 242fmBut two subtractors 241am, 2
41 bmDetermine whether the subtraction results from both are negative values.
This AND gate 242 has a fixed configuration.fmof
Due to output, the inclination of the image data in the main scanning direction is negative
It is indicated whether or not.

【0027】また、判別回路240sは、上述した判別
回路240mと同様に、2つの減算器241as,241
bsと、6個のアンドゲート242as〜242fsとから形
成され、ラッチ221b,221e,221hから入力
される副走査方向に連続した3画素分の画像データに基
づいて、副走査方向の傾斜を判別する構成となってい
る。
The discriminator circuit 240s has two subtractors 241 as and 241 as in the discriminator circuit 240m described above.
bs and six AND gates 242 as to 242 fs, and the inclination in the sub-scanning direction is obtained based on the image data of three pixels continuous in the sub-scanning direction which are input from the latches 221b, 221e, and 221h. It is configured to determine.

【0028】上述した判別回路240mのアンドゲート
242em,242fmの出力は、判別回路240mによる
判別結果として、それぞれセット−リセット型フリップ
フロップ(以下、単にフリップフロップと略称する)2
43のセット端子Sおよびリセット端子Rに入力されて
いる。
The outputs of the AND gates 242 em and 242 fm of the discriminating circuit 240m are set-reset type flip-flops (hereinafter simply referred to as "flip-flops") 2 as the discrimination result by the discriminating circuit 240m.
It is input to the set terminal S and the reset terminal R of 43.

【0029】したがって、このフリップフロップ243
は、正の傾斜である旨の判別結果に応じて論理“1”に
セットされ、その後、負の傾斜である旨の判別結果の入
力に応じてリセットされるまで、セットされた情報を保
持する構成となっている。すなわち、このフリップフロ
ップ243は、主走査方向の画像データの変化に正の傾
斜があった旨の履歴情報を保持しており、履歴保持手段
113の機能の一部を果たしている。
Therefore, this flip-flop 243
Is set to a logic "1" according to the determination result that it is a positive inclination, and then holds the set information until it is reset according to the input of the determination result that it is a negative inclination. It is composed. That is, the flip-flop 243 holds history information indicating that the change of the image data in the main scanning direction has a positive inclination, and fulfills a part of the function of the history holding unit 113.

【0030】一方、副走査方向の履歴情報は、例えば、
1ライン分のラインメモリ244を備えた履歴保持回路
245を設け、上述した判別回路240sのアンドゲー
ト242es,242fsの出力に基づいて、1ラインの各
画素についての判別結果をラインメモリ244に保持す
ればよい。このラインメモリ244は、新しい判別結果
の入力に応じて、ラインメモリ244に保持されていた
前ラインの対応する画素の判別結果を出力する構成とす
ればよい。
On the other hand, the history information in the sub-scanning direction is, for example,
The history holding circuit 245 including the line memory 244 for one line is provided, and the determination result for each pixel of one line is stored in the line memory 244 based on the outputs of the AND gates 242 es and 242 fs of the determination circuit 240s described above. Just keep it. The line memory 244 may be configured to output the determination result of the corresponding pixel of the previous line held in the line memory 244 according to the input of the new determination result.

【0031】上述したエッジ検出手段111による検出
結果とフリップフロップ243およびラインメモリ24
4の出力とは、判定手段114に相当するオアゲート2
51の3つの入力端子にそれぞれ入力されている。
The detection result of the above-mentioned edge detection means 111, the flip-flop 243 and the line memory 24.
The output of 4 is the OR gate 2 corresponding to the determination means 114.
It is input to each of the three input terminals 51.

【0032】したがって、このオアゲート251の出力
は、エッジ検出手段111による検出結果と主走査方向
および副走査方向の傾斜の履歴情報との少なくとも1つ
として論理“1”が入力されたときに論理“1”とな
り、これらの入力が全て論理“0”であるときにのみ論
理“0”となる。
Therefore, the output of the OR gate 251 is logical "1" when at least one of the detection result by the edge detecting means 111 and the history information of the inclination in the main scanning direction and the sub scanning direction is input. It becomes "1", and becomes logical "0" only when these inputs are all logical "0".

【0033】すなわち、注目画素の位置にエッジがある
場合に加えて、主走査方向または副走査方向の履歴情報
として論理“1”が保持されている場合に、オアゲート
251の出力として論理“1”が得られる。これを二値
画像である旨の判定結果とすれば、注目画素の位置に線
状のパターンのエッジがある場合に加えて、注目画素が
エッジとエッジとの中間にある場合にも、注目画素が二
値画像である旨の判定結果を得ることができる。
That is, when the logical "1" is held as the history information in the main scanning direction or the sub-scanning direction in addition to the edge at the position of the pixel of interest, the logical "1" is output as the output of the OR gate 251. Is obtained. If this is a determination result that the image is a binary image, in addition to the case where there is an edge of the linear pattern at the position of the pixel of interest, the pixel of interest is also detected when the pixel of interest is in the middle of the edges. It is possible to obtain a determination result indicating that is a binary image.

【0034】このように、主走査方向と副走査方向につ
いて濃度勾配の傾斜の履歴情報を保持し、この履歴情報
を考慮しながら注目画素が二値画像であるか否かを判定
する構成としたことにより、線状のパターンの線幅にか
かわらず、線状のパターンの部分を漏れなく二値画像と
して分離することができる。これにより、太いストロー
クを持つ文字を含む原稿を読み取って得られる画像にお
いても、高い精度で二値画像の領域と中間調画像の領域
とを分離することが可能となり、それぞれに適した二値
化方法を用いて二値化処理を行うことが可能となる。
As described above, the history information of the gradient of the density gradient in the main scanning direction and the sub scanning direction is held, and it is determined whether or not the pixel of interest is a binary image while considering the history information. As a result, regardless of the line width of the linear pattern, the linear pattern portion can be separated as a binary image without omission. This makes it possible to separate the binary image area and the halftone image area with high accuracy even in an image obtained by reading a document including characters having thick strokes, and it is possible to perform binarization suitable for each. It is possible to perform binarization processing using the method.

【0035】例えば、図2に示すように、二値画像処理
部261と中間調処理部262とセレクタ263とを備
えて二値化処理手段101を形成し、上述したオアゲー
ト251の出力に応じて、セレクタ263が、二値画像
処理部261による画像データの処理結果と中間調処理
部262による画像データの処理結果とを選択し、二値
化処理結果として出力する構成とすればよい。
For example, as shown in FIG. 2, a binarization processing means 101 is formed by including a binary image processing unit 261, a halftone processing unit 262 and a selector 263, and the binary processing unit 101 is formed according to the output of the OR gate 251 described above. The selector 263 may be configured to select the image data processing result by the binary image processing unit 261 and the image data processing result by the halftone processing unit 262 and output the result as the binarization processing result.

【0036】上述した二値画像処理部261は、固定閾
値と入力される画像データとの大小関係に基づいて、画
像データを二値化する構成とすればよい。また、中間調
処理部262は、ディザを用いて、入力される画像デー
タから疑似中間調画像を生成する構成とすればよい。
The above-described binary image processing unit 261 may be configured to binarize the image data based on the magnitude relation between the fixed threshold value and the input image data. Further, the halftone processing unit 262 may be configured to generate a pseudo halftone image from the input image data using dither.

【0037】この場合は、太いストロークを持つ線状の
パターンの部分に含まれる全ての画素は、上述した判定
手段114により二値画像であると判定され、これに応
じて、セレクタ263により、二値画像処理部261の
出力が選択される。したがって、文字や線画を構成する
線状のパターンの線幅にかかわらず、該当する部分を確
実に固定閾値を用いた方法で二値化することができる。
In this case, all the pixels included in the portion of the linear pattern having a thick stroke are judged to be binary images by the above-mentioned judging means 114, and accordingly, the selector 263 judges that they are binary images. The output of the value image processing unit 261 is selected. Therefore, regardless of the line width of the linear pattern forming the character or line drawing, the corresponding portion can be surely binarized by the method using the fixed threshold.

【0038】これにより、大きな文字のストロークの中
央部分での『中抜け』の発生を防いで、二値化後の画質
を大幅に向上することができ、イメージスキャナで読み
取った画像をそのまま文書ファイルシステムやデスクト
ップパブリッシングシステムで利用したいという要望に
応えることができる。また、大きな文字や線幅の太い文
字の『中抜け』を防いだことにより、文書ファイルシス
テムなどにおける文字の認識率を向上させ、利用者の手
間を省いて効率的に文書を管理することができる。
As a result, it is possible to prevent the occurrence of "blank" in the central portion of the stroke of a large character, and to significantly improve the image quality after binarization. The image read by the image scanner can be directly used as a document file. It is possible to meet the desire to use it in a system or desktop publishing system. In addition, by preventing the "blank" of large characters and characters with thick line width, the recognition rate of characters in the document file system, etc. can be improved, and users can save time and manage documents efficiently. it can.

【0039】[0039]

【発明の効果】以上説明したように本発明は、エッジの
有無とともに濃度勾配に関する履歴を考慮して、各画素
を二値画像として扱うか否かを判定するので、線状のパ
ターンの線幅にかかわらず、二値画像の領域と中間調画
像の領域とを高い精度で分離することが可能である。し
たがって、線状のパターンの部分に含まれる全ての画素
を二値画像として二値化することができ、太いストロー
クを持つ文字の中抜けを防いで、二値化後の画像の画質
の向上を図ることができる。
As described above, according to the present invention, it is determined whether or not each pixel is treated as a binary image by taking into consideration the presence or absence of an edge and the history regarding the density gradient. Therefore, the line width of a linear pattern is determined. Regardless, the area of the binary image and the area of the halftone image can be separated with high accuracy. Therefore, it is possible to binarize all the pixels included in the linear pattern portion as a binary image, prevent hollow characters with thick strokes, and improve the image quality of the binarized image. Can be planned.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明の二値化処理装置を適用したイメージス
キャナの実施例構成図である。
FIG. 2 is a configuration diagram of an embodiment of an image scanner to which the binarization processing device of the present invention is applied.

【図3】判別回路の詳細構成図である。FIG. 3 is a detailed configuration diagram of a determination circuit.

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

101 二値化処理手段 111 エッジ検出手段 112 傾斜判別手段 113 履歴保持手段 114 判定手段 210 画像読取部 211 CCDラインイメージセンサ(CCD) 212 アナログ−デジタル変換回路(A/D) 221 ラッチ(L) 222 シフトメモリ 231 加算回路 232 ROM 240 判別回路 241 減算器 242 アンドゲート 243 セット−リセット型フリップフロップ 244 ラインメモリ 245 履歴保持回路 251 オアゲート 261 二値画像処理部 262 中間調処理部 263 セレクタ 101 Binarization Processing Means 111 Edge Detection Means 112 Inclination Discrimination Means 113 History Holding Means 114 Judgment Means 210 Image Reading Units 211 CCD Line Image Sensors (CCD) 212 Analog-Digital Conversion Circuits (A / D) 221 Latches (L) 222 Shift memory 231 Adder circuit 232 ROM 240 Discrimination circuit 241 Subtractor 242 AND gate 243 Set-reset type flip-flop 244 Line memory 245 History holding circuit 251 OR gate 261 Binary image processing unit 262 Halftone processing unit 263 Selector

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2次元に配列された各画素の濃度を表す
画像データの入力に応じて、前記各画素を二値画像ある
いは中間調画像として、その画像データの二値化処理を
行う二値化処理手段(101)を備えた二値化処理装置
において、 各画素およびその周囲の画素の画像データの入力に応じ
て、前記各画素の位置におけるエッジを検出するエッジ
検出手段(111)と、 前記画像データの入力に応じて、少なくとも一方の画素
の並び方向について、各画素の位置における濃度勾配の
傾きを判別する傾斜判別手段(112)と、 前記傾斜判別手段(112)による判別結果の入力に応
じて、前記画素の並び方向の濃度勾配に関する履歴情報
を保持する履歴保持手段(113)と、 前記エッジ検出手段(111)による検出結果と前記履
歴保持手段(113)に保持された履歴情報とに基づい
て、各画素が二値画像であるか否かを判定し、前記二値
化処理手段(101)に該当する画素を二値画像として
二値化処理すべきか否かを指示する判定手段(114)
とを備えたことを特徴とする二値化処理装置。
1. A binary process for binarizing image data of each pixel as a binary image or a halftone image in response to input of image data representing the density of each pixel arranged two-dimensionally. In a binarization processing device including a conversion processing unit (101), an edge detection unit (111) that detects an edge at a position of each pixel according to input of image data of each pixel and its surrounding pixels, Inclination discrimination means (112) for discriminating the inclination of the density gradient at the position of each pixel in the arrangement direction of at least one pixel according to the input of the image data, and the input of the discrimination result by the inclination discrimination means (112). Accordingly, history holding means (113) for holding history information regarding the density gradient in the pixel arrangement direction, detection results by the edge detection means (111) and the history holding Whether or not each pixel is a binary image is determined based on the history information held in the stage (113), and the pixel corresponding to the binarization processing unit (101) is binarized as a binary image. Determination means (114) for instructing whether or not to be processed
And a binarization processing device.
JP4088761A 1992-04-09 1992-04-09 Binarizing processing unit Withdrawn JPH05292309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4088761A JPH05292309A (en) 1992-04-09 1992-04-09 Binarizing processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4088761A JPH05292309A (en) 1992-04-09 1992-04-09 Binarizing processing unit

Publications (1)

Publication Number Publication Date
JPH05292309A true JPH05292309A (en) 1993-11-05

Family

ID=13951864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4088761A Withdrawn JPH05292309A (en) 1992-04-09 1992-04-09 Binarizing processing unit

Country Status (1)

Country Link
JP (1) JPH05292309A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100817724B1 (en) * 2007-05-09 2008-03-31 홍 대 박 Speed handphone clip

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100817724B1 (en) * 2007-05-09 2008-03-31 홍 대 박 Speed handphone clip

Similar Documents

Publication Publication Date Title
JP2744619B2 (en) Image processing device
JP2005094740A (en) Image processing apparatus, image forming apparatus and image processing method
JPH05328121A (en) Method and device for picture processing
JPH1084475A (en) Image area discrimination method and image-processing unit
JP3040896B2 (en) Image processing device
KR920001798B1 (en) Picture signal processing devices
JPH06133159A (en) Picture processing unit
JPH05292309A (en) Binarizing processing unit
JP2874592B2 (en) Image processing device for distinguishing text / photo / dot area
JPS6359272A (en) Picture processor
JPH10108012A (en) Image area separating device
JP3841494B2 (en) Image processing device
JPH05344330A (en) Picture area discriminating device
JP3326309B2 (en) Image processing device
JPH0457274B2 (en)
JP2604049B2 (en) Image area judgment method
JPH05292312A (en) Dot area separator
KR100214337B1 (en) Bi-levelling method for image/letter mixing document
JPH0357083A (en) Image area separating method for binary picture
JPH0736607B2 (en) Image signal processing method
JPH05284358A (en) Picture processing unit
JPH09247436A (en) Image area discrimination device and image processor
JPH0832802A (en) Image processing unit
JPH06303424A (en) Dot area discrimination device
JPH0486156A (en) Picture binarizing method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990706