JPH03136574A - Picture processing unit - Google Patents

Picture processing unit

Info

Publication number
JPH03136574A
JPH03136574A JP1275601A JP27560189A JPH03136574A JP H03136574 A JPH03136574 A JP H03136574A JP 1275601 A JP1275601 A JP 1275601A JP 27560189 A JP27560189 A JP 27560189A JP H03136574 A JPH03136574 A JP H03136574A
Authority
JP
Japan
Prior art keywords
image signal
data
pixel
circuit
binary data
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.)
Granted
Application number
JP1275601A
Other languages
Japanese (ja)
Other versions
JP2527482B2 (en
Inventor
Yuji Tanaka
勇司 田中
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP1275601A priority Critical patent/JP2527482B2/en
Priority to CA002028092A priority patent/CA2028092C/en
Priority to EP90120248A priority patent/EP0424854B1/en
Priority to DE69027506T priority patent/DE69027506T2/en
Publication of JPH03136574A publication Critical patent/JPH03136574A/en
Priority to US07/859,857 priority patent/US5448656A/en
Application granted granted Critical
Publication of JP2527482B2 publication Critical patent/JP2527482B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To simplify the circuit constitution and to reduce the cost of a picture processing unit by correcting a 2nd picture signal to realize the error spread method in response to a 1st picture signal from a picture signal correction means and a 1st binary data from a data compression means and discriminating the level. CONSTITUTION:An error spread circuit 26 corrects a 2nd gradation data S2 so as to decrease a deviation between a gradation level represented by a 2nd gradation data S2 and a threshold level Sh for binarization with respect to a picture element near the photoelectric conversion section with a larger deviation and applies data processing discriminating the level as the deviation is larger with respect to a 1st binary data PD corresponding to picture elements near picture signals corresponding to outputs S2, PS from a MTF correction means and a 2nd gradation data S2 and a 1st binary data D1 of the 1st gradation data S1 is given to a compression processing circuit 27.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ファクシミリ装置などにおいて用いられる画
像読取装置に好適に実施され、読取られた画像情報を白
黒の2値の画素で表現するための画像処理装置に関する
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is suitably implemented in an image reading device used in a facsimile machine, etc., and performs image processing to express read image information as black and white binary pixels. Regarding equipment.

従来の技術 ファクシミリ装置や光学的文字読取装置(略称0CR)
などには、原稿面を予め定められた画素単位毎に読取っ
て、原稿像に対応した2値のレベルを有する信号として
出力する読取装置が設けられる。読取装置は、原稿面か
らの反射光をたとえば電荷結合素子(略#CCD)など
によって実現される読取センサによって走査し、画素毎
の濃淡を表す画像信号をWi索毎に順次的に発生する。
Conventional technology facsimile machines and optical character readers (abbreviated as OCR)
A reading device that reads the surface of a document in predetermined pixel units and outputs it as a signal having a binary level corresponding to the document image is installed in the device. The reading device scans the reflected light from the surface of the document using a reading sensor realized by, for example, a charge-coupled device (approximately #CCD), and sequentially generates an image signal representing the density of each pixel for each wire.

輿望的な先行技術は第7図に示される。前記CCDなど
から各画素毎に順次的に出力され、アナログ/デジタル
変換された画像信号Sは、ラインバ・ンファ1に与えら
れ、またラインバッファ1にストアされた画像信号は、
別のラインバッファ2に与えられる。このラインバッフ
ァ1,2は、それぞれ原稿面の走査線に対応するストア
容量を有する。この2つのラインバッファ1,2にスト
アされた画像信号と画像信号Sをもとに2値化処理回路
3により、各画素毎の2値データDを出力する。2値デ
ータDは、ラインバッファ4にストアされ、2値データ
Dとラインバッファ4にストアされた画像信号をもとに
2値データ補正回路5により、最終的な2値データとし
て出力される。
An aspirational prior art is shown in FIG. The image signal S, which is sequentially output from the CCD or the like for each pixel and subjected to analog/digital conversion, is given to the line buffer 1, and the image signal stored in the line buffer 1 is
Another line buffer 2 is provided. The line buffers 1 and 2 each have a storage capacity corresponding to a scanning line on the document surface. Based on the image signal and image signal S stored in the two line buffers 1 and 2, the binarization processing circuit 3 outputs binary data D for each pixel. The binary data D is stored in the line buffer 4, and is output as final binary data by the binary data correction circuit 5 based on the binary data D and the image signal stored in the line buffer 4.

発明が解決しようとする課題 従来から、中間階調の画像を2値化する際に、注目して
いる特定画素である注目画素の上下方向および左右方向
に隣接する、たとえば4つの周辺画素の2値化情況から
求めた誤差Eを、注目画素の画像信号Sに加えてから2
値化処理を実行する誤差拡散法が行われている。
Problems to be Solved by the Invention Conventionally, when binarizing an intermediate gradation image, two of, for example, four peripheral pixels adjacent to the pixel of interest, which is a specific pixel of interest, in the vertical and horizontal directions have been used. After adding the error E obtained from the value conversion situation to the image signal S of the pixel of interest,
An error diffusion method is used to perform the value conversion process.

第8図は、誤差拡散法を実施するための回路構成を示す
ブロック図である。各画素毎の画像信号Sは加算回路6
に与えられる。加算回路6にはまた、後述の誤差信号E
が与えられ、これら画像信号Sと、誤差信号Eとの和信
号5E=S+F、は比較回路7に与えられる。比較回路
7は、前記和信号SRを閾値設定回路8からの閾値S 
hでレベル弁別し、画像信号Sの2値データDを出力す
る。
FIG. 8 is a block diagram showing a circuit configuration for implementing the error diffusion method. The image signal S for each pixel is sent to the adding circuit 6
given to. The adder circuit 6 also receives an error signal E, which will be described later.
A sum signal 5E=S+F of the image signal S and the error signal E is provided to the comparator circuit 7. The comparison circuit 7 converts the sum signal SR into a threshold value S from the threshold value setting circuit 8.
Level discrimination is performed using h, and binary data D of the image signal S is output.

2値データDは、誤差計算回路9に与えられる。The binary data D is given to the error calculation circuit 9.

また、誤差計算回路9には画像信号Sが与えられ、画像
信号Sに対応する画素における誤差eが計算される。す
なわち誤差計算回路9は、比較回路7からの2値データ
D=「1・」のときには誤差e−8とし、2値データD
=rOJのときには誤差e=S−R(Rは定数)とする
Further, the image signal S is given to the error calculation circuit 9, and the error e at the pixel corresponding to the image signal S is calculated. That is, when the binary data D from the comparator circuit 7 is "1.", the error calculation circuit 9 assumes the error is e-8, and the binary data D
When =rOJ, the error is set as e=SR (R is a constant).

誤差計算回路9からの誤差eは、遅延回路10によって
1画素分遅延されてラインバッファ11に与えられると
ともに、この1画素分遅延された誤差e0は乗算回路1
2に与えられる。
The error e from the error calculation circuit 9 is delayed by one pixel by the delay circuit 10 and given to the line buffer 11, and the error e0 delayed by one pixel is sent to the multiplier circuit 1.
given to 2.

ラインバッファ11は、1走査線の画素数よりも2画素
分少ないストア容量を有する。したがって、各画素に対
応する誤差θを第5図(3)のように想定するとき、遅
延回路10からは誤差e。
The line buffer 11 has a storage capacity that is two pixels smaller than the number of pixels in one scanning line. Therefore, when assuming the error θ corresponding to each pixel as shown in FIG. 5(3), the delay circuit 10 outputs an error e.

がラインバッファ11に与えられ、ラインバッファ11
からは誤差eAが出力される。ラインバッファ11から
の出力esおよび遅延回路13.14を介した誤差es
、ecはそれぞれ乗算回路12に与えられる。
is given to the line buffer 11, and the line buffer 11
The error eA is output from. Output es from line buffer 11 and error es via delay circuits 13 and 14
, ec are respectively provided to the multiplication circuit 12.

乗算回路12は、誤差e^+ e s + e e +
 e eに重み付は係数kl、に2.に3.に4を乗じ
た値を加算回路15に与え、加算回路15からはこれら
の加算値が誤差信号Eとして出力される。すなわち、 E=kl ・eA +に2 ・es  +に3 ・ec
  +に4 ・e。
The multiplication circuit 12 calculates the error e^+ e s + e e +
e Weighting is done by coefficient kl, and 2. 3. The value obtained by multiplying 4 by 4 is applied to the adder circuit 15, and the adder circuit 15 outputs these added values as an error signal E. That is, E=kl ・eA + 2 ・es + 3 ・ec
+4 ・e.

である。It is.

誤差拡散法を実現する第8図示の回路構成は、通常、第
7図示の回路構成に付加する形で実現される。したがっ
てこのような従来の画像処理装置では、入力画像信号S
を一旦スドアするためのラインバッファ1.2の2本と
、2値化後のデータDをストアするためのラインバッフ
ァ4の1本とに加えて、第8図に示される誤差eをスト
アするためのラインバッファ11の1本を設ける必要が
あり、画像処理装置のコストが増大する。
The circuit configuration shown in FIG. 8 for implementing the error diffusion method is usually realized by being added to the circuit configuration shown in FIG. 7. Therefore, in such a conventional image processing device, the input image signal S
In addition to two line buffers 1 and 2 for temporarily storing the data and one line buffer 4 for storing the binarized data D, the error e shown in FIG. 8 is stored. It is necessary to provide one line buffer 11 for this purpose, which increases the cost of the image processing apparatus.

本発明の目的は、新たなラインバッファメモリなどの記
憶手段を設けることなく、誤差拡散法による画像信号の
2値化処理を行うことができる画像処理装置を提供する
ことである。
SUMMARY OF THE INVENTION An object of the present invention is to provide an image processing apparatus that can perform binarization processing of an image signal using an error diffusion method without providing a new storage means such as a line buffer memory.

課題を解決するための手段 本発明は、画素毎の濃淡を表す第1画像信号を画素毎に
順次的に発生する画像信号発生手段と、画像信号発生手
段の出力に応答し、コントラストを向上させるための補
正を施した第2画像信号と、この第2画像信号に対応す
る画素近傍の画素に対応する第1画像信号とを導出する
画像信号補正手段と、 画像信号補正手段からの各出力および入力される第1の
2値データに応答し、第2画像信号のレベルと予め定め
られる弁別レベルとの偏差が大きい程、偏差が大きい画
素近傍の画素の前記偏差が小さくなるように第2画像信
号を補正してレベル弁別し、第1画像信号の第1の2値
データを得る誤差拡散手段と、 誤差拡散手段からの出力に応答し、第1の2値データの
圧縮処理を行い、第1画像信号の第2の2値データを得
るとともに、この第2の2値データに対応する画素近傍
の画素に対応する第1の2値データを前記誤差拡散手段
に与えるデータ圧縮手段とを含むことを特徴とする画像
処理装置である。
Means for Solving the Problems The present invention includes an image signal generating means that sequentially generates a first image signal representing the density of each pixel for each pixel, and improving contrast in response to the output of the image signal generating means. an image signal correction means for deriving a second image signal corrected for the purpose of the image signal and a first image signal corresponding to a pixel in the vicinity of the pixel corresponding to the second image signal; each output from the image signal correction means; In response to the input first binary data, the second image is adjusted such that the larger the deviation between the level of the second image signal and the predetermined discrimination level, the smaller the deviation of pixels near the pixel with the larger deviation. error diffusion means for correcting the signal and level discrimination to obtain first binary data of the first image signal; responsive to the output from the error diffusion means, compressing the first binary data; data compression means for obtaining second binary data of one image signal and providing first binary data corresponding to pixels in the vicinity of the pixel corresponding to the second binary data to the error diffusion means; This is an image processing device characterized by the following.

作  用 本発明に従えば、画像信号発生手段から発生された画素
毎の濃淡を表す第1画像信号は、画像信号補正手段に与
えられて、コントラストを向上するための補正が施され
た第2画像信号として導出される。また画像信号補正手
段は、入力される第1画像信号から、導出する第2画像
信号に対応する画素近傍の画素に対応する第1画像信号
を導出する。
According to the present invention, the first image signal representing the density of each pixel generated by the image signal generating means is given to the image signal correcting means, and the second image signal is corrected to improve the contrast. Derived as an image signal. Further, the image signal correction means derives, from the inputted first image signal, a first image signal corresponding to a pixel in the vicinity of the pixel corresponding to the second image signal to be derived.

これら第2画像信号およびこの第2画像信号に対応する
画素近傍の画素に対応する第1画像信号は誤差拡散手段
に与えられる。また誤差拡散手段には、レベル弁別後の
第1の2値データに対する圧縮処理を行うデータ圧縮手
段から、入力される第1画像信号よりも以前に入力され
た第1画像信号に対応する第1の2値データが与えられ
る。
These second image signals and first image signals corresponding to pixels in the vicinity of the pixels corresponding to the second image signals are given to the error diffusion means. Further, the error diffusion means receives a first image signal corresponding to a first image signal inputted earlier than the inputted first image signal from a data compression means that performs compression processing on the first binary data after level discrimination. binary data is given.

誤差拡散手段は、入力される第2画像信号のレベルと予
め定められる弁別レベルとの偏差が大きい程、この偏差
が大きい画素近傍の画素であって、誤差拡散手段に前記
第2画像信号が入力された後に画像信号補正手段から入
力される第2画像信号の前記偏差が小さくなるようにこ
の第2画像信号を補正してレベル弁別し、このような誤
差拡散法に従う第1画像信号の第1の2値データを作成
してデータ圧縮手段に与える。
The larger the deviation between the level of the input second image signal and the predetermined discrimination level, the larger the error diffusion means, the larger the deviation is, the larger the deviation is, the larger the deviation is, the larger the deviation is, the larger the deviation is, the error diffusion means is input to the second image signal. The second image signal is corrected so that the deviation of the second image signal inputted from the image signal correcting means is reduced after the error is detected, the level is discriminated, and the first image signal of the first image signal according to such an error diffusion method is binary data is created and given to the data compression means.

データ圧縮手段は5人力される第1の2値データから圧
縮処理を行って第1画像信号の第2の2値データを作成
するとともに、上述したようにこの第2の2値データに
対応する画素近傍の画素に対応する第1の2値データを
誤差拡散手段に与え”l’rA る。
The data compression means performs compression processing from the first binary data input by five people to create second binary data of the first image signal, and also corresponds to this second binary data as described above. First binary data corresponding to a pixel in the vicinity of the pixel is given to the error diffusion means.

このように誤差拡散手段には、誤差拡散法に従って補正
を行ってレベル弁別する第2画像信号よりも、時系列的
に先に画像信号補正手段から入力される第2画像信号に
対応した画素の第1画像信号および第1の2値データが
、画像信号補正手段およびデータ圧縮手段からそれぞれ
与えられるので、誤差拡散法を実行するにあたって、ラ
インバッファメモリなどの記憶手段を設ける必要がない
In this way, the error diffusion means receives pixels corresponding to the second image signal input from the image signal correction means earlier than the second image signal whose level is to be discriminated by performing correction according to the error diffusion method. Since the first image signal and the first binary data are provided from the image signal correction means and the data compression means, respectively, there is no need to provide a storage means such as a line buffer memory when performing the error diffusion method.

したがって回路構成が簡単化し、コスト低減が図られる
Therefore, the circuit configuration is simplified and costs are reduced.

実施例 第1171は、本発明の一実施例である画像処理装置2
0の基本的構成を簡略化して示すブロック図である。原
稿21の原稿像は、CCD (電荷結き素子)などを含
んで実現される読取手段22によって順次的に走査され
て読取られる。読取手段22が出力するアナログ画像信
号は、アナログ/デジタルく以下、r A /’ D 
Jと略記する)変換回路23に与えられて、デジタル画
像信号に変換される。このデジタル画像信号は、たとえ
ば8ビツトのデータに対応し、読取られた各画素は、0
〜255の256(=2”)t’l調の画像データS1
によってその濃淡が表される。
Embodiment No. 1171 is an image processing device 2 which is an embodiment of the present invention.
FIG. 2 is a block diagram showing a simplified basic configuration of 0. The original image of the original 21 is sequentially scanned and read by a reading means 22 including a CCD (charge coupled device) or the like. The analog image signal output by the reading means 22 is analog/digital.
(abbreviated as J) conversion circuit 23, where it is converted into a digital image signal. This digital image signal corresponds to, for example, 8-bit data, and each read pixel is 0.
~255 of 256 (=2”) t'l tone image data S1
The density is expressed by.

A/D変換回路23が出力する階調データS1は、画像
処理回路24に与えられる。画像処理回路24は、MT
F補正手段25、誤差拡散回路26および圧縮処理回路
27を含んで構成される。
The gradation data S1 output from the A/D conversion circuit 23 is given to the image processing circuit 24. The image processing circuit 24 is an MT
It is configured to include an F correction means 25, an error diffusion circuit 26, and a compression processing circuit 27.

MTF補正手段25は、第1画像信号である第1階調デ
ータS1に対して、そのコントラストを向上するための
後述するM T F (ModulationTran
sfer Function)補正を施した第2画像信
号S2を導出して誤差拡散回路26に与えるとともに、
この第2階調データS2に対応する画素近傍の画素に対
応する第1階調データS1 26に与える。
The MTF correction means 25 applies MTF (Modulation Tran) to the first gradation data S1, which is the first image signal, to improve the contrast thereof.
sfer Function) The corrected second image signal S2 is derived and given to the error diffusion circuit 26, and
The first gradation data S1 26 corresponding to the pixels near the pixel corresponding to the second gradation data S2 is given.

誤差拡散回路26では、MTF補正手段25からの各出
力S2.PSおよび第2階調データS2に対応する画素
近傍の画素に対応する第1の2値データPDから、第2
階調データS2の表す階調レベルと2値化を行うための
閾値レベルS bとの偏差が大きい程、この偏差が大き
い画素近傍の画素の前記偏差が小さくなるように第2階
調データS2を補正した後、レベル弁別するという後述
の誤差拡散法に従うデータ処理が行われて、第1階調デ
ータS1の第1の2値データD1が圧縮処理回路27へ
与えられる。
In the error diffusion circuit 26, each output S2. PS and the second gradation data from the first binary data PD corresponding to the pixel near the pixel corresponding to the second gradation data S2.
The second gradation data S2 is set such that the larger the deviation between the gradation level represented by the gradation data S2 and the threshold level Sb for performing binarization, the smaller the deviation of the pixels near the pixel with the larger deviation. After correcting, data processing according to the error diffusion method to be described later is performed to perform level discrimination, and the first binary data D1 of the first gradation data S1 is provided to the compression processing circuit 27.

圧縮処理回路27は、入力される2走査線の各画素に対
応して導出された複数の2値データD1を1走査線相当
分の複数の2値データD2に変換して出力するという後
述の圧縮処理を行うとともに、この第2の2値データD
2に対応する画素近傍の画素に対応する第1の2値デー
タPDを誤差拡散回路26に与える。
The compression processing circuit 27 converts a plurality of binary data D1 derived corresponding to each pixel of two input scanning lines into a plurality of binary data D2 corresponding to one scanning line and outputs the converted binary data D2. While performing compression processing, this second binary data D
First binary data PD corresponding to a pixel near the pixel corresponding to pixel 2 is provided to the error diffusion circuit 26.

第2図はMTF補正手段25の基本的構成を示すブロッ
ク図であり、第3図は誤差拡散回路26の基本的構成を
示すブロック図であり、第4図は圧縮処理回路27の基
本的構成を示すブロック図である。また第5図は、各画
素の第1階調データS1および第1の2値データD1の
対応する画素、ならびに後述する誤差計算によって得ら
れる各誤差eの対応関係を示すための図である。
2 is a block diagram showing the basic configuration of the MTF correction means 25, FIG. 3 is a block diagram showing the basic configuration of the error diffusion circuit 26, and FIG. 4 is a block diagram showing the basic configuration of the compression processing circuit 27. FIG. FIG. 5 is a diagram showing the correspondence between the first gradation data S1 of each pixel and the first binary data D1 of each pixel, and each error e obtained by error calculation described later.

第2図を参照して、A/D変換後の第1画像信号である
第1階調データS1は、MTF補正手段25のラインバ
ッファメモリ28に与えられて、1走査線に対応する各
画素毎の階調データS1が一旦スドアされるとともに、
1画素分の遅延を行う各遅延回路30.31を介してM
TF補正回路38に与えられる。ラインバッファメモリ
28によって、1走査線相当分の遅延がかけられた第1
階調データS1は、次のラインバッファメモリ29に与
えられて一旦スドアされるとともに、遅延回路32,3
3.34を経てMTF補正回路38に与えられる。ライ
ンバッファメモリ29によってさらに1走査線相当分の
遅延がかけられた第1階調データS1は、遅延回路35
,36.37を経て第1階調データScとして導出され
る。
Referring to FIG. 2, the first gradation data S1, which is the first image signal after A/D conversion, is given to the line buffer memory 28 of the MTF correction means 25, and each pixel corresponding to one scanning line is The gradation data S1 for each is once stored, and
M through each delay circuit 30 and 31 that delays one pixel.
The signal is applied to the TF correction circuit 38. The first line buffer memory 28 delays the first line by one scanning line.
The gradation data S1 is given to the next line buffer memory 29 and temporarily stored, and the delay circuits 32 and 3
3.34 and is applied to the MTF correction circuit 38. The first gradation data S1, which has been further delayed by one scanning line by the line buffer memory 29, is sent to the delay circuit 35.
, 36, and 37, and is derived as the first gradation data Sc.

前記各遅延回路32〜37は、入力信号に対して1画素
相当分の遅延を施した出力を行うので、遅延回路32.
33からは、第5図(1)に示される第1階調データS
、S*がMTF補正回路38に与えられる。同様に、遅
延回路35からは第1階調データS1が導出され、遅延
回路36からは第1Il!F調データS6がMTF補正
回路38に与えられる。また遅延回路31からは、第1
階調データSrがMTF補正回路38に与えられる。
Each of the delay circuits 32 to 37 outputs the input signal with a delay equivalent to one pixel.
33, the first gradation data S shown in FIG. 5(1)
, S* are provided to the MTF correction circuit 38. Similarly, the first gradation data S1 is derived from the delay circuit 35, and the first Il! data is derived from the delay circuit 36. F-tone data S6 is provided to the MTF correction circuit 38. Further, from the delay circuit 31, the first
The gradation data Sr is provided to the MTF correction circuit 38.

MTF補正回路38は、入力されるこれら第1階調デー
タS、Ss、So、SF、SNに基づいて、第1階調デ
ータSに対応する画素のコントラストを向上させるため
のMTF補正を施して、第2画像信号である第2階調デ
ータS2を出力する。
The MTF correction circuit 38 performs MTF correction to improve the contrast of the pixel corresponding to the first gradation data S based on the input first gradation data S, Ss, So, SF, and SN. , outputs second gradation data S2, which is a second image signal.

すなわちMTF補正回路38では、MTF補正が施され
る注目画素に関して、その上下方向および左右方向にそ
れぞれ近接する各画素に対応する第1階調データS s
、 S o、 S r、 S @から次式に従う平均階
調データS□、を演算する(第5図(1)り照)。
That is, in the MTF correction circuit 38, with respect to the target pixel to which MTF correction is applied, first gradation data S s corresponding to each pixel adjacent to the target pixel in the vertical direction and horizontal direction are obtained.
, S o , S r, and S @, the average gradation data S□ according to the following formula is calculated (see FIG. 5 (1)).

、、、、 = S、 + S°+ S r + S N
      、、−< t >次に、A−B= 1の関
係を有する定数A、Bについて、次式に従い第2階調デ
ータS2を演算する。
,,,, = S, + S°+ S r + S N
,, -<t>Next, second gradation data S2 is calculated according to the following equation for constants A and B having a relationship of A-B=1.

s2= Axs   BXSp+tA*       
     ”、(2)このようにしてMTF補正回路3
8において演算され、出力される第2階調データS2は
、その対応する画素から当初導出された第1階調データ
S1よりも、そのコントラストが向上されたものとなっ
ている。
s2= Axs BXSp+tA*
”, (2) In this way, the MTF correction circuit 3
The second gradation data S2 calculated and outputted in step 8 has improved contrast compared to the first gradation data S1 originally derived from the corresponding pixel.

第3図を参照して、前記MTF補正手段25から導出さ
れた第1階調データsA、s、、sc、s。
Referring to FIG. 3, first gradation data sA, s, , sc, s derived from the MTF correction means 25.

は、誤差拡散回路26の誤差計算回路40,41゜42
.43にそれぞれ与えられる。また、MTF補正手段2
5からの第2階調データS2は、加算回路44に与えら
れる。誤差計算回路40〜43には、後述の第4図に示
される圧縮処理回路27から第1階調データSA〜S0
にそれぞれ対応した各画素の第1の2値データDA、0
% 、DC,D。
are the error calculation circuits 40, 41゜42 of the error diffusion circuit 26.
.. 43 respectively. Moreover, the MTF correction means 2
The second gradation data S2 from 5 is applied to the adder circuit 44. The error calculation circuits 40 to 43 receive first gradation data SA to S0 from the compression processing circuit 27 shown in FIG. 4, which will be described later.
The first binary data DA, 0 of each pixel respectively corresponding to
%, DC, D.

が与えられる。is given.

各誤差計算回路40〜43は、入力される第1階調デー
タおよび第1の2値データS A、D A; S a。
Each of the error calculation circuits 40 to 43 receives input first gradation data and first binary data SA, DA;

Dll; S、、、Dc; So、Doがら後述の誤差
拡111E法を実現するために必要となる誤差e At
 e lI、 e e。
Dll; S, , Dc; Error e At required to realize the error expansion 111E method described later from So and Do
e lI, e e.

eoをそれぞれ演算して乗算回路46,47,48.4
9にそれぞれ与える。乗算回路6・16〜49からの乗
算結果に1・e A  k 2・es  k3・ec、
に4・eoは、加算回路45にて加算されて加算回路4
4に与えられる。加算回路44は、加算回路45からの
加算結果Eを第2階調データS2に加算した加算結果S
Eを比較回路50に与える。比較回路50は、加算回路
44からの出力SEを、閾値設定回路3つにおいて予め
設定される閾値S hを弁別レベルとしてレベル弁別し
、第2階調データS2に対応する画素の第1の2値デー
タD1を出力する。
Multiplying circuits 46, 47, 48.4 each calculate eo.
Give each to 9. 1・e A k 2・es k3・ec,
4·eo is added in the adder circuit 45 and added to the adder circuit 4.
given to 4. The addition circuit 44 adds the addition result S from the addition circuit 45 to the second gradation data S2.
E is applied to the comparator circuit 50. The comparison circuit 50 performs level discrimination on the output SE from the addition circuit 44 using a threshold value Sh preset in the three threshold value setting circuits as a discrimination level, and selects the first two pixels corresponding to the second gradation data S2. Output value data D1.

第41”Jを参照して、誤差拡散回路26から導出され
る第1の2ftiデータD1は、切換スイッチSW3を
介して先ずラインバッファメモリ51に与えられ、1走
査線相当分の複数の第1の2値データD1が一旦スドア
される。
Referring to No. 41"J, the first 2fti data D1 derived from the error diffusion circuit 26 is first given to the line buffer memory 51 via the changeover switch SW3, and the first 2fti data D1 corresponding to one scanning line is The binary data D1 of is stored once.

ラインバッファメモリ51は、1走査線相当分の画素数
よりも2画素分だけ少ないストア容量を有する。ライン
バッファメモリ51からは、予めストアされた第1の2
値データD1が遅延回路53.54.55を経て論理和
(OR)ゲートG1に与えられる。ラインバッファメモ
リ51に1走査線相当分の第1の2値データD1がスト
アされると、次に切換スイッチSW3はこの2値データ
D1が遅延回路52に与えられるように切換えられる。
The line buffer memory 51 has a storage capacity that is two pixels smaller than the number of pixels corresponding to one scanning line. From the line buffer memory 51, the first 2
Value data D1 is applied to logical sum (OR) gate G1 via delay circuits 53, 54, and 55. When the first binary data D1 corresponding to one scanning line is stored in the line buffer memory 51, the changeover switch SW3 is then switched so that the binary data D1 is given to the delay circuit 52.

遅延回路52からの出力は、ORゲートG1に与えられ
る。
The output from delay circuit 52 is given to OR gate G1.

各遅延回路52.53,54.55は、それぞれ1画素
相当分の遅延を施したデータ出力を行うので、誤差拡散
回路26から圧縮処理回路27に与えられる第1の2値
データD1が第5図(2)に示される2値データDのと
きには、遅延回路52からの出力は2値データD0であ
り、遅延回路55からの出力は2値データDCである。
Each of the delay circuits 52, 53, 54, 55 outputs data delayed by one pixel, so that the first binary data D1 given from the error diffusion circuit 26 to the compression processing circuit 27 is When the binary data D is shown in FIG. 2, the output from the delay circuit 52 is binary data D0, and the output from the delay circuit 55 is binary data DC.

また、遅延回路53.54からは、2値データDA、D
Furthermore, from the delay circuits 53 and 54, binary data DA, D
.

がそれぞれ導出される。遅延回路55.52からの2値
データDc、Doは、ORゲートG1を介してこれら2
値データDc、DOに対応する画素の第2の2値データ
D2として出力される。また、遅延回路52〜55から
出力される第1の2値データDA−DOは、第3図に示
される誤差拡散回路26の誤差計算回路40〜43にそ
れぞれ与えられる。
are derived respectively. The binary data Dc and Do from the delay circuits 55 and 52 are connected to these two data via the OR gate G1.
It is output as second binary data D2 of the pixel corresponding to the value data Dc and DO. Further, the first binary data DA-DO outputted from the delay circuits 52 to 55 are provided to the error calculation circuits 40 to 43 of the error diffusion circuit 26 shown in FIG. 3, respectively.

次に、第2図〜第5図を参照して誤差拡散法について以
下説明する。2値化処理を行う注目画素に対応する第1
階調データS、第1の2値データDおよび誤差eと、こ
の注目画素近傍の画素に対応する第1階調データ、第1
の2値データおよび誤差を第5図示のように想定する。
Next, the error diffusion method will be explained below with reference to FIGS. 2 to 5. The first pixel corresponding to the pixel of interest to be subjected to binarization processing.
The gradation data S, the first binary data D, and the error e, the first gradation data corresponding to the pixels in the vicinity of this pixel of interest, and the first
Assume binary data and errors as shown in Figure 5.

このとき注目画素のMTF補正後の第2階調データS2
に、注目画素近傍の画素の誤差データEを加えたSEを
、予め設定される閾値レベルS1・1で2値判定して第
1の2値データD1を得る。すなわち、SE = S 
+ E = S+k 1 ・eA+に2− es+に3− ec
+に4 ・e。
At this time, the second gradation data S2 after MTF correction of the pixel of interest
SE, which is obtained by adding error data E of pixels near the pixel of interest, is subjected to binary judgment using a preset threshold level S1·1 to obtain first binary data D1. That is, SE = S
+ E = S+k 1 ・2- to eA+ 3- ec to es+
+4 ・e.

・・・(3) ここで、誤差e i (i=A、B、C,D)は、前記
誤差計算回路40〜43において次式に従って演算され
る。
(3) Here, the error e i (i=A, B, C, D) is calculated in the error calculation circuits 40 to 43 according to the following equation.

ここで、第1の2値データDi (i=A、B。Here, the first binary data Di (i=A, B.

C,D)は、比較回路50において次式のように設定さ
れる。
C, D) are set in the comparison circuit 50 as shown in the following equation.

ここで上記第1階調データSiは、各画素1(i=A、
B、C,D)に対応する階調データであり、たとえばr
ビットのデータの場きには、0〜2r−1までの値を取
る。
Here, the first gradation data Si is for each pixel 1 (i=A,
B, C, D), for example r
In the case of bit data, it takes a value from 0 to 2r-1.

また上記定数Rは、前記第1階調データSiの最大値に
1を加えた値、すなわち2′とする。
Further, the constant R is set to be a value obtained by adding 1 to the maximum value of the first gradation data Si, that is, 2'.

さらに上記に1〜に4は、乗算回路46〜4つにおいて
、誤差eA’%eDに乗算される各画素の重み付は係数
であり、次式の相互関係で設定される。
Furthermore, in the multiplication circuits 46 to 4, the weighting of each pixel by which the error eA'%eD is multiplied is a coefficient, which is set according to the mutual relationship of the following equation.

0 < kl、 k2. k3. k4 < 1゜kl
 + k2 + k3 + k4 = 1    ・・
・(6)たとえば kl−に2=に3=に4=’ であり、また他の場合には、 である。これらに1〜に4の各値は、画像の2値化処理
において、好適な結果が得られるように適宜設定される
0 < kl, k2. k3. k4 < 1゜kl
+ k2 + k3 + k4 = 1...
(6) For example, kl-, 2=, 3=, 4=', and in other cases. Each value of 1 to 4 is appropriately set so as to obtain a suitable result in the image binarization process.

たとえば、IIJ調データのビット数r=8の場合を想
定すると、第1階調データS1は0〜255の各値を取
り、その値が大きい程対応する画素の濃淡は白く、小さ
いほど黒いことを表す。
For example, assuming that the number of bits of IIJ tone data is r = 8, the first tone data S1 takes values from 0 to 255, and the larger the value, the whiter the shade of the corresponding pixel, and the smaller the value, the blacker. represents.

誤差計算の簡単化のために、第1階調データS1の最小
値を黒画素に対応する0に、最大値を白画素に対応する
256に設定すると、この第1階調データS1を2値デ
ータD1に2′値化することは、この第1階調データS
1の値を前記O(黒画素)または256(白画素)と見
なして判定することに相当する。したがって、このよう
な判定には誤差が生じる。
To simplify error calculation, if the minimum value of the first gradation data S1 is set to 0, which corresponds to a black pixel, and the maximum value is set to 256, which corresponds to a white pixel, this first gradation data S1 is converted into a binary value. Converting the data D1 into 2' values means that the first gradation data S
This corresponds to making a determination by regarding a value of 1 as O (black pixel) or 256 (white pixel). Therefore, an error occurs in such a determination.

すなわち、10進数表示で階調データS−200のとき
に、白画素(階調データ5=256)と判定することは
、その差56だけ白画素側に判断されており、階調デー
タ5=100のときに黒画素(階調データ520)と判
定することは、その差100だけ黒画素側に判断された
ことになる。
In other words, when the gradation data is S-200 in decimal notation, determining it as a white pixel (gradation data 5 = 256) means that the difference of 56 is determined to be on the white pixel side, and the gradation data 5 = If the pixel is determined to be a black pixel (gradation data 520) when the value is 100, it means that the pixel is determined to be a black pixel by the difference of 100.

そこで誤差拡散法では、上述した2値化判定において発
生する前記誤差を次の画素の2値化判定において加味し
て、次の注目画素の2値化の際には、この注目画素近傍
の画素において発生した前記誤差を予め定められる重み
付け(kl、に2.に3゜k4)で繰込んで2値化判定
を行う。
Therefore, in the error diffusion method, the error occurring in the binarization judgment described above is taken into account in the binarization judgment of the next pixel, and when the next pixel of interest is binarized, the pixels near this pixel of interest are Binarization determination is performed by incorporating the error generated in the above with predetermined weighting (kl, 2., 3°k4).

階調データのビット数r=8の場合には、前記定数R=
2’ =256である。予め閾値設定回路39に設定さ
れる閾値レベルS hによって、5i=0101010
1.zl=85 のときに、Di=rQ」、すなわち白画素と判定された
場合には、 誤差ei=Si−R =85−256=−171 ”=1010101  、z+ に設定される。
When the number of bits of gradation data r=8, the constant R=
2'=256. 5i=0101010 by the threshold level Sh set in advance in the threshold setting circuit 39
1. When zl=85, if Di=rQ'', that is, it is determined to be a white pixel, the error ei=Si-R=85-256=-171''=1010101, z+ is set.

一方、 5i=010101011z、=85 のときに、Di=rl」、すなわち黒画素と判定された
J%会には、 誤差ei=Si =85=001010101山 に設定される。
On the other hand, when 5i=010101011z,=85, the error ei=Si=85=001010101 is set for the J% group determined to be a black pixel, that is, Di=rl.

ここで、2進数表示された上記誤差eiにおいて、その
最上位ビット(M S B )は、10進数表示におけ
る正の値を「0」、負の値を「1」でそれぞれ表してい
る。
Here, in the error ei expressed in binary notation, the most significant bit (M S B ) represents a positive value in decimal notation as "0" and a negative value as "1".

このような第4式に従う誤差計算を実現する誤差計算回
路40〜43は、第6図に示される簡単な回路構成で実
現することができる。ここで、Si (r−1)、 S
i (r−2)、=−、Si (0)は、第1階調デー
タSiの各ビット毎の信号を最上位ビット(MSB)側
から最下位ビット(LSB)までをそれぞれ示し、誤差
ei (r)、ei(r−1) 、 ei (r−2>
、・・・、ei(0)は、各ビット毎の誤差eiを最上
位ビットから最下位ビットまで示すものである。
The error calculation circuits 40 to 43 that realize error calculation according to the fourth equation can be realized with a simple circuit configuration shown in FIG. 6. Here, Si (r-1), S
i (r-2), =-, Si (0) indicates the signal for each bit of the first gradation data Si from the most significant bit (MSB) side to the least significant bit (LSB), and the error ei (r), ei (r-1), ei (r-2>
, ..., ei(0) indicates the error ei for each bit from the most significant bit to the least significant bit.

第1の2値データDiは、反転バッファN1を介して誤
差信号ei(r>として導出され、第1階調データSi
 (r−1) 〜Si (0)は、それぞれバッフyB
r−1,Br−2,−,BOを介して誤差信号ei (
r−1)〜ei(0)として導出される。
The first binary data Di is derived as an error signal ei (r>) via an inversion buffer N1, and the first gradation data Si
(r-1) ~Si (0) are each buffer yB
The error signal ei (
r-1) to ei(0).

このように本実施例によれば、誤差拡散回路26におけ
る誤差計算回路40〜43は、第6図に示されるように
比較的簡単な回路構成によって実現することができる。
As described above, according to this embodiment, the error calculation circuits 40 to 43 in the error diffusion circuit 26 can be realized with a relatively simple circuit configuration as shown in FIG.

また、誤差e8〜eoを演算する際に必要となる第1階
調データ5A−811および第1の2値データDA〜D
0は、入力される第1画像データS1から最終的な2値
出力である第2の2値データD2を作成するために、画
像処理回路20に設けられるMTF補正手段25および
圧縮処理回路27から与えられるので、第80に示され
る従来の誤差計算のように、誤差ei (i=A、B、
C,D)をラインバッファメモリ11にストアする必要
がなく、したがって誤差格納用ラインバッファメモリ1
1を省略することができ、画像処理装置20のコスト低
減が図られる。
In addition, the first gradation data 5A-811 and the first binary data DA to D are required when calculating the errors e8 to eo.
0 is from the MTF correction means 25 and the compression processing circuit 27 provided in the image processing circuit 20 in order to create the second binary data D2 which is the final binary output from the input first image data S1. Therefore, as in the conventional error calculation shown in No. 80, the error ei (i=A, B,
C, D) need not be stored in the line buffer memory 11, and therefore the error storage line buffer memory 1
1 can be omitted, and the cost of the image processing device 20 can be reduced.

上記実施例では、M T F補正手段25および圧縮処
理回路27から第1階調データsA□−,s、および第
1の2値データDA〜D、を導出して利用するようにし
たけれども、その他にも画像処理装置20に備えられ、
たとえば1画素単位でその凹凸を除去して抑えるように
する、いわゆるスノ、−ジング処理回路などのバッファ
メモリから導出した第1の2値データDA−Doなどを
利用するようにしてもよい。
In the above embodiment, the first gradation data sA□-, s and the first binary data DA to D are derived and used from the MTF correction means 25 and the compression processing circuit 27. In addition, the image processing device 20 is equipped with
For example, first binary data DA-Do derived from a buffer memory such as a so-called smearing processing circuit that removes and suppresses unevenness on a pixel-by-pixel basis may be used.

また本実施例では、誤差拡散法において演算される誤差
Eを、注目画素近傍の4−)の各画素における誤差の重
み付は加算値として算出したけれども、この誤差演算の
対象領域を前記4画素以上に拡張して誤差Eを演算する
ようにしてもよい。
In addition, in this embodiment, the error E calculated in the error diffusion method is calculated as an addition value with the weighting of the error in each pixel of 4-) near the pixel of interest, but the target area of this error calculation is The error E may be calculated by expanding the above method.

発明の効果 本発明によれば、画像信号補正手段およびデータ圧縮手
段を備える画像処理装置において、誤差拡散手段は、画
像信号補正手段からの第1画像信号およびデータ圧縮手
段からの第1の2値データに応答して、誤差拡散法を実
現すべく第2画像信号の補正を行った後にそのレベル弁
別を行うようにしたので、記憶手段や遅延手段などの部
品点数が削減され、回路構成が簡単化し、画像処理装置
のコストが低減する。
Effects of the Invention According to the present invention, in an image processing apparatus including an image signal correction means and a data compression means, the error diffusion means converts the first image signal from the image signal correction means and the first binary value from the data compression means. In response to the data, the level discrimination is performed after correcting the second image signal to realize the error diffusion method, which reduces the number of components such as storage means and delay means, and simplifies the circuit configuration. , reducing the cost of image processing devices.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例である画像処理装置20の基
本的構成を簡略化して示すブロック図、第2図はMTF
補正手段25の構成を示すブロック図、第3図は誤差拡
散回路26の構成を示すブロック図、第4図は圧縮処理
回路27の構成を示すブロック図、第5図は各画素の階
調データ、2値データおよび誤差の対応関係を示す図、
第6図は誤差計算回路40〜43の一実施例を示すブロ
ック図、第7図は従来の2値化処理の構成を示すブロッ
ク図、第8図は誤差拡散法を実現する従来の典型的な回
路構成を示すブロック図である。
FIG. 1 is a block diagram showing a simplified basic configuration of an image processing device 20 which is an embodiment of the present invention, and FIG. 2 is a block diagram showing an MTF.
FIG. 3 is a block diagram showing the configuration of the error diffusion circuit 26, FIG. 4 is a block diagram showing the configuration of the compression processing circuit 27, and FIG. 5 shows the gradation data of each pixel. , a diagram showing the correspondence between binary data and errors,
FIG. 6 is a block diagram showing an embodiment of the error calculation circuits 40 to 43, FIG. 7 is a block diagram showing the configuration of conventional binarization processing, and FIG. 8 is a conventional typical example for realizing the error diffusion method. FIG. 2 is a block diagram showing a circuit configuration.

Claims (1)

【特許請求の範囲】 画素毎の濃淡を表す第1画像信号を画素毎に順次的に発
生する画像信号発生手段と、 画像信号発生手段の出力に応答し、コントラストを向上
させるための補正を施した第2画像信号と、この第2画
像信号に対応する画素近傍の画素に対応する第1画像信
号とを導出する画像信号補正手段と、 画像信号補正手段からの各出力および入力される第1の
2値データに応答し、第2画像信号のレベルと予め定め
られる弁別レベルとの偏差が大きい程、偏差が大きい画
素近傍の画素の前記偏差が小さくなるように第2画像信
号を補正してレベル弁別し、第1画像信号の第1の2値
データを得る誤差拡散手段と、 誤差拡散手段からの出力に応答し、第1の2値データの
圧縮処理を行い、第1画像信号の第2の2値データを得
るとともに、この第2の2値データに対応する画素近傍
の画素に対応する第1の2値データを前記誤差拡散手段
に与えるデータ圧縮手段とを含むことを特徴とする画像
処理装置。
[Scope of Claims] Image signal generation means for sequentially generating a first image signal representing the density of each pixel for each pixel; and correction for improving contrast in response to the output of the image signal generation means. an image signal correcting means for deriving a second image signal obtained by inputting a second image signal and a first image signal corresponding to a pixel in the vicinity of the pixel corresponding to the second image signal; In response to the binary data, the second image signal is corrected so that the larger the deviation between the level of the second image signal and the predetermined discrimination level, the smaller the deviation of the pixels in the vicinity of the pixel with the larger deviation. error diffusion means for level discriminating and obtaining first binary data of the first image signal; and responsive to the output from the error diffusion means, compressing the first binary data and and data compression means for obtaining two binary data and providing first binary data corresponding to a pixel in the vicinity of the pixel corresponding to the second binary data to the error diffusion means. Image processing device.
JP1275601A 1989-10-23 1989-10-23 Image processing device Expired - Fee Related JP2527482B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP1275601A JP2527482B2 (en) 1989-10-23 1989-10-23 Image processing device
CA002028092A CA2028092C (en) 1989-10-23 1990-10-19 Binary image processing apparatus
EP90120248A EP0424854B1 (en) 1989-10-23 1990-10-22 Image processing apparatus for binarizing halftone image data by using an adaptive threshold
DE69027506T DE69027506T2 (en) 1989-10-23 1990-10-22 Image processing device with adaptive decision threshold for generating binary data from halftone image data
US07/859,857 US5448656A (en) 1989-10-23 1992-03-30 Binary image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1275601A JP2527482B2 (en) 1989-10-23 1989-10-23 Image processing device

Publications (2)

Publication Number Publication Date
JPH03136574A true JPH03136574A (en) 1991-06-11
JP2527482B2 JP2527482B2 (en) 1996-08-21

Family

ID=17557716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1275601A Expired - Fee Related JP2527482B2 (en) 1989-10-23 1989-10-23 Image processing device

Country Status (1)

Country Link
JP (1) JP2527482B2 (en)

Also Published As

Publication number Publication date
JP2527482B2 (en) 1996-08-21

Similar Documents

Publication Publication Date Title
US4817174A (en) Image processing apparatus
JPH0254683A (en) Picture scanner and its correction method
JPS62118676A (en) Picture processing system
JP3031994B2 (en) Image processing device
JP3014252B2 (en) Image processing method and image processing apparatus
US5448656A (en) Binary image processing apparatus
JP2000134483A (en) Image reader
JPS60230767A (en) Binarizing system of picture signal
KR960014313B1 (en) Image signal processing apparatus
JPH04293359A (en) Picture reader
JPH03136574A (en) Picture processing unit
JP4340503B2 (en) Document reader
JP2610696B2 (en) Image signal processing device
KR930002691B1 (en) Fax device and method
JP3006460B2 (en) Binary image processing device
JP3136671B2 (en) Image reading device
JP3264997B2 (en) Image input device
JP2904258B2 (en) Shading correction method
JP3226534B2 (en) Document reading device
KR960012550B1 (en) Shading compensation apparatus of image
JP3476605B2 (en) Image processing device
JP3291015B2 (en) Image processing device
JPS6243972A (en) Binarization circuit for picture signal in facsimile equipment
JPH0630274A (en) Image processor
JPH01170271A (en) Picture correcting method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees