JPH048063A - Picture processing system - Google Patents

Picture processing system

Info

Publication number
JPH048063A
JPH048063A JP2111320A JP11132090A JPH048063A JP H048063 A JPH048063 A JP H048063A JP 2111320 A JP2111320 A JP 2111320A JP 11132090 A JP11132090 A JP 11132090A JP H048063 A JPH048063 A JP H048063A
Authority
JP
Japan
Prior art keywords
data
laplacian
error
arithmetic operation
pixel
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.)
Pending
Application number
JP2111320A
Other languages
Japanese (ja)
Inventor
Seiichi Ito
誠一 伊藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2111320A priority Critical patent/JPH048063A/en
Priority to US07/690,574 priority patent/US5208684A/en
Priority to KR1019910006752A priority patent/KR950006440B1/en
Priority to DE69116924T priority patent/DE69116924T2/en
Priority to EP91303820A priority patent/EP0454495B1/en
Publication of JPH048063A publication Critical patent/JPH048063A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To obtain excellent picture quality from both a character and line part and a photograph and intermediate tone part by adopting the picture processing system through the use of the error diffusion method for binarization so as to obtain a pseudo intermediate tone picture thereby improving reproducibility of a character line drawing and correcting a delay in dot appearance at a picture where density is low. CONSTITUTION:A Laplacian arithmetic section 2 extracts a density data of a noted picture element and a density data of plural surrounding picture elements depending on a coefficient matrix adopted by the Laplacian arithmetic operation to apply the Laplacian arithmetic operation and the addition of the result of the Laplacian arithmetic operation and the data of the noted picture element. An error between an output binarized by a binarizing section 3 and the result of the Laplacian arithmetic operation by the Laplacian arithmetic operation section 2 is calculated and the result is fed to an error distribution arithmetic operation data correction section 5. Since a substantial gradation border is not in existence by utilizing the Laplacian arithmetic operation by the error spread method, excellent picture quality with emphasized contour is obtained from the character line drawing part and excellent picture quality with no noise produced therefrom is obtained from the photograph part.

Description

【発明の詳細な説明】 [概要コ 各画素が複数ビア)の濃度データで構成される画像の各
画素を2値化して疑似中間調画像を得るための画像処理
方式に関し。
DETAILED DESCRIPTION OF THE INVENTION [Summary] This invention relates to an image processing method for obtaining a pseudo-halftone image by binarizing each pixel of an image composed of density data (each pixel has a plurality of vias).

文字・線画部と写真・中間調部の両方とも良好な画質が
得られる画像処理方式を折供することを目的とし 濃度データメモリから注目画素と周辺画素のデータを取
り出して所定の係数マトリクスによりラプラシアン演算
及びその演算結果と注目画素のデータとの加算をラプラ
シアン演算部において行いラプラシアン演算部の出力を
2(lI化部において所定の閾値と比較して2値化を行
い、2値化した結果の値と前記ラプラシアン演算の結果
から誤差演算部により2値化誤差を求め、2値化誤差値
を誤差配分演算部により注目画素の周辺に配分するよう
構成する。
The aim is to provide an image processing method that can obtain good image quality for both text/line drawings and photographs/halftones.The data of the pixel of interest and surrounding pixels is extracted from the density data memory and Laplacian calculation is performed using a predetermined coefficient matrix. The calculation result is added to the data of the pixel of interest in the Laplacian calculation unit, and the output of the Laplacian calculation unit is compared with a predetermined threshold value in the II conversion unit and binarized, and the value of the binarized result is The error calculation section calculates a binarization error from the result of the Laplacian calculation, and the error distribution calculation section distributes the binarization error value to the periphery of the pixel of interest.

[産業上の利用分野] 本発明は各画素が複数ビットの濃度データで構成される
画像の各画素を2値化して疑似中間調画像を得るだめの
画像処理方式、特に、ディジタル画像処理を行う装置2
例えばディジタル複写機。
[Industrial Application Field] The present invention relates to an image processing method for obtaining a pseudo-halftone image by binarizing each pixel of an image, each pixel of which is composed of multiple bits of density data, particularly for digital image processing. Device 2
For example, a digital copier.

イメージスキャナ、ファクシミリ装置等において疑似中
間画像を得る中間調画像処理方式に関する。
The present invention relates to a halftone image processing method for obtaining pseudo-intermediate images in image scanners, facsimile machines, etc.

近年、上記の各装置において、各画素が多値(2以上)
である画像の各画素を2値化して中間調の画像を得る方
法(面積階調という)が用いられている。ところが、従
来の方法では処理された画像に種々の点で欠点があり、
その解決が望まれている。
In recent years, in each of the above devices, each pixel has multiple values (2 or more)
A method (referred to as area gradation) is used in which each pixel of an image is binarized to obtain a halftone image. However, with conventional methods, the processed images have various drawbacks.
A solution is desired.

[従来の技術] 従来の各種の疑似中間画像処理を利用する装置では、中
間調画像処理方式として従来から「組織的デイザ法」が
広く一般的に用いられている。この組織的デイザ法は、
ハードウェア構成が単純なので、ローコストで疑似的な
中間調表現が可能であるという長所があるが、以下の欠
点が存在する。
[Prior Art] In conventional devices that utilize various types of pseudo-intermediate image processing, a "systematic dither method" has been widely and commonly used as a halftone image processing method. This method of systematic dithering is
Since the hardware configuration is simple, it has the advantage of being able to express pseudo-halftones at low cost, but it has the following drawbacks.

(1)原稿が印刷等の網点画像の場合、処理された画像
上に原稿に無い周期的な縞模II(モワレと称される)
が発生する。
(1) If the original is a halftone image from printing, etc., a periodic striped pattern II (referred to as moiré) that is not present in the original will appear on the processed image.
occurs.

(2)原稿に文字・線画等が含まれた場合、その部分の
処理結果が切れ切れになり(−本の線の黒の画素が一定
周期で白になるため)、著しく再現性が悪い。
(2) When a document contains characters, line drawings, etc., the processing results for those portions are cut off (-because the black pixels of the book's lines turn white at regular intervals), resulting in extremely poor reproducibility.

(3)多階調を得るために読取り系の分解能に対してデ
イザのマトリクスサイズを大きくし過ぎると。
(3) In order to obtain multiple gradations, the dither matrix size is made too large relative to the resolution of the reading system.

解像度が劣化し、マトリクスサイズを小さくすると′f
!#調数が少なくなり、多階調と高解像度を両立するこ
とができない。
If the resolution deteriorates and the matrix size is reduced, ′f
! #The number of tones is reduced, making it impossible to achieve both multiple gradations and high resolution.

一方、多階調と高解像度を両立できる中間調処理方式と
して、「誤差拡散法」と呼ばれる方式がある。これは、
 R,W、FIoyd and L、Steinber
g ”AnAdaptive  Algorithm 
 for  5patial  Grey  5cal
e”  1975 SID Internationa
l Symposiu+m Digest of Te
chnical Papers、 4.3. pp36
−37 (Apr、1975)で発表されたものである
On the other hand, as a halftone processing method that can achieve both multiple gradations and high resolution, there is a method called "error diffusion method." this is,
R, W, FIoyd and L, Steinber.
g”An Adaptive Algorithm
for 5patial Gray 5cal
e” 1975 SID International
l Symposiu+m Digest of Te
Chnical Papers, 4.3. pp36
-37 (Apr, 1975).

この誤差拡散法は2値化の際に発生する濃度誤差を周辺
の画素へ拡散し、原画と出力画像の濃度が保存される様
にしたことを特徴とする方式であり、デイザ法の様にマ
トリクスサイズにより一義的に表現階調数が決まってし
まうことがなく、またモワレも発生しない等の階調性・
解像度の点で優れている。
This error diffusion method is a method that is characterized by diffusing the density error that occurs during binarization to surrounding pixels so that the density of the original image and output image is preserved, and is similar to the dither method. The number of expressed gradations is not uniquely determined by the matrix size, and the gradation characteristics such as no moiré, etc.
Superior resolution.

誤差拡散方式による2値化処理を簡単に説明する。ここ
で画像空間上の主走査方向第nド、ト副走査方向第mラ
イン目の画素に注目して2値化する場合を想定し、各画
素の濃度を表す、原画データは最小濃度から最大濃度を
示す値に量子化されて入力されるものとする。
Binarization processing using the error diffusion method will be briefly explained. Assuming that the pixels of the n-th line in the main scanning direction and the m-th line in the sub-scanning direction are to be binarized in the image space, the original image data representing the density of each pixel is calculated from the minimum density to the maximum density. It is assumed that the value is quantized into a value indicating the concentration and input.

最初に、2値化済の周辺画素で発生した2値化誤差によ
り修正された補正データ(原画データと誤差配分値の総
和との和)を所定の閾値(中間濃度)と比較し、2値化
(一義的に最大濃度(黒)又は最小濃度(白)と等価な
値とする)を行い2値データを得る。ここで2値化の際
に発生した差分を2値化誤差として未処理の周辺画素に
所定の重み付けで配分し、原画データに加算して行く。
First, the correction data (the sum of the original image data and the total error distribution value) corrected by the binarization error generated in the binarized surrounding pixels is compared with a predetermined threshold (intermediate density), and the binary (set to a value uniquely equivalent to the maximum density (black) or the minimum density (white)) to obtain binary data. Here, the difference generated during binarization is distributed as a binarization error to unprocessed surrounding pixels with a predetermined weight, and added to the original image data.

以上の処理を画像空間全域に渡り、繰り返すことにより
誤差拡散法によって2値化処理された2値データが得ら
れ1表示・印字することにより疑似中間画像が得られる
By repeating the above processing over the entire image space, binary data binarized by the error diffusion method is obtained, and by displaying and printing it, a pseudo intermediate image is obtained.

[発明が解決しようとするtJHE ところが、上記の誤差拡散法にも以下に示す問題点があ
る。
[tJHE to be Solved by the Invention However, the above error diffusion method also has the following problems.

■単純2値化処理に比べると文字・線画の再現性が悪い
■Reproducibility of characters and line drawings is poor compared to simple binarization processing.

■濃度が低い部分ではドツトの出現に空間的な遅れが生
じる。即ち、低い濃度の画素は、「白」として2値化さ
れるが、注目画素の元のデータと「白」として出力した
2値データとの差の値を周辺画素に分配し、隣接する低
濃度の画素について同様に誤差が分配され、蓄積された
誤差が「黒」として2 (IF化される値になるのに一
定の距離が生じるからである。
■There is a spatial delay in the appearance of dots in areas where the concentration is low. In other words, a pixel with low density is binarized as "white", but the value of the difference between the original data of the pixel of interest and the binary data output as "white" is distributed to surrounding pixels, and the pixel with low density is Errors are similarly distributed for pixels of density, and a certain distance occurs before the accumulated errors reach a value that is converted into IF as "black".

本発明は文字・線画部と写真・中間調部の両方とも良好
な画質が得られる画像処理方式を提供することを目的と
する。
SUMMARY OF THE INVENTION An object of the present invention is to provide an image processing method that can obtain good image quality in both text/line drawing areas and photograph/halftone areas.

本発明は誤差拡散法による処理の中で原画データを処理
済の画素によって修正して得た補正データに対し更に注
目画素と周辺とによりラプラシアン演夏値によって補正
するものである。
In the present invention, correction data obtained by correcting original image data using processed pixels during processing using the error diffusion method is further corrected using a Laplacian decompression value based on the pixel of interest and its surroundings.

[課題を解決するための手段] 第1図は本発明の原理構成図である。[Means to solve the problem] FIG. 1 is a diagram showing the principle configuration of the present invention.

第1図において、1は濃度データメモリ、2はラプラシ
アン演算部、3は2値化部、4は誤差演算部、5は誤差
配分演算・データ修正部、6は2値データ出力部を表す
In FIG. 1, 1 represents a density data memory, 2 a Laplacian calculation section, 3 a binarization section, 4 an error calculation section, 5 an error distribution calculation/data correction section, and 6 a binary data output section.

ラプラシアン演算は、離散空間上では、注目画素と周辺
画素の濃度の差分の総和として求められ。
In a discrete space, the Laplacian operation is calculated as the sum of differences in density between the pixel of interest and surrounding pixels.

係数マトリクス(ラプラシアンフィルタ)として各種提
案されている。このラプラシアン演算による補正は画像
の輪郭を強調する効果を持ち、単純2値化法の中で使用
されるのが一般的であり、従来からの組織的デイザ法の
中では9階調が変化する境界部でノイズが生じる等の悪
影響があるため使用されていない。
Various coefficient matrices (Laplacian filters) have been proposed. Correction using this Laplacian operation has the effect of emphasizing the outline of the image, and is generally used in the simple binarization method, and in the conventional systematic dither method, nine gradations change. It is not used because it has negative effects such as noise at the boundary.

[作用] 第1図において、濃度データメモリ1には原画の各ドツ
トの濃度データ(各ドツトが複数ビットの濃度で表され
る)が格納されている。ラプラシアン演算部2は注目画
素の濃度データと当該ラプラシアン演算で採用する係数
マトリクスにより決まる複数の周辺画素の濃度データを
取り出してラプラシアン演算及びその演算結果と注目画
素のデータの加算を実行する。このラプラシアン演算部
2の演算結果は、2値化部3に供給され、設定された閾
値と比較されて閾値以上の場合、“工”(黒)の出力を
発生し、閾値に達しない場合“0” (白)の出力を発
生し、注目画素の2値データとして2値データ出力部6
に供給される。
[Operation] In FIG. 1, density data memory 1 stores density data for each dot of an original image (each dot is represented by a plurality of bits of density). The Laplacian calculation unit 2 takes out the density data of the pixel of interest and the density data of a plurality of surrounding pixels determined by the coefficient matrix employed in the Laplacian calculation, performs the Laplacian calculation, and adds the result of the calculation to the data of the pixel of interest. The calculation result of the Laplacian calculation unit 2 is supplied to the binarization unit 3, where it is compared with a set threshold value, and if it is equal to or greater than the threshold value, an output of “English” (black) is generated, and if it does not reach the threshold value, an output of “ 0” (white) is generated, and the binary data output unit 6 outputs it as binary data of the pixel of interest.
supplied to

この2値データは、誤差演算部4に供給され。This binary data is supplied to the error calculation section 4.

ラプラシアン演算部2から出力した演算結果との誤差を
演算する。この場合、2値化部3の出力が“l”の場合
、濃度データの農大値が誤差演算部4に入力され、“0
”の場合、濃度データの最小値(オールO)が供給され
る(何故なら、2値化部は中間の値を“1” (黒)か
“0” (白)の何れかに決めるからである)。
The error with the calculation result output from the Laplacian calculation unit 2 is calculated. In this case, when the output of the binarization unit 3 is “l”, the agricultural value of the concentration data is input to the error calculation unit 4, and the output is “0”.
”, the minimum value of the density data (all O) is supplied (because the binarization section determines the intermediate value as either “1” (black) or “0” (white)). be).

誤差演算部4により、2値化部3で2値化した出力とラ
プラシアン演算部2の演算結果との誤差が算出されると
、その誤差値は誤差配分演算・データ修正部5に供給さ
れる。この誤差配分・データ修正部5は、入力された誤
差値を注目画素の周辺画素の中の所定の画素(これから
処理を実行する予定の画素)に対し予め設定された比率
で分配する演算を行い、濃度データメモリ1から対応す
る画素の値を読み出して、その読み出された値に演算さ
れた分配値を加算した上で元の位置に書き込む。このよ
うな処理を順次各画素に対して実行する。
When the error calculation unit 4 calculates the error between the output binarized by the binarization unit 3 and the calculation result of the Laplacian calculation unit 2, the error value is supplied to the error distribution calculation/data correction unit 5. . The error distribution/data correction unit 5 performs a calculation to distribute the input error value to predetermined pixels (pixels to be processed from now on) among the pixels surrounding the pixel of interest at a preset ratio. , reads out the value of the corresponding pixel from the density data memory 1, adds the calculated distribution value to the read value, and writes the added value at the original position. Such processing is sequentially executed for each pixel.

本発明の誤差拡散法ではラプラシアン演算を用いること
により実質的な階調の境界部というものが存在しないた
め1文字・線画部では輪郭が強調された良好な画質が得
られ、写真領域ではノイズが生じない良好な画質が得ら
れる。
Since the error diffusion method of the present invention uses Laplacian operation, there is no substantial gradation boundary, so good image quality with emphasized outlines can be obtained in single characters and line drawings, and noise is reduced in photographic areas. Good image quality is obtained.

[実施例] 第2図は本発明の実施例のブロック構成図7第3図は実
施例の具体的構成図、第4図はラプラシアン演算部の構
成、第5図は誤差配分演算部の構成、第6図はラプラシ
アンマトリクスの例である。
[Embodiment] Fig. 2 is a block diagram of an embodiment of the present invention; Fig. 3 is a detailed block diagram of the embodiment; Fig. 4 is a configuration of a Laplacian calculation unit; and Fig. 5 is a configuration of an error distribution calculation unit. , FIG. 6 is an example of a Laplacian matrix.

第2図において、11は濃度データラインバッファ(第
1図の1に対応)、12〜13は第1図2〜3に対応し
、それぞれラプラシアン演算部2値化 15は誤差配分演算部,16は2値データ出力部(第1
図の6に対応)、17は加算器(15と17を合わせて
第1図の5に対応)、18は誤差拡散マトリクスを表す
In FIG. 2, reference numeral 11 corresponds to the density data line buffer (corresponding to 1 in FIG. 1), 12 to 13 correspond to FIG. is the binary data output section (first
17 represents an adder (15 and 17 together correspond to 5 in FIG. 1), and 18 represents an error diffusion matrix.

ラプラシアン演算の係数マトリクスとしては第6図に示
すように各種の提案がなされているが。
As shown in FIG. 6, various proposals have been made as coefficient matrices for Laplacian operations.

二の実施例では(a)に示す、注目画素の上、下、左。In the second embodiment, the upper, lower, and left sides of the pixel of interest are shown in (a).

右の画素に対して図のような係数を用いて行うものとす
る。
Assume that the coefficients shown in the figure are used for the right pixel.

動作を説明すると2図示しない画像読み取り装置におい
て画像を主走査方向にN(Nは整数)ドツト並んだライ
ン型イメージセンサ等で並列に読み取られ、fA度に応
じて量子化された原画データ(最小濃度が0で最大濃度
が255の整数二8ビットで表す)が入力される。そし
て、この原画データは濃度データラインバッファ11の
対応する位置に格納される。なおこの濃度データライン
バッファ11はRAM (ランダムアクセスメモリ)等
で構成される。
To explain the operation, 2. In an image reading device (not shown), an image is read in parallel with a line type image sensor etc. in which N (N is an integer) dots are lined up in the main scanning direction, and the original image data (minimum A 28-bit integer with a density of 0 and a maximum density of 255 is input. Then, this original image data is stored in the corresponding position of the density data line buffer 11. Note that this density data line buffer 11 is composed of a RAM (random access memory) or the like.

注目画素を濃度データラインバッファ11の。The pixel of interest is stored in the density data line buffer 11.

第mライン目の第nドツトの画素データ、すなわちD 
@+ Rと第2図に表示された濃度データを処理する場
合について説明する。なおm、nは正の整数であり、1
≦n≦Nとする。
The pixel data of the n-th dot of the m-th line, that is, D
A case will be described in which @+R and the density data displayed in FIG. 2 are processed. Note that m and n are positive integers, and 1
≦n≦N.

注目画素とその周辺画像の濃度データは直ちにラプラシ
アン演算部12に入力され、ラプラシアン演算が行われ
る。この演算式は、上記の係数マトリクスにより1次の
とおりである。
The density data of the pixel of interest and its surrounding images are immediately input to the Laplacian calculation unit 12, where a Laplacian calculation is performed. This arithmetic expression is linear based on the coefficient matrix described above.

K・ ((D、、、−D、−、、、)+ (D、、。K・((D,,,-D,-,,,)+(D,,.

Da、e−+)+(Da、、 −D、、、、、I)+(
D、、、D−・、、、)) ここで、には任意の整数である。
Da, e-+)+(Da,, -D,,,,,I)+(
D,,,D-.,,,)) Here, is any integer.

この演算により得られた値を濃度データD0,7に加算
した値を補正データD@+T+° とじて、2値化部1
3に入力する。2値化部13では、補正データD Il
l+ 11′を所定の閾値(例えば、”127:255
の中間値)と比較して1次のような出力を発生する。
The value obtained by this calculation is added to the density data D0, 7, and the value is defined as correction data D@+T+°, and the binarization unit 1
Enter 3. In the binarization unit 13, the correction data D Il
l+11' to a predetermined threshold (for example, "127:255
(intermediate value of

■補正データD、、、’>2値化閾値の時、iij素m
nの2値データ(01,おで表す)−255(黒)とな
り。
■When correction data D,,,'>binarization threshold, iij element m
The binary data of n (01, represented by an o) is −255 (black).

■補正データD @* n゛ ≦2値化閾僅の時1画素
mnの2億データ(0,、、、) −0(白)となる。
■Correction data D @*n゛≦When the binarization threshold is small, it becomes 200 million data of 1 pixel mn (0,,,,,) -0 (white).

このように9画素m、nの2値データOII+l+を得
る。この2値データO1,、は、2値データ出力部16
によって、 O,、、−255の時「l」 (黒)、O
,、s−0の時「0」 (白)として出力されると共に
、加算器14に供給される。加算器14では、補正デー
タD @+ * ’   O@+ &の計真により2値
化誤差E、1.が求められる。
In this way, binary data OII+l+ of 9 pixels m and n is obtained. This binary data O1,, is the binary data output section 16
By, O,,, when -255, "l" (black), O
, s-0, it is output as "0" (white) and is also supplied to the adder 14. In the adder 14, the binarization errors E, 1. is required.

この2値化誤差E、、つば、誤差配分演算部15に供給
され、この2値化誤差EI6+、、を誤差拡散マトリク
ス18に従って、所定の重み付は係数(K1.0.アー
1〜K @ * I + II+l 1等)により未処
理の周辺画素に加重配分する。この実施例では2図に示
すように第mラインのn+1ド・ントと、第m+1ライ
ンの第n−1ドツト、第nドツト、第n+1ドツトの4
つの画素に対して配分される。
This binarization error E,, is supplied to the error distribution calculation unit 15, and the binarization error EI6+,, is given a predetermined weight by a coefficient (K1.0.A1~K@) according to the error diffusion matrix 18. * I + II + l 1, etc.) to allocate weight to unprocessed surrounding pixels. In this embodiment, as shown in FIG.
allocated to one pixel.

配分は、対応する周辺画素の画素データを取り出して、
その画素に配分される値を加算器17で加算して加算結
果(配分後のデータ)を元の画素データの位置に書き込
むことにより行われる。
For distribution, extract the pixel data of the corresponding surrounding pixels,
This is performed by adding the values allocated to the pixel using the adder 17 and writing the addition result (data after allocation) at the position of the original pixel data.

2値化誤差の配分前と配分後で周辺画素の濃度データは
以下の様に修正される。
The density data of surrounding pixels is corrected as follows before and after the binarization error is allocated.

以上の動作を主走査方向・副走査方向に順次繰り返して
2値データを夏山することにより、疑似中間調を表す画
像が得られる。
By sequentially repeating the above operations in the main scanning direction and the sub-scanning direction to brighten the binary data, an image representing a pseudo halftone can be obtained.

なお、この実施例ではラプラシアン演算を注目画像と前
後左右の隣接画素により行ったが、これに限られるもの
ではなく、第6図の(b)、 (C)を含めて広範囲の
周辺画素を対象とする他の係数マトリクスにより実施で
きる。同様に誤差配分演算部15における2値化誤差の
配分範囲も、第2図の例に限られるものではない。
In this example, the Laplacian calculation was performed using the image of interest and adjacent pixels on the front, back, left, and right sides, but the operation is not limited to this, and a wide range of surrounding pixels including (b) and (C) in Fig. 6 can be used. It can be implemented with other coefficient matrices. Similarly, the binarization error distribution range in the error distribution calculation unit 15 is not limited to the example shown in FIG. 2.

次に本発明を具体化した構成を第3図乃至第5図により
説明する。
Next, a configuration embodying the present invention will be explained with reference to FIGS. 3 to 5.

第3図は実施例の具体的構成図、第4図はラプラシアン
演算部の構成、第5図は誤差配分演算部の構成である。
FIG. 3 is a specific configuration diagram of the embodiment, FIG. 4 is a configuration of a Laplacian calculation section, and FIG. 5 is a configuration of an error distribution calculation section.

第3図において、31.32は濃度データラインバッフ
ァ、33〜40はそれぞれ並列に入力するデータが格納
されるラッチ回路、41〜44は加算器、45はラプラ
シアン演算部、46は誤差配分演算部、47は2値化回
路、48は誤差演夏用の加算器である。また、第4図、
第5図において 50〜56及び58は加算器、57は
変換テーブル、59〜62は変換テーブルを表す。
In FIG. 3, 31 and 32 are density data line buffers, 33 to 40 are latch circuits in which parallel input data is stored, 41 to 44 are adders, 45 is a Laplacian calculation unit, and 46 is an error distribution calculation unit. , 47 is a binarization circuit, and 48 is an adder for error calculation. Also, Figure 4,
In FIG. 5, 50 to 56 and 58 represent adders, 57 represents a conversion table, and 59 to 62 represent conversion tables.

この第3図〜第5図の構成では、入力濃度データが8ビ
ツト長(0〜255の濃度を表す)で入力される場合、
各データ線や、各構成要素はそれに対応して8ビツト以
上分の線や要素を持つものとする。
In the configuration shown in FIGS. 3 to 5, when input density data is input in 8-bit length (representing density from 0 to 255),
It is assumed that each data line and each component has corresponding lines and elements for 8 bits or more.

また、処理の対象となる画像空間を主走査方向がN(例
えば、172B)ドツト、副走査方向がM(例えば23
10)ラインの画素から構成されている場合、1度デー
タラインバッファ31,32は、N−3画素分の濃度デ
ータを蓄積するものであり、FIFO(ファーストイン
・ファーストアウト)型のRAMで構成されている。
In addition, the image space to be processed has N (for example, 172B) dots in the main scanning direction and M (for example, 23B) dots in the sub-scanning direction.
10) When composed of line pixels, the data line buffers 31 and 32 are for storing density data for N-3 pixels, and are composed of FIFO (first-in, first-out) type RAM. has been done.

第3図乃至第5図の動作を以下に説明する。The operations shown in FIGS. 3 to 5 will be explained below.

最初に入力濃度データD i + nは図示しない転送
黒信号に同期してラッチ回路群33〜40.加算器41
〜44及び前記濃度データラインバッファ31.32へ
順次転送されてゆく、なお1画像空間の先頭部分では、
各ラッチ回路のQ出力は全ビットが“0”に、Q出力は
全ビット“1”にリセットされている。
First, the input density data D i + n is sent to the latch circuit groups 33 to 40 . in synchronization with a transfer black signal (not shown). Adder 41
44 and the density data line buffers 31 and 32, and at the beginning of one image space,
All bits of the Q output of each latch circuit are reset to "0", and all bits of the Q output are reset to "1".

ラプラシアン演算部45では、第2図の実施例と同様な
係数マトリクスを用いた演算が行われる。
The Laplacian calculation section 45 performs calculations using a coefficient matrix similar to the embodiment shown in FIG.

すなわち、注目画素の濃度データD、、、(ラッチ回路
37の出力)と4つの周辺画素の濃度データの1の補数
データD、弓+ 111 D @+ l’l−1+T5
m+*・lD 、。InI3  (ラッチ回路40.3
B、36.34のQ出力)を入力データとして、第4図
に示すような、加算器50〜56により、各々注目画素
の濃度データD、、いと加算され(実質的に、差分の合
計−4が求められる)、ROM(リードオンリーメモリ
)等で構成された変換テーブル57へ入力される。変換
テーブル57内には、予め所定の係数を掛夏した結果が
書き込まれており2周辺画素との濃度差の総和に対する
ラプラシアン演算結果が出力される。
In other words, the density data D of the pixel of interest (output of the latch circuit 37) and the one's complement data D of the density data of the four surrounding pixels, +111 D @+l'l-1+T5
m+*・ld,. InI3 (latch circuit 40.3
B, Q output of 36.34) as input data, adders 50 to 56 as shown in FIG. 4) is input to a conversion table 57 made up of a ROM (read only memory) and the like. In the conversion table 57, the result of multiplying by a predetermined coefficient is written in advance, and the Laplacian calculation result for the sum of density differences with two surrounding pixels is output.

この結果と注目画素の濃度データD、、アを加算器58
で加算し、補正された濃度データD1.わが得られる。
Adder 58 adds this result and the density data D, A of the pixel of interest.
The density data D1. is added and corrected by D1. I get it.

次に、この補正された濃度データD、、イ゛は2値化回
路47で所定の閾値データTHと比較され比較結果に応
じて次のような2値化出力を発生する。
Next, the corrected density data D, .

■D、、11’ >THO時 0出力((L、s)’全ピットO(8ビツト)0出力(
0,、、): 1 (1ビツト)■Dll+ll゛ ≦
THO時 O出力(Os、l:全ビット1 (8ビツト)O出力(
0,、、): 0 (1ビツト)即ち、■の場合、注目
画素m、nの2値化出力(0,、、)は“1”で、その
濃度データは最大値(全ピント1)となって、その最大
値の1の補数がO出力として全ビン)0になる。■の場
合、注目画素m、nの2値化出力(0,、、)は“0″
で。
■D,, 11'> 0 output when THO ((L, s)' All pits O (8 bits) 0 output (
0,,,): 1 (1 bit)■Dll+ll゛≦
O output at THO (Os, l: All bits 1 (8 bits) O output (
0, , ): 0 (1 bit) In other words, in the case of ■, the binarized output (0, , ) of the target pixels m and n is "1", and the density data is the maximum value (all in focus 1). Then, the 1's complement of the maximum value becomes 0 for all bins as the O output. In the case of ■, the binarized output (0,,,) of the target pixels m and n is “0”
in.

その濃度データは最大値(全ピント0)となって。The density data becomes the maximum value (all focus is 0).

その最大値の1の補数がO出力として全ピント1になる
The 1's complement of the maximum value becomes the O output and all the points are 1.

なお、2値化回路47は、比較器とNOT回路により構
成されており、このO出力(0,15)と前記補正され
た濃度データD @+ II゛ とが加算器48で加算
され、2硫化誤差データE11.が求められる。
The binarization circuit 47 is composed of a comparator and a NOT circuit, and the O output (0, 15) and the corrected density data D@+II' are added in an adder 48, and 2 Sulfurization error data E11. is required.

次に誤差配分演算部46では、前記2値化誤差データE
、1.を元に、第5図に示す様に、誤差拡散マトリクス
(第2図の18参照)の重み付は係数から予め求めた誤
差配分を格納しである変換テーブル59〜62から、各
未処理の画素への誤差配分値E11.やl l Ea*
+9m−11EII+I+II I El&$1+1.
1を求め、加算器41〜44の一方の入力データとして
セットされる。なお、第5図の変換テーブル59〜62
はROM等で構成されている。
Next, in the error distribution calculation section 46, the binarized error data E
, 1. Based on this, as shown in FIG. 5, the weighting of the error diffusion matrix (see 18 in FIG. 2) is calculated from the conversion tables 59 to 62, which store the error distribution determined in advance from the coefficients, for each unprocessed data. Error allocation value to pixels E11. Ya l l Ea*
+9m-11EII+I+II I El&$1+1.
1 is determined and set as input data for one of the adders 41-44. In addition, the conversion tables 59 to 62 in FIG.
is composed of ROM and the like.

加算器41〜44では、ランチ回路33〜36のQ出力
り、、□1.D□11.l−11D□IIMID□1、
+al と前記の誤差配分値E 11+ll+I + 
Em。11、−+ Em41+Il + Emや、9.
。1とを各々加算し出力する。
The adders 41 to 44 output the Q outputs of the launch circuits 33 to 36, □1. D□11. l-11D□IIMID□1,
+al and the above error distribution value E 11+ll+I +
Em. 11, -+ Em41+Il + Em, 9.
. 1 and are added and output.

以上の動作で1画素分の処理が完了し、同様に図示しな
い転送りロック信号により、1画素分シフトして画像空
間全域に対し処理を繰り返し、2値データ0.1.を順
次出力する。
With the above operations, processing for one pixel is completed, and similarly, by a transfer lock signal (not shown), the processing is repeated for the entire image space by shifting by one pixel, and the binary data 0.1. Output sequentially.

なお、この第3図〜第5図の構成では、減真を1の補数
(論理反転出力)との加算により実現したが、2の補数
を求める為の+1加算手段を追加しても良い。
In the configurations shown in FIGS. 3 to 5, the subtraction is realized by addition with a 1's complement (logical inversion output), but a +1 addition means may be added to obtain a 2's complement.

[発明の効果] 本発明によれば、誤差拡散法を用いて2W化し。[Effect of the invention] According to the present invention, the error diffusion method is used to convert the signal into 2W.

疑似中間調画像を得る画像処理方式により1文字・線画
の再現性を向上できるとともに、濃度が低い部分でのド
ツト出現遅れを補正できるので1文字・線画等の写真・
中間調部の両方とも良好な画質を得ることができる。
The image processing method that obtains pseudo-halftone images improves the reproducibility of single characters and line drawings, and also corrects the delay in the appearance of dots in areas with low density, so it is possible to improve the reproduction of single characters and line drawings.
Good image quality can be obtained in both halftone areas.

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

第1図は本発明の原理構成図、第2図は実施例の構成図
、第3図は実施例の具体的構成図、第4図はラプラシア
ン演算部の構成、第5図は誤差配分演算部の構成、第6
図はラプラシアンマトリクスの例である。 第1図中 1:濃度データメモリ 2ニラブラシアン演算部 3:2値化部 4:誤差演算部 5:誤差配分演算・データ修正部 6:2値データ出力部
Figure 1 is a diagram of the principle of the present invention, Figure 2 is a diagram of an embodiment, Figure 3 is a detailed diagram of the embodiment, Figure 4 is the configuration of the Laplacian calculation section, and Figure 5 is error distribution calculation. Composition of the section, 6th
The figure is an example of a Laplacian matrix. In Figure 1, 1: Density data memory 2 Nilabrasian calculation unit 3: Binarization unit 4: Error calculation unit 5: Error distribution calculation/data correction unit 6: Binary data output unit

Claims (1)

【特許請求の範囲】 各画素が複数ビットの濃度データで構成される画像の各
画素を2値化して疑似中間調画像を得るための画像処理
方式において、 濃度データメモリ(1)から注目画素と周辺画素のデー
タを取り出して所定の係数マトリクスによりラプラシア
ン演算及びその演算結果と注目画素のデータとの加算を
ラプラシアン演算部(2)で行い、 該ラプラシアン演算部の出力を2値化部(3)において
所定の閾値と比較して2値化を行い、2値化した結果の
値と前記ラプラシアン演算の結果から誤差演算部(4)
により2値化誤差値を求め、 該2値化誤差値を誤差配分演算・データ修正部(5)に
より注目画素の周辺に配分することを特徴とする画像処
理方式。
[Claims] In an image processing method for obtaining a pseudo halftone image by binarizing each pixel of an image, each pixel of which is composed of multiple bits of density data, A Laplacian calculation unit (2) performs a Laplacian calculation using a predetermined coefficient matrix and adds the data of the pixel of interest to the data of the surrounding pixels, and the output of the Laplacian calculation unit is converted to a binarization unit (3). Binarization is performed by comparing with a predetermined threshold value, and an error calculation unit (4) uses the value of the binarization result and the result of the Laplacian calculation.
An image processing method characterized in that a binarized error value is obtained by: and the binarized error value is distributed to the periphery of a pixel of interest by an error distribution calculation/data correction unit (5).
JP2111320A 1990-04-26 1990-04-26 Picture processing system Pending JPH048063A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2111320A JPH048063A (en) 1990-04-26 1990-04-26 Picture processing system
US07/690,574 US5208684A (en) 1990-04-26 1991-04-24 Half-tone image processing system
KR1019910006752A KR950006440B1 (en) 1990-04-26 1991-04-26 Halt-tone image processing system
DE69116924T DE69116924T2 (en) 1990-04-26 1991-04-26 Halftone image processing system
EP91303820A EP0454495B1 (en) 1990-04-26 1991-04-26 Half-tone image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2111320A JPH048063A (en) 1990-04-26 1990-04-26 Picture processing system

Publications (1)

Publication Number Publication Date
JPH048063A true JPH048063A (en) 1992-01-13

Family

ID=14558232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2111320A Pending JPH048063A (en) 1990-04-26 1990-04-26 Picture processing system

Country Status (1)

Country Link
JP (1) JPH048063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008206182A (en) * 2001-05-30 2008-09-04 Senshin Capital Llc Rendering image utilizing adaptive error diffusion

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008206182A (en) * 2001-05-30 2008-09-04 Senshin Capital Llc Rendering image utilizing adaptive error diffusion

Similar Documents

Publication Publication Date Title
US5289293A (en) Pixel density conversion and processing
JP2500837B2 (en) Pixel value quantization method
US5729663A (en) Method and apparatus for gray screening
US6373990B1 (en) Image processing utilizing luminance-density conversion
JP3247737B2 (en) Pixel value quantization method in image
EP0734153B1 (en) Image processing apparatus for performing random mask process
JP4121631B2 (en) Image data processing system and image data processing method
JPH05308515A (en) Method for quantizing pixel value in picture
US5208684A (en) Half-tone image processing system
JPH11187264A (en) Method and device for processing image
JPH048063A (en) Picture processing system
JP3225099B2 (en) Image processing device
JPH0666875B2 (en) Image signal processor
JP2003198843A (en) Reduced-buffer error diffusion
JP3679522B2 (en) Image processing method and apparatus
JP2810396B2 (en) Image processing device
JP2714140B2 (en) Pixel density converter
JPS6029872A (en) Method and device for picture signal processing
JP2002209102A (en) Method for deteriorating gray scale image using error diffusion system approach
JP2714141B2 (en) Pixel density converter
JP3070128B2 (en) Method and apparatus for binarizing a gradation image
JP3157870B2 (en) Image processing method
JP2644491B2 (en) Image processing device
JPS63204375A (en) Half tone picture forming method
JPH06339013A (en) Binarizing method and device for multilevel image