JP3256267B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3256267B2
JP3256267B2 JP08100492A JP8100492A JP3256267B2 JP 3256267 B2 JP3256267 B2 JP 3256267B2 JP 08100492 A JP08100492 A JP 08100492A JP 8100492 A JP8100492 A JP 8100492A JP 3256267 B2 JP3256267 B2 JP 3256267B2
Authority
JP
Japan
Prior art keywords
character
pixel
probability
area
signal
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 - Fee Related
Application number
JP08100492A
Other languages
Japanese (ja)
Other versions
JPH05284358A (en
Inventor
敏 大内
禎郎 高橋
青木  伸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP08100492A priority Critical patent/JP3256267B2/en
Publication of JPH05284358A publication Critical patent/JPH05284358A/en
Application granted granted Critical
Publication of JP3256267B2 publication Critical patent/JP3256267B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字の解像度を保存し
て中間調処理を行う画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for performing halftone processing while preserving the resolution of characters.

【0002】[0002]

【従来の技術】画像を像域分離して適応的に2値化処理
する場合、一般的には白地上の文字領域とその他の領域
とに分離し、例えば文字領域に対してはMTF補正をし
た後、固定閾値で2値化し、その他の領域についてはデ
ィザ処理あるいは誤差拡散法による2値化処理を施すこ
とにより、文字の解像度と絵柄の階調性とを両立させて
いる(例えば、電子情報通信学会技術研究報告、IE9
0−32に記載の「文字/網点/写真混在画像の分離方
法」を参照)。
2. Description of the Related Art When an image is separated into image areas and adaptively binarized, the image area is generally separated into a character area on a white background and other areas. For example, MTF correction is performed on a character area. After that, binarization is performed with a fixed threshold, and other regions are subjected to dithering or binarization using an error diffusion method, thereby achieving both character resolution and pattern gradation (for example, electronic IEICE Technical Report IE9
See “Separation method of character / halftone / photo mixed image” described in 0-32.

【0003】しかしながら、ハードウェア化が可能な局
所処理技術を用いて網点上に存在する文字と網点とを精
度良く分離することは技術的に困難であり、その結果と
して、網点上の文字に対しては絵柄処理が施され、ディ
ザ処理された場合は勿論のこと、誤差拡散法による2値
化処理が行われた場合でも、原稿に網のかかった文字の
再生画は、不鮮明で判読が難しいという問題があった。
However, it is technically difficult to accurately separate a character and a halftone dot existing on a halftone dot using a local processing technique that can be implemented by hardware. Even when characters are subjected to pattern processing and dither processing, as well as when binarization processing is performed by the error diffusion method, reproduced images of characters with shading on the original are unclear. There was a problem that it was difficult to read.

【0004】そこで、原稿に網のかかった文字を解像度
良く再生する方法が提案されている(平成2年度画像電
子学会全国大会予稿10を参照)。すなわち、簡単なコ
ントラストのみで文字エッジを検出し(つまり、コント
ラストのあるところは全て文字エッジとする)、文字エ
ッジとして判定された場合には、文字画質優先で誤差拡
散法における誤差伝播を制御するという方法である。
[0004] Therefore, a method of reproducing characters with a mesh on a manuscript with good resolution has been proposed (refer to the 10th Annual Meeting of the Institute of Image Electronics Engineers of Japan 1990). That is, a character edge is detected only with a simple contrast (that is, a portion having contrast is regarded as a character edge), and when it is determined as a character edge, error propagation in the error diffusion method is controlled with priority on character image quality. That is the method.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記し
た方法では、白地、網点地上の文字エッジの解像度が保
存されるものの、一般の網点原稿中に文字エッジとして
頻繁に誤検出される個所が存在するため、絵柄の画質が
著しく劣化する。
However, in the above-described method, although the resolution of the character edge on a white background and a halftone dot is preserved, there are places where a character edge is frequently erroneously detected in a general halftone dot document. Due to the presence, the image quality of the picture is significantly deteriorated.

【0006】また、他の方法として、文字エッジの検出
精度を向上するために、上記したコントラスト情報に加
えて、注目画素の濃度情報と注目画素が濃度勾配の途中
にあるか否かの情報を用い、これらの結果に応じて文字
エッジを強制的に黒あるいは白として出力する方法も提
案されている(特開平3−186065号公報を参
照)。しかしながら、このような方法を用いても、一般
の網点原稿中に文字エッジとして誤検出される個所が、
先の方法に比べて減るものの、依然として存在するた
め、絵柄の画質が劣化するという問題があった。
As another method, in order to improve the accuracy of character edge detection, in addition to the above-described contrast information, density information of a target pixel and information as to whether or not the target pixel is in the middle of a density gradient are obtained. A method has been proposed in which a character edge is forcibly output as black or white according to these results (see JP-A-3-18665). However, even if such a method is used, a part which is erroneously detected as a character edge in a general halftone dot document,
Although reduced compared to the previous method, there is still a problem that the image quality of the picture is degraded because it is still present.

【0007】このように、従来、像域分離を局所処理に
よって文字領域であるか否かと判定する限り、誤分離が
発生し、この結果誤分離による画質の劣化が避けられな
い。
As described above, conventionally, as long as it is determined whether or not image area separation is a character area by local processing, erroneous separation occurs, and as a result, deterioration of image quality due to erroneous separation is inevitable.

【0008】本発明の目的は、白地上文字と網点上文字
の解像度を保存し、なお且つ高画質な絵柄再生を可能に
した画像処理装置を提供することにある。
An object of the present invention is to provide an image processing apparatus which preserves the resolution of characters on a white background and characters on a halftone dot, and can reproduce a high quality picture.

【0009】[0009]

【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、入力信号の注目画素値
に、注目画素近傍の既に画素値の決定した各画素の閾値
処理によって発生した誤差の重みの加重和を加算する加
算手段と、該加算された値を閾値処理して2値化信号を
出力する2値化手段と、前記入力信号の各注目画素が文
字領域である確率を算出する第1の算出手段と、前記入
力信号の各注目画素が文字近傍領域である確率を算出す
る第2の算出手段と、前記入力信号の各注目画素が白地
領域であるか否かを検出する検出手段と、前記第1の算
出手段で算出された文字領域である確率が所定の閾値以
上であるとき、最大濃度信号を選択して出力信号とし、
前記第2の算出手段で算出された文字近傍領域である確
率が所定の閾値以上で、かつ前記検出手段で白地領域が
検出されたとき、最小濃度信号を選択して出力信号と
し、それ以外のときは前記2値化信号を選択して出力信
号とする選択手段と、前記第1の算出手段で算出された
文字領域である確率と、前記第2の算出手段で算出され
た文字近傍領域である確率に応じて前記加重和を補正す
る補正手段とを備えたことを特徴としている。
In order to achieve the above object, according to the first aspect of the present invention, a target pixel value of an input signal is obtained.
The threshold of each pixel whose pixel value has already been determined in the vicinity of the pixel of interest
Addition of weighted sum of error weights generated by processing
Calculating means, and thresholding the added value to generate a binary signal.
Output binarizing means, and each pixel of interest of the input signal
First calculating means for calculating the probability of being a character area;
Calculate the probability that each pixel of interest in the force signal is in the neighborhood of the character
Second calculating means, and each pixel of interest of the input signal is
Detecting means for detecting whether the area is an area or not;
The probability of being a character area calculated by the output means is equal to or less than a predetermined threshold.
When it is above, select the maximum density signal as the output signal,
It is certain that the area is the character vicinity area calculated by the second calculation means.
The rate is equal to or higher than a predetermined threshold, and a white background area is detected by the detection means.
When detected, select the minimum density signal and
Otherwise, select the binary signal and output signal
Means for selecting the number and the value calculated by the first calculating means.
The probability of being a character area, and calculated by the second calculating means.
The weighted sum is corrected according to the probability that the area is a character vicinity area.
And a correcting means .

【0010】請求項2記載の発明では、前記文字領域で
ある確率は、注目画素を含む所定の近傍画素の濃度レベ
ルと、注目画素と該注目画素の近傍画素とのコントラス
トに基づいて算出されることを特徴としている。
According to the second aspect of the present invention, the probability of the character area is calculated based on the density level of a predetermined neighboring pixel including the target pixel and the contrast between the target pixel and the neighboring pixel of the target pixel. It is characterized by:

【0011】請求項3記載の発明では、前記文字近傍領
域である確率は、注目画素が文字領域である確率と、注
目画素近傍の複数画素が文字領域である確率とに基づい
て算出されることを特徴としている。
According to the third aspect of the present invention, the probability that the pixel is the character vicinity area is calculated based on a probability that the pixel of interest is a character area and a probability that a plurality of pixels near the pixel of interest is a character area. It is characterized by.

【0012】請求項4記載の発明では、前記文字近傍領
域である確率は、注目画素が文字領域である確率と、注
目画素近傍の所定画素が文字領域である確率と、注目画
素から所定距離離れた画素が文字領域である確率とに基
づいて算出されることを特徴としている。
In the invention described in claim 4, the probability that the target pixel is a character neighboring area includes a probability that the target pixel is a character region, a probability that a predetermined pixel near the target pixel is a character region, and a predetermined distance from the target pixel. The pixel is calculated based on the probability that the pixel is a character area.

【0013】[0013]

【作用】判定部は、注目画素が黒文字エッジである確率
を表す文字度Pと、注目画素が黒文字エッジ近傍である
確率を表す文字近傍度Qを算出し、また、文字度Pが所
定の閾値以上のとき、黒文字信号を選択回路に出力し、
文字近傍度Qが所定の閾値以上で白地画素を検出したと
き、黒文字近傍の白地信号を選択回路に出力する。選択
回路は、黒文字信号の指示に応じてドットを打つ信号を
出力し、黒文字近傍の白地信号の指示に応じてドットを
打たない信号を出力する。誤差付加係数算出部は、算出
されたP,Qの値に応じて、誤差の加重和を補正する。
すなわち、P,Qが大きい程、誤差を小さくし、解像度
を重視した処理が行われる。
The judging unit calculates a character degree P representing the probability that the pixel of interest is a black character edge and a character proximity degree Q representing the probability that the pixel of interest is near the black character edge. In the above case, the black character signal is output to the selection circuit,
When a white background pixel is detected when the degree of character proximity Q is equal to or greater than a predetermined threshold, a white background signal near a black character is output to the selection circuit. The selection circuit outputs a signal for hitting a dot in accordance with the instruction of the black character signal, and outputs a signal without dot in response to the instruction of the white background signal near the black character. The error addition coefficient calculation unit corrects the weighted sum of the errors according to the calculated values of P and Q.
That is, as P and Q are larger, the error is reduced, and a process that emphasizes the resolution is performed.

【0014】[0014]

【実施例】以下、本発明の一実施例を図面を用いて具体
的に説明する。図1は、本発明の実施例のブロック構成
図である。図1において、1は、原稿を読み取って多階
調のディジタル信号に変換して出力するスキャナ、2
は、文字度Pと文字近傍度Qを算出し、白地を検出する
判定部、3は、判定された文字度Pと文字近傍度Qに基
づいて、誤差の総和に掛ける値kを算出する誤差付加係
数算出部、4は、入力の多値信号に誤差分を加算した信
号を固定の閾値で2値化する2値化回路、5は、判定部
2からの判定信号に基づいて、2値化回路からの出力、
MAX信号、MIN信号を選択する選択回路、6は、誤
差バッファ、7は、重みマスクである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be specifically described below with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a scanner which reads a document, converts the document into a digital signal of multiple gradations, and outputs the digital signal.
Is a determination unit that calculates a character degree P and a character proximity degree Q and detects a white background, and an error that calculates a value k to be multiplied by the sum of errors based on the determined character degree P and the character proximity degree Q. The additional coefficient calculator 4 is a binarizing circuit for binarizing a signal obtained by adding an error to the input multi-level signal with a fixed threshold, and the binarizing circuit 5 is based on the decision signal from the decision unit 2. Output from the conversion circuit,
A selection circuit for selecting the MAX signal and the MIN signal, 6 is an error buffer, and 7 is a weight mask.

【0015】本実施例では、白地上の黒文字、網点上の
黒文字を高解像度に処理するものである。また、図2
は、黒文字エッジ領域(つまり、黒文字の数画素分内部
の領域)と黒文字エッジ近傍領域を示す図である。
In this embodiment, black characters on a white background and black characters on a halftone dot are processed with high resolution. FIG.
3 is a diagram showing a black character edge region (that is, a region inside several pixels of a black character) and a black character edge vicinity region.

【0016】図3は、判定部2の具体的な構成を示す図
で、文字度P算出回路21と、文字近傍度Q算出回路2
2と、白地検出回路23と、判定回路24からなる。文
字度Pは、注目画素が黒文字エッジである確率を表した
値であり、ここでは黒文字エッジは白地上、網点上の何
れにあってもよい。
FIG. 3 is a diagram showing a specific configuration of the judging section 2. The character degree P calculating circuit 21 and the character proximity degree Q calculating circuit 2 are shown in FIG.
2, a white background detection circuit 23, and a determination circuit 24. The character degree P is a value representing the probability that the pixel of interest is a black character edge. Here, the black character edge may be on any of a white background and a halftone dot.

【0017】以下に、注目画素の文字度Pの算出方法に
ついて説明すると、3×3のマスクにおいて、図4に示
す4つのパターンについてマッチングを行って文字度P
を求める。Th1>Th2>Th3としたとき、入力信
号をTh1、Th2で2値化し、2値化された信号につ
いて、4種類のパターンマッチングを行う。つまり、判
定回路211では、2つのパターンマッチングの結果か
ら文字度P1として、if(全ての画素xi>Th1)
then 文字度P1=2else if(全ての画
素xi>Th2) then 文字度P1=1else
then 文字度
P1=0を算出する。
In the following, a method of calculating the character degree P of the pixel of interest will be described. In a 3 × 3 mask, matching is performed for the four patterns shown in FIG.
Ask for. When Th1>Th2> Th3, the input signal is binarized by Th1 and Th2, and four types of pattern matching are performed on the binarized signal. That is, in the determination circuit 211, if (all pixels xi> Th1) is set as the character degree P1 from the result of the two pattern matchings.
then character degree P1 = 2else if (all pixels xi> Th2) then character degree P1 = 1else
Then character degree P1 = 0 is calculated.

【0018】また、注目画素の濃度レベルをL、画素A
の濃度レベルをAとしたとき、コントラスト算出回路2
12は、コントラスト(L−A)を算出する。Th4>
Th5>Th6>Th7>Th8としたとき、判定回路
211では、算出されたコントラストを用いて、注目画
素の文字度P2を算出する。
The density level of the target pixel is L, the pixel A is
When the density level of A is A, the contrast calculation circuit 2
12 calculates the contrast (LA). Th4>
When Th5>Th6>Th7> Th8, the determination circuit 211 calculates the character level P2 of the pixel of interest using the calculated contrast.

【0019】 if(L−A>Th4) then 文字度P2=5 else if(L−A>Th5) then 文字度
P2=4 else if(L−A>Th6) then 文字度
P2=3 else if(L−A>Th7) then 文字度
P2=2 else if(L−A>Th8) then 文字度
P2=1 判定回路211は、上記算出された文字度P1と文字度
P2を加算し、4つのパターンの内、最大の値を注目画
素の文字度Pとして出力する。文字度Pの値の範囲は、
0から7(3ビット)で、数字が大きい程、注目画素は
黒文字エッジである確率が高いことになる。
If (LA> Th4) then character degree P2 = 5 else if (LA> Th5) then character degree P2 = 4 else if (LA> Th6) then character degree P2 = 3 else if ( L−A> Th7) then character degree P2 = 2 else if (LA> Th8) then character degree P2 = 1 The determination circuit 211 adds the calculated character degree P1 and character degree P2 to obtain four patterns. Is output as the degree of character P of the pixel of interest. The range of the value of the character degree P is
From 0 to 7 (3 bits), the larger the number, the higher the probability that the target pixel is a black character edge.

【0020】文字近傍度Qは、注目画素が黒文字エッジ
近傍である確率を算出した値である。その第1の算出方
法は、 if(注目画素の文字度P≧Tha) then 文字
近傍度Q=0 else if(注目画素の文字度P<Tha) th
en 文字近傍度Q=注目画素を中心とした5×5のマスクの
中で最大の文字度Pとなる。つまり、文字近傍度Qは、
文字の周囲の度合いを表すものであるので、文字度Pは
低い。
The degree of character proximity Q is a value obtained by calculating the probability that the pixel of interest is near the black character edge. The first calculation method is as follows: if (character degree P of attention pixel P ≧ Tha) then character proximity degree Q = 0 else if (character degree P of pixel of interest P <Tha) th
en Character proximity Q = maximum character P in a 5 × 5 mask centered on the pixel of interest. That is, the character proximity Q is
Since the degree of surroundings of the character is indicated, the degree of character P is low.

【0021】第2の算出方法は、 if(注目画素の文字度P≧Tha) then 文字
近傍度Q=0 else if(注目画素の文字度P<Tha) th
en 文字近傍度Q1=注目画素を中心とした3×3のマスク
の中で最大の文字度P、文字近傍度Q2=注目画素を中
心とした図5に示す5×5のマスク(このマスクは、注
目画素に近いほど重みを大きくしたマスク)の重み1の
部分で最大の文字度Pから、文字近傍度Qは、文字近傍
度Q=MAX(2×Q1、Q2)となる。文字近傍度Q
算出回路22は、文字度Pを用いて、上記したフィルタ
演算を行い、文字近傍度Qを出力する。
The second calculation method is as follows: if (character degree P of attention pixel P ≧ Tha) then character proximity degree Q = 0 else if (character degree P of pixel of interest P <Tha) th
en Character proximity Q1 = Maximum character P among 3 × 3 masks centered on the pixel of interest, character proximity Q2 = 5 × 5 mask shown in FIG. 5 centered on the pixel of interest (this mask is From the maximum character degree P at the weight 1 portion of the mask (the mask having a larger weight closer to the pixel of interest), the character proximity degree Q becomes the character proximity degree Q = MAX (2 × Q1, Q2). Character proximity Q
The calculation circuit 22 performs the above-described filter operation using the character degree P, and outputs a character proximity degree Q.

【0022】以下の説明では、上記第2の方法で求めた
文字近傍度Qを用いる。ここで、黒文字エッジは白地
上、網点上の何れにあってもよい。文字近傍度Qの値の
範囲は、0から14(4ビット)で、数字が大きい程、
注目画素は黒文字エッジ近傍である確率が高いことにな
る。
In the following description, the character proximity Q obtained by the second method will be used. Here, the black character edge may be on any of a white background and a halftone dot. The range of the value of the character proximity degree Q is 0 to 14 (4 bits).
The pixel of interest has a high probability of being near the black character edge.

【0023】白地検出回路23は、注目画素近傍の白地
を検出する。すなわち、2値化回路では、入力多値信号
に対して、所定の閾値以下の画素を白画素として出力す
る。このとき、入力信号に対して図6に示すMTF補正
用のフィルタを掛けてもよい。次いで、パターンマッチ
ング回路では、注目画素を中心とした5×5のマスクに
おいて、図7に示すように基本的に5×2の白画素があ
れば注目画素を白画素として検出し、膨張回路では、5
×5のマスクにおいて、一つでも白地画素があれば中心
画素を白地画素として出力する。
The white background detection circuit 23 detects a white background near the target pixel. That is, in the binarization circuit, pixels having a predetermined threshold value or less are output as white pixels with respect to the input multi-level signal. At this time, the MTF correction filter shown in FIG. 6 may be applied to the input signal. Next, in the 5 × 5 mask centered on the pixel of interest, if there are basically 5 × 2 white pixels as shown in FIG. 7, the pattern matching circuit detects the pixel of interest as a white pixel. , 5
If there is at least one white background pixel in the × 5 mask, the center pixel is output as a white background pixel.

【0024】判定回路24は、文字度P、文字近傍度
Q、白地検出に基づいて、黒文字信号/黒文字近傍の白
地信号を出力する。すなわち、注目画素において、文字
度P>T0のとき、黒文字信号をオン(上位ビット)と
する文字近傍度Q>T1かつ白地画素のとき、黒文字近
傍の白地信号をオン(下位ビット)とするただし、T
0,T1の閾値は、シミュレーションによって決める。
The determination circuit 24 outputs a black character signal / a white signal in the vicinity of a black character based on the character level P, the character proximity level Q, and the white background detection. That is, in the pixel of interest, when the character degree P> T0, the black character signal is turned on (upper bit). When the character proximity degree Q> T1 and the pixel is white, the white background signal near the black character is turned on (lower bit). , T
The threshold values of 0 and T1 are determined by simulation.

【0025】誤差付加係数算出部3は、判定部2からの
文字度P、文字近傍度Qの信号に基づいて、誤差の総和
に掛ける値kを算出する。図8、図9に示すようなテー
ブルを準備し、k[P]とk[Q]の何れか大きな値k
=MAX(k[P],k[Q])を選択する。文字度
P、文字近傍度Qが大きければ大きい程、注目画素は、
文字エッジか文字エッジ近傍である可能性が高く、この
場合、解像度を重視した再生画を得るために誤差を小さ
くする。すなわち、誤差の総和に掛ける値kをゼロに近
くする。
The error addition coefficient calculation unit 3 calculates a value k to be multiplied by the sum of the errors based on the character degree P and character proximity degree Q signals from the determination unit 2. Tables as shown in FIGS. 8 and 9 are prepared, and either k [P] or k [Q], whichever is greater, k
= MAX (k [P], k [Q]) is selected. The larger the character degree P and the character proximity degree Q are, the larger the pixel of interest is.
There is a high possibility that the character is at or near the character edge. In this case, the error is reduced to obtain a reproduced image that emphasizes the resolution. That is, the value k by which the sum of the errors is multiplied is made close to zero.

【0026】選択回路5は、判定部2からの黒文字信号
/黒文字近傍の白地信号に基づいて、2値化回路4から
の出力、ドットを打つための信号(MAX)、ドットを
打たないための信号(MIN)を選択する。すなわち、
黒文字信号がオンのとき、選択回路5はMAXを選択
し、黒文字近傍の白地信号がオンのとき、選択回路5は
MINを選択し、それ以外のときは、2値化回路4から
の出力を選択する。
The selection circuit 5 outputs an output from the binarization circuit 4 based on the black character signal / white background signal in the vicinity of the black character from the determination unit 2, a signal (MAX) for dot formation, and no dot formation. (MIN) is selected. That is,
When the black character signal is on, the selection circuit 5 selects MAX. When the white background signal near the black character is on, the selection circuit 5 selects MIN. Otherwise, the output from the binarization circuit 4 is selected. select.

【0027】2値化回路4は、入力の多値信号に誤差分
を足し合わせた信号を固定の閾値で2値化する。また、
誤差拡散法特有のテクスチャを低減するために、例え
ば、網点型のディザマトリックスを用い、閾値に周期性
を持たせて2値化するようにしてもよい。図10は、誤
差の重みマスク7として使用するマスクの例を示す。マ
スクは、これに限定されるものではなく、画質に応じて
その重みを変えることができる。
The binarizing circuit 4 binarizes a signal obtained by adding an error to an input multi-level signal with a fixed threshold. Also,
In order to reduce the texture peculiar to the error diffusion method, for example, a halftone type dither matrix may be used, and the threshold may be binarized with periodicity. FIG. 10 shows an example of a mask used as the error weight mask 7. The weight of the mask is not limited to this, and its weight can be changed according to the image quality.

【0028】以上のように構成された本実施例の動作を
説明すると、誤差拡散法は、図1に示すように、入力画
像中の注目画素の濃度x(i,j)に、注目画素近傍の
既に画素値の決定した2値画像の各画素y(i,j)の
閾値処理によって生じた誤差e(i,j)の重みw
(i,j)の加重和E(i,j)を加えた補正値f
(i,j)をとり、その補正値を閾値thで2値化処理
することによって、2値画像を得る方法である。つま
り、 y(i,j)=th{f(i,j)} th(f)=1(f>thのとき)、0(その他のと
き) f(i,j)=x(i,j)+E(i,j) E(i,j)=Σw(n,m)e(n,m) e(n,m)=f(n,m)−y(n,m) となる。
The operation of the embodiment constructed as described above will be described. In the error diffusion method, as shown in FIG. 1, the density x (i, j) of a pixel of interest in an input image Weight w of the error e (i, j) generated by the threshold processing of each pixel y (i, j) of the binary image whose pixel value has already been determined.
Correction value f to which the weighted sum E (i, j) of (i, j) is added
This is a method of obtaining a binary image by taking (i, j) and binarizing the correction value with a threshold th. That is, y (i, j) = th {f (i, j)} th (f) = 1 (when f> th), 0 (otherwise) f (i, j) = x (i, j) ) + E (i, j) E (i, j) = Σw (n, m) e (n, m) e (n, m) = f (n, m) −y (n, m)

【0029】これに対して、本実施例の誤差拡散法によ
る2値化処理においては、E(i,j)に補正を行う。
すなわち、 f(i,j)=x(i,j)+kE(i,j) となり、加重和E(i,j)を、誤差付加係数算出部3
で算出されたk値で補正している。
On the other hand, in the binarization process by the error diffusion method of the present embodiment, E (i, j) is corrected.
That is, f (i, j) = x (i, j) + kE (i, j), and the weighted sum E (i, j) is calculated by the error addition coefficient calculation unit 3
Is corrected by the k value calculated in step (1).

【0030】従って、文字の度合いが高い程、k値が0
に近づき、2値化誤差は0になる。このときは、判定部
2からは、黒文字信号あるいは黒文字近傍の白地信号が
出力され、選択回路5からは、最大濃度信号(MAX)
あるいは最小濃度信号(MIN)が出力される。一方、
文字の度合いが低い程、k値が1に近づき、2値化誤差
を補正して階調性を重視した処理が行われる。
Therefore, the higher the degree of the character, the lower the k value becomes.
And the binarization error becomes zero. At this time, the determination unit 2 outputs a black character signal or a white background signal near the black character, and the selection circuit 5 outputs a maximum density signal (MAX).
Alternatively, a minimum density signal (MIN) is output. on the other hand,
As the degree of the character is lower, the k value approaches 1, and a process that corrects the binarization error and emphasizes the gradation is performed.

【0031】なお、上記した文字度P、文字近傍度Qの
算出方法では、網点画像中に黒文字エッジである確率の
高い画素領域が存在する。そこで、前掲した論文「文字
/網点/写真混在画像の分離方法」に記載の、ピーク画
素を検出することにより網点領域を検出する方法を用い
て、網点画像中の黒文字エッジ確率を補正することも可
能である。図11は、網点領域検出部を更に付加した判
定部の構成を示す。
In the above-described method of calculating the character degree P and the character proximity degree Q, there is a pixel region having a high probability of being a black character edge in a halftone dot image. Thus, the black character edge probability in a halftone dot image is corrected by using the method of detecting a halftone dot region by detecting a peak pixel as described in the above-mentioned paper “Separation method of character / halftone / photo mixed image”. It is also possible. FIG. 11 shows a configuration of a determination unit to which a dot area detection unit is further added.

【0032】すなわち、注目画素近傍において非常にピ
ーク画素密度が高ければ、文字度P、文字近傍度Qを小
さくすればよい。具体的には、該論文に記載のように、
3×3のマスクでピーク画素を検出し、注目画素を中心
とした所定サイズ、例えば8×8のマスクでピーク画素
を計数し、計数値が所定値以上あれば、注目画素を網点
画素と判定し、信号「0」を出力し、そうでなければ信
号「1」を出力する。これにより、網点領域の文字度
P、文字近傍度Qが補正され、小さい値になる。
That is, if the peak pixel density is extremely high in the vicinity of the pixel of interest, the degree of character P and the degree of character proximity Q may be reduced. Specifically, as described in the article,
The peak pixel is detected with a 3 × 3 mask, and the peak pixel is counted with a predetermined size centered on the target pixel, for example, an 8 × 8 mask. Judge, and output the signal “0”; otherwise, output the signal “1”. As a result, the character degree P and the character proximity degree Q of the halftone dot area are corrected to small values.

【0033】このように、本実施例によれば、白地上文
字の近傍と網点上文字の近傍とでは異なった処理をして
いるので、白地上文字と網点上文字の解像度が保存さ
れ、また、注目画素が何処にあるらしいと云うことを示
す文字度P、文字近傍度Qなる確率に基づいて、処理を
連続的に切り換えているので、処理切り換え時の不連続
性が目立たず、特に網点原稿中の誤分離個所が目立たな
くなる。
As described above, according to this embodiment, different processing is performed between the vicinity of the character on the white background and the vicinity of the character on the halftone dot, so that the resolution of the character on the white background and the character on the halftone dot are preserved. In addition, since the processing is continuously switched based on the probability of the character degree P and the character proximity degree Q indicating that the target pixel is likely to be located, discontinuity at the time of processing switching is inconspicuous. In particular, erroneous separation points in a halftone dot document become less noticeable.

【0034】[0034]

【発明の効果】以上、説明したように、本発明によれ
ば、文字度、文字近傍度という曖昧な分離結果を導入し
ているので、文字優先処理(解像度を重視した処理)か
ら絵柄優先処理(階調性を重視した処理)まで連続して
変化させることができる。従って、網点原稿の中で文字
優先処理が選択される場合でも、画質の悪化が目立た
ず、また、写真原稿のエッジ部で文字優先処理が選択さ
れる場合でも、画質の悪化が目立たない。さらに、文字
周辺の白地にはドットを打たずに、白地以外の文字周辺
には適当な誤差分を考慮した処理を施しているので、文
字とその背景に十分なコントラストを与え、背景におい
てノイズのない画像が得られる。また、本実施例のハー
ドウェア量は、像域分離のための装置プラス誤差拡散法
による装置構成よりも少なくすることができる。
As described above, according to the present invention , since ambiguous separation results such as the degree of character and the degree of character proximity are introduced, character priority processing (processing emphasizing resolution) is replaced with picture priority processing. (Processing emphasizing gradation) can be continuously changed. Therefore, even when the character priority processing is selected in the halftone original, the deterioration of the image quality is not noticeable, and even when the character priority processing is selected at the edge portion of the photo original, the deterioration of the image quality is not noticeable. In addition, since a process that takes into account the appropriate error is applied around the characters other than the white background without putting dots on the white background around the characters, sufficient contrast is given to the characters and the background, and The result is an image with no images. In addition, the amount of hardware in this embodiment can be made smaller than a device for separating an image area plus a device configuration using an error diffusion method.

【0035】本発明によれば、注目画素が文字エッジに
存在する確率を簡単な回路で算出することができる。
According to the present invention , the probability that the target pixel exists at the character edge can be calculated by a simple circuit.

【0036】本発明によれば、注目画素が文字エッジ近
傍に存在する確率を簡単な回路で算出することができ
る。
According to the present invention , the probability that the target pixel exists near the character edge can be calculated by a simple circuit.

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

【図1】本実施例のブロック構成図である。FIG. 1 is a block diagram of a first embodiment.

【図2】黒文字エッジ領域と黒文字エッジ近傍領域を示
す図である。
FIG. 2 is a diagram showing a black character edge region and a black character edge vicinity region;

【図3】判定部の具体的構成を示す図である。FIG. 3 is a diagram illustrating a specific configuration of a determination unit.

【図4】文字度算出用の4種類のパターンを示す図であ
る。
FIG. 4 is a diagram showing four types of patterns for calculating the degree of character.

【図5】文字近傍度算出用の重みマスクの例を示す図で
ある。
FIG. 5 is a diagram illustrating an example of a weighting mask for calculating the degree of character proximity.

【図6】MTF補正用のフィルタを示す図である。FIG. 6 is a diagram showing a filter for MTF correction.

【図7】白画素検出用のパターンを示す図である。FIG. 7 is a diagram showing a pattern for detecting white pixels.

【図8】文字度に対応するk値を記憶したテーブルを示
す図である。
FIG. 8 is a diagram showing a table storing k values corresponding to character degrees.

【図9】文字近傍度に対応するk値を記憶したテーブル
を示す図である。
FIG. 9 is a diagram showing a table in which k values corresponding to the degree of character proximity are stored.

【図10】誤差の重みマスクを示す図である。FIG. 10 is a diagram showing an error weight mask.

【図11】本発明の他の実施例の構成を示す図である。FIG. 11 is a diagram showing a configuration of another embodiment of the present invention.

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

1 スキャナ 2 判定部 3 誤差付加係数算出部 4 2値化回路 5 選択回路 6 誤差バッファ 7 重みマスク DESCRIPTION OF SYMBOLS 1 Scanner 2 Judgment part 3 Error addition coefficient calculation part 4 Binarization circuit 5 Selection circuit 6 Error buffer 7 Weight mask

フロントページの続き (56)参考文献 特開 昭63−288567(JP,A) 特開 昭62−139472(JP,A) 特開 平3−85968(JP,A) 特開 平5−122510(JP,A) 特開 昭63−214073(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 Continuation of the front page (56) References JP-A-63-288567 (JP, A) JP-A-62-139472 (JP, A) JP-A-3-85968 (JP, A) JP-A-5-122510 (JP) , A) JP-A-63-214073 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力信号の注目画素値に、注目画素近傍
の既に画素値の決定した各画素の閾値処理によって発生
した誤差の重みの加重和を加算する加算手段と、該加算
された値を閾値処理して2値化信号を出力する2値化手
段と、前記入力信号の各注目画素が文字領域である確率
を算出する第1の算出手段と、前記入力信号の各注目画
素が文字近傍領域である確率を算出する第2の算出手段
と、前記入力信号の各注目画素が白地領域であるか否か
を検出する検出手段と、前記第1の算出手段で算出され
た文字領域である確率が所定の閾値以上であるとき、最
大濃度信号を選択して出力信号とし、前記第2の算出手
段で算出された文字近傍領域である確率が所定の閾値以
上で、かつ前記検出手段で白地領域が検出されたとき、
最小濃度信号を選択して出力信号とし、それ以外のとき
は前記2値化信号を選択して出力信号とする選択手段
と、前記第1の算出手段で算出された文字領域である確
率と、前記第2の算出手段で算出された文字近傍領域で
ある確率に応じて前記加重和を補正する補正手段とを備
えたことを特徴とする画像処理装置。
1. An adding means for adding a weighted sum of weights of errors generated by threshold processing of each pixel whose pixel value has already been determined in the vicinity of a target pixel to a target pixel value of an input signal, and A binarizing unit that outputs a binarized signal by performing a threshold process; a first calculating unit that calculates a probability that each pixel of interest of the input signal is a character area; A second calculating means for calculating the probability of being an area; a detecting means for detecting whether each target pixel of the input signal is a white background area; and a character area calculated by the first calculating means. When the probability is equal to or greater than a predetermined threshold, the maximum density signal is selected and output as an output signal, and the probability of the character vicinity area calculated by the second calculation means is equal to or greater than a predetermined threshold, and the detection means selects a white background. When an area is detected,
Selecting means for selecting the minimum density signal as an output signal, and otherwise selecting the binarized signal as an output signal; and a probability of being a character area calculated by the first calculating means, An image processing apparatus comprising: a correction unit that corrects the weighted sum according to the probability that the region is a character vicinity area calculated by the second calculation unit.
【請求項2】 前記文字領域である確率は、注目画素を
含む所定の近傍画素の濃度レベルと、注目画素と該注目
画素の近傍画素とのコントラストに基づいて算出される
ことを特徴とする請求項1記載の画像処理装置。
2. The method according to claim 1, wherein the probability of the character area is calculated based on a density level of a predetermined neighboring pixel including the target pixel and a contrast between the target pixel and the neighboring pixel of the target pixel. Item 2. The image processing apparatus according to Item 1.
【請求項3】 前記文字近傍領域である確率は、注目画
素が文字領域である確率と、注目画素近傍の複数画素が
文字領域である確率とに基づいて算出されることを特徴
とする請求項1記載の画像処理装置。
3. The probability of being a character vicinity area is calculated based on a probability that a pixel of interest is a character area and a probability that a plurality of pixels near the pixel of interest is a character area. 2. The image processing device according to 1.
【請求項4】 前記文字近傍領域である確率は、注目画
素が文字領域である確率と、注目画素近傍の所定画素が
文字領域である確率と、注目画素から所定距離離れた画
素が文字領域である確率とに基づいて算出されることを
特徴とする請求項1記載の画像処理装置。
4. The probability that the pixel of interest is a character region, the probability that a predetermined pixel in the vicinity of the pixel of interest is a character region, and the probability that a pixel that is a predetermined distance from the pixel of interest is a character region. 2. The image processing apparatus according to claim 1, wherein the calculation is performed based on a certain probability.
JP08100492A 1992-04-02 1992-04-02 Image processing device Expired - Fee Related JP3256267B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08100492A JP3256267B2 (en) 1992-04-02 1992-04-02 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08100492A JP3256267B2 (en) 1992-04-02 1992-04-02 Image processing device

Publications (2)

Publication Number Publication Date
JPH05284358A JPH05284358A (en) 1993-10-29
JP3256267B2 true JP3256267B2 (en) 2002-02-12

Family

ID=13734381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08100492A Expired - Fee Related JP3256267B2 (en) 1992-04-02 1992-04-02 Image processing device

Country Status (1)

Country Link
JP (1) JP3256267B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002171410A (en) 2000-12-01 2002-06-14 Minolta Co Ltd Image processing apparatus
JP2004056266A (en) 2002-07-17 2004-02-19 Ricoh Co Ltd Image area separating device, image processor, image forming apparatus, program, and storage medium
JP6127877B2 (en) * 2013-09-30 2017-05-17 ブラザー工業株式会社 Image processing apparatus and computer program

Also Published As

Publication number Publication date
JPH05284358A (en) 1993-10-29

Similar Documents

Publication Publication Date Title
JP2871127B2 (en) Image processing apparatus and method
EP0372950B1 (en) Image reducing apparatus
JP3097785B2 (en) Image processing device
JP3256267B2 (en) Image processing device
JP4228466B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium storing image processing procedure
JP2874592B2 (en) Image processing device for distinguishing text / photo / dot area
JPH06284281A (en) Picture processor
US6842267B1 (en) Image processing method
JPS63288565A (en) Image processor
JP3361355B2 (en) Image processing device
JP3245600B2 (en) Image processing device
JPH01276970A (en) Picture signal processor
US20020008879A1 (en) Image processing method
JP3260815B2 (en) Image processing device
JP3451490B2 (en) Image information processing method
JP3115065B2 (en) Image information edge enhancement device
JPH07322060A (en) Image area separation device, facsimile equipment provided with the device and electronic file device
JPH0554190A (en) Picture processor
JP4454879B2 (en) Image processing apparatus, image processing method, and recording medium
JP3146516B2 (en) Image processing device
JPH11345327A (en) Picture processing method and picture processor
JP3136650B2 (en) Image processing device
JP3146517B2 (en) Image processing device
JPH1166297A (en) Image processor and its method
JPH0465974A (en) Image processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071130

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081130

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees