JP2637610B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2637610B2
JP2637610B2 JP2174874A JP17487490A JP2637610B2 JP 2637610 B2 JP2637610 B2 JP 2637610B2 JP 2174874 A JP2174874 A JP 2174874A JP 17487490 A JP17487490 A JP 17487490A JP 2637610 B2 JP2637610 B2 JP 2637610B2
Authority
JP
Japan
Prior art keywords
pixel
unit
image
edge
density value
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
JP2174874A
Other languages
Japanese (ja)
Other versions
JPH0465968A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2174874A priority Critical patent/JP2637610B2/en
Publication of JPH0465968A publication Critical patent/JPH0465968A/en
Application granted granted Critical
Publication of JP2637610B2 publication Critical patent/JP2637610B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ファクシミリ装置等に用いられ、文字等を
含む中間調画像の2値化処理を改善した画像処理装置に
関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus used in a facsimile apparatus or the like and having improved binarization processing of a halftone image including characters and the like.

(従来の技術) 従来より、ディジタルファクシミリ装置等において中
間調を擬似的に表現するための2値化方法として誤差拡
散法がある。
(Prior Art) Conventionally, there is an error diffusion method as a binarization method for pseudo-representing a halftone in a digital facsimile apparatus or the like.

従来、この種の分野の技術としては、「Floyd and
Steinberg」“An Adative Algorithm for Spatial
Grayscale" Proceedings of the S.I.D17[2]
(1976)(米)P.75−77に記載されるものがあった。
Conventionally, technologies in this type of field include "Floyd and
Steinberg ”“ An Adative Algorithm for Spatial
Grayscale "Proceedings of the SID 17 [2]
(1976) (U.S.A.) There was one described on pages 75-77.

第2図は1次元の誤差拡散法の一例を示す図である。
なお、処理方向は図の左から右の方向である。
FIG. 2 is a diagram showing an example of a one-dimensional error diffusion method.
The processing direction is from left to right in the figure.

まず、第1の画素G1は閾値より大きいので、黒と判定
され、2値化処理後の出力Q1は第2図に示す濃度値BLの
黒となる。ここで、黒の濃度値BLは、スキャナのダイナ
ミックレンジの最大値であり、この黒の濃度値BLと入力
画素の濃度値P1との差が誤差T1となる。本事例では、誤
差を拡散させる画素が1つだけであるので、重率1をこ
の誤差T1に掛けて右隣の第2の画素G2に加算す。第2の
画素G2は加算後の値P2を固定閾値で2値化すると、出力
Q2は白となる。さらに、値P2と濃度値WLとの誤差T2を第
3の画素G3に加算する。この様にして、順次誤差を加算
して固定閾値で2値化する方法が誤差拡散法である。
First, since the first pixel G 1 is greater than the threshold value, it is determined that black, output to Q 1 after binarization becomes black density value BL shown in Figure 2. Here, black density value BL is the maximum value of the dynamic range of the scanner, the difference between the density value P 1 of the input pixel and the black density value BL is error T 1. In the present case, since the pixel to diffuse the error is only one, be added the weight ratio 1 to the second pixel G 2 of right hung on the error T 1. When the value P 2 after addition is binarized with a fixed threshold value, the second pixel G 2 outputs
Q 2 is white. Furthermore, adding the error T 2 of the value P 2 and the density value WL to the third pixel G 3. The error diffusion method is a method of sequentially adding errors and binarizing them with a fixed threshold value.

また、2次元の誤差拡散法を用いた場合において、誤
差を拡散させる画素に対する重率の一例を、第3図に示
す。
FIG. 3 shows an example of the weight for the pixel to which the error is diffused when the two-dimensional error diffusion method is used.

以上説明したように、誤差拡散法は2値化する入力画
素の濃度値と出力画素の濃度値との差を誤差として、2
値化した画素の周辺画素に重み付けを施した後に加算
し、その加算結果を入力画素値として固定閾値で2値化
するものである。
As described above, the error diffusion method uses the difference between the density value of the input pixel to be binarized and the density value of the output pixel as an error,
After weighting the peripheral pixels of the pixel that has been converted into a value, the pixels are added, and the result of the addition is binarized with a fixed threshold value as an input pixel value.

(発明が解決しようとする課題) しかしながら、上記の誤差拡散法を用いて2値化処理
を行う画素処理装置では、入力画像中の注目画素が黒と
して出力された場合、誤差は負となるので(第2図の誤
差T1)、周辺画素の濃度値が下がり、白と出力され易く
なる。そのため、文字等の細い黒線がかすれる。さら
に、注目画素が白として出力された場合、誤差は正とな
るため(第2図の誤差T2)、周辺がその濃度値が上り、
黒字に白抜きの細い線は潰れるといった問題があった。
(Problems to be Solved by the Invention) However, in the pixel processing device that performs the binarization process using the above-described error diffusion method, if the target pixel in the input image is output as black, the error becomes negative. (Error T 1 in FIG. 2), the density value of the peripheral pixels decreases, and it is easy to output white. Therefore, thin black lines such as characters are blurred. Further, when the target pixel is output as white, the error is positive (error T 2 in FIG. 2 ), and the density value increases in the periphery,
There was a problem that thin white lines in black were crushed.

この問題が原因となり、白画素数と黒画素数とを交互
にコード化するランレングス符号化によって圧縮した場
合に、圧縮率が下がることにもなり、上記問題は、放置
し難たい重要な課題であった。
Due to this problem, when compression is performed by run-length coding in which the number of white pixels and the number of black pixels are alternately coded, the compression ratio also decreases. Met.

本発明は前記従来技術の持っていた課題として、細い
黒線がかすれ、黒字に白抜きの細い線は潰れるという点
について解決した画像処理装置を提供するものである。
An object of the present invention is to provide an image processing apparatus which solves the problems of the prior art in that a thin black line is blurred and a white thin line is crushed in black.

(課題を解決するための手段) 本発明は、前記課題を解決するために、画像処理装置
において、中間調濃度を含む入力画像を入力し、該入力
画像の濃度値を画素単位で検出して多値画像信号を出力
する入力部と、前記多値画像信号を入力し、前記入力画
像の各画素の像域を判定する像域判定部と、前記像域判
定部の出力に基づいて前記像域に応じた係数を発生さ
せ、該係数によって前記各画素の濃度値を演算する選択
強調部と、前記選択強調部で演算された濃度値を疑似的
に表現する2値化方法を用いて2値化処理を行う2値化
部とを、備えている。
(Means for Solving the Problems) According to the present invention, in order to solve the above-mentioned problems, an image processing apparatus receives an input image including a halftone density and detects a density value of the input image in pixel units. An input unit that outputs a multi-valued image signal, an image area determining unit that receives the multi-valued image signal, and determines an image area of each pixel of the input image, and the image based on an output of the image area determining unit. A selection emphasizing unit that generates a coefficient corresponding to the area and calculates the density value of each pixel by the coefficient, and a binarization method that artificially expresses the density value calculated by the selection emphasizing unit. A binarizing unit for performing a binarizing process.

さらに、前記像域判定部は、前記注目画素に対して周
辺のどの画素が濃度の高いエッジであるか否かを判定す
る第1のエッジ判定手段と、前記注目画素に対して周辺
のどの画素が濃度の低いエッジであるか否かを判定する
第2のエッジ判定手段と、前記第1のエッジ判定手段の
判定結果により形成される形状と一定パタンとの照合を
行う第1のパタンマッチング手段と、前記第2のエッジ
判定手段の判定結果により形成される形状と一定パタン
との照合を行う第2のパタンマッチング手段とを備え、
前記像域は、前記エッジの属性及び形状の組み合わせに
より分類されるものである。
Further, the image area determination unit includes a first edge determination unit configured to determine whether a peripheral pixel of the target pixel is an edge having a high density, and a peripheral pixel of the target pixel. Edge determination means for determining whether or not is a low-density edge, and first pattern matching means for comparing a shape formed based on the determination result of the first edge determination means with a fixed pattern And a second pattern matching means for comparing a shape formed based on the determination result of the second edge determination means with a fixed pattern,
The image area is classified according to a combination of an attribute and a shape of the edge.

(作用) 本発明は、以上のように画像処理装置を構成したの
で、像域判定部は、入力画像の各画素が像域のいずれに
属するかを判定し、選択強調部は、像域に応じた係数を
発生させると共に、係数によって各画素の濃度値を演算
した後、2値化部へ出力して、白または黒を強調させる
ように働く。
(Operation) Since the image processing apparatus according to the present invention is configured as described above, the image area determination unit determines which pixel of the input image belongs to which of the image areas, and the selection enhancement unit determines the image area. In addition to generating a corresponding coefficient and calculating the density value of each pixel using the coefficient, the density value is output to the binarization unit, and functions to emphasize white or black.

したがって、前記課題を解決できるのである。 Therefore, the above problem can be solved.

(実施例) 第1図は、本発明の実施例を示す画像処理装置の構成
ブロック図である。
(Embodiment) FIG. 1 is a configuration block diagram of an image processing apparatus showing an embodiment of the present invention.

この画像処理装置は、入力部50、像域判定部51、選択
強調部52、2値化部53、及び出力部54で構成されてい
る。
This image processing apparatus includes an input unit 50, an image area determination unit 51, a selection emphasis unit 52, a binarization unit 53, and an output unit 54.

入力部50は、スキャナ等で構成され、中間調濃度を含
む入力画像の濃度値を画素単位で検出して多値画像信号
を出力する機能を有する。像域判定部51は入力画像を例
えば、文字や網点等の種類別の像域に分類し、入力画像
の各画素がその像域のいずれに属するかを判定する回路
である。選択強調部52は、像域判定部51の出力に基づき
像域に応じた係数を発生させ、この係数を各画素の濃度
値M(n)に対して乗算することで、濃度値を強調する
回路である。
The input unit 50 includes a scanner or the like, and has a function of detecting a density value of an input image including a halftone density in pixel units and outputting a multi-valued image signal. The image area determination unit 51 is a circuit that classifies the input image into image areas of different types, such as characters and halftone dots, and determines to which of the image areas each pixel of the input image belongs. The selection emphasis unit 52 generates a coefficient corresponding to the image area based on the output of the image area determination unit 51, and multiplies this coefficient by the density value M (n) of each pixel to emphasize the density value. Circuit.

さらに、2値化部53は、コンパレータ等で構成され、
選択強調部52により強調された各画素の濃度値を入力
し、前述した誤差拡散法を用いて、その入力画像の濃度
値の2値化処理を行う回路である。出力部54は、プリン
タ等で構成され、2値化部53からの2値データを画像と
して出力する機能を有している。
Further, the binarization unit 53 is configured by a comparator or the like,
This is a circuit that inputs the density value of each pixel emphasized by the selection emphasizing unit 52 and binarizes the density value of the input image using the error diffusion method described above. The output unit 54 is configured by a printer or the like, and has a function of outputting the binary data from the binarization unit 53 as an image.

第4図は、第1図中の像域判定部51の内部構成ブロッ
ク図である。
FIG. 4 is a block diagram showing the internal configuration of the image area determination unit 51 in FIG.

この像域判定部51は、ラッチ回路51−1a〜51−9a、ラ
インメモリ51−1b,51−2b、第1及び第2のエッジ判定
手段51−1c〜51−8c,51−1d〜51−8d、多入力ORゲート5
1−1e,51−2e、及び第1及び第2のパタンマッチング手
段51−1f,51−2fで構成されている。
The image area determination unit 51 includes latch circuits 51-1a to 51-9a, line memories 51-1b and 51-2b, and first and second edge determination means 51-1c to 51-8c and 51-1d to 51-1. −8d, multi-input OR gate 5
1-1e, 51-2e, and first and second pattern matching means 51-1f, 51-2f.

ラッチ回路51−1a〜51−9a及びラインメモリ51−1b,5
1−2bは、濃度値M(n)を保持する機能を有してい
る。LSI等で構成される第1のエッジ判定手段51−1c〜5
1−8cは、入力画像における各画素中の注目画素が濃度
値の高いエッジであるかを判定し、その判定結果である
信号ZB1〜ZB8を出力する手段である。ここで、エッジと
は、注目画素とその注目画素の周辺の近傍画素との濃度
差が大きい場合をいう。第2のエッジ判定手段51−1d〜
51−8dは、注目画素が濃度値の低いエッジであるかを判
定し、その判定結果である信号ZW1〜ZW8を出力する手段
である。多入力ORゲート51−1eは、注目画素が近傍画素
中の少なくとも1画素に対して濃度値の高いエッジであ
るか否かを判定し、その判定結果として信号ZBEを出力
する回路であり、多入力ORゲート51−2eは、注目画素が
近傍画素の少なくとも1画素に対して濃度値の低いエッ
ジであるか否かを判定し、その判定結果として信号ZWE
を出力する回路である。
Latch circuits 51-1a to 51-9a and line memories 51-1b, 5
1-2b has a function of holding the density value M (n). First edge determination means 51-1c to 5 composed of LSI or the like
1-8c the target pixel in each pixel in the input image is determined whether the high edge density values, a means for outputting a signal ZB 1 ~ZB 8 is a result of the determination. Here, an edge refers to a case where the density difference between a target pixel and a neighboring pixel around the target pixel is large. Second edge determination means 51-1d ~
51-8d is a means to which the pixel of interest to determine whether the low edge density value, and outputs a signal ZW 1 ~ZW 8 is a result of the determination. The multi-input OR gate 51-1e is a circuit that determines whether or not the target pixel is an edge having a high density value for at least one of the neighboring pixels, and outputs a signal ZBE as a result of the determination. The input OR gate 51-2e determines whether or not the pixel of interest is an edge having a low density value with respect to at least one of the neighboring pixels.
Is a circuit that outputs.

第1のパタンマッチング手段51−1fは、ゲート回路等
で構成され、第1のエッジ判定手段51−1c〜51−8cから
出力される信号ZB1〜ZB8により形成される形状と予め定
められた一定パタンとの照合を行い、その照合結果であ
る信号ZBLを出力する手段である。同様に、ゲート回路
等で構成される第2のパタンマッチング手段51−2fは、
第2のエッジ判定手段51−1d〜51−8dから出力される信
号ZW1〜ZW8により形成される形状と一定パタンとの照合
を行い、照合結果である信号ZWLを出力する手段であ
る。ここで、第1及び第2のパタンマッチング手段51−
1f,51−2fにおいて、信号ZB1〜ZB8及び信号ZW1〜ZW8
マッチングさせるパタン例が第5図(a),(b),
(c)に示されている。このパタン例は、3×3のパタ
ンである。
First pattern matching means 51-1f is composed of a gate circuit or the like, a predetermined shape formed by the first signal ZB 1 ~ZB 8 output from the edge determination means 51-1c~51-8c This is a means for performing collation with a predetermined pattern and outputting a signal ZBL as a result of the collation. Similarly, the second pattern matching means 51-2f composed of a gate circuit and the like,
Collates shape with a constant pattern is formed by a signal ZW 1 ~ZW 8 output from the second edge determination unit 51-1D~51-8d, a means for outputting a signal ZWL a collation result. Here, the first and second pattern matching means 51-
1f, in 51-2F, pattern examples of matching signals ZB 1 ~ZB 8 and signal ZW 1 ~ZW 8 is FIG. 5 (a), (b),
It is shown in (c). This pattern example is a 3 × 3 pattern.

第6図は、第1図中の選択強調部52の内部構成ブロッ
ク図である。
FIG. 6 is a block diagram showing the internal configuration of the selection emphasizing unit 52 in FIG.

この選択強調部52は、像域判定部51からの信号ZBL、
信号ZBE、信号ZWE、及び信号ZWLを入力し、これら信号
によって判定される像域に応じた係数を発生させる係数
発生器52aと、その係数を注目画素の濃度値M(0)に
対して乗算して濃度を強調する乗算器52bとで、構成さ
れている。ここで、係数発生器52aは、前記係数が格納
されたRAM(ランダム・アクセス・メモリ)やROM(リー
ド・オンリー・メモリ)等でハード構成されている。
The selection emphasizing unit 52 includes a signal ZBL from the image area determining unit 51,
A coefficient generator 52a that receives the signal ZBE, the signal ZWE, and the signal ZWL and generates a coefficient corresponding to an image area determined by these signals, and multiplies the coefficient by a density value M (0) of a target pixel. And a multiplier 52b for enhancing the density. Here, the coefficient generator 52a is constituted by hardware such as a RAM (random access memory) or a ROM (read only memory) in which the coefficients are stored.

次に、以上のように構成される画像処理装置の動作を
説明する。
Next, the operation of the image processing apparatus configured as described above will be described.

入力画素が入力部50に入力されて走査されると、入力
画像の濃度値が画素単位で検出され、入力部50から多値
画像信号が出力される。この多値画像信号は像域判定部
51に入力され、ラッチ回路51−1a〜51−9a及びラインメ
モリ51−1b,51−2bによって、その濃度値が保持され
る。
When an input pixel is input to the input unit 50 and scanned, a density value of the input image is detected in pixel units, and a multi-valued image signal is output from the input unit 50. This multi-level image signal is output to an image area determination unit.
The density value is input to the latch 51 and is held by the latch circuits 51-1a to 51-9a and the line memories 51-1b and 51-2b.

その後、第1のエッジ判定手段51−1c〜51−8cにおい
て、 M(0)−M(n)>TH ……(1) 但し、n=1,2,……,8 M(0);注目画素の濃度値 M(n);近傍画素の濃度値 TH;エッジ判定閾値 が行われ、注目画素が濃度値の高いエッジか否かが判定
される。(1)式を満足した場合、信号ZBnを“1"とし
て、満足しない場合は“0"として出力される。
Thereafter, in the first edge determination means 51-1c to 51-8c, M (0) -M (n)> TH (1) where n = 1, 2,..., 8 M (0); The density value of the pixel of interest M (n); the density value of the neighboring pixels TH; the edge determination threshold value is performed, and it is determined whether the pixel of interest is an edge with a high density value. (1) When satisfied expression, a signal ZB n as "1", if not satisfied is output as "0".

また、第2のエッジ判定手段51−1d〜51−8dにおい
て、 M(n)−M(0)>TH ……(2) 但し、n=1,2,……,8 が行われ、注目画素が濃度値の低いエッジか否かが判定
され、(2)式を満足した場合、信号ZWnを“1"とし、
満足しな場合を“0"として出力される。
In the second edge determination means 51-1d to 51-8d, M (n) -M (0)> TH (2) where n = 1, 2,. pixel is determined whether a low edge density value, (2) satisfying the formula, and a signal ZW n "1",
If it is satisfied, it is output as "0".

続いて、信号ZBnは第1のパタンマッチング手段51−1
fで、信号ZWnは第2のパタンマッチング手段51−2fで、
それぞれ照合される。その照合結果が第5図(a),
(b),(c)に示すような一定パタンに当てはまった
場合、信号ZBL及び信号ZWLが“1"として出力され、当て
はまらない場合、“0"として出力される。第5図
(a),(b),(c)の斜線で示した部分が、特に濃
度が高い画素(または低い画素)であり、注目画素に対
してはエッジとならない部分である。即ち、信号ZB
n(またはZWn)は“0"である。これを第5図(a)につ
いて論理式で表すと次式のようになる。
Subsequently, the signal ZB n first pattern matching means 51-1
f, the signal ZW n is converted by the second pattern matching means 51-2f,
Each is checked. The matching result is shown in FIG.
The signal ZBL and the signal ZWL are output as "1" when they apply to the fixed patterns shown in (b) and (c), and are output as "0" when they do not apply. The shaded portions in FIGS. 5 (a), (b) and (c) are particularly high density (or low density) pixels and do not become edges with respect to the target pixel. That is, the signal ZB
n (or ZW n ) is “0”. When this is expressed by a logical expression with respect to FIG. 5 (a), the following expression is obtained.

ZBL= ▲▼・ZB2・ZB3・ZB4・▲▼・ZB6・ZB7・Z
B8 但し、・印は論理積を表す この第1及び第2のパタンマッチング手段51−1f,51
−2fでは、注目画素が線に属するか否かを判定してい
る。これは網点画像が基本的には点で構成されているた
め、点の一部とは見られない直線的なパタンを使用して
いる。この判定により、網点と線の像域の切り分けを行
っている。
ZBL = ▲ ▼ ・ ZB 2・ ZB 3・ ZB 4・ ▲ ▼ ・ ZB 6・ ZB 7・ Z
B 8, however, and India the first and second pattern matching means 51-1f representing the logical product, 51
In −2f, it is determined whether or not the target pixel belongs to the line. This uses a linear pattern that cannot be seen as a part of a dot because a halftone image is basically composed of points. With this determination, the image areas of the halftone dots and the lines are separated.

一方、多入力ORゲート51−1eは、第1のエッジ判定手
段51−1c〜51−8cから出力される信号ZB1〜ZB8が1つで
も“1"であれば、“1"の信号ZBEを出力する。また、多
入力ORゲート51−2eは、第2のエッジ判定手段51−1d〜
51−8dから出力される信号ZW1〜ZW8が1つでも“1"であ
れば、“1"の信号ZWEを出力する。ここで、“1"の信号Z
BEを注目画素が濃度の高いエッジであることを示し、
“1"の信号ZWEは注目画素が濃度の低いエッジであるこ
とを示している。
On the other hand, the multi-input OR gate 51-1e, if signals ZB 1 ~ZB 8 output from the first edge determination unit 51-1c~51-8c even one "1", the signal "1" Output ZBE. The multi-input OR gate 51-2e is connected to the second edge determination means 51-1d to
If the signal ZW 1 ~ZW 8 output from 51-8d is an even one "1", and outputs a signal ZWE of "1". Here, the signal Z of “1”
BE indicates that the pixel of interest is a high density edge,
The signal ZWE of "1" indicates that the target pixel is an edge with low density.

以上のように、像域判定部51では、注目画素に対して
8近傍画素でエッジを見て、信号ZBE、信号ZBL、信号ZW
E、及び信号ZWLを出力する。即ち、これら信号の組み合
わせである9通りの像域データが選択強調部52へ出力さ
れる。なお、像域データにより線や網点等の像域が判定
される。
As described above, the image area determination unit 51 looks at the edges at eight neighboring pixels with respect to the target pixel, and determines the signal ZBE, the signal ZBL, and the signal ZW.
E and the signal ZWL are output. That is, nine kinds of image area data, which are combinations of these signals, are output to the selection emphasizing unit 52. The image area such as a line or a halftone dot is determined based on the image area data.

選択強調部52では、係数発生器52aによりこの像域デ
ータに基づき、像域に応じた係数を発生させ、この係数
と注目画素の濃度値とを乗算器52bにより乗算して、注
目画素の濃度値を強調する。本実施例で使用した係数を
次の表1に示す。
In the selection emphasizing unit 52, a coefficient corresponding to the image area is generated by the coefficient generator 52a based on the image area data, and the coefficient is multiplied by the density value of the pixel of interest by the multiplier 52b to obtain the density of the pixel of interest. Highlight the value. The coefficients used in this example are shown in Table 1 below.

表1 ZBE ZBL ZWE ZWL 係数 1 1 1 1 1.2 1 1 1 0 1.2 1 1 0 0 100 1 0 1 1 1.0 1 0 1 0 1.0 1 0 0 0 1.1 0 0 1 1 0.0 0 0 1 0 0.9 0 0 0 0 1.0 ここで、ZBE=ZBL=1かつZWE=ZWL=0の場合の係数
100は、多値の入力値の最大値となる係数であり、2値
化出力が必ず黒となるようにしたものである。ZBE=ZBL
=0かつZWE=ZWL=1の場合の係数0.0は、多値の入力
値の最小値となる係数であり、2値化出力が必ず白とな
るようにしたものである。また、線をより鮮明に出すた
めには、ZBE=1のとき、つまり、エッジとなった場合
の係数を上げればよい。この係数は、処理の画素の文字
等の線が多いか網点が多いか、さらに出力画像が文字を
重視するか網点を重視するか等で決定される。その一例
を第7図に示す。
Table 1 ZBE ZBL ZWE ZWL coefficient 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 0 0 100 1 0 1 1 1 1.0 1 0 1 0 1 0 1 0 1 0 0 0 1.1 0 0 1 1 0 0 0 0 1 0 0.9 0 0 0 0 0 1.0 Here, coefficient when ZBE = ZBL = 1 and ZWE = ZWL = 0
100 is a coefficient which becomes the maximum value of the multi-valued input value, and the binarized output is always black. ZBE = ZBL
The coefficient 0.0 in the case of = 0 and ZWE = ZWL = 1 is the coefficient which is the minimum value of the multi-valued input value, and the binarized output is always white. Further, in order to make the line clearer, it is only necessary to increase the coefficient when ZBE = 1, that is, when the edge becomes an edge. This coefficient is determined depending on whether there are many lines or halftones of characters or the like of the pixels of the process, and whether the output image emphasizes characters or halftones. One example is shown in FIG.

第7図(a),(b)は、網点でのモアレを示す図で
あり、同図(a)は線を良く出す係数を用いた場合、同
図(b)は上記表1に示す係数を用いた場合を示す図で
ある。
FIGS. 7 (a) and 7 (b) are diagrams showing moire at halftone dots. FIG. 7 (a) shows a case where a coefficient that makes lines appear well is used, and FIG. It is a figure showing the case where a coefficient is used.

このモアレは、網点印刷で133線のものを200dpi,256
階調で読み込んだものである。第7図(a)は、ZBE=
1のとき係数を100、その他で係数1としたものであ
り、モアレが現われる。第7図(b)はモアレが現れな
い。
This moiré is a halftone dot print with 133 lines at 200 dpi, 256 dots.
These are read in gradations. FIG. 7 (a) shows ZBE =
When the coefficient is 1, the coefficient is 100, and in the other cases, the coefficient is 1, and moire appears. FIG. 7 (b) shows no moire.

以上説明したように、注目画素が9通りのいすれの像
域に属するか判定し、各々の像域に対する係数により濃
度値を係数倍した後、2値化部53において、該差拡散法
によって2値化する。2値化された入力画像は、出力部
54よって印字される。
As described above, it is determined whether the pixel of interest belongs to any one of the nine image areas, and the density value is multiplied by the coefficient for each image area. Binarize. The binarized input image is output to an output unit
Printed by 54.

本実施例は、次のような利点を有している。 This embodiment has the following advantages.

(1)第8図(a),(b)は、文字の出力例を示す図
であり、同図(a)は従来技術の出力例及び同図(b)
は10.5ポイントの文字を含むチャートを200dpi、256階
調で読み込んだ上記実施例の出力例である。この第8図
から明らなように、上記実施例では、2値化の前処理と
して、入力画像を数種類の像域に分類して各画素がどの
像域に属するかを判定し、その像域に応じた係数によっ
て各画素を重み付けするようにしたので、第8図(a)
の従来例に示される文字のかすれも、第8図(a)の従
来例に示されるように現れなくなる。同様に、黒字に白
抜きの文字もかすれが現れなくなる。また、黒文字、白
抜き文字の周辺も白または黒に強調するためにノッチも
押さえられる。
(1) FIGS. 8 (a) and 8 (b) are diagrams showing output examples of characters, and FIG. 8 (a) is an output example of the prior art and FIG. 8 (b).
Is an output example of the above embodiment in which a chart including 10.5 point characters is read at 200 dpi and 256 gradations. As apparent from FIG. 8, in the above embodiment, as preprocessing for binarization, the input image is classified into several types of image areas, and it is determined which image area each pixel belongs to. Since each pixel is weighted by a coefficient corresponding to the area, FIG. 8 (a)
8A does not appear as shown in the conventional example of FIG. 8A. Similarly, no fading appears in white characters in black characters. In addition, notches are also suppressed to emphasize black and white characters around the black characters and white characters.

(2)画像電子学会テストチャートNo2をMH符号方式に
よって符号化した際の圧縮率(全画素数/MH符号ビット
数)は、従来の2.2に対して本実施例では2.8であり、圧
縮率も向上する。
(2) The compression ratio (the total number of pixels / the number of MH code bits) when the Test Chart No. 2 of the Institute of Image Electronics Engineers of Japan is encoded by the MH coding method is 2.8 in the present embodiment, compared to 2.2 in the past, and the compression ratio is improves.

なお、本発明は、図示の実施例に限定されず、種々の
変形が可能である。例えば、その変形例として次のよう
なものがある。
Note that the present invention is not limited to the illustrated embodiment, and various modifications are possible. For example, there are the following modifications.

(イ)上記実施例において、係数発生器52aより発生さ
れる係数は、上記表1のように設定したが、本発明の趣
旨に沿ったものであれば、これに限定されない。
(A) In the above embodiment, the coefficients generated by the coefficient generator 52a are set as shown in Table 1, but are not limited thereto as long as they are in accordance with the gist of the present invention.

