JP2667860B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus

Info

Publication number
JP2667860B2
JP2667860B2 JP63043115A JP4311588A JP2667860B2 JP 2667860 B2 JP2667860 B2 JP 2667860B2 JP 63043115 A JP63043115 A JP 63043115A JP 4311588 A JP4311588 A JP 4311588A JP 2667860 B2 JP2667860 B2 JP 2667860B2
Authority
JP
Japan
Prior art keywords
data
binarization
circuit
density
encoding
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
JP63043115A
Other languages
Japanese (ja)
Other versions
JPH01218172A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63043115A priority Critical patent/JP2667860B2/en
Priority to US07/289,017 priority patent/US4975786A/en
Priority to DE3844828A priority patent/DE3844828C2/en
Priority to DE19883844041 priority patent/DE3844041C2/en
Publication of JPH01218172A publication Critical patent/JPH01218172A/en
Application granted granted Critical
Publication of JP2667860B2 publication Critical patent/JP2667860B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像データを量子化する画像処理方法及び装
置に関し、さらに詳しくは誤差拡散法等の濃度保存型の
量子化方法により量子化を行う画像処理方法及び装置に
関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus for quantizing image data, and more particularly to performing quantization by a density-conserving quantization method such as an error diffusion method. The present invention relates to an image processing method and apparatus.

〔従来の技術〕[Conventional technology]

従来より、デジタル複写機、デジタルスキヤナー等の
装置においては、中間調画像を2値画像によって再現す
るための様々な画像処理方法が知られている。この中の
1つの画像処理方法として誤差拡散法がある。この方法
は、読取装置によって読取られた原稿の画像濃度とプリ
ンタから出力される出力画像濃度との画素毎の濃度差
(誤差データ)を演算し、この演算結果である誤差デー
タを二値化処理前の周辺画素に特定の重みづけを施して
分散させていく方法である。
2. Description of the Related Art Conventionally, in an apparatus such as a digital copying machine and a digital scanner, various image processing methods for reproducing a halftone image by a binary image have been known. One of the image processing methods is an error diffusion method. This method calculates a density difference (error data) for each pixel between the image density of a document read by a reading device and the output image density output from a printer, and binarizes the error data as the calculation result. This is a method in which specific weighting is applied to the preceding peripheral pixels to disperse them.

この方法は原画濃度と出力濃度との誤差データを空間
的に清算していくので、他の画像処理方法であるデイザ
処理の様にマトリツクスサイズによる階調数の制約はな
く、原稿濃度に忠実な出力画像を再現することができ
る。又、この誤差拡散法はデイザ処理で問題となってい
る階調性と解像度の両立を可能としている。
Since this method spatially corrects the error data between the original image density and the output density, there is no restriction on the number of gradations due to the matrix size as in the other image processing methods such as dither processing, and the original density is faithful. Output image can be reproduced. Further, this error diffusion method makes it possible to achieve both gradation and resolution, which are problems in dither processing.

この誤差拡散法に関しては文献P.W.Floyd and L.Stei
nberg“An Adaptive Algorihm for Spatial Gray Scal
e"SID75 Digest(1976)で発表がなされている。
Regarding this error diffusion method, refer to PWFloyd and L. Stei
nberg “An Adaptive Algorihm for Spatial Gray Scal
Published in e "SID75 Digest (1976).

〔発明が解決しようとしている問題点〕[Problems to be solved by the invention]

しかしながら、上述の誤差拡散法では例えば読取装置
によって読取った輝度データを画素毎に6bitの濃度デー
タ(0(白)〜63(黒))に量子化し、量子化された濃
度データを誤差拡散法により2値化する場合、例えば濃
度レベル1のデータが均一に分布していると、この1を
2値化した場合の出力データ0と濃度データ1の誤差が
逐次周辺画素に加算されてしまい、加算された画素値が
2値化の閾値を越えると黒点が出力されてしまうという
欠点があった。
However, in the error diffusion method described above, for example, the luminance data read by the reading device is quantized into 6-bit density data (0 (white) to 63 (black)) for each pixel, and the quantized density data is quantized by the error diffusion method. In the case of binarization, for example, if data of density level 1 is uniformly distributed, an error between output data 0 and density data 1 when binarizing this 1 is sequentially added to neighboring pixels. There is a drawback that black dots are output when the generated pixel value exceeds the threshold for binarization.

つまり濃度レベル1が均一に分布している部分は人間
の目では全白に見えるにもかかわらず前述の黒点が発生
することにより白地の部分に粒状性ノイズが生ずること
になる。そしてこのハイコントラスト部分での粒状性ノ
イズによって画像品位が低下してしまう。
In other words, although the portion where the density level 1 is uniformly distributed looks all white to human eyes, the above-described black spots cause graininess noise in the white portion. Then, the image quality deteriorates due to the granularity noise in the high contrast portion.

又、全白画像を読み込んでもADコンバータのダイナミ
ツクレンジに対して、CCDからのビデオ信号が小さい
と、全白でもある程度の数値がADコンバータより出力さ
れ、前述の場合と同様に粒状性ノイズが発生し、画像の
品位が低下してしまう。
Also, even if you read an all-white image, if the video signal from the CCD is small against the dynamic range of the AD converter, a certain number of values will be output from the AD converter even with all-white, and graininess noise will occur as in the case above. And the quality of the image is degraded.

又、全白画像にも関わらず、粒状性ノイズ(黒点)が
発生することにより、符号化効率をも低下させてしまう
といった欠点があった。
In addition, there is a disadvantage that, despite the all-white image, the generation of graininess noise (black point) also lowers the encoding efficiency.

〔問題点を解決するための手段及び作用〕 本発明の画像処理方法によれば、入力画像濃度データ
が白と判断されると濃度保存型の2値化処理方法の2値
化出力に関わらず入力画像濃度データの2値化出力を白
とし、その後2値合処理されたデータを符号化するもの
であり、又、入力画像濃度データが所定の値以下ならば
濃度保存型の2値化処理方法における入力画像濃度と2
値化処理後の出力画像濃度との誤差を0にし、その後2
値化処理されたデータを符号化するものである。
[Means and Actions for Solving Problems] According to the image processing method of the present invention, when the input image density data is judged to be white, regardless of the binarized output of the density storage type binarization processing method. The binarized output of the input image density data is set to white, and then the binarized data is encoded. If the input image density data is equal to or less than a predetermined value, a density preserving type binarization process is performed. Image density and 2 in the method
The error from the output image density after the binarization process is set to 0, and then 2
It encodes the data that has been subjected to the value processing.

又、本発明の画像処理装置によれば、画像データを誤
差拡散法により2値化処理する第1の2値化手段と、上
記画像データを所定の閾値で、2値化処理する第2の2
値化手段と、2値化処理された2値データを符号化する
符号化手段と、上記第1及び第2の2値化手段の2値化
処理の結果に基づき最終的な2値データを決定する決定
手段とを有し、上記決定手段は第2の2値化手段によっ
て上記画像データが白と2値化されると上記第1の2値
化手段の2値化結果に関わらず最終的な2値データを白
と決定し、上記第2の2値化手段によって上記画像デー
タが黒と2値化されると上記第1の2値化手段の2値化
結果を最終的な2値データの値と決定し、上記符号化手
段は上記決定手段により最終的に決定された2値データ
を符号化するものである。
According to the image processing apparatus of the present invention, the first binarizing means for binarizing the image data by the error diffusion method, and the second binarizing means for binarizing the image data with a predetermined threshold value 2
Binarizing means, encoding means for encoding the binarized binary data, and final binary data based on a result of the binarizing processing of the first and second binarizing means. Determining means for determining, when the image data is binarized to white by the second binarizing means, irrespective of the binarization result of the first binarizing means. The binary data is determined to be white, and when the image data is binarized to black by the second binarization unit, the binarization result of the first binarization unit is converted to a final binarization result. The encoding means determines the value of the value data, and the encoding means encodes the binary data finally determined by the determining means.

本発明はこれらの構成により、画像のハイライト部分
での粒状性ノイズを除去し、符号化効率を向上させるこ
とを目的とする。
It is an object of the present invention to improve the coding efficiency by removing the granular noise in the highlight part of the image by these configurations.

〔実施例〕〔Example〕

以下、図面を参照し本発明の一実施例を詳細に説明す
る。第1図は本発明を適用したフアクシミリ装置のブロ
ツク図である。
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram of a facsimile apparatus to which the present invention is applied.

第1図に於いて、1は電話回線1aと電話機2、データ
通信装置側のハイブリツト回路3との接続制御及びルー
プの保持を行う網制御装置NCU(Network Control Uni
t)である。
In FIG. 1, reference numeral 1 denotes a network control unit NCU (Network Control Uni) for controlling connection between a telephone line 1a, a telephone set 2 and a hybrid circuit 3 on a data communication device side and holding a loop.
t).

2は電話機である。 2 is a telephone.

3は送信系の信号と受信系の信号を分離するハイブリ
ツド回路である。ハイブリツド回路3では信号線3bから
の送信信号は信号線1c,NCU1を介して、電話回線に送出
し、また相手側から送られてきた信号はNCU1,信号線1c
を介して信号線3aに出力する。
Reference numeral 3 denotes a hybrid circuit for separating a signal of a transmission system and a signal of a reception system. In the hybrid circuit 3, the transmission signal from the signal line 3b is transmitted to the telephone line via the signal line 1c and the NCU 1, and the signal transmitted from the other party is transmitted to the NCU 1 and the signal line 1c.
To the signal line 3a via the

6は読取・二値化回路であり、送信原稿より、主走査
方向1ライン分の画信号を順次読取り、誤差拡散法によ
り白、黒の2値を表わす信号列を作成する。この読取・
2値化回路はCCD(電荷結合素子)等の撮像素子と光学
系及び読取られた輝度データを濃度データに変換し、誤
差拡散法で2値化を行なう2値化回路より構成される。
尚、2値化回路については後で詳細に説明する。白黒の
2値化された信号列は、信号線6aに出力される。
Reference numeral 6 denotes a reading / binarization circuit which sequentially reads image signals for one line in the main scanning direction from a transmission original and creates a signal sequence representing white and black values by an error diffusion method. This reading
The binarization circuit includes an image sensor such as a CCD (Charge Coupled Device), an optical system, and a binarization circuit which converts read luminance data into density data and binarizes the data by an error diffusion method.
The binarization circuit will be described later in detail. The black and white binarized signal sequence is output to the signal line 6a.

5は、信号線6aに出力された2値化データを入力し、
符号化(MH(モデイフアイド ハフマン)符号化又はMR
(モデイフアイド リード)符号化)したデータを信号
線5aに出力する符号化回路である。
5 inputs the binarized data output to the signal line 6a,
Encoding (MH (Modified Eye Huffman) encoding or MR
This is an encoding circuit that outputs (modified read) encoded data to the signal line 5a.

4は、公知のCCITT勧告V27ter(差動位相変調)又はV
29(直交変調)に基づいた変調を行う変調器である。変
調器4は信号線5aの信号を入力し変調を行い、変調デー
タを信号線3bに出力する。
4 is a known CCITT recommendation V27ter (differential phase modulation) or V
This is a modulator that performs modulation based on 29 (quadrature modulation). The modulator 4 receives the signal on the signal line 5a, modulates the signal, and outputs modulated data to the signal line 3b.

7は公知のCCITT勧告V27ter又はV29に基づいた復調を
行う復調器である。復調器7は信号線3aの信号を入力
し、復調を行い、復調データを信号線7aに出力する。
Reference numeral 7 denotes a demodulator that performs demodulation based on the known CCITT recommendation V27ter or V29. The demodulator 7 receives the signal on the signal line 3a, performs demodulation, and outputs demodulated data to the signal line 7a.

8は信号線7aからの復調データを入力し復号化(MH復
号化又はMR復号化)したデータを信号線8aに出力する復
号化回路である。
Reference numeral 8 denotes a decoding circuit which receives demodulated data from the signal line 7a and outputs the decoded data (MH decoding or MR decoding) to the signal line 8a.

9は信号線8aに出力されている信号を入力し、順次1
ライン毎に記録を行う記録回路である。
9 inputs the signal output to the signal line 8a, and sequentially 1
This is a recording circuit that performs recording for each line.

次に、第1図の符号化回路5に於ける一例としてMH符
号化方式について説明する。
Next, the MH coding method will be described as an example in the coding circuit 5 of FIG.

読取・2値化回路6からの走査線1ラインの信号列
は、第2図に示すように白い部分、黒い部分と交互に分
けることができる。第2図ではA,C,Eが白、B,Dが黒の部
分である。この白,黒それぞれの部分の画素数をランレ
ングスという。
The signal line of one scanning line from the reading / binarization circuit 6 can be alternately divided into a white portion and a black portion as shown in FIG. In FIG. 2, A, C, and E are white portions, and B and D are black portions. The number of pixels in each of the white and black portions is called run length.

このA〜Eの色(白又は黒)とランレングスを符号化
し、画情報を圧縮した後、変調器4へ送られる。符号化
するときには、それぞれのランをハフマン符号で符号化
する。ハフマン符号はターミネイテイング符号とメイク
アツプ符号から出来ている。
The colors (white or black) of A to E and the run length are encoded, and the image information is compressed and then sent to the modulator 4. When encoding, each run is encoded with a Huffman code. The Huffman code consists of a terminating code and a make-up code.

ハフマン符号では、同色のランが長いほど圧縮率は向
上する。最も符号化効率の悪い、即ち圧縮率の低いパタ
ーンは、黒と白が交互に出現する場合である。つまり、
原稿の全白の部分で粒状性ノイズが発生すると符号化効
率は著しく低下する。従って、全白部分は全白情報とし
て読取ることが必要である。
In the Huffman code, the longer the run of the same color, the higher the compression ratio. The pattern with the lowest encoding efficiency, that is, the pattern with the lowest compression ratio is a case where black and white appear alternately. That is,
If graininess noise occurs in all white portions of the document, the coding efficiency is significantly reduced. Therefore, it is necessary to read the all-white portion as all-white information.

第3図は第1図の読取・2値化回路の詳細を示したハ
ード構成図である。
FIG. 3 is a hardware configuration diagram showing details of the read / binarization circuit of FIG.

以下、第3図を用い誤差拡散法による2値化処理を説
明する。
The binarization process by the error diffusion method will be described below with reference to FIG.

10は原稿を読みとる入力センサ部、11はAD変換器、12
はシエーデイング補正等を行う補正回路、13は輝度デー
タから濃度データに変換を行う変換テーブル、14はコン
パレータ、15は原画素の濃度に誤差値を加える誤差補正
回路、16は多値データを2値データに変換する2値化回
路、17は誤差の計算を行う誤差演算回路、18はアンド回
路、5は第1図の符号化回路5と同一である。
10 is an input sensor unit for reading a document, 11 is an AD converter, 12
Is a correction circuit for performing shading correction, etc., 13 is a conversion table for converting luminance data into density data, 14 is a comparator, 15 is an error correction circuit that adds an error value to the density of the original pixel, and 16 is binary data. A binarization circuit for converting to data, 17 is an error calculation circuit for calculating an error, 18 is an AND circuit, and 5 is the same as the encoding circuit 5 in FIG.

以下、この第3図をもとに本実施例を説明する。 Hereinafter, this embodiment will be described with reference to FIG.

入力センサ部10はCCD等の光電変換素子およびこれを
走査する駆動装置より構成され原稿の読取り走査を行
う。入力センサ部10で読取られた画像データはAD変換器
11に送られる。ここで各画素を例えば6bitのデジタルデ
ータに変換し64段階の階調数をもつデータに量子化す
る。次に補正回路12において、CCDの感度むら、光源の
配光特性を補正するため、シエーデイング歪補正を行
う。ここでのデータは輝度データ(0(黒)〜63
(白))であり、この輝度データを濃度データに変換す
るため、データを変換テーブル13に入力する。
The input sensor unit 10 includes a photoelectric conversion element such as a CCD and a driving device for scanning the same, and performs scanning of a document. The image data read by the input sensor unit 10 is an AD converter
Sent to 11. Here, each pixel is converted into, for example, 6-bit digital data and quantized into data having 64 gradation levels. Next, in the correction circuit 12, shading distortion correction is performed to correct the sensitivity unevenness of the CCD and the light distribution characteristics of the light source. The data here is luminance data (0 (black) to 63
(White)), and the data is input to the conversion table 13 in order to convert this luminance data into density data.

変換テーブルにROMを用いた例を第4図に示す。第4
図のROMには輝度データを入力データとして、濃度デー
タを出力データとする内容が書き込まれている。第5図
に変換テーブルの入出力対応表を示す。即ち、第4図の
ROMのアドレスA0〜A5に補正回路12からの輝度データを
入力する。そして第5図の入力−出力対応表に基づいた
濃度データが出力データとして第4図のより
誤差補正回路15へ出力される。
FIG. 4 shows an example in which a ROM is used for the conversion table. 4th
The ROM shown in FIG. 2 is written with luminance data as input data and density data as output data. FIG. 5 shows an input / output correspondence table of the conversion table. That is, in FIG.
The luminance data from the correction circuit 12 is input to the addresses A0 to A5 of the ROM. Then, density data based on the input-output correspondence table of FIG. 5 is output to the error correction circuit 15 from 0-5 of FIG. 4 as output data.

次に誤差補正回路15以降で行なわれる2値化処理を説
明する。
Next, the binarization process performed by the error correction circuit 15 and thereafter will be described.

誤差補正回路15では変換テーブル13の出力データX
i,jに誤差演算回路17において計算した誤差データEi,j
を加える。ここで添字i,jはjライン目のi番目の画素
データを示す。誤差補正回路の出力データをZi,jとす
ると Zi,j=Xi,j+Ei,j と表わせる。
In the error correction circuit 15, the output data X of the conversion table 13 is output.
i, the error data E i calculated in the error calculation circuit 17 to j, j
Add. Here, the subscripts i and j indicate the i-th pixel data on the j-th line. The output data of the error correction circuit Z i, when the j Z i, j = X i , j + E i, j and expressed.

i,jは2値化回路16に送られ、ここでZi,jを閾値TH
と比較して、2値に変換する。即ち、 Zi,jTH…Pi,j=63 Zi,j<TH…Pi,j=0 である。但し、Pi,jは2値化データ。
Z i, j is sent to the binarization circuit 16, where Z i, j is set to a threshold value TH.
Is converted to binary. That is, Z i, j TH... P i, j = 63 Z i, j <TH... P i, j = 0. Here, P i, j is binary data.

又Zi,jは誤差演算回路17にも送られ誤差の演算が実
行される。
Further, Z i, j is also sent to the error calculation circuit 17 to calculate the error.

即ち、Zi,jが閾値THより大きい場合 αi,j=(63−Zi,j)/10 Zi,jが閾値THより小さい場合 αi,j=(Zi,j/10) の演算が行なわれる。That is, when Z i, j is larger than the threshold TH, α i, j = (63−Z i, j ) / 10 When Z i, j is smaller than the threshold TH, α i, j = (Z i, j / 10) Is performed.

さらにαi,jは第6図に示す誤差マトリクスによって
重み付けされ誤差値Ei,jとして、誤差補正回路35にフ
イードバツクされる。誤差補正回路15からの出力Zi,j
は2値化回路16で閾値THと比較され、1,0の2値信号が
アンド回路18へ送られる。
Further, α i, j is weighted by an error matrix shown in FIG. 6 and fed back to the error correction circuit 35 as an error value E i, j . The output Z i, j from the error correction circuit 15
Is compared with a threshold value TH in a binarizing circuit 16, and a binary signal of 1,0 is sent to an AND circuit 18.

一方、Xi,jはコンパレータ14によってあらかじめ設
定してある値と比較される。この設定値はXi,jがこの
値以下であれば全白の画素とみなす閾値例えば3とか4
である。Xi,jがこの閾値以下であるならコンパレータ1
4より▲▼=0の信号をアンド回路18へ出力す
る。アンド回路18ではコンパレータからの出力が0であ
れば2値化回路16の出力信号に関わらず0を符号化回路
5に出力する。
On the other hand, X i, j is compared by a comparator 14 with a preset value. This set value is a threshold value, such as 3 or 4, for determining that all pixels are white if X i, j is less than or equal to this value.
It is. If X i, j is below this threshold, comparator 1
The signal of ▲ ▼ = 0 from 4 is output to the AND circuit 18. If the output from the comparator is 0, the AND circuit 18 outputs 0 to the encoding circuit 5 regardless of the output signal of the binarization circuit 16.

符号化回路5ではアンド回路18からの出力に基づきMH
又はMR方式による符号化が行なわれる。この符号化回路
5における符号化はハイライト部では効率よく行なうこ
とができる。つまり、所定濃度以下の濃度データは、誤
差拡散法の2値出力に関わらず0として2値化処理する
ことにより、実際に画素の濃度が低くても、誤差データ
によって閾値を越えてしまうことを防止でき、ハイライ
ト部での粒状性ノイズを防止できるためである。
In the encoding circuit 5, based on the output from the AND circuit 18, MH
Alternatively, encoding by the MR method is performed. The encoding in the encoding circuit 5 can be performed efficiently in the highlight portion. In other words, the density data below the predetermined density is subjected to the binarization process by setting it to 0 irrespective of the binary output of the error diffusion method, so that even if the density of the pixel is actually low, the error data exceeds the threshold value. This is because the noise can be prevented and the granular noise in the highlight portion can be prevented.

尚、符号化回路5は符号化のためアンド回路18からの
2値データを少なくとも1ライン分格納きるラインバツ
フアを有している。
The encoding circuit 5 has a line buffer for storing at least one line of binary data from the AND circuit 18 for encoding.

この様に、前述の実施例によれば、誤差拡散法で処理
する画素濃度がある一定値以下ならば、その画素を誤差
拡散法の2値出力に関わらず白として出力することで、
ハイコントラスト部分の粒状性ノイズを除去することが
可能となり、画像品位を向上させる効果がある。しか
も、粒状性ノイズを除去したことから、符号化の効率も
向上することができる。
As described above, according to the above-described embodiment, if the pixel density processed by the error diffusion method is equal to or less than a certain value, the pixel is output as white regardless of the binary output of the error diffusion method.
It is possible to remove the graininess noise in the high contrast portion, which has the effect of improving the image quality. In addition, since the granular noise has been removed, the coding efficiency can be improved.

次に第1図の読取・2値化回路の他の実施例を第7図
により説明する。
Next, another embodiment of the reading / binarizing circuit of FIG. 1 will be described with reference to FIG.

101は原稿を読みとる入力センサ部、102はAD変換器、
103はシエーデイング歪補正等を行う補正回路、104は輝
度データから濃度データに変換を行う変換テーブル、10
5はコンパレータ、106は原画素の濃度に誤差値を加える
誤差補正回路、107は多値データを閾値によって2値デ
ータに変換する2値化回路、5は符号化回路、109は誤
差データを演算する減算回路、110は誤差として0を出
力する回路、111は109と110を選択するスイツチ、112は
メモリ114等の制御を行うコントロール回路、113は重み
付けを行う回路、114はメモリ、115は加算回路である。
101 is an input sensor for reading the original, 102 is an AD converter,
103 is a correction circuit that performs shading distortion correction, and 104 is a conversion table that converts luminance data to density data.
5 is a comparator, 106 is an error correction circuit that adds an error value to the density of the original pixel, 107 is a binarization circuit that converts multivalued data into binary data by using a threshold value, 5 is an encoding circuit, and 109 is an error data operation 110 is a circuit that outputs 0 as an error, 111 is a switch that selects 109 and 110, 112 is a control circuit that controls the memory 114 and the like, 113 is a circuit that performs weighting, 114 is a memory, and 115 is an addition circuit. Circuit.

入力センサ部101はCCD等の光電変換素子およびこれを
走査する駆動装置より構成され、原稿の読取り走査を行
う。入力センサ部101で読取られた画像データはAD変換
器102に送られる。ここで各画素を例えば6bitのデジタ
ルデータに変換し64段階の階調数をもつデータに量子化
する。次に補正回路103において、CCDの感度むら、光源
の配光特性を補正するため、シエーデイング歪補正を行
う。ここでのデータは輝度データ(0(黒)〜63
(白))でありこの輝度データを濃度データに変換する
ため、輝度データを変換テーブル104に入力する。この
変換テーブルの値を第5図に示す。この変換処理は第6
図のROMを使用する。即ち、第6図のROMアドレスA0〜A5
に輝度データを入力し、第5図の変換テーブルに基づい
た出力データがROMの出力より出力される。
The input sensor unit 101 includes a photoelectric conversion element such as a CCD and a driving device for scanning the photoelectric conversion element, and performs scanning for reading a document. Image data read by the input sensor unit 101 is sent to the AD converter 102. Here, each pixel is converted into, for example, 6-bit digital data and quantized into data having 64 gradation levels. Next, in the correction circuit 103, shading distortion correction is performed to correct the sensitivity unevenness of the CCD and the light distribution characteristics of the light source. The data here is luminance data (0 (black) to 63
(White)), and the luminance data is input to the conversion table 104 in order to convert the luminance data into density data. FIG. 5 shows the values of this conversion table. This conversion process is the sixth
Use the ROM shown. That is, the ROM addresses A0 to A5 in FIG.
, And output data based on the conversion table shown in FIG. 5 is output from outputs 0 to 5 of the ROM.

尚、出力データXi,jは濃度データ(0(白)〜63
(黒))である。
The output data X i, j is the density data (0 (white) to 63
(Black)).

次に誤差補正回路106では変換テーブル104の出力デー
タXi,jに加算回路115の出力データi,jを加え、出力
i,jとする。ここで添字i,jはjライン目のi番目の画
素データを示す。即ち、誤差補正回路の出力データZ
i,jは以下の様に記述できる。
Then the output data X i of the error correction circuit 106 in the conversion table 104, the output data i of the adder circuit 115 j, a j addition, the output Z i, and j. Here, the subscripts i and j indicate the i-th pixel data on the j-th line. That is, the output data Z of the error correction circuit
i and j can be described as follows.

i,j=Xi,ji,ji,jは2値化回路107に送られ、Zi,jを閾値THと比
較して、2値データPi,jに変換する。即ち Zi,jTH…Pi,j=63 Zi,j<TH…Pi,j=0 次に誤差の演算を行うため、減算回路109によって誤
差補正回路の出力データZi,jより2値化回路の出力デ
ータPi,jを減じる。即ち減算回路109の出力データをE
i,jとすると Ei,j=Zi,j−Pi,j と記述できる。
Z i, j = X i, j + i, j Z i, j is sent to the binarization circuit 107, where Z i, j is compared with a threshold TH to convert it into binary data P i, j . That is, Z i, j TH... P i, j = 63 Z i, j <TH... P i, j = 0 Then, the subtraction circuit 109 calculates the error from the output data Z i, j of the error correction circuit. The output data P i, j of the binarization circuit is reduced. That is, the output data of the subtraction circuit 109 is
If i, j , it can be described as Ei , j = Zi , j- Pi , j .

i,jはスイツチ111に入力される。又、スイツチ111
の一方の入力は回路110からのものであり、回路110は常
に0を出力している。
E i, j is input to the switch 111. Also, switch 111
Is input from the circuit 110, and the circuit 110 always outputs 0.

スイツチ111は制御信号Si,jによって2つの入力デー
タより1つの入力データを選択して出力するものであ
る。制御信号Si,jはコンパレータ105より出力される。
濃度データXi,jが設定値BTHより小さい、つまり設定値
BTHより明るいのであれば、Si,jはHとなり、設定値BT
Hより大きいつまり設定値BTHより暗ければSi,jはLと
なる。そして、このSi,jによってSi,jがHならばスイ
ツチ111の出力データは回路110の出力信号が選択され、
i,jがLならばスイツチ111の出力データは回路109の
出力データが選択される。これは、入力データが閾値BT
H以下の明るさをもっていれば、人間の目に白と感じる
と、判断するものである。そこで、その様なハイコント
ラスト部分で強制的に誤差を0として、黒点を出力しな
い様にしている。
The switch 111 selects and outputs one input data from two input data according to the control signal S i, j . The control signal S i, j is output from the comparator 105.
The density data X i, j is smaller than the set value BTH, that is, the set value
If it is brighter than BTH, S i, j becomes H and the set value BT
If it is larger than H, that is, darker than the set value BTH, S i, j becomes L. Then, the S i, S by j i, j is the output data of H if switch 111 is the output signal of the circuit 110 is selected,
If S i, j is L, the output data of the switch 109 is selected as the output data of the switch 111. This is because the input data is
If the brightness is less than H, it is determined that the human eyes feel white. Therefore, the error is forcibly set to 0 in such a high contrast portion so as not to output a black point.

スイツチ111の出力データEi,j(誤差)は重み付け回
路113によって、空間的に誤差が拡散される。
The output data E i, j (error) of the switch 111 is spatially diffused by the weighting circuit 113.

重み付け回路113では第6図に示す誤差マトリクスに
よって重み付けをする。この誤差マトリクスではiライ
ン目と(j+1)ライン目に誤差を拡散することになる
ので、(j+1)ライン目に拡散するデータBi,jはメ
モリ114に記憶される。
The weighting circuit 113 performs weighting using the error matrix shown in FIG. In this error matrix, the error is diffused to the i-th line and the (j + 1) -th line, so that the data B i, j to be diffused to the (j + 1) -th line is stored in the memory 114.

そして、処理画素が次ラインに移行するとメモリ114
よりデータが読み出される。そして重み付け回路113で
算出した現在処理しているラインでの誤差Ai,jとMi,j
が加算回路115によって加えられ、誤差値i,jとして誤
差補正回路にフイードバツクする。
When the processing pixel shifts to the next line, the memory 114
The data is read out. Then, the errors A i, j and M i, j in the currently processed line calculated by the weighting circuit 113 are calculated.
Is added by the adder circuit 115, and is fed back to the error correction circuit as the error value i, j .

一方2値化回路107の出力信号Pi,jは符号化回路5に
送られ、出力信号Pi,jの値に応じて、MH又はMR方式に
よる符号化が行なわれる。
On the other hand, the output signal P i, j of the binarization circuit 107 is sent to the coding circuit 5, and the coding is performed by the MH or MR method according to the value of the output signal P i, j .

この符号化回路5における符号化はハイライト部では
効率よく行なうことができる。つまり、所定濃度以下の
濃度データは誤差拡散法における拡散誤差を0としてい
るので、実際に画素の濃度が低くても誤差データによっ
て閾値を越えてしまうことを防止でき、ハイライト部で
の粒状性ノイズを防止できるためである。
The encoding in the encoding circuit 5 can be performed efficiently in the highlight portion. That is, since the diffusion error in the error diffusion method is set to 0 for density data equal to or less than the predetermined density, even if the density of the pixel is actually low, it is possible to prevent the error data from exceeding the threshold, and the granularity in the highlight portion This is because noise can be prevented.

尚、符号化回路5は符号化のためアンド回路18からの
2値データを少なくとも1ライン分格納できるラインバ
ツフアを有している。
The encoding circuit 5 has a line buffer capable of storing at least one line of binary data from the AND circuit 18 for encoding.

この様に前述の実施例によれば、誤差拡散法で処理す
る画素濃度が所定値以下ならば、その画素で発生する誤
差データを0とすることで、ハイコントラスト部分の粒
状性ノイズを除去することが可能となり、画像品位を向
上させる効果がある。しかも、粒状性ノイズを除去した
ことにより、符号化の効率も向上することができる。
As described above, according to the above-described embodiment, if the pixel density processed by the error diffusion method is equal to or lower than the predetermined value, the error data generated in the pixel is set to 0, thereby removing the granular noise in the high contrast portion. This makes it possible to improve the image quality. In addition, since the granular noise has been removed, the coding efficiency can be improved.

〔発明の効果〕〔The invention's effect〕

以上説明した如く、本発明の画像処理方法及び装置に
よれば、誤差拡散法における2値化処理で発生していた
ハイライト部での粒状性ノイズを除去でき、しかも符号
化効率を向上できる効果がある。
As described above, according to the image processing method and apparatus of the present invention, it is possible to remove the grainy noise in the highlight portion generated in the binarization processing in the error diffusion method, and further improve the coding efficiency. There is.

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

第1図は本発明を適用したフアクシミリ装置のブロツク
図、 第2図は走査線1ラインの信号例の一例を示した図、 第3図,第7図は第1図の読取・2値化回路の詳細を示
した図、 第4図は輝度−濃度変換テーブルのデータを書き込んだ
ROMを示した図、 第5図は輝度−濃度データ変換テーブルを示した図、 第6図は誤差拡散マトリクスの一例を示した図である。 1……NCU、2……電話機 3……ハイブリツド回路、4……変調器 5……符号化回路、6……読取・2値化回路 7……復調器、8……復号化回路 9……記録回路 10,101……入力センサ部 11,102……AD変換器 12,103……補正回路 13,104……変換テーブル 14,105……コンパレータ 15,106……誤差補正回路 16,107……2値化回路 17……誤差演算回路
FIG. 1 is a block diagram of a facsimile machine to which the present invention is applied, FIG. 2 is a diagram showing an example of a signal of one scanning line, and FIGS. 3 and 7 are reading / binarization of FIG. FIG. 4 shows the details of the circuit, and FIG. 4 shows the data of the luminance-density conversion table.
FIG. 5 is a diagram showing a ROM, FIG. 5 is a diagram showing a luminance-density data conversion table, and FIG. 6 is a diagram showing an example of an error diffusion matrix. 1 ... NCU, 2 ... phone 3 ... hybrid circuit, 4 ... modulator 5 ... encoding circuit, 6 ... reading / binarization circuit 7 ... demodulator, 8 ... decoding circuit 9 ... … Recording circuit 10,101… Input sensor section 11,102… AD converter 12,103… Correction circuit 13,104… Conversion table 14,105… Comparator 15,106… Error correction circuit 16,107… Binarization circuit 17… Error calculation circuit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力画像濃度データを誤差拡散法等の濃度
保存型の2値化処理方法により2値化処理し、2値化処
理されたデータを符号化するに際し、入力画像濃度デー
タを所定の値と比較し入力画像濃度データが白と判断さ
れると、前記濃度保存型の2値化処理方法の2値化出力
に関わらず、入力画像濃度データの2値化出力を白とし
て出力し、その後2値化処理されたデータを符号化する
ことを特徴とする画像処理方法。
An input image density data is binarized by a density preserving type binarization processing method such as an error diffusion method and the input image density data is encoded when encoding the binarized data. If the input image density data is determined to be white in comparison with the value of, the binarized output of the input image density data is output as white regardless of the binarized output of the density preserving type binarization processing method. And an encoding method for encoding the data after the binarization processing.
【請求項2】入力画像濃度データを誤差拡散法等の濃度
保存型の2値化処理方法により2値化処理し、2値化処
理されたデータを符号化するに際し、入力画像濃度デー
タを所定の値と比較し入力画像濃度データが前記所定の
値以下ならば、前記濃度保存型の2値化処理方法におけ
る入力画像濃度と2値化処理後の出力画像濃度との誤差
を0にし、その後2値化処理されたデータを符号化する
ことを特徴とする画像処理方法。
2. An input image density data is binarized by a density preserving type binarization processing method such as an error diffusion method, and when the binarized data is encoded, the input image density data is converted to a predetermined value. If the input image density data is equal to or less than the predetermined value, the error between the input image density and the output image density after the binarization processing in the density preserving type binarization processing method is set to 0, and then An image processing method characterized by encoding data that has been binarized.
【請求項3】画像データを誤差拡散法により2値化処理
する第1の2値化手段と、上記画像データを所定の閾値
で、2値化処理する第2の2値化手段と、2値化処理さ
れた2値データを符号化する符号化手段と、上記第1及
び第2の2値化手段の2値化処理の結果に基づき最終的
な2値データを決定する決定手段とを有し、上記決定手
段は第2の2値化手段によって上記画像データが白と2
値化されると上記第1の2値化手段の2値化結果に関わ
らず最終的な2値データを白と決定し、上記第2の2値
化手段によって上記画像データが黒と2値化されると上
記第1の2値化手段の2値化結果を最終的な2値データ
の値と決定し、上記符号化手段は上記決定手段により最
終的に決定された2値データを符号化することを特徴と
する画像処理装置。
A first binarizing means for binarizing the image data by an error diffusion method, a second binarizing means for binarizing the image data with a predetermined threshold value, Encoding means for encoding the binarized binary data; and deciding means for deciding final binary data based on a result of the binarization processing of the first and second binarization means. And the determining means determines that the image data is white and 2 by the second binarizing means.
When the binarization is performed, the final binary data is determined to be white regardless of the binarization result of the first binarization unit, and the image data is converted to black and binary by the second binarization unit. When the binarization is performed, the binarization result of the first binarization unit is determined as a final binary data value, and the encoding unit encodes the binary data finally determined by the determination unit. An image processing apparatus characterized in that:
JP63043115A 1987-12-28 1988-02-25 Image processing method and apparatus Expired - Fee Related JP2667860B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP63043115A JP2667860B2 (en) 1988-02-25 1988-02-25 Image processing method and apparatus
US07/289,017 US4975786A (en) 1987-12-28 1988-12-23 Image processing method and apparatus with error diffusion capability
DE3844828A DE3844828C2 (en) 1987-12-28 1988-12-27 Half tone picture processing method for digital printer
DE19883844041 DE3844041C2 (en) 1987-12-28 1988-12-27 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63043115A JP2667860B2 (en) 1988-02-25 1988-02-25 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH01218172A JPH01218172A (en) 1989-08-31
JP2667860B2 true JP2667860B2 (en) 1997-10-27

Family

ID=12654835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63043115A Expired - Fee Related JP2667860B2 (en) 1987-12-28 1988-02-25 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP2667860B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2485471B1 (en) * 2009-09-28 2017-03-15 Mimaki Engineering Co., Ltd. Program, image processing device, and image processing method

Also Published As

Publication number Publication date
JPH01218172A (en) 1989-08-31

Similar Documents

Publication Publication Date Title
US4975786A (en) Image processing method and apparatus with error diffusion capability
JP2794281B2 (en) Code decoding processor for dither signal
JPS59223073A (en) Picture processor
JPH03248674A (en) Half-tone picture processor
JP2756371B2 (en) Image processing device
JP2667860B2 (en) Image processing method and apparatus
US5329380A (en) Image processing machine
JP3223046B2 (en) Error diffusion coding apparatus for binary image
JP2622141B2 (en) Image processing method
JPH0253382A (en) Control system for facsimile equipment
JPS59128873A (en) Picture signal converting system of color facsimile
JPS59272A (en) Encoding system of facsimile signal
JP3461247B2 (en) Image processing apparatus and image processing method
JPS60116283A (en) System for recording half tone
JPS5814673A (en) Gradation signal restoring system
KR930007980B1 (en) Middle tone picture display method
JP3287708B2 (en) Image processing device
JPH02268075A (en) Picture processing device
JPS62183265A (en) Image data transmission system
JPH05167836A (en) Image processing device and facsimile equipment
JP3057709B2 (en) Image processing system and method
JPH08204960A (en) Image processor
JPH0316380A (en) Picture processor
JPH0818781A (en) Binarizing device and equipment using the device
JPH04238465A (en) Picture processor

Legal Events

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