JP2682986B2 - Image processing method - Google Patents

Image processing method

Info

Publication number
JP2682986B2
JP2682986B2 JP62048588A JP4858887A JP2682986B2 JP 2682986 B2 JP2682986 B2 JP 2682986B2 JP 62048588 A JP62048588 A JP 62048588A JP 4858887 A JP4858887 A JP 4858887A JP 2682986 B2 JP2682986 B2 JP 2682986B2
Authority
JP
Japan
Prior art keywords
error
data
image
binarization
diffusion method
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
JP62048588A
Other languages
Japanese (ja)
Other versions
JPS63214079A (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 JP62048588A priority Critical patent/JP2682986B2/en
Publication of JPS63214079A publication Critical patent/JPS63214079A/en
Application granted granted Critical
Publication of JP2682986B2 publication Critical patent/JP2682986B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の属する分野] 本発明は、デジタルプリンタおよびデジタルファクシ
ミリ等に用いられる画像処理方法に関し、特に、1画素
複数レベルを有する画像データを入力し、該画像データ
を誤差拡散法により2値データに2値化処理する画像処
理方法に関する。 [従来技術] 従来よりデジタルプリンタ、デジタルフアクシミリ等
において中間調を再現するための2値化手法として誤差
拡散法がある。この方法は原稿の画像濃度と出力画像濃
度の画素ごとの濃度差を演算し、この演算結果である誤
差分を周辺画像に特定の重みづけを施した後に分散させ
ていく方法である。この誤差拡散法については、文献R.
W.Floyd and L.Steinberg“AnAdaptive Algorithm for
“Speatial Gray Scale"SID 75 Digest(1976)で発表
がなされている。 この方法は、周期性が無いので他の2値化手法のデイ
ザ法や濃度パターン法で問題となっているモアレ現象
(原稿が印刷等の網点画像の場合、複写された画像に原
稿には無い周期的な縞模様が出る現象)は発生しないが
写真等の濃淡変化の少ない画像では、出力画像に独特の
縞パターンが生じる欠点があった。 [目的」 本発明は上述した従来技術の欠点を除去するものであ
り、誤差拡散法による2値化処理の際発生する誤差デー
タを縞パターンの発生を抑圧するようにフィルタ処理す
ることにより、誤差拡散法における高階調性・高解像度
を維持しつつ、縞パターンの発生を抑圧し、高画質な画
像を得ることができる画像処理方法の提供を目的とす
る。 [実施例] 以下図面を用いて本発明の実施例を詳細に説明する。 第1図は本発明の一実施例を示すブロツク図である。
入力センサ部10はCCD等の光電変換素子およびこれを走
査する駆動装置より構成され原稿の読み取り走査を行
う。又、入力センサ部10では通信回線を介したデータ、
デイスクテープ等の記憶媒体からのデータを入力しても
よい。入力センサ部10で読み取られた原稿の画像データ
又は種々のデータは、A/D変換器11に送られる。ここで
は各画素のデータを8bitのデジタルデータに変換し256
レベルの階調数をもつデータに量子化する。 次に補正回路12において、CCDセンサーの感度ムラや
照明光源による照度ムラを補正するためのシエーデイン
グ補正等をデジタル演算処理で行う。 13は閾値処理部で補正回路12からのデータの2値化処
理を行う。 19は2値画像表示を行う画像表示部でCRT、プリンタ
等により構成される。 次に閾値処理部13について詳細に説明する。 14は補正回路12により補正された階調画像データ20と
デイザ信号21との加算を行う加算器で、修正画素値22を
2値化回路15及び誤差演算部16へ出力する。 15は2値化回路であり、所定の閾値T(例えばT=12
7)を用いて修正画素値22を2値化し、2値画像データ2
3を画像表示部19及び誤差演算部16へ出力する。誤差演
算部16では2値画像データ23と修正画素値22より2値化
誤差Eを求め誤差格納処理部17へ出力する。但し2値化
誤差Eは で求められる。ここでPは修正画素値22、Tは閾値(12
7)L,Uは2値画像データ23でLは画素のダイナミツクレ
ンジの下限値(L=O)、Uは上限値(U=255)であ
る。誤差格納処理部17は第2図に示すように、上記2値
化誤差Eをエラーバツフアメモリ26に格納し、演算部27
では第3図の重み付け係数によりそれぞれエラーバツフ
アメモリ26に格納されたデータと掛け合わし、その和を
誤差データ処理部18に出力する。エラーバツフアメモリ
26の白丸部及び第3図*は現在処理中の画素位置を示し
ており、その位置に近い、つまりl,hへの重み付け係数
は1/3、それより遠いg,iへの重み付係数は1/6とする。 尚、エラーバツフアメモリ26はラインバツフアメモリ
を複数行分有しているもので、第2図に示したものはそ
の一部分のウインドウを示している。又エラーバツフア
メモリ26に格納されている、2値化誤差24は現在処理し
ているデータ以前の2値化誤差が格納されている。 第4図は重み付け係数の他の一例を示した図で、この
係数を用いれば前述した場合よりも、多くの周辺画素の
誤差を考慮する事ができる。 第2図の誤差データ処理部18は誤差拡散法において発
生する縞パターンの除去を行う為に設けられたフイルタ
で、誤差格納処理部17から出力されたデータ25を処理す
る。 第5図Aは、誤差拡散法において発生する誤差データ
の振幅スペクトルを示したもので、スペクトルに重畳し
ているコブaが誤差拡散法における独特な縞パターンを
発生する原因となっている。従って、このコブを除去す
る特性(第5図B)を持つフイルタを誤差データ処理部
18において用いる。第5図Aの周波数と振幅の関係は第
3あるいは第4図に示した重み付け数に応じて定まるの
で、既知の手法を用いてフイルタを設計する事ができ
る。例えばシヤドウ部、ハイライト部での縞パターンを
除去したい場合は、その周波数において、コブを除去す
る特性を持つフイルタを使用する。なお第5図では説明
の都合上1次元的に示したが、実際の誤差データの振幅
スペクトルは2次元的であり、かつ2つの1次元スペク
トルに分離できないため誤差データ処理部として用いる
フイルタも2次元フイルタを用いる。 この誤差データ処理部18でフイルタ処理されたデータ
はデイザ信号21として加算器14にて階調画像データ20と
加算される。 そして加算された修正画素値22は2値化回路15で2値
化され2値化画像データ23を画像表示部19へ出力する。 このように、誤差拡散法における2値化手法において
誤差データをフイルタ処理する事により、誤差拡散法に
よる高階調性・高解度を維持しつつ独特な縞パターンを
防止する事ができる。 尚上記実施例においては、周波数特性に基ずいた誤差
拡散法における縞パターンの除去について述べたが、誤
差データ処理部に別の機構を設ける事により、類似の効
果を得ることができる。その一例としては、メデイアン
フイルタが挙げられる。メデイアンフイルタは中間値フ
イルタと言われるもので、データが中間値よりも大きい
とき、又は小さいときそのデータが中間値となる様に処
理する特性を持つフイルタである。誤差拡散法では、特
にハイライト部、シヤドウ部において、誤差が累積した
結果、画素の白黒が反転し、縞パターンの発生となって
画質の劣化を招く事がある。この誤差の累積は誤差デー
タでは符号の反転となって現れ、ハイライト部とシヤド
ウ部ではそれが局所的に起こるので、メデイアン・フイ
ルタを用い、中間値を取ることによって符号の反転した
誤差データを除去し、縞パターンの発生を抑圧する事が
可能である。 又、前述第1図では、階調画像データ20とデイザ値号
21を加算した後2値化回路15にて、閾値Tで2値化する
構成としたが、これは閾値Tよりデイザ値号21を減算
し、その減算された閾値T′を用いて階調画像データ20
を2値化しても同等である。 [発明の効果] 以上説明したごとく本発明によれば、誤差拡散法によ
る2値化装置の際発生する誤差データを縞パターンの発
生を抑圧するようにフィルタ処理することにより、誤差
拡散法における高階調性・高解像度を維持しつつ、縞パ
ターンの発生を抑圧し、高画質な画像を得ることができ
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method used in digital printers, digital facsimiles, and the like, and particularly to inputting image data having a plurality of one pixel levels and making an error in the image data. The present invention relates to an image processing method for binarizing binary data by a diffusion method. [Prior Art] Conventionally, there is an error diffusion method as a binarization method for reproducing a halftone in a digital printer, a digital facsimile, or the like. This method is a method of calculating the density difference between the image density of the original document and the output image density for each pixel, and dispersing the error resulting from the calculation after giving a specific weight to the peripheral image. This error diffusion method is described in reference R.
W. Floyd and L. Steinberg “AnAdaptive Algorithm for
Presented in “Speatial Gray Scale” SID 75 Digest (1976). Since this method has no periodicity, it has a moire phenomenon which is a problem in the dither method and the density pattern method of other binarization methods (when the original is a halftone image such as printing, the copied image is not printed on the original. The phenomenon that a periodical striped pattern that does not exist appears) does not occur, but there is a defect that a unique striped pattern is generated in an output image in an image such as a photograph in which the change in shade is small. [Purpose] The present invention eliminates the above-described drawbacks of the prior art, and an error is generated by filtering error data generated during binarization processing by the error diffusion method so as to suppress the occurrence of a stripe pattern. An object of the present invention is to provide an image processing method capable of suppressing the occurrence of stripe patterns and obtaining a high-quality image while maintaining high gradation and high resolution in the diffusion method. Embodiments Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention.
The input sensor unit 10 includes a photoelectric conversion element such as a CCD and a driving device for scanning the photoelectric conversion element, and performs scanning of a document. In the input sensor unit 10, data via a communication line,
Data from a storage medium such as a disk tape may be input. Image data or various data of the document read by the input sensor unit 10 is sent to the A / D converter 11. Here, the data of each pixel is converted to 8-bit digital data and
It is quantized to data having the number of levels of gradation. Next, in the correction circuit 12, shading correction for correcting unevenness in sensitivity of the CCD sensor and unevenness in illuminance caused by the illumination light source is performed by digital arithmetic processing. Reference numeral 13 denotes a threshold processing unit that performs binarization processing of the data from the correction circuit 12. An image display unit 19 for displaying a binary image is composed of a CRT, a printer and the like. Next, the threshold processing unit 13 will be described in detail. Reference numeral 14 is an adder for adding the gradation image data 20 corrected by the correction circuit 12 and the dither signal 21, and outputs the corrected pixel value 22 to the binarization circuit 15 and the error calculation unit 16. Reference numeral 15 denotes a binarizing circuit, which has a predetermined threshold T (for example, T = 12
The modified pixel value 22 is binarized using 7) and the binary image data 2
3 is output to the image display unit 19 and the error calculation unit 16. The error calculator 16 obtains a binarization error E from the binary image data 23 and the corrected pixel value 22 and outputs it to the error storage processor 17. However, the binarization error E is Is required. Here, P is the corrected pixel value 22 and T is the threshold value (12
7) L and U are binary image data 23, L is the lower limit value (L = O) of the dynamic range of pixels, and U is the upper limit value (U = 255). The error storage processing unit 17 stores the binarization error E in the error buffer memory 26 as shown in FIG.
Then, the data stored in the error buffer memory 26 are multiplied by the weighting coefficients shown in FIG. 3, and the sum is output to the error data processing unit 18. Error buffer memory
The white circles in 26 and Fig. 3 * show the pixel position currently being processed. The weighting factor for the pixel that is close to that position, that is, l, h is 1/3, and the weighting factor for g, i farther from that position is 1/3. Is 1/6. The error buffer memory 26 has a plurality of lines of line buffer memory, and the one shown in FIG. 2 shows a part of the window. The binarization error 24 stored in the error buffer memory 26 is the binarization error before the data currently being processed. FIG. 4 is a diagram showing another example of the weighting coefficient. If this coefficient is used, errors in more peripheral pixels can be considered as compared with the case described above. The error data processing unit 18 in FIG. 2 is a filter provided for removing the stripe pattern generated in the error diffusion method, and processes the data 25 output from the error storage processing unit 17. FIG. 5A shows the amplitude spectrum of the error data generated in the error diffusion method, and the bumps a superposed on the spectrum cause the unique stripe pattern in the error diffusion method. Therefore, a filter having a characteristic (FIG. 5B) for removing this bump is used as an error data processing unit.
Used in 18. Since the relationship between the frequency and the amplitude in FIG. 5A is determined according to the weighting number shown in FIG. 3 or 4, it is possible to design the filter using a known method. For example, when it is desired to remove the stripe pattern at the shed portion and the highlight portion, a filter having a characteristic of removing the bump at the frequency is used. Although FIG. 5 shows one dimension for convenience of explanation, since the amplitude spectrum of the actual error data is two-dimensional and cannot be separated into two one-dimensional spectra, the filter used as the error data processing unit is also two-dimensional. Use a dimensional filter. The data filtered by the error data processing unit 18 is added to the gradation image data 20 by the adder 14 as a dither signal 21. The corrected pixel value 22 thus added is binarized by the binarizing circuit 15 and binarized image data 23 is output to the image display unit 19. In this way, by filtering the error data in the binarization method in the error diffusion method, it is possible to prevent the unique stripe pattern while maintaining high gradation and high resolution by the error diffusion method. In the above embodiment, the removal of the fringe pattern by the error diffusion method based on the frequency characteristic is described, but a similar effect can be obtained by providing another mechanism in the error data processing unit. One example is a median filter. The median filter is called an intermediate value filter, and is a filter having a characteristic that when the data is larger or smaller than the intermediate value, the data is processed to have the intermediate value. In the error diffusion method, in particular, in the highlight part and the shadow part, as a result of error accumulation, black and white of pixels are inverted, and a stripe pattern is generated, which may cause deterioration of image quality. The accumulation of this error appears as an inversion of the sign in the error data, and it occurs locally in the highlight part and the shadow part. It is possible to suppress the occurrence of the striped pattern by removing it. Also, in FIG. 1 described above, the gradation image data 20 and the dither value
After the addition of 21, the binarization circuit 15 is configured to binarize with the threshold value T. In this, the dither value number 21 is subtracted from the threshold value T, and the subtracted threshold value T'is used for gradation. Image data 20
It is equivalent to binarizing. [Effect of the Invention] As described above, according to the present invention, the error data generated in the binarization apparatus by the error diffusion method is filtered so as to suppress the generation of the stripe pattern, and thus the higher order in the error diffusion method is obtained. While maintaining tonality and high resolution, it is possible to suppress the occurrence of stripe patterns and obtain high-quality images.

【図面の簡単な説明】 第1図は、本発明の一実施例における画像処理装置の構
成図、第2図は誤差格納処理部の構成図、第3図、第4
図は重み付け係数の一例を示す図、第5図は誤差データ
処理部の作用の一例を示す図である。 図において10は入力センサ部、11はA/D変換器、12は補
正回路、13は閾値処理部、14は加算器、15は2値化回
路、16は誤差演算部、17は誤差格納処理部、18は誤差デ
ータ処理部、19は画像表示部である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a block diagram of an error storage processing unit, FIG. 3, and FIG.
FIG. 5 is a diagram showing an example of the weighting coefficient, and FIG. 5 is a diagram showing an example of the operation of the error data processing unit. In the figure, 10 is an input sensor unit, 11 is an A / D converter, 12 is a correction circuit, 13 is a threshold processing unit, 14 is an adder, 15 is a binarization circuit, 16 is an error calculation unit, and 17 is an error storage process. Reference numeral 18 is an error data processing unit, and reference numeral 19 is an image display unit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大沢 秀史 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 細川 博司 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (56)参考文献 特開 昭55−13554(JP,A) 特開 昭62−139472(JP,A)   ────────────────────────────────────────────────── ─── Continuation of front page    (72) Inventor Hidefumi Osawa               3-30-2 Shimomaruko, Ota-ku, Tokyo               Inside Canon Inc. (72) Inventor Hiroshi Hosokawa               3-30-2 Shimomaruko, Ota-ku, Tokyo               Inside Canon Inc.                (56) References JP-A-55-13554 (JP, A)                 JP 62-139472 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.画素複数レベルを有する画像データを入力し、該画
像データを誤差拡散法により2値データに2値化処理す
る画像処理方法において、 前記誤差拡散法による2値化処理の際発生する誤差デー
タを縞パターンの発生を抑圧するようにフィルタ処理
し、フィルタ処理された誤差データを新たに入力する画
像データに加算し、フィルタ処理された誤差データの加
算された画像データを2値化処理することを特徴とする
画像処理方法。
(57) [Claims] In an image processing method of inputting image data having a plurality of pixel levels and binarizing the image data into binary data by an error diffusion method, the error data generated during the binarization processing by the error diffusion method is striped. It is characterized in that filtering is performed so as to suppress the generation of a pattern, the filtered error data is added to newly input image data, and the image data to which the filtered error data is added is binarized. Image processing method.
JP62048588A 1987-03-02 1987-03-02 Image processing method Expired - Fee Related JP2682986B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62048588A JP2682986B2 (en) 1987-03-02 1987-03-02 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62048588A JP2682986B2 (en) 1987-03-02 1987-03-02 Image processing method

Publications (2)

Publication Number Publication Date
JPS63214079A JPS63214079A (en) 1988-09-06
JP2682986B2 true JP2682986B2 (en) 1997-11-26

Family

ID=12807560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62048588A Expired - Fee Related JP2682986B2 (en) 1987-03-02 1987-03-02 Image processing method

Country Status (1)

Country Link
JP (1) JP2682986B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3700357B2 (en) 1997-11-25 2005-09-28 コニカミノルタビジネステクノロジーズ株式会社 Image processing device

Also Published As

Publication number Publication date
JPS63214079A (en) 1988-09-06

Similar Documents

Publication Publication Date Title
JP2682986B2 (en) Image processing method
JP2637414B2 (en) Image processing method
JPH0722341B2 (en) False image removal method
JP3137702B2 (en) Image processing device
JP3117331B2 (en) Image data processing device
JPH09212642A (en) Image processor
JP2644488B2 (en) Image processing device
JP2746772B2 (en) Image signal processing method and apparatus
JP2857906B2 (en) Halftone binarization processor
JP2644491B2 (en) Image processing device
JPH0197066A (en) Picture processing method
JPH06292005A (en) Picture signal processing unit
JP3178077B2 (en) Binarization processing method
JPH05145747A (en) Image processor
JP2682985B2 (en) Image processing method
JPH0691605B2 (en) Image processing device
JPH07274017A (en) Picture processor
JPS6029872A (en) Method and device for picture signal processing
JP2644492B2 (en) Image processing device
JPH11275358A (en) Device and method for processing picture
JPH05292307A (en) Color picture processing unit
JPH06326864A (en) Picture processing method
JPH0541793A (en) Digital picture processor
JPS63288755A (en) Image processing method
JPH0937074A (en) Binary picture processor

Legal Events

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