(ロ)第1及び第2のパタンマッチング手段51−1f,51
−2fにおける一定パタン形状は、第5図(a),
(b),(c)に示されるものに限定されない。
(B) First and second pattern matching means 51-1f, 51
The constant pattern shape at −2f is shown in FIG.
It is not limited to those shown in (b) and (c).

(ハ)上記実施例では、パタンマッチングする画素を3
×3としたが、例えば3×5や5×5でもよい。
(C) In the above embodiment, the number of pixels for pattern matching is 3
Although it was set to × 3, for example, it may be 3 × 5 or 5 × 5.

(ニ)2値化方法は、誤差拡散法に限定されず、平均誤
差最小法、メッシュ内画素分配法でも同様の効果が得ら
れる。
(D) The binarization method is not limited to the error diffusion method, and the same effect can be obtained by the average error minimum method and the intra-mesh pixel distribution method.

(ホ)第1のエッジ判定手段51−1c〜51−8cにおいて、
上記(1)式を満足した場合、信号ZBnを“1"として、
満足しない場合は“0"として注目画素が濃度値の高いエ
ッジか否かを判定したが、逆に、上記(1)式を満足し
た場合、信号ZBnを“0"として、満足しない場合は“1"
として注目画素が濃度値の高いエッジか否かを判定して
もよい。
(E) In the first edge determination means 51-1c to 51-8c,
When the above equation (1) is satisfied, the signal ZB n is set to “1”, and
Although the pixel of interest as a "0" is not satisfied is determined whether high edge density value, conversely, when satisfying the above expression (1), a signal ZB n as "0", if not satisfied “1”
Alternatively, it may be determined whether the target pixel is an edge having a high density value.

(ヘ)第2のエッジ判定手段51−1d〜51−8dにおいて、
上記(2)式を満足した場合、信号ZWnを“1"とし、満
足しない場合を“0"として注目画素が濃度値の低いエッ
ジか否かを判定したが、逆に、上記(2)式を満足した
場合、信号ZWnを“0"として、満足しない場合は“1"と
して注目画素が濃度値の低いエッジか否かを判定しても
よい。
(F) In the second edge determination means 51-1d to 51-8d,
(2) when satisfying the formula, and a signal ZW n "1", although the pixel of interest as a "0" is not satisfied is determined whether a low edge density value, conversely, (2) If satisfied, wherein a signal ZW n as "0", the pixel of interest as a "1" is not satisfied may be determined whether a lower edge density value.

(発明の効果) 以上詳細に説明したように、本発明によれば、例え
ば、入力画像を数種類の像域に分類して各画素がいずれ
の像域に属するかを判定し、この像域に応じた係数によ
って各画素の濃度値を演算した後、その演算された各画
素の濃度値に対して中間調濃度を擬似的に表現する2値
化方法を用いて2値化処理を行うようにしたので、細い
黒線がかすれたり、黒字に白抜きの細い線は潰れたりす
る不都合を防ぐことができる。これにより、本発明をフ
ァクシミリ装置やイメージスキャナ等の2値化処理に用
いた場合、優れた効果が期待できる。
(Effects of the Invention) As described above in detail, according to the present invention, for example, an input image is classified into several types of image areas, and it is determined which image area each pixel belongs to. After the density value of each pixel is calculated by the corresponding coefficient, the binarization process is performed on the calculated density value of each pixel by using a binarization method that simulates a halftone density. Therefore, it is possible to prevent inconvenience that a thin black line is blurred or a black thin white line is crushed. As a result, when the present invention is used for binarization processing of a facsimile apparatus, an image scanner, or the like, excellent effects can be expected.

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

第1図は本発明の実施例を示す画像処理装置の構成ブロ
ック図、第2図は1次元の誤差拡散法を示す図、第3図
は2次元の誤差拡散法を示す図、第4図は第1図中の像
域判定部の内部構成ブロック図、第5図(a),
(b),(c)は第1及び第2のパタンマッチング手段
中のパタン例を示す図、第6図は第1図中の選択強調部
の内部構成ブロック図、第7図は(a),(b)は網点
でのモアレを示す図、第8図(a),(b)は文字の出
力例を示す図である。 50……入力部、51……像域判定部、51−1c〜51−8c,51
−1d〜51−8d……第1及び第2のエッジ判定手段、51−
1f,51−2f……第1及び第2のパタンマッチング手段、5
2……選択強調部、53……2値化部、54……出力部。
1 is a block diagram of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a diagram showing a one-dimensional error diffusion method, FIG. 3 is a diagram showing a two-dimensional error diffusion method, and FIG. 5 is a block diagram showing the internal configuration of the image area determination unit in FIG. 1, and FIG.
(B) and (c) are diagrams showing examples of patterns in the first and second pattern matching means, FIG. 6 is a block diagram showing the internal configuration of a selection emphasis unit in FIG. 1, and FIG. 8 (b) are diagrams showing moiré at halftone dots, and FIGS. 8 (a) and 8 (b) are diagrams showing output examples of characters. 50 ... input unit, 51 ... image area determination unit, 51-1c to 51-8c, 51
-1d to 51-8d: first and second edge determination means, 51-
1f, 51-2f... First and second pattern matching means, 5
2 ... selection emphasis unit, 53 ... binarization unit, 54 ... output unit.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】中間調濃度を含む入力画像を入力し、該入
力画像の濃度値を画素単位で検出して多値画像信号を出
力する入力部と、 前記多値画像信号を入力し、前記入力画像の各画素の像
域を判定する像域判定部と、 前記像域判定部の出力に基づいて前記像域に応じた係数
を発生させ、該係数によって前記各画素の濃度値を演算
する選択強調部と、 前記選択強調部で演算された濃度値を疑似的に表現する
2値化方法を用いて2値化処理を行う2値化部とを、 備えたことを特徴とする画像処理装置。
An input unit for inputting an input image including a halftone density, detecting a density value of the input image in pixel units, and outputting a multivalued image signal; An image area determining unit that determines an image area of each pixel of the input image; and generating a coefficient corresponding to the image area based on an output of the image area determining unit, and calculating a density value of each pixel based on the coefficient. An image processing apparatus comprising: a selection emphasis unit; and a binarization unit that performs a binarization process using a binarization method that artificially expresses the density value calculated by the selection emphasis unit. apparatus.
【請求項2】請求項1記載の画像処理装置において、 前記像域判定部は、 前記入力画像中の注目画素に対して周辺のどの画素が濃
度の高いエッジであるかを判定する第1のエッジ判定手
段と、 前記注目画素に対して周辺のどの画素が濃度の低いエッ
ジであるかを判定する第2のエッジ判定手段と、 前記第1のエッジ判定手段の判定結果により形成される
形状と一定パタンとの照合を行う第1のパタンマッチン
グ手段と、 前記第2のエッジ判定手段の判定結果により形成される
形状と一定パタンとの照合を行う第2のパタンマッチン
グ手段とを備え、 前記像域は、前記エッジの属性及び形状の組み合わせに
より分類される画像処理装置。
2. The image processing apparatus according to claim 1, wherein the image area determination unit determines which peripheral pixel is a high density edge with respect to a target pixel in the input image. An edge determination unit, a second edge determination unit that determines which pixel around the target pixel is a low-density edge, and a shape formed by a determination result of the first edge determination unit. A first pattern matching unit that performs a comparison with a fixed pattern; and a second pattern matching unit that performs a comparison between a shape formed based on the determination result of the second edge determination unit and a fixed pattern. An image processing apparatus wherein the area is classified according to a combination of the attribute and the shape of the edge.
JP2174874A 1990-07-02 1990-07-02 Image processing device Expired - Fee Related JP2637610B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2174874A JP2637610B2 (en) 1990-07-02 1990-07-02 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2174874A JP2637610B2 (en) 1990-07-02 1990-07-02 Image processing device

Publications (2)

Publication Number Publication Date
JPH0465968A JPH0465968A (en) 1992-03-02
JP2637610B2 true JP2637610B2 (en) 1997-08-06

Family

ID=15986173

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2174874A Expired - Fee Related JP2637610B2 (en) 1990-07-02 1990-07-02 Image processing device

Country Status (1)

Country Link
JP (1) JP2637610B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3354741B2 (en) * 1995-04-17 2002-12-09 富士通株式会社 Halftone display method and halftone display device

Also Published As

Publication number Publication date
JPH0465968A (en) 1992-03-02

Similar Documents

Publication Publication Date Title
US4821334A (en) Image processing apparatus
JPH07288689A (en) Device and method for binarization processing of image signal
US5177795A (en) Image processing apparatus
JPH0591328A (en) Picture processor
JP2003174556A (en) Image processing apparatus and image processing method
JP2637610B2 (en) Image processing device
JPH07307866A (en) Processing unit and method for binarizing image signal
US7965413B2 (en) Method and system for detection of binary halftone frequencies
JPH06284281A (en) Picture processor
JP3043033B2 (en) Image processing method
JPH0465969A (en) Image processor
JP2851724B2 (en) Image processing device
JP3230849B2 (en) Image processing device
JP3099435B2 (en) Image area determination device
JPH0879513A (en) Binary error diffusion processor
JP2878318B2 (en) Image area determination method for binary image
JP2836992B2 (en) Image scaling processor
JP2637612B2 (en) Image binarization method
JPH07322060A (en) Image area separation device, facsimile equipment provided with the device and electronic file device
JP3046945B2 (en) Image data processing method
JPH06296235A (en) Facsimile equipment
JP3146516B2 (en) Image processing device
JPH05176168A (en) Adaptive halftone processing system
JPH0490680A (en) Picture binarizing method
JP3136650B2 (en) Image processing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080425

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090425

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100425

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